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
Cornet Raymond
Manager
LUXROBOTIC programming Sàrl
+352 621 354 570
raymond.cornet@luxrobotic.com
http://www.luxrobotic.com
PC HP ZBook 17 G3
intel Core i7 6700HQ 2.59 GHz
RAM 16GB
HDD 1TB
NVIDIA Quadro M1000M
Cornet Raymond
Manager
LUXROBOTIC programming Sàrl
+352 621 354 570
raymond.cornet@luxrobotic.com
http://www.luxrobotic.com
PC HP ZBook 17 G3
intel Core i7 6700HQ 2.59 GHz
RAM 16GB
HDD 1TB
NVIDIA Quadro M1000M
0
Comments
-
Hi,I solved it by moving out of the Sphere and back inside at the beginning of my program.Regards
Cornet Raymond
Manager
LUXROBOTIC programming Sàrl
+352 621 354 570
raymond.cornet@luxrobotic.com
http://www.luxrobotic.com
PC HP ZBook 17 G3
intel Core i7 6700HQ 2.59 GHz
RAM 16GB
HDD 1TB
NVIDIA Quadro M1000M0 -
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.5K RobotStudio
- 390 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 304 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 772 RAPID Programming
- 17 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings