1 din pr ogr a mming – HEIDENHAIN CNC Pilot 4290 V7.1 User Manual
Page 112

112
4.1 DIN Pr
ogr
a
mming
Examples:
Permissible combination: N10 G1 X100 Z2 M8
Non-permissible combination:
N10 G1 X100 Z2 G2 X100 Z2 R30 (same address letters are used
more than once) or
N10 M3 M4—opposing functionality
NC address parameters
The address parameters consist of 1 or 2 letters followed by
A value
A mathematical expression
A question mark (VGP simplified geometry programming)
A letter “i” to designate incremental address parameters
(examples: Xi..., Ci..., XKi..., YKi..., etc.)
A # variable (calculated during NC program interpretation)
A V variable (calculated at run time)
Examples:
X20(Absolute dimension)
Zi–35.675(Incremental dimension)
X?(Simplified geometry programming)
X#12(Variable programming)
X{V12+1}(Variable programming)
X(37+2)*SIN(30)(Mathematical expression)
Program branches and repeats
You can use program jumps, repeats and subprograms to structure
a program. Example: Machining the beginning/end of a bar etc.
Skip level: Influences the execution of individual NC blocks
Slide code: You can assign the NC blocks to a specific slide
provided that your lathe is equipped with more than one slide.
Input and output: With “input” the machine operator can influence
the flow of the NC program. Using “output,” you can communicate
with the machinist. Example: The machinist is required to check
measuring points and update compensation values.
Comments are enclosed in brackets “[...].” They are located at the
end of an NC block or in a separate NC block.