Event routine not starting
Options
jled
✭
Hello,
I am having some trouble with event routine. The routine itself is as follows:
I am having some trouble with event routine. The routine itself is as follows:
MODULE user (SYSMODULE)
VAR wzstationary worldzone1;
VAR wzstationary worldzone2;
VAR num testnum:=0;
PROC WZPos()
VAR shapedata shape1;
VAR shapedata shape2;
CONST pos corner1:=[455,200,650];
CONST pos corner2:=[1050,-600,1100];
CONST pos corner3:=[350,150,150];
CONST pos corner4:=[1000,-150,600];
testnum:=5;
WZBoxDef \Inside,shape1,corner1,corner2;
WZDOSet \stat,worldzone1 \Inside,shape1,doBusySlabi,0;
WZBoxDef \Inside,shape2,corner3,corner4;
WZDOSet \stat,worldzone2 \Inside,shape2,doBusyTrak,0;
ENDPROC
ENDMODULE
The problem is that the routine WZPos doesn't start. I think the worldzones are defined correctly, but the routine itself doesn't execute. It is linked with a POWER_ON event in controller configuration (see attachment).
Does someone know what could be the reason for this happening?
Thank you for all your help,
Regards
Does someone know what could be the reason for this happening?
Thank you for all your help,
Regards
0
Comments
-
Try to call the routine after boot up. See if you get an error more or less like "world zone already in use or activated".Lee Justice0
-
I tried and that is exactly what happens.0
-
OK, so that tells us that it did run. You need to get motors on for the system to recognize the zones.Lee Justice0
-
Thank you very much!0
Categories
- All Categories
- 5.4K RobotStudio
- 385 UpFeed
- 15 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 285 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 748 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings