RobotStudio event

Array of tooldata


My goal is to have a parametric tooldata that depends on a variable input and use the following:

MoveL AnyPos, v100, fine, ToolInUse{tool_idx};

With ToolInUse being an array of tooldatas defined as

TASK PERS tooldata ToolInUsed{3} := [
and tool_idx an integer from that can take values 1,2,3

I know such a trick is possible with robtarget, e.g.
MoveL Pos{idx_pos}, v100,fine, toolxyz

but I couldn't figure out how to make it work with tooldata in the same way.

Is there any workaround someone knows ?


  • VAR tooldata CurrentTool;

    MoveL AnyPos, v100, fine, 
    Lee Justice
  • Thank you so much for your quick reply, really appreciate