Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 478 of 909
IN(...)
Specified Input
APPLICATION: I/O control
DESCRIPTION: Read the specified input or all inputs
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: N/A
READ/REPORT: RIN(...)
WRITE: Read only
LANGUAGE ACCESS: Formulas and conditional testing
UNITS: N/A
RANGE OF VALUES:
Depends on motor series and command options (see details)
TYPICAL VALUES: Depends on motor series and command options (see details)
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x and later
COMBITRONIC: RIN(0):3, x=IN(0):3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The IN command reads one specific input or all inputs. It can be used in the following ways:
l
x=IN(IO)
where IN(IO) specifies the I/O number that is assigned to the variable x. See the
following table for allowed range of IO. The result is a value of 0 or 1 assigned to x.
l
x=IN(W,word)
where IN(W,word) specifies which word of I/O will be assigned to the variable x. A
literal "W" is used as the first argument. See the following table for the allowed values
for "word" and the output word value range.
l
x=IN(W,word[,mask])
where IN(W,word[,mask]) specifies which word of I/O will be assigned to the variable
x. A literal "W" is used as the first argument. The mask argument is ANDed with the
resulting response word (equivalent to using the & operator on the result). See the
following table for the allowed values for "word", the output word value range, and the
bitmask range.
Part 2: Commands: IN(...)