Worldzones
IRBfan
✭
in RobotStudio
I always recive Syntax error. I just want to test the Worldzones in order not to crash into a Table and / or Wall while i am in manual or automatic mode. I created a Box and tried to limit it. I have got Robotstudio 5.14.03, IRB360 and IRC5. So i wrote this programm Module. The error says: Unexpected identifier in the Line of the WZBoxDef. If have got the WZ package installed. If i use MoveL for automatic control Robostudio goes cracy. Can someone help me?
MODULE Main
VAR shapedata volume;
VAR wzstationary max_workarea;
CONST pos corner1 :=[25,110,-1100];
CONST pos corner2 :=[-52,233,-888];
CONST robtarget MP := [[0,0,-1050],[0,1,0,0],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget MPout := [[30,110,-1080],[0,1,0,0],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget MPin := [[-30,1500,-950],[0,1,0,0],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
WZBoxDef Inside, volume, corner1, corner2;
WZLimSup Stat, max_workarea, volume;
ENDMODULE
MODULE Main
VAR shapedata volume;
VAR wzstationary max_workarea;
CONST pos corner1 :=[25,110,-1100];
CONST pos corner2 :=[-52,233,-888];
CONST robtarget MP := [[0,0,-1050],[0,1,0,0],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget MPout := [[30,110,-1080],[0,1,0,0],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget MPin := [[-30,1500,-950],[0,1,0,0],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
WZBoxDef Inside, volume, corner1, corner2;
WZLimSup Stat, max_workarea, volume;
ENDMODULE
0
Comments
-
Hi IRBfan,I copy/paste your code to a text editor and it seems there are space characters between "" and "Inside","Stat" keywords. You need to delete those in both line.BR.Erdem Karaçeper0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings