05.91 2 Fundamentals of Programming
2.3 Block elements
2.3 Block elements
2.3.1 Main blocks and subblocks
There are two types of block: Main blocks and subblocks.
The main block must contain all words required to start the machining cycle in the program
section beginning there. A main block may only be located in the part program (main program).
A main block is identified by means of the character “:”.
A subblock is identified by means of the character ”N”.
If a block is given a block number, this follows immediately after the ":" or "N" character. The
main blocks and subblocks must be identified by different numbers.
A subblock contains only those functions which differ from the functions in the previous block.
Example main block: :10 G01 X10 Y–15 F200 S900 M03
L
F
Example subblock: N15 Y20
L
F
A program section comprises one main block and several subblocks, e.g.:
:10 G01 X10 Y-15 F200
L
F
(Main block)
N20 Y35
L
F
(1st subblock)
N30 X20 Y40
L
F
(2nd subblock)
N40 Y–10
L
F
(3rd subblock etc.)
© Siemens AG 1991 All Rights Reserved 6ZB5 410-0HD02 2–3
SINUMERIK 880, (PG)