Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 599 of 909
OC(...)
Output Condition
APPLICATION: I/O control
DESCRIPTION: Read current output driving state of 24 Volt I/O
EXECUTION: Immediate
CONDITIONAL TO: Class 5 M-style, or D-style with AD1 option
LIMITATIONS: N/A
READ/REPORT: ROC(...)
WRITE: Read only
LANGUAGE ACCESS: Formulas and conditional testing
UNITS: N/A
RANGE OF VALUES: Output: Depends on command format and motor model (see
details)
TYPICAL VALUES: N/A
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x series only
COMBITRONIC: N/A
DETAILED DESCRIPTION:
The OC command reads the specified output or a block of outputs. This applies to the 24 volt
sourcing I/O. When the output is set high (24 volts), the value is represented by this command
as a 1. It can be used in the following ways:
l
=OC(IO)
Individual output status of I/O number; result is 1 if output is ON and 0 if it is OFF.
o
D-style: IO is 16–25
o
M-style: IO is 0–10
l
=OC(W,word)
Get output status for a whole word of I/O bits; result is a bitfield (e.g., bits 0–10 are
represented with a range of numbers from 0 to 2047).
o
D-style: word is 1; result is 0–1023
o
M-style: word is 0; result is 0–2047
NOTE: This does not represent the state of the inputs. Only the commanded
outputs are represented.
Part 2: Commands: OC(...)