get_status
Check motor status flags and fatal error code to detect faults and determine if a reset is needed.
Instructions
Gets the status of the motor [Firmware command "Get status", group: Status & Monitoring.] Returns:
statusFlags: A series of flags which are 1 bit each
fatalErrorCode: The fatal error code. If 0 then there is no fatal error. Once a fatal error happens, the motor becomes disabled and cannot do much anymore until reset. You can press the reset button on the motor or you can execute the System reset command to get out of the fatal error state. motor: an alias number (e.g. 88), a 16-hex-digit unique ID (e.g. "0123456789ABCDEF"), or "all" to broadcast to every motor on the bus (broadcasts get no responses back).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| motor | Yes |