Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 766 of 909
USB(arg)
USB Status Word
APPLICATION: Communications control
DESCRIPTION: Report the value of USB status word or assign it to a variable
(see details)
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: No USB= form of this command
READ/REPORT: RUSB
WRITE: Read only
LANGUAGE ACCESS: N/A
UNITS: See description
RANGE OF VALUES: See description
TYPICAL VALUES: N/A
DEFAULT VALUE: N/A
FIRMWARE VERSION: 6.0 and later
COMBITRONIC: N/A
DETAILED DESCRIPTION:
The USBcommand is used to report the value of the specified USB status word or assign it to
a variable as follows:
l
x=USB(arg)
Assigns the value of the specified USB status word (specified by arg) to the variable x
l
RUSB(arg)
Reports the value of the specified USB status word (specified by arg)
RUSB and x=USB are also permitted. In these cases, the value of arg is 0. Therefore, status
word 0 is reported or assigned to a variable.
Arg
Requested
Information
Result Value
Range Meaning
0 Report connection state 0-32
0: Detached state
1:Attached state
2: Powered state
4: Default state
8: Address-pending state
16: Address state
32: Configured state
Part 2: Commands: USB(arg)