DMC-100/1500 Command Reference
TC
•
127
DMC-1000
DMC-1500
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
where
n=0 returns code only
n=1 returns code and message
TC ? returns the error code
CODE EXPLANATION
CODE EXPLANATION
1
Unrecognized command
50
Not enough fields
2
Command only valid from program
51
Question mark not valid
3
Command not valid in program
52
Missing " or string too long
4
Operand error
53
Error in {}
5
Input buffer full
54
Question mark part of string
6
Number out of range
55
Missing [ or []
7
Command not valid while running
56
Array index invalid or out of range
8
Command not valid when not running
57
Bad function or array
9
Variable error
58
Unrecognized command in a
command response (i.e._GNX)
10
Empty program line or undefined label 59
Mismatched
parentheses
11
Invalid label or line number
60
Download error - line too long or too
many lines
12
Subroutine more than 16 deep
61
Duplicate or bad label
13
JG only valid when running in jog
mode
62
Too many labels
14
EEPROM check sum error
65
IN command must have a comma
15
EEPROM write error
66
Array space full
16
IP incorrect sign during position move
or IP given during forced deceleration
67
Too many arrays or variables
17
ED, BN and DL not valid while
program running
71
IN only valid in task #0
18
Command not valid when contouring
80
Record mode already running
19
Application strand already executing
81
No array or source specified
20
Begin not valid with motor off
82
Undefined Array
21
Begin not valid while running
83
Not a valid number