Example 2: Spatial rotation around the Y axis
In this example, paraxial and inclined
workpiece surfaces are to be ma‐
chined in a clamping.
Condition:
The tool must be aligned perpendic‐
ular to the inclined surface in the ro‐
tated Z direction.
Program code Comment
N10 G17 G54 ; Working plane X/Y, workpiece zero
N20 TRANS X10 Y10 ; Absolute offset
N30 L10 ; Subprogram call
N40 ATRANS X35 ; Additive offset
N50 AROT Y30 ; Additive rotation around the Y axis
N60 ATRANS X5 ; Additive offset
N70 L10 ; Subprogram call
N80 G0 X300 Y100 M30 ; Retraction, end of program
Fundamentals
2.12 Coordinate transformations (frames)
NC programming
318 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0