RobotStudio event

Using MaxTime and TimeFlag together for WaitDI

I have a problem using MaxTime and TimeFlag options together in 5.61; I want to use on WaitDI, if the signal exceed the maximum time then trigger the TimeFlag, and based on the status of TimeFlag it will do something else. I tested in virtual controller works fine then tested on robot in manual mode, works too. But it doesn't work in Auto mode. It doesn't wait for digital input anymore just directly go to next step. Please help.

Answers

  • Hi, insted use waituntil. For example: Waitunti Di_1=1\Maxtime:=5\TimeFlag:=Flag1;