Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 864 of 909
Command Error Codes
When a command results in error, the Command error bit (Status Word 2, bit 14) will be
tripped. It is up to the user to catch this and read the error code.
NOTE: If multiple command managers are executing commands at the same time,
it is possible for one to overwrite the other.
Decoding the Error
The RERRC or =ERRC commands reply with a numeric value describing the most recent error.
To decode the error, refer to the following table.
Code Description Notes
0 NO_ERROR
1 BAD_LENGTH Only used for CAN when the command is too long
2 BAD_ARGUMENT
3 BAD_PACKET
4 BAD_OPERATION
5 MISSING_ARGUMENT
6 NOT USED
7 ERROR_PARENTHESIS
8 NOT USED
9 LENGTH_VIOLATION Embedded address was not found within the 64-character buffer for
IF, SWITCH, GOTO, etc. (should never happen)
10 BAD_ARRAY_ADDR Array index outside the defined range
11 DIVIDE_BY_ZERO Attempt to divide by 0
12 STACK_OVERFLOW No room on stack for another 10 GOSUB and INTERRUPTS use the
same stack
13 STACK_UNDERFLOW RETURN or RETURNI with no place to return
14 BAD_LABEL Label does not exist for GOSUB or GOTO
15 NESTED_SWITCH Too many nested SWITCH (> 4)
16 BAD_FORMULA
17 BAD_WRITE_LENGTH VST command amount written too long
18 NOT_USED
19 BAD_BIT Z{letter} command issued for a bit that cannot be reset
20 INVALID_INTERRUPT EITR command for interrupt not defined)
21 NO_PERMISSION Operation or memory range is not user-accessible
22 OPERATION_FAILED General error
23 MATH_OVERFLOW
24 CMD_TIMEOUT Combitronics timeout
25 IO_NOT_PRESENT
26 NO_CROSS_AXIS_SUPPORT
27 BAD_MOTOR_STATE
28 BAD_CROSS_AXIS_ID
29 BAD_COMBITRONIC_FCODE
30 BAD_COMBITRONIC_SFCODE
31 EE_WRITE_QUEUE_FULL
32 CAM_FULL
Appendix: Command Error Codes