The ARC Script Manual.

W.)

WaitFor( expression, [timeout MS] ) Pauses the execution of a script until the specified expression is true. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitFor($AutoPositionStatus = 0) Example: WaitFor($value1 = $value2) Example: WaitFor($value1 = $value2, 1000)

WaitForChange( value, [timeout MS] ) Pauses the execution of a script until the specified value has changed. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitForChange($x) Example: WaitForChange(GetServo(d0)) Example: WaitForChange(GetDigital(d0)) Example: WaitForChange(GetDigital(d0), 1000)

WaitForServoMove (servoPort, [timeout MS]) Waits for the specified servo to move. Unlike Servo_Wait, this function does not wait for a specific value. It simply returns once the servo has moved to a new position. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitForServoMove(d0) Example: WaitForServoMove(d0, 1000)

WaitForSpeech( timeOut Seconds, phrases ) Pauses and waits for one of the specified phrases to be spoken. Returns the phrase that was spoken. Will return timeout if no word is detected in the specified timeout length. Example: WaitForSpeech(30, Yes, No) Example: $value = WaitForSpeech(30, Yes, No)

WaitUntilTime( hour, minute ) Waits until the specified time. The script will stop at this command and not continue until the specified time. The time is declared in 24 hour format. Example: WaitUntilTime(17, 30)


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.