The DIN 66025 program consists of individual motion blocks. The block number is located at the beginning of each block.
['%' <Programmname>]
<Satz>{<Satz>}
The blocks can be structured as follows:
N<block number> G<expression> <G code words>
N<block number> <G code words>
(the G<expression>
of the previous block apply)
N<block number> M<expression> <G code words>
N<block number> <subroutine name> ( <ActualParamList> )
Additional block structures for subroutines:
SUBPROGRAM <Name> {<FormalParamList>} <RESTORE_OPT>
N<block number> RETURN
END_SUBPROGRAM
Example
Path from two lines and an arc, followed by a subroutine call
% MyProgram
N10 G01 X100 Y100 E100 F100 E-200
N20 G01 Z40 F20
N30 G03 X-100 R200 F100
N40 SubPrg{5}