程式碼
#region
$Millimeters (Alarm if not mm set)
$Mill (Alarm if not a milling machine)
$AddEmbeddedRegPart 1, 20, 20 (Load embedded workpiece)
#endregion
O0001;
G92 X90 Y90 Z30; 變更座標原點至 X90 Y90 Z30
G00 X50. Y50.; 右上角鑽孔
G43 Z20. H01 M3 S800;
Z3.;
G01 Z-25. F128;
G00 Z3.;
X-50.; 左上角
G01 Z-25.;
G00 Z3.;
Y-50.; 左下角
G01 Z-25.;
G00 Z3.;
X50.; 右下角
G01 Z-25.;
G00 Z20. M09;
M30;
程式碼
#region
$Millimeters (Alarm if not mm set)
$Mill (Alarm if not a milling machine)
$AddEmbeddedRegPart 1, 20, 20 (Load embedded workpiece)
#endregion
O0002;
G92 X90 Y90 Z30;
G90 G00 X22.5 Y0;
G43 Z20. H01 M3 S710;
Z2.
G01 Z-5. F40;
X-22.5 F85;
Z2.;
G00 Z20. M09;
M30;
程式碼
#region
$Millimeters (Alarm if not mm set)
$Mill (Alarm if not a milling machine)
$AddEmbeddedRegPart 1, 20, 20 (Load embedded workpiece)
#endregion
O0003
G90 G54 G00 X200. Y35.;
G43 Z20. H01 M03 S255;
Z0;
G01 X0. F285;
G00 Y0.;
G01 X200.;
G00 Z20.M9;
M30;
工件尺寸 100X100X10
偏移 50X50
EM-20
程式碼
($Mill)
($Millimeters)
($AddRegPart 3 50 50)
(Jincent)
%1
G92 X50 Y50 Z10
T[replace with first tool number] M6
O0001;
G92 G00 X100. Y100. Z12.;
G90 G40 G00 X65. Y-60.;
G43 Z20. H01 M03 S800;
Z-12;
G01 G42 X50. D25 F100;
G01 Y50. F100;
X-50.;
Y-50.;
X55;
G00 G40 Z20. M09;
G91 G28 Z0.;
M30;
工件尺寸 110X110X10
偏移 50X50
EM-20
程式碼
($Mill)
($Millimeters)
($AddRegPart 5 50 50)
(Jincent)
%1
G92 X50 Y50 Z10
T[replace with first tool number] M6
(Enter your CNC code here)
O0002;
G92 X105 Y105 Z12;
G90 G40 G00 X70 Y0.;
G43 Z20. H01 M03 S800;
Z-12.;
G01 G41 X50. D25 F80;
G02 I-50. F100;
G01 G40 X65.;
G00 Z20. M09;
G91 G28 Z0.;
M30;
ET8
工件尺寸 110X110X10
偏移 50X50
EM-20
程式碼
($Mill)
($Millimeters)
($AddRegPart 7 50 50)
(Jincent)
%1
G92 X50 Y50 Z10
T[replace with first tool number] M6
(Enter your CNC code here)
O0002;
G92 X105. Y105. Z12.;
G90 G40 G00 X70.
Y10. Z12.;
G43 Z20. H01 M03 S800;
Z-12.;
G01 G41 X50. D25 F80;
Y0.;
G02 I-50. F100;
G01 X70. Y10.;
G40;
G00 Z20.M09;
G91 G28 Z0.;
M30;