Programming
10.1 Fundamental Principles of NC Programming
Cylindrical grinding
220
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
10.1.2
Program structure
Structure and contents
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 NC program structure
Set
Word
Word
Word
...
; Comment
Set
N10
G0
X20
...
; 1. Set
Set
N20
G2
Z37
...
; 2. Set
Set
N30
G91
...
...
; ...
Set
N40
...
...
...
Set
N50
M2
; End of program