UH wait for DIO bit high
IMM PGM MIP
USAGE ♦
SYNTAX XxUH
PARAMETERS
Description xx [ int ] - DIO bid number
Range xx - 0 to 15
Units xx - none
Defaults xx missing: error 38, COMMAND PARAMETER MISSING
out of range: error 7, PARAMETER OUT OF RANGE
Note:
DESCRIPTION This command causes a program to wait until a selected I/O input bit becomes
high. It is level, not edge sensitive. This means that at the time of evaluation, if
the specified I/O bit xx is high already, the program will continue to execute
subsequent commands.
All DIO bits are pulled high on the board. Therefore, a missing signal will cause
the wait to complete and subsequent commands will continue to be executed.
RETURNS none
REL. COMMANDS UL -
Wait for DIO bit low
EXAMPLE 1EP | Enter stored program #1
1MO | Turn axis #1 motor power ON
1MV+ | Move axis #1 indefinitely in positive direction
13UH | Wait for DIO bit #13 to go HIGH before executing any
subsequent commands
1
ST
| Stop axis #1
WT500 | Wait for 500 ms
1MV- | Move axis #1 indefinitely in negative direction
QP | Quit program mode
3-146 Section 3 – Remote Mode