Example: full circle with cartesian coordinates, Path contours - cartesian coordinates 6.4 – HEIDENHAIN TNC 640 (34059x-02) ISO programming User Manual
Page 207

Path contours - Cartesian coordinates
6.4
6
TNC 640 | User's Manual for DIN/ISO Programming | 5/2013
207
Example: Full circle with Cartesian coordinates
%C-CC G71 *
N10 G30 G17 X+0 Y+0 Z-20 *
Definition of workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 T1 G17 S3150 *
Tool call
N40 G00 G40 G90 Z+250 *
Retract the tool
N50 I+50 J+50 *
Define the circle center
N60 X-40 Y+50 *
Pre-position the tool
N70 G01 Z-5 F1000 M3 *
Move to working depth
N80 G41 X+0 Y+50 F300 *
Approach starting point, radius compensation G41
N90 G26 R5 F150 *
Tangential approach
N100 G02 X+0 *
Move to the circle end point (= circle starting point)
N110 G27 R5 F500 *
Tangential exit
N120 G01 G40 X-40 Y-50 F1000 *
Retract the tool in the working plane, cancel radius
compensation
N130 G00 Z+250 M2 *
Retract the tool in the tool axis, end of program
N99999999 %C-CC G71 *