4.15.2 Example of Sub-coordinate System: G52


  • SAMPL52.CNC

;Please set the same parameters as SAMPL54

;Parameters → Coordinate offset

;Then execute this program

;Compare the difference with SAMPL54

;

G92 X0 Y0 Z0;

G90;

/M03; start spindle

G52 X100. Y50.  ;Set sub-coordinates

G54 G00 Z0      ;Select the first coordinate system

M98 SUBWORK1    ;Calling subprogram

G55             ;Select the second coordinate system

M98 SUBWORK1    ;Calling subprogram

G56             ;Select the third coordinate system

M98 SUBWORK1    ;Calling subprogram

/M05            ;close spindle

G54 G00 X0 Y0 Z0;

M30;







  • SUBWORK1.CNC

;Workpiece cutting subprogram

G90;

G00 X0 Y0;

/G01 Z-5. F500.;

G01 X100. F1500.;

X90. Y10.;

G03 X10. Y90. I-40. J40.;

G01 X0 Y100.;

Y0;

/Z0;

M99


Example of Sub-coordinate System: G52