![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/rs_webinar_invitation_2025_2.jpg)
Event routine not starting
![jled](https://secure.gravatar.com/avatar/7548b3566f7ecac1ed44fa75efa8b232/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
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
![Image: https://us.v-cdn.net/5020483/uploads/editor/6d/0a41if33i0bp.jpg](https://us.v-cdn.net/5020483/uploads/editor/6d/0a41if33i0bp.jpg)
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.5K RobotStudio
- 398 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 321 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 807 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings