Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Fundamentals
52 Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Word sequence in blocks
In order to keep the block format as clear as possible, the words in a block should be
arranged as follows:
Example:
N10 G… X… Y… Z… F… S… T… D… M… H…
Address Meaning
N Address of block number
10 Block number
G Preparatory function
X,Y,Z Positional data
F Feed
S Spindle speed
T Tool
D Tool offset number
M Miscellaneous (i.e., special) function
H Auxiliary function
Note
Certain addresses can be used repeatedly within a block
(e.g., G…, M…, H…)
Main block/subblock
There are two types of blocks:
• Main blocks and
• subblocks
The main block must contain all the words necessary to start the operation sequence in the
program section beginning with the main block.
Note
Main blocks can be contained in both main programs and subroutines. The control does not
check whether a main block contains all the necessary information.