Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 763 of 909
are individually addressed starting at 0 (zero based). Likewise, the user-bit words are
addressed starting at 0 (zero based).
A powerful feature of user bits is their ability to be addressed over networks such as
Combitronic or CANopen. This allows a hosting application to run an interrupt routine in the
SmartMotor.
User bits can also be addressed as words, with or without a mask, to define the affected bits.
For more details, see User Status Bits on page 213.
EXAMPLE:
UR(19) 'RESET User Bit 3 in second User Bit Status Word
UR(W,0) 'RESET all User Bits in first User Status Word
UR(W,1,7) 'RESET User bits 16, 17 and 18
RELATED COMMANDS:
R
B(word,bit) Status Byte (see page 291)
ITR(Int#,StatusWord,Bit#,BitState,Label#) Interrupt Setup (see page 486)
UO(...)=formula User Status Bits (see page 756)
US(...) User Bits, Set (see page 764)
R
W(word) Report Specified Status Word (see page 793)
Part 2: Commands: UR(...)