EDH0162En1040 – 06/99
3.88
MM4005
OE — Test I/O output
Usage
IMM
PGM
MIP
Syntax
xxOEnn
Parameters
Description
xx
[int]
— I/O output bit number.
nn
[int]
— I/O output bit or byte state.
Range
xx
—
0
to
8.
nn
—
0
to
1
or
0
to
255.
Units
xx
— None.
nn
— None.
Defaults
xx
Missing: 0.
Out of range: Error E.
Floating point: Error A.
nn
Missing: Error C.
Out of range: Error C.
Floating point: Decimal part truncated.
Description
This command is one of the flow control instructions, enabling a condition-
al execution of a command line depending on the state of an I/O output bit.
It must be placed at the beginning of the command line of which execution
it controls. If the selected output bit
xx
has the specified state
nn
, all fol-
lowing commands on that line are executed. If
xx
is set to 0 or missing, the
test is performed on the entire I/O output byte and then
nn
could have a
value from 0 to 255, representing the byte value to compare it with.
As described in the “Command Syntax” paragraph, a line is defined as all
commands between two line terminators.
Even though the command can be used on a line in immediate mode, its
primary use is inside a program.
Returns
None.
Errors
A
—
Unknown message code.
C
—
Parameter out of limits.
E
—
Incorrect I/O channel number.
L
—
Command not at the beginning of a line.
Rel. Commands
IE
—
If I/O input is equal.
Example
3OE0
, 1PA2.34 |
If I/O output bit #3 is low, move axis #1 to position 2.34.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com