Showing results for 
Search instead for 
Do you mean 
Reply

robot if / Else statement with # Waitdevice function

it is possible to work with if / Else commands under Robot OLP Commands with # waitdevice position request?

 

#if (#waitdevice pos1) then

..

 

thanks

Kind regards,

Benjamin Voelzke
2 REPLIES

Re: robot if / Else statement with # Waitdevice function

Hi Benjamin,

 

i guess one way to solve it would be to create joint pose signals for the device you want to monitor and then connect those to a robot signal.

PoseSignal device1_pos1 = RobotSignal dev1_pos1

 

Then you can use that signal in the IF-condition

#if dev1_pos1=true then  (not correct logic but you know what i mean Smiley Wink  )

 

Let me know if that works for you, i believe it's also a "nicer" solution to use the signal instead of the actual pose. But that's just personal opinion i guess Smiley Happy

 

BR

Andreas

Re: robot if / Else statement with # Waitdevice function

ok i understand your solution

but i search a way for standard mode.

 

the way in line simulation mode is easy.

 

 

 

Kind regards,

Benjamin Voelzke