Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 764 of 909
US(...)
User Bits, Set
APPLICATION: System
DESCRIPTION: Sets one or more user status bits to 1
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: N/A
READ/REPORT: None
WRITE: Write only
LANGUAGE ACCESS: N/A
UNITS: N/A
RANGE OF VALUES: Depends on command format and motor model (see details)
TYPICAL VALUES: Depends on command format and motor model (see details)
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x and later
COMBITRONIC: US(0):3 or US(W,0):3 or US(W,0,15):3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The US command sets one or more user status bits to 1. These bits are visible in motor status
words 12 and 13, which means they can also be used to trigger user program interrupts.
The US command sets or clears the bit specified by bit#. If the expression least-significant bit
= 1, then it's true (1); otherwise, it's false (0).
l
US(bit#)
Set bit to a 1.
l
US(W,word)
Set all bits in the specified word.
l
US(W,word[,mask])
Set all bits in the specified word. However, leave bits as is if they are bitwise set to 0 in
the bitmask value.
User Word
Associated
Status Word
User Bits
(individually
addressed)
0, e.g., US(W,0) 12, e.g., RW(12) or RB(12,x) 0-15, e.g., US(15)
1, e.g., US(W,1) 13, e.g., RW(13) or RB(13,x) 16-31, e.g., US(31)
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
Part 2: Commands: US(...)