Workobject changing
St4rk
✭
in RobotStudio
Hello,
is there any way to program workobject changing ? For example, I define four workobject and in FOR statement it will be automatically changing. Something like:
FOR i from 1 to 4
workobject(i)
ENDFOR
is there any way to program workobject changing ? For example, I define four workobject and in FOR statement it will be automatically changing. Something like:
FOR i from 1 to 4
workobject(i)
ENDFOR
Tagged:
0
Comments
-
You can do something like this:
<div>MODULE MainR1 </div><div> </div><div> PERS wobjdata wobjA := [FALSE, TRUE, "", [[0, 0, 10],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div> PERS wobjdata wobjB := [FALSE, TRUE, "", [[0, 0, 20],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div> PERS wobjdata wobjC := [FALSE, TRUE, "", [[0, 0, 30],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div> PERS wobjdata wobjD := [FALSE, TRUE, "", [[0, 0, 40],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div> PERS wobjdata usedWobj; </div><div> PERS wobjdata wobjs{4}; </div><div> </div><div> PROC main() </div><div> wobjs:=[wobjA, wobjB, wobjC, wobjD]; </div><div> </div><div> FOR i FROM 1 TO Dim(wobjs,1) DO </div><div> usedWobj := wobjs{i}; </div><div> ENDFOR </div><div><br></div><div> ENDPROC </div><div> </div><div>ENDMODULE </div>
0 -
Thank you very much !0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings