
Detect if Target is out of WZ
Hello,
So I have a set World Zone:
PROC zone_output()
CONST pos corner1:=[300,-740,379];
CONST pos corner2:=[-300,478,-121];
WZBoxDef\Outside,volume,corner1,corner2;
WZLimSup\Stat,object,volume;
ENDPROC
I am sending the robot arbitrary targets via Sockets, and then sending a Move command. I am wanting to detect if the target I send is outside of the WZ before I send the Move command. Is this possible? If so, can someone point me in the right direction to get it working?
Thanks in advance for any help!
SM
So I have a set World Zone:
PROC zone_output()
CONST pos corner1:=[300,-740,379];
CONST pos corner2:=[-300,478,-121];
WZBoxDef\Outside,volume,corner1,corner2;
WZLimSup\Stat,object,volume;
ENDPROC
I am sending the robot arbitrary targets via Sockets, and then sending a Move command. I am wanting to detect if the target I send is outside of the WZ before I send the Move command. Is this possible? If so, can someone point me in the right direction to get it working?
Thanks in advance for any help!
SM
Tagged:
0
Comments
-
Something like this?
if ( (x < = 300) and (x > = -300) and (y < = 478) and (y > = -740) and (z < = 379) and (z > = -121) )
So if your points XYZ is within the volume the above if statement will be true?
/Pavel0 -
Excellent, not sure why I didn't think of that...
Thanks!
SM
0
Categories
- All Categories
- 5.4K RobotStudio
- 379 UpFeed
- 15 Tutorials
- 12 RobotApps
- 286 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 272 IRC5
- 41 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 731 RAPID Programming
- 15 Wizard Easy Programming
- 108 Collaborative Robots
- 3 Job listings