Optima DMC-1xxx and DMC-18x2 Command Reference
TC
i
182
TC
FUNCTION: Tell Error Code
DESCRIPTION:
The TC command returns a number between 1 and 255. This number is a code that reflects
why a command was not accepted by the controller. This command is useful when the
controller halts execution of a program at a command or when the response to a
command is a question mark. The TC command will provide the user with a diagnostic
tool. After TC has been read, the error code is set to zero.
ARGUMENTS: TC n
where
n = 0 Returns code only
n = 1 Returns code and message
n = ? Returns the error code
No argument will provide the error code for all axes
CODE EXPLANATION
CODE EXPLANATION
1
Unrecognized command
54
Question mark part of string
2
Command only valid from program
55
Missing [ or []
3
Command not valid in program
56
Array index invalid or out of range
4
Operand error
57
Bad function or array
5
Input buffer full
58
Bad command response (i.e._GNX)
6
Number out of range
59
Mismatched parentheses
7
Command not valid while running
60
Download error - line too long or too
many lines
8
Command not valid when not running
61
Duplicate or bad label
9
Variable error
62
Too many labels
10
Empty program line or undefined label
63
IF statement without ENDIF
11
Invalid label or line number
65
IN command must have a comma
12
Subroutine more than 16 deep
66
Array space full
13
JG only valid when running in jog
mode
67
Too many arrays or variables
14
EEPROM check sum error
71
IN only valid in task #0
15
EEPROM write error
80
Record mode already running
16
IP incorrect sign during position move
or IP given during forced deceleration
81
No array or source specified
17
ED, BN and DL not valid while
program running
82 Undefined
Array
18
Command not valid when contouring
83
Not a valid number
19
Application strand already executing
84
Too many elements
20
Begin not valid with motor off
90
Only A B C D valid operand
21
Begin not valid while running
96
SM jumper needs to be installed for
stepper motor operation
22
Begin not possible due to Limit Switch
97
Bad Binary Command Format
24
Begin not valid because no sequence
98
Binary Commands not valid in