closed switch would ground the input, and a closed switch would normally be considered active.
This command affects the operation of the
LIA
,
LID
, and
LIH
commands. If a logic input pin's
polarity is reversed, the operation of these commands is reversed.
By default, the polarity for all pins is set to normal (active low).
This command is saved to global non-volatile memory and is not part of a preset. Its value is saved
each time it is changed. It will retain its value after power-down. Since this command writes to non-
volatile memory, there will be a delay before an acknowledgment is returned.
Example
Description
Status Message
S01LIP000000000000000000001111
Set logic inputs 1-
20 to normal
(active low) and
logic inputs 21-
24 to inverted
(active high).
S01LIP000000000000000000001111
8.85.
LO
-- Query or Set Status of Logic Output Pins
This command sets or queries the current state of the logic outputs. There are 20 logic outputs, so an
array of 20 boolean values is required or returned, with the first value indicating the state of the first
logic output, the second value indicating the state of the second logic output, and so on.
If a logic output pin has conditions driving it (via the
LOA
and
LOD
commands), those conditions will
override any settings imposed by the
LO
command.
If a logic pin is masked via the
LOM
command, its status will still be affected by the
LO
command.
Example
Description
Status Message
S01LO*00000000000000000000
Set all logic
outputs low.
S01LO*00000000000000000000
S01LO*10101010101010101010
Set even
numbered logic
output pins low
and odd
numbered logic
output pins high.
S01LO*10101010101010101010
S01LO*?
Query current
state of logic
outputs
S01LO*abcdefghijklmnopqrst
, where
a
-
t
are each
0
or
1
depending on the current
state of the corresponding logic output.
8.86.
LOA
-- Define Behavior for Logic Output Activated