Programming
10.1
Fundamental principles of NC programming
10.1.1
Program names
Each program has its own program name. The name can be freely chosen during program
creation, taking the following conventions into account:
● The first two characters must be letters.
● Use only letters, digits or underscore.
● Do not use delimiters (see Section "Character set").
● The decimal point must only be used for separation of the file extension.
● Do not use more than 27 characters.
Example: WORKPIECE
10.1.2
Program structure
Structure and content
The NC program consists of a sequence of blocks (see Table below).
Each block represents a machining step.
Instructions are written in the blocks in the form of words.
The last block in the execution sequence contains a special word for the end of program:
e.g. M2.
Table 10- 1
Set
Set
Set
Set
Set
Set
Surface grinding
Programming and Operating Manual, 11/2012, 6FC5398-5CP10-3BA0
NC program structure
Word
Word
Word
N10
G0
X20
N20
G2
Z37
N30
G91
...
N40
...
...
N50
M2
...
; Comment
...
; 1. Set
...
; 2. Set
...
; ...
...
; End of program
10
193