EDH0162En1040 – 06/99
3.148
MM4005
UL — Wait for I/O low
Usage
IMM
PGM
MIP
Syntax
xxUL
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 low. It is level, not edge sensitive which means that at the time of
evaluation, if the specified I/O bit
xx
is low already, the program will con-
tinue executing.
If the bit specifier
xx
is missing or set to 0, the program will wait for all bits
to be low.
NOTE
The command can be placed on a line by itself or with other commands.
If placed on a line with other commands, the advantage is that they will
be executed with a minimal delay after the I/O bit goes low.
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
UH
—
Wait for I/O high.
Example
7UL
, 3PA12.3 |
Wait while bit #7 of the I/O input port becomes low 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