Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 221 of 909
Output Condition and Fault Status Commands
This section describes the output condition and fault status report commands available for the
SmartMotor.
Output Condition Commands
=OC(IO) Individual output status — bit is 1 if output is on and 0 if it
is off.
=OC(W,word) Get output status within a word.
=OC(W,word, [mask]) Get output status within a word after applying mask.
NOTE: Inputs return OFF even if external condition is logic 1 in the OC()
commands.
Output Fault Status Reports
NOTE: The output fault status reports are only available for 24V I/O.
=OF(IO) Returns the present fault state for that I/O, where:
0 = no Fault , 1 = over current, 2 = possible shorted.
=OF(S,word) Returns the bit mask of present faulted I/O points. Where word is
the 16-bit word number, 0 is the controller I/O Status Word 16. If
the value is ever greater than zero, then the I/O fault status flag
(Controller Status Word 3) is set.
=OF(L,word) Returns the bit mask of latched faulted I/O points. Where word is
the 16-bit word number, a read of a 16-bit word will attempt to
clear the I/O words latch.
=OF(D,word) Returns an error code from the controller associated with this I/O
word.
For more details, see Part 2: SmartMotor Command Reference on page 238.
General-Use Input Configuration
This section describes the general-use input configuration commands available for the
SmartMotor.
The following general-use input configuration commands are available:
EIGN(IO) Sets a given I/O port to or back to an input with no function
attached. In other words, to remove the function of travel
limit from I/O port 2, execute the instruction EIGN(2).
EIGN(W,word) Sets all I/O in a given I/O word back to input.
EIGN(W,word[,mask]) Sets all I/O in a given I/O word back to input if mask bit is set.
For more details, see Part 2: SmartMotor Command Reference on page 238.
Part 1: Programming: Output Condition and Fault Status Commands