Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
2-5
Note
The "L
F
" character does not have to be inserted manually, it is generated automatically when
you change lines.
Block length
A block can contain a maximum of 512 characters (including the comment and end-of-block
character "L
F
").
Note
Three blocks of up to 66 characters each are normally displayed in the current block display
on the screen. Comments are also displayed. Messages are displayed in a separate
message window.
Word sequence in blocks
In order to keep the block structure 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…)