3.147
EDH0162En1040 – 06/99
MM4005
UH — Wait for I/O high
Usage
IMM
PGM
MIP
Syntax
xxUH
Parameters
Description
xx
[int]
— I/O bit number.
Range
xx
—
0
to
8.
Units
xx
— None.
Defaults
xx
Missing: 0.
Out of range: Error E.
Floating point: Error A.
Description
This command causes a program to wait until a selected I/O input bit
becomes high. It is level, not edge sensitive, which means that at the time
of evaluation, if the specified I/O bit
xx
is high already, the program will
continue executing.
If the bit specifier
xx
is missing or set to 0, the program will wait for all bits
to be high.
NOTE
The command can be placed on a line by itself or with other commands.
If placed on a line with other commands, they will be executed with a
minimal delay after the I/O bit goes high.
Returns
None.
Errors
A
—
Unknown message code.
E
—
Incorrect I/O channel number.
J
—
Command authorized only in programming mode.
L
—
Command not at the beginning of a line.
Rel. Commands
UL
—
Wait for I/O low.
Example
7UH
, 3PA12.3 |
Wait while bit #7 of the I/O input port becomes high and then move
axis #3 to position 12.3 units and continue the rest of the program.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com