Tc (tell code), Status – Yaskawa SMC–4000 User Manual
Page 224
214
SMC–4000 User Manual
TC (Tell Code)
[Status]
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.
*Note _ED returns the line number that last had an error.
ARGUMENTS: TC n
n=0 returns code only
n=1 returns code and message
CODE
EXPLANATION
1
Unrecognized command
2
Command only valid from program
3
Command not valid in program
4
Operand error
5
Input buffer full
6
Number out of range
7
Command not valid while running
8
Command not valid when not running
9
Variable error
10
Empty program line or undefined label
11
Invalid label or line number
12
Subroutine more than 16 deep
13
JG only valid when running in jog mode
14
EEPROM check sum error
15
EEPROM write error
16
IP incorrect sign during position move or IP given during forced deceleration
17
ED, BN and DL not valid while program running
18
Command not valid when contouring
19
Application strand already executing
20
Begin not valid with motor off
21
Begin not valid while running
22
Begin not possible due to Limit Switch
24
Begin not valid because no sequence defined
25
Variable not given in IN command