Error-messages, Syntax errors within a command line, Syntax errors in the course of a program – HEIDENHAIN TNC 306 Technical Manual User Manual
Page 313: 7 error-messages, 1 syntax errors within a command line, 2 syntax errors in the course of a program
![background image](/files/815307/content/doc313.png)
3/2000
TNC 416/TNC 406/TNC 306
Program creation
7-23
2.7
Error-messages
Error messages aid the programmer in creating the instruction list and testing of the program.
2.7.1 Syntax errors within a command line
These errors may occur when editing a line or on reading it in via the interface.
0
No valid command.
1
Operand for jump is not a Label. (Can only happen when reading in via the interface.
For a Jump command a type abbreviation is available for the Operand).
2
Invalid Operand-type (the command cannot be combined with this Operand).
4
Operand outside the permissible range (the stated number is too high, or odd address for
Word or Double word).
5
No limiter after command. (Can only happen when reading in via the interface. The comment
after the command was not designated by ";" or "*").
6
Line end not found (Can only happen when reading in via the interface. Comment too long).
2.7.2 Syntax errors in the course of a program
These errors are recognized during the compilation process. The Editor points to the line where the
error was found. If the PLC-program is compiled on switching-on (for example, because the control
was switched off immediately after editing the PLC-program) then a flashing message "ERROR IN
PLC-PROGRAM" will be displayed. Remedy: switch off and on again, and call the PLC-Editor with
the code-number. The Editor indicates the position of the error.
7
Called Label has not been defined.
8
No End-program condition found (the program does not contain an EM instruction, or it
contains a JP-instruction without a following LBL-instruction).
9
Program is too long (RAM-overflow) (insufficient memory for the program code which is to be
generated).
10
Assign within parentheses (an =, S, SN, R, RN, or PS-instruction or a Jump-command has
been programmed, although arithmetic parentheses are open).
11
Excessive nesting of parentheses (more than 16 parentheses successively opened).
12
Jump within a gating sequence (an unconditional jump has been programmed, although the
gating sequence was not closed with an Assign ).
13
"Close-parentheses" without "open-parentheses" (a "close-parentheses" command was
programmed, although no parentheses were open).
14
Label within parentheses (a LBL-instruction has been programmed, although parentheses are
open).
15
Label within a gating sequence (a LBL-instruction has been programmed, although the
previous gating was not closed with an Assign).
16
Jump within parentheses (a jump instruction has been programmed, although parentheses
are open).
17
Parentheses open at end of block (an EM-instruction has been programmed, although
parentheses are open).
18
Label defined twice.
19
Word Assign missing (a Logic-instruction has been programmed, although the previous Word-
gating was not closed with an Assign).