P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 757 of 909
User bits allow the programmer to keep track of events or status within an application
program. Their functions are defined by the application program in the SmartMotor. User bits
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:
UO
(0)=a&b
'Sets user bit to 1 if the bit-wise operation
'result is odd, else sets it to 0.
UO
(W,1,7)=a
'Sets user bits 16, 17 and 18 to the value of
'the lower three bits in a.
RELATED COMMANDS:
R
ITR(Int#,StatusWord,Bit#,BitState,Label#)
Interrupt Setup (see page 486)
User Bits, Reset (see page 762)
R
Report Specified Status Word (see page 793)
Part 2: Commands: UO(...)=formula
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...