DMC-1400 Series Command Reference TC 191
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. Entering the TC command will provide the user with a code
as to the reason. After TC has been read, it is set to zero. TC 1 returns the text message
as well as the numeric code.
ARGUMENTS: TC n
n=0 returns code only
n=1 returns code and message
CODE EXPLANATION CODE EXPLANATION
1 Unrecognized command 60
Download error - line too long or too
many lines
2 Command only valid from program 61 Duplicate or bad label
3 Command not valid in program 62 Too many labels
4 Operand error 63 IF statement without ENDIF
5 Input buffer full 65 IN command must have a comma
6 Number out of range 66 Array space full
7 Command not valid while running 67 Too many arrays or variables
8 Command not valid when not running 68 Not valid from USB Port
9 Variable error 71 IN only valid in task #0
10 Empty program line or undefined label 80 Record mode already running
11 Invalid label or line number 81 No array or source specified
12 Subroutine more than 16 deep 82 Undefined Array
13 JG only valid when running in jog
mode
83 Not a valid number
14 EEPROM check sum error 84 Too many elements
15 EEPROM write error 90 Only X Y Z W valid operand
16 IP incorrect sign during position move
or IP given during forced deceleration
96 SM jumper needs to be installed for
stepper motor operation
17 ED, BN and DL not valid while
program running
97 Bad Binary Command Format
18 Command not valid when contouring 98 Binary Commands not valid in
application program
19 Application strand already executing 99 Bad binary command number
20 Begin not valid with motor off 100 Not valid when running ECAM
21 Begin not valid while running 101 Improper index into ET
(must be 0-256)
22 Begin not possible due to Limit Switch 102 No master axis defined for ECAM
24 Begin not valid because no sequence
defined
103 Master axis modulus greater than
256EP value
25 Variable not given in IN command 104 Not valid when axis performing