WAIT: Difference between revisions

42 bytes added ,  5 years ago
no edit summary
No edit summary
No edit summary
Line 38:
|
|TIMEOUT
|[[JMP/LBL|LBL[1]]]
|}
The condition can be any valid variable compared against any other variable, as well as just a time constant.
 
 
The '''WAIT''' instruction modifier '''TIMEOUT''' lets the instruction break out to a given '''[[JMP/LBL|LBL]]''' after a certain amount of time has occurred. This can be useful for error checking or multitasking, where the robot sitting idle is an undesired event.