P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 756 of 909
UO(...)=formula
User Status Bits
APPLICATION:
System
DESCRIPTION:
Sets one or more user status bits to specified values
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:
UO(0):3=1, UO(W,0):3=22 or UO(W,0,15):3=22,
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The UO command sets one or more user status bits to the specified values. These bits are
visible in motor status words 12 and 13, which means they can also be used to trigger user
program interrupts.
The UO command sets or clears the bit specified by bit#. If the formula's least-significant bit
= 1, then it's true (1); otherwise, it's false (0).
l
UO(bit#)=formula
If bit 0 in the formula to the right of "=" is 1, then set bit# to a 1; otherwise, when it is
even or zero, clear the bit to 0.
l
UO(W,word)=formula
Set the group of bits in the specified user word to the bitwise value from the formula.
l
UO(W,word[,mask])=formula
Set the group of bits in the specified user word to the bitwise value from the formula.
However, leave the 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., UO(W,0)=x
12, e.g., RW(12) or RB(12,x)
0-15, e.g., UO(15)=0
1, e.g., UO(W,1)=x
13, e.g., RW(13) or RB(13,x)
16-31, e.g., UO(31)=0
Part 2: Commands: UO(...)=formula
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...