Hey I thought I’d better start a new thread for this.
I have a rapid variable(VAR num nStickOut) declared inside a routine named “rWerkstuk01”. Problem is that when I try to get the value of the variable I get the volowing error:
"System.Exception ee: SYS_CTRL_E_UNEXPECTED: An error message that has not been successfully been converted to a common return code.
Error Code:(0xc004ffff)
SYS_CTRL_E_UNEXPECTED: An error message that has not been successfully been converted to a common return code.
ERROR:rapid.c[6279]:org_code:-1089 new_code:0xc004ffff; AdaptCmdd.cpp[231];
‘Url:/{controllername}/RAPID/T_ROB1/CURSUSV01/rWerkstuk01/nStickOutRAB Prop: Valie Arg:’;
When I put the same value globaly (declared outside the routine) I can access it fine. What’s wrong?
My code:
private void button1_Click(object sender, EventArgs e)
{
this.textBox1.Text = string.Empty;
Controller c = new Controller();
ABB.Robotics.Controllers.RapidDomain.RapidData rd;
Task t;
Module m;
string strRetVal = string.Empty;
try
{
t = c.Rapid.GetTask(“T_ROB1”);
m = t.GetModule(“CURSUSV01”);
rd = m.GetRapidData(“rWerkstuk01”, “nStickOutRAB”);
strRetVal = rd.Value.ToString();
this.textBox1.Text = this.textBox1.Text + "strRetVal= " + strRetVal;
if (rd != null)
{
rd.Dispose();
rd = null;
}
if (c != null)
{
c.Dispose();
c = null;
}
}
catch (ArgumentNullException ANe)
{
this.textBox1.Text = this.textBox1.Text + “ArgumentNullException ee” + ANe;
}
catch (System.Exception ee)
{
this.textBox1.Text = this.textBox1.Text + System.Exception ee" + ee;
}
}
Anny help/info/pointing in right direction would be much appreciated,
Qrius