Programming instructions
NC Programming 17VRS NC Program
2-5
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
2.4 Elements of an NC Block
An NC-block contains data for performing an operating step. The NC-
block consists of one or more words as well as the NC control com-
mands. The NC-block length must not exceed 240 characters, and it can
be split among no more than four lines.
An NC-block is comprised of the following elements:
•
NC-block number
•
Branch label
•
NC-words (NC control command(s))
•
Message
•
Remark in the program
•
Remark in the source program
Structure of an NC-block
N0020 G54 G01 X50 Y60 F2000 S1500 M03
Program
control
command
Correction
call
Traverse
statement
Geometry
statement
Technology statement
Auxiliary function
Block no. NC words (NC control commands)
CAUTION
All the elements of an NC-block except for function as-
signments must be separated by at least one space.
The priority for processing an NC-block in the NC-memory is as follows:
NC-
block
number
Label Aux.
function
before
motion
G codes NC
variables
Axis
Values
Inter-
polation
para-
meters
F values S
value
Aux.
function
after
motion
Palette
com-
mands
Tool
com-
mands
Events Pro-
cess
com-
mands
Program
control
com-
mands
N1234 .ENDE M03 G01 @100=x X100
Y100
I0
J50
F1000 S800 M03 SEL 1 MTP T6 SE 5 DP 1 HLT
NC Block Numbers
N×××× × = 0..9
Each NC-block begins with the letter
N
followed by a 4-digit decimal inte-
ger number as the NC-block number. The numbering of NC-blocks in an
NC-program always starts at N0000. The numbering of NC-blocks is
automatically generated by the user interface when programming in 1-
step intervals.
When NC-blocks are inserted via the user interface, all subsequent NC-
blocks are automatically renumbered.
Syntax