Array of tooldata
Options
![Daper](https://secure.gravatar.com/avatar/c7653d4da963f86dd4ecd41499c22870/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
Daper
✭
Hello,
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} := [
[TRUE,[[x,y,z].......],
[TRUE,[[a,b,c].......],
[TRUE,[[d,e,f].......],
];
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 ?
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} := [
[TRUE,[[x,y,z].......],
[TRUE,[[a,b,c].......],
[TRUE,[[d,e,f].......],
];
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 ?
0
Comments
-
VAR tooldata CurrentTool;
CurrentTool:=ToolInUse{tool_idx};
MoveL AnyPos, v100, fine, CurrentTool;
Lee Justice0 -
Thank you so much for your quick reply, really appreciate0
Categories
- All Categories
- 5.4K RobotStudio
- 388 UpFeed
- 16 Tutorials
- 12 RobotApps
- 294 PowerPacs
- 404 RobotStudio S4
- 1.8K Developer Tools
- 248 ScreenMaker
- 2.7K Robot Controller
- 293 IRC5
- 52 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 752 RAPID Programming
- 16 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings