RobotStudio event

Changing object data directly

Options
Hello,
 

I'm rather new to robotstudio and I'm wondering how to change object data directly.  Basically, I have a joint target that i want to edit, changing only axis 6 and leaving the rest the same.  I've found that it keeps the value stored in rax_6 under the particular object, but I'm not sure how to change it.  Below is the code I want to use, I just need to know how the syntax should work for the last line or if this is possible.

Thanks,

-Greg

 

VAR jointtarget JointPos;

JointPos:=CalcJointT(CRobT(Tool:=tool0 WObj:=wobj0), tool0WObj:=wobj0); JointPos rax_6:=Angle;

 

Comments

  • osku
    osku ✭✭
    Options
    Hello
     

    The syntax goes like this:

     

    JointPos.robax.rax_6:=Angle;

     

    You can find the correct data structure from the Rapid Reference manual (under RobotStudio help button).

     

     

    -Osku