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.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 830 RAPID Programming
- 13 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings