HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 494

33 S C
GLOBAL/EXTERN not at start of file
- The commands GLOBAL or EXTERN have been written after another
program code in the file. These commands must always come before
the program code.
34 (S)C
Too many modules
- An attempt has been made to link more than 64 files into one program
with the USES instruction.
35 (S)C
File not found
- A file linked with USES cannot be found.
- An attempt has been made to link a file of the .PLC type with
MP4010=0 (EPROM).
36 S C
File too long
- The program code for an individual file is bigger than 64 K so cannot be
compiled. The file must be split up into several files and linked with
USES
37 S C
Too many local labels
- More than 1000 labels have been issued in a file. All LBL, KFIELD and
EXTERN instructions are added together, also the (invisible) labels
generated by structured commands. The file must be split up into
several files and linked with USES.
38 C
Too many global labels
- Over 1000 global labels have been defined from all participating files.
39 C
External label not defined
- A label declared as EXTERN has not been defined as GLOBAL in any
of the participating modules.
40 S C
External label in CASE instruction
- A label declared as EXTERN has been entered in the CM List of a
CASE instruction. A local module must be defined that only calls the
global module with CM in the simplest case.
41 S C
External label in JP instruction
- An attempt has been made to jump to a label defined as EXTERN with
a JP/JPF/JPT instruction.
42 (S)C
Global label defined twice
- The same label has been defined as GLOBAL several times in the
same or in different files.
43 S C
Wrong instruction structure
- An ELSE/ENDI/ENDW/UNTIL instruction has been programmed
without an IF/ELSE/WHILE/REPEAT instruction first.
- Instructions with different structures have been interleaved instead of
nested. The structures must always be closed in the reverse order in
which they were opened!
44 S C
Structure open at end of file
- A structured instruction has been opened but not closed again by the
end of file.
45 S C
GLOBAL instruction in main file
- A module from the main file has been defined as GLOBAL. Only
modules from files linked with USES can be made accessible to other
files using the GLOBAL instruction.