March 20, 2019, 01:51:29 AM
Robotforum | Industrial Robots Community

 Jumping past a wait command if the conditions not satisfied after a given time

Author Topic:  Jumping past a wait command if the conditions not satisfied after a given time  (Read 935 times)

0 Members and 1 Guest are viewing this topic.

April 19, 2018, 03:27:55 PM
Read 935 times


Hello All!

This may be very simple but I am new to programming and thus seek an expert opinion!

I have a program that currently waits for two RI to become on before going to the next step, however sometimes they never become ON but its still safe to continue to the next step if the operator at the PLC- HMI says so.

So what I want to do is be able to WAIT RI[2]=ON AND RI[4]=ON  or after 5 sec pass then make DO[1]= ON to the PLC so that the operator can see an alert on the HMI and then press continue if its safe to do so which will give the robot the signal to end the wait ignoring that the RIs are still off and continue onto the next line.

Maybe this can be done with background logic? I am not sure. Currently wishing the SKIP CONDITION wasnt only a motion option and could be put on a WAIT command.

Thanks!  :yesyesyes:

Today at 01:51:29 AM
Reply #1



April 19, 2018, 04:30:03 PM
Reply #1


April 19, 2018, 05:13:36 PM
Reply #2


Don't forget to set the timeout value from either the system config screen, or via the $TIMEOUT system var. The system var is in hundredths of seconds, so 5 seconds would be a setting of 500.
Check out the position converter I wrote here!

April 20, 2018, 03:47:32 PM
Reply #3


=ON AND RI[4]=ON, Timeout, LBL[1]

By adding LBL [1] at the end, the program automatically jumps to this label? Or do you need to include "Jump LBL[1]" ?

April 20, 2018, 04:14:00 PM
Reply #4


You do not need to add the JMP LBL it will go to the specified LBL when the desired time is reach or if the conditions are met it will proceed to the next line in the program.

April 26, 2018, 08:16:05 PM
Reply #5


Thank you all for your input!

What I ended up doing, after I learned that you can type mixed logic wait commands  is this;

1: DO[1]=ON to start a timer of 5 seconds on the PLC
2: WAIT (RI[2]=ON AND RI[4]=ON OR DI[1]=ON) so I can bypass using a signal from the PLC
3: DO[1]=OFF

So with this if the timer runs out on the PLC and DO[1] still = OFF then it could pop up a warning on to the operator at the HMI to check the tool and then if all is safe they can press continue at which point the PLC provides DI[1]= ON thus allowing the wait to be ended and DO[1] to = OFF.

Hope that makes sense!  :beerchug: Thanks again!

Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

KAREL WAIT FOR conditions

Started by inusO on Fanuc Robot Forum

4 Replies
Last post February 07, 2018, 08:53:49 AM
by inusO
Interrupt not working when triggering condition is satisfied at activation time?

Started by lionpeloux on KUKA Robot Forum

9 Replies
Last post November 28, 2018, 06:39:09 PM
by SkyeFire
WAIT SEC command hangs in Auto mode

Started by RobotsRock on KUKA Robot Forum

11 Replies
Last post June 12, 2015, 04:38:09 PM
by Marco
Wait Time Accumulating?

Started by Catfish on Fanuc Robot Forum

4 Replies
Last post February 16, 2015, 03:10:20 PM
by Catfish