8.79. LOP -- Set Polarity for Logic Outputs
This command sets the polarity for the 20 logic input pins. Setting the polarity for a given pin to 1 indicates that
the polarity should be normal (active high). Setting the polarity for a given pin to 0 indicates that the polarity
should be inverted (active low). Active high is considered normal because it would light an LED connected to an
output pin if the output pin was in the active state.
This command affects the operation of the
LOA and LOD 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 high).
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
F01LOP11111111111111110000
Set logic outputs 1-
16 to normal (active
high) and logic
outputs 17-20 to
inverted (active
low).
F01LOP11111111111111110000
F01LOP?
Query current
polarity settings for
logic outputs.
F01LOPabcdefghijklmnopqrst , where a-t are
each 0 or 1 depending on the current state of the
logic output polarity for the corresponding logic
output pin.
8.80. MACROA -- Add Command to Current Macro
This command adds a command to the macro currently in progress. This is used in conjunction with the MACROS
and
MACROW commands to create a new macro.
The syntax of this command specifies a macro number, a comma, and then the command to be added to the
macro. The command to be added to the macro can be any valid command except the following:
● any PRESET command
● any MACRO command
● any logic input or output command
If an attempt to assign an invalid command to a macro is made (via
MACROA), then the error condition
ERROR#074 will be generated.
An error will be generated if the specified command is not a valid command. However, an error will not be
generated if the specified command is valid, but its data is invalid. For example:
F01MACROA25,LAYDOWNTHEBOOGIE
Would return an error because it does not contain a valid command. However: