Issue with WZDOSet

Luxrobotic
✭✭
in IRC5
Hello everybody,
I have a problem with the execution of the WZDOSet instruction here under.
The routine is an event routine linked with POWERON
So the WZDOSet is define at the start of the controller.
At the beginning of my program I checked the position of the doSafeZoneHome status, to be sure that the robot is in a safe pHome positon.
The problem is that at the tart of my program, the PLC send me the MotorOn and PPtoMainAndStart commands. After this, even if the robot is @ the pHome position, the Output doSafeZoneHome is still at 0.
If I move the robot manually and put it @ , doSafeZoneHome change to 1.
If I move to Auto, MotorOn and PPtoMainAndStart, the robot doesn't move from pHome and doSafeZoneHome change to 0.
PERS wzstationary wzstatSafeZoneHome:=[1];
PROC SafeHome()
VAR shapedata SphereSafeHome;
CONST pos pPoseHome:=[pHome.trans.x,pHome.trans.y,pHome.trans.z];
CONST num nRadius:=50;
!*************************************
WZSphDef\Inside,SphereSafeHome,pPoseHome,nRadius;
WZDOSet\Stat,wzstatSafeZoneHome\Inside,SphereSafeHome,doSafeZoneHome,1;
!*************************************
ENDPROC
VAR shapedata SphereSafeHome;
CONST pos pPoseHome:=[pHome.trans.x,pHome.trans.y,pHome.trans.z];
CONST num nRadius:=50;
!*************************************
WZSphDef\Inside,SphereSafeHome,pPoseHome,nRadius;
WZDOSet\Stat,wzstatSafeZoneHome\Inside,SphereSafeHome,doSafeZoneHome,1;
!*************************************
ENDPROC
Any idea ?
Thanks
Regards
http://www.luxrobotic.com
Cornet Raymond
Manager
+352 621 354 570
raymond.cornet@luxrobotic.com
http://www.luxrobotic.com
HP ZBook Fury 16 G11
0
Comments
-
Hi,I solved it by moving out of the Sphere and back inside at the beginning of my program.RegardsCornet RaymondManager+352 621 354 570raymond.cornet@luxrobotic.com
http://www.luxrobotic.comHP ZBook Fury 16 G110 -
In my experience signals set with World Zones do not enter the appropriate state (for my installs a digital output to 1) until motors are on after a cycling power.0
Categories
- All Categories
- 5.6K RobotStudio
- 400 UpFeed
- 20 Tutorials
- 15 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 350 IRC5
- 74 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 848 RAPID Programming
- 21 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 109 Collaborative Robots
- 5 Job listings