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:
Comments
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?
/Pavel
Thanks!
SM