How to use timer value as a variable in a programs

Hi, im very new at this so sorry for noob question.

I have UR eSeries robot and i’m strugling with this basic function
How can I implement timer as a safety feature?

For example.
The conveyor starts and waits for the signal from the sensor to stop.
If it don’t get the signal from the sensor in 5 seconds the conveyor stops.

This can be achieved in different ways. The simplest way should be:

image

The “continuously checked” that you can enable in the if-command will allow it to stop the wait-command, if the sensor becomes True. :slight_smile:
If the sensor does not become true within the 5 seconds of wait, the next line will be executed (stop conveyor).

1 Like

Perfect. Thank you!!