CONTOH PROGRAM CNC MILL - Setiyonojaya20 PDF
CONTOH PROGRAM CNC MILL - Setiyonojaya20 PDF
CONTOH PROGRAM CNC MILL - Setiyonojaya20 PDF
CONTOHPROGRAMCNCMILLsetiyonojaya20
setiyonojaya20
May18,2015May18,2015
CONTOHPROGRAMCNCMILL
1.ProgramMillingG01danG91
G40G80;
G00G90G54X0.Y20.;
S1000M03;
G43H1Z20.;
G01Z0.F1000;
G90G41G01D1Y100.F500;
G01X100.;
Y0.;
X20.;
G40G00X0.Y20.;
G00Z20.;
M05;
G91G28Z0.;
M30;
2.ProgramG02:MembuatR(sudutradius).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
1/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G01Y50.;
G00G90G54X80.Y60.;
X40.;
S1000M03;
G02X50.Y40.R10.;
G43H1Z20.;
G01Y20.;
G01Z0.F1000;
G00X80.;
G90G01G41X50.D1F600;
G40Y60.;
G01Y50.;
G00Z20.;
X37.;
M05;
G02X50.Y37.R13.;
G91G28Z0.;
M30;
Keterangan:
D1:osetdiametertool,digunakandalamprogramhanyaapabilaG41/G42diaktian.
I=X;J=Y;K=Z.
Runtuksudutyangtidak90odanlebihdari180o,menggunakantanda().
3.ProgramG90(absolute)danG91(incremental).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
2/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
Absolute.
Incremental.
G40G80;
G40G80;
G00G90G54X0.Y0.;
G00G90G54X0.Y0.;
S1000M03;
S1000M03;
G43Z10.H1;
G43Z10.H1;
G01Z0.F1000;
G01Z0.F1000;
G90G41Y20.D1;
G91G41Y20.D1;
G01X40.;
G01X40.;
Y100.;
Y80.;
X40.;
X80.;
Y20.;
Y80.;
X0.;
X40.;
G40Y0.;
G40Y20.;
G00Z20.;
G00Z20.;
M05;
M05;
G91G28Z0.;
G91G28Z0.;
M30;
M30;
4.ProgramRadiusdanChamper.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
3/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G00G90G54X70.Y70.;(StartPoint)
S1000M03;
G43Z10.H1;
G01Z0.F1000;
G90G41G00X50.D1;
G01Y45.;
G01X40.Y55.;(Champer)
G01X40.;
X50.Y45.;
Y45.;
X40.;
X30.Y10.;
G03X30.Y10.R35.;(Radius)
G01X40.Y45;(Champer)
X70.;
G40Y70.;
G00Z20.;
M05;
G91G28Z0.;
M30;
5.ProgramKonturdenganRadius.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
4/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
Y0.;
G00G90G54X85.Y40.;(SP)
G03X35.Y0.R35.;
S1000M03;
G01Y30.;
G43Z10.H1;
X85.;
G01Z0.F1000;
G40Y40.;
G90G41X75.D1F600;
G00Z20.;
G01Y70.;
M05;
X75.;
G91G28Z0.;
Y30.;
M30;
X35.;
6.ProgramLingkaran50.
G40G80;
G00G90G54X0.Y0.;
ATAU:G03I
25
S1000M03;
G03X25.Y0.R25.;
G53Z10.H1;
G03X25.Y0.R25.;
G00Z0.F1000;
G40G01X0.;
G90G41G01X25.D1;
G00Z20.;
M05;
G91G28Z0.;
M30;
7.ProgramAbsolute(G90)danIncrement(G91).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
5/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
Absolute:
Increment:
G40G80;
G40G80;
G00G90G54X20.Y20.;
G00G90G54X0.Y0.;
S1000M03;
S1000M03;
G43Z10.H1;
G43Z10.H1;
G01Z0.F1000;
G01Z0.F1000;
G90G41G01X0.D1F600;
G91G41Y70.D1;
G01Y70.;
G01X50.;
X50.;
G01Y25.;
Y45.;
G03X5.Y5.R5.;
G03X55.Y40.R5.;
G01X15.;
G01X70.;
Y40.;
Y0.;
X30.;
X40.;
X10.Y30.;
X30.Y30.;
X40.;
X20.;
G40Y0.;
G40Y20.;
G00Z20.;
G00Z20.;
M05;
M05;
G91G28Z0.;
G91G28Z0.;
M30;
M30;
8.ProgramKonturdenganChamperdanRadius.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
6/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G00G90G54X70.Y60.;(SP)
S1000M03;
G43Z10.H1;
G01Z0.F1000;
G90G41G01X60.D1F600;
G01Y25.;
G03X60.Y25.R25.;
G01Y40.;
X50.Y50.;
X30.;
G03X30.Y50.R30.;
G01X50.;
X60.Y40.;
Y25.;
G03X60.Y25.R25.;
G01Y40.;
X50.Y50.;
X50.;
X70Y40.;
G40X60.;
G00Z20.;
M05;
G91G28Z0.;
M30;
9.CentreDrill(membuattitik):G81.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
7/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
Y50.;
G00G90G54X0.Y0.;
X50.;
S1200M03;
G80;
G43Z50.H1;
G91G28Z0.;
G98G81Z2.R5.F150;
M05;
X50.Y50.;
M30;
X50.;
10.PeckDrill:G83.
G40G80;
G00G90G54X0.Y0.;
S1200M03;
G43Z50.H1;
G98G83Z35.R5.Q3.F150;
X50.Y50.;
X50.;
Y50.;
X50.;
G80;
G91G28Z0.;
M05;
M30;
11.PeckDrillingCycle:G83.
Diketahui:Z=100mm.
Q(dalampemakanan)=20mm.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
8/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G00G90G54X0.Y0.;
S1200M03;
G43Z100.H1;
G98G83Y40.R5.Z20.Q3L0F200;
G91X40.L4;
X160.Y50.L0;
X40.L4;
G90G00Z50.;
G80;
G91G28Z0.;
M05;
M30;
Keterangan:
Z:Dalampemotongan.
Q:Besarpemotongansecaraincremetal.
L:PadakoordinatX0.,Y0.tidakterjadiprosesdrilling.
12.G34&G83(HanyapadamesinMitsubishi).
G40G80;
G00G90G54X0.Y0.;
S1200M03;
G43Z10.H1;
G98G81R5.Z20.F200;
G34X0.Y0.I120.J30.K8.;
G80;
G91G28Z0.;
M05;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
M30;
9/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
M30;
Keterangan:I:DiameterLingkaran.
J:StartPoint.
K:JumlahLubang.
13.G35
G99G81R3.Z10.F500;
G35X0.Y0.I50.J30.K4;
14.G36
G99G81R3.Z10.F500;
G35X0.Y0.I120.J30.K4P15.;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
10/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
15.G37.1
G40G80;
G00G90G54X0.Y0.;
S150M03;
G43Z50.H3;
G98G81R3.Z10.F500;
G37.1X0.Y0.I50.J30.K3P4;
G80;
G91G28Z0.;
M05;
M30;
Keterangan:
I:JarakterhadapsumbuX.
J:JarakterhadapsumbuY.
K:JumlahKolom.
P:JumlahPilar.
16.M98:MemanggilSubProgram.
M99:Akhirdarisubprogram/
KembalikeMainProgram.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
11/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
O001(MainProgram)
O002(SubProgram)
G40G80;
G91X30.Y20.;
G00G90G54X0.Y0.;
X30.L3;
S1000M03;
X0.Y40.;
G43Z50.H1;
X30.L3;
G98G73R5.Z30.Q2.F200;
M99;
M98P02;
G90Z50.;
G80;
G91G28Z0.;
M05;
M30;
17.PocketdenganMenggunakanMainProgramdanSubProgram.
Z(Kedalamanpemakanan)=10
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
12/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
O001(MainProgram)
G40G80;
G00G90G54X0.Y0.;
S1000M03;
G43Z50.H1;
Z10.;
G01Z0.F1000;
M98P02L10;
G90G00Z50.;
G91G28Z0.;
M30;
O002(SubProgram)
G91G01Z1.F1000;
G90G41X25.D1.;
G01Y25.;
X25.;
Y25.;
X25.;
Y0.;
G40X0.;
M99;
18.G68:DerajatKemiringanBendaKerja.
G69:CancelG68.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
13/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
O001(MainProgram)
G40G80;
G00G90G54X0.Y0.;
S1000M03;
G43Z50.H1;
Z10.;
G40G68R30.;
G01Z0.F1000;
M98P02L10;
G69G00X0.Y0.;
G90G00Z100.;
G91G28Z0.;
M30;
O002(SubProgram)
G91G01Z1.F1000;
G90G41X25.D1.;
G01Y25.;
X25.;
Y25.;
X25.;
Y0.;
G40X0.;
M99;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
14/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
19.Tapping:G84.
G40G80;
G00G90G54X0.Y0.;
S1000M03;
G43Z50.H3;
G99G84Z50.R30.F100,R1.;
G80;
M05;
M30;
PadamesinFANUC,dibawahperintahG43ditambahperintahM29S1000untukprosesTapping.
Contoh:
G43Z100.H1;
M29S1000;PerintahTappingpadaFANUC
G98G84Y40.R5.Z20.F100;tanpa,R1.
Fungsi,R1:berfungsiagarsupayabagianatasdanbawahlubangsama(khususuntukmesin
MITSUBISHI).Biasanyadipakaiuntukdrillingpadamaterialyangpanjang.
20.DwellTime(Diamsesaat):G04.
Contoh:G04X10.;diamsesaatselama10detik.
DwellTimedigunakanpadaprosesdrilling,untukmembuanggeram.Padaprosesreamingdigunakan
untukmenghaluskanlubang.
21.ToolChange:M06.
Format:M06T
Contoh:
ProgramAutoToolChange.
O002.
G91G30X0.Y0.Z0.;
M19;(Posisispindleuntukgantitool).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
M06T1;
15/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
M06T1;
M30;
22.WarmingUpSpindle.
O003
G91G28X0.Y0.Z0.;
M03S500;
G00X100.;
Y500.;
Z200.;
M99;
Keterangan:
PosisiX,Y,Zbisadirubahdisesuaikandenganposisihomepadamesin.
23.Lingkaran.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
16/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
X78.28Y28.28;
G00G90G54X0.Y0.;
Z1.;
S3000M03;
G01X0.Y50.F1000;
G43Z50.H1;
X50.Y0.;
G00X100.;
X0.Y50.;
Z20.;
X78.28Y28.28;
G41G01X50.3Y0.F300D2;
G00Z100.M05;
G02X0.Y50.50.3F300;
G40X0.Y0.;
G02J50.;
G91G28Z0.;
G02X50.3Y0.R50.3;
M05;
G00Z60.;
M30;
24.ToolPositionOset:G45,G46,G47.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
17/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G91G28Z0.;
G28X0.Y0.;
G00G90G56X0.Y0.;
S1500M03;
G43Z50.H20M08;
G01Z20.F800;
G91G46G00X40.Y40.D21;
G45G01X100.F400;
G45G03X10.Y10.J10.;
G45G01Y40.;
G46X0.;
G46G02X20.Y20.J20.;
G45G01Y0.
G47X30.;
Y30.;
G48X38.;
Y30.;
G45X30.;
G45G03X10.Y10.J10.;
G45G01Y20.;
X20.;
Y40.;
G46X40.Y40.;
G91G28Z0.;
M05;
M30;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
18/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
25.Skala:G51danG50(MembatalkanSkala).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
19/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
Program
Contour.
ProgramSkala.
G40G80;
G40G80;
G91G28X0.Y0.Z0.;
G91G28X0.Y0.Z0.;
G00G90G51G54X50.Y0.P2;
G00G90G54X50.Y0.;(StartPoint)
S1500M03;
S1500M03;
G43Z50.H1;
G43Z50.H1;
G01Z0.F1000;
G01Z0.F1000;
G90G42X75.D1;
G90G42X75.D1;
G01Y25.;
G01Y25.;
X25.;
X25.;
Y25.;
Y25.;
X75.;
X75.;
Y1.;
Y1.;
G40X50.;
G40X50.;
G00Z50.;
G00Z50.;
G50;
G91G28Z0.;
G91G28Z0.;
M30;
M30;
Keterangan:P2:Perintahuntukberapakalipembesaran.
26.ProgramG37.1padaPeckDrillingCycle:G83danTappingCycle:G84
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
20/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
(Tapping)
G91G28X0.Y0.Z0.;
G98G84X0.Y0.Z10.R5.L0;
G37.1X20.Y30.I25.J40.K2P3;
G00G90G54X0.Y0.;(StartPoint)
S150M03;
G43Z50.H2;
G98G81Z10.R5.F500;(Drill)
G37.1X10.Y30.I10.J20.K3P6;
G37.1X10.Y30.I10.J20.K3P6;
G37.1X20.Y30.I25.J40.K2P3;
G37.1X20.Y30.I25.J40.K2P3;
G80;
M05;
G91G28Z0.;
M30;
G37.1X20.Y30.I25.J40.K2P3;
Keterangan:
L0:PadakoordinatX0,Y0tidakterjadiprosesdrilling.
P:Jumlahpilar.
K:JumlahKolom.
27.Mirror:G51.1danPembatalanMirror:G50.1.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
21/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
ProgramContour.
ProgramMirror.
G40G80;
G40G80;
G91G28X0.Y0.Z0.;
G51.1;(Mirror)
G00G90G54X0.Y0.;(StartPoint)
G91G28X0.Y0.Z0.;
S1000M03;
G00G90G54X0.Y0.;
G43Z50.H1;
S100M03;
G01Z0.F600;
G43Z50.H1;
G90G41Y25.D1;
G01Z0.F600;
G01X75.;
G90G41X25.D1;
Y25.;
G01Y25.;
X25.;
X75.;
Y35.;
Y25.;
G40X0.
X25.;
M05;
Y0.;
G91G28Z0.;
40X0.;
M30;
G50.1;(CancelMirror)
M05;
G91G28Z0.;
M05;
M30;
Catatan:
UntukmengaktianefekMirror,harusdiaktianparameter8211padaX,Y,Z.
XYZ
(1)(1)(1)
28.Rotate:G68.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
22/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
ProgramContour.
ProgramRotate..
G40G80;
G40G80;
G91G28X0.Y0.Z0.;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y0.;(StartPoint)
G00G90G54X0.Y0.;
S100M03;
S100M03;
G43Z50.H1;
G43Z50.H1;
G01Z0.F100;
G01Z0.F100;
G90G41Y50.D1;
G68R30.;(Rotate)
G01X50.;
G90G41Y50.D1;
Y0.;
G01X50.;
X0.;
Y0.;
G40Y0.
X0.;
M05;
G40Y0.
G91G28Z0.;
M05;
M30;
G91G28Z0.;
M30;
Keterangan:
R:Derajatkemiringan.
29.G12:CircleCuingCW(ClockWise).
G13:CircleCuingCCW(CounterClockWise).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
23/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
O0011(MainProgram)
G40G80;
G00G90G55X0.Y0.;
S1500M03;
G43Z50.H1;
G01Z0.F1000;
M98P12L3;G00Z100.;
M05;
G91G28Z0.;
M30;
O0012(SubProgram)
G91G01Z1.F1000.;
G90;
G13I50.D1(CircleCuing)
M99;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
24/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
30.CircleCuingdenganProgramMacro.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
25/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y0.Z100.;(Start
Point)
G91G43Z50.F300H1;
S500M03;
#1=0.;
#2=55.;(Z:Kedalamanakhir)
#3=0.5.;(Kedalamanpemakanan)
#4=#3*TAN[30.];
#5=50.;(Ratau1/2)
N11G90X0.Y0.Z#1F100;
G13I#5D3F50;
#1=#1#3;
#5=#5#4;
IF[#1GE#2]GOTO11;
G90Z100.;
M30;
Keterangan:
GE(GreaterThanEqual):Lebihbesarsamadengan.
LE(LeastThanEqual):Lebihkecilsamadengan.
Sudutkemiringan60o,makadalamrumusmacromenjadiTAN[30].
31.Facing,Contour,Drill,CamperdanReaming.
Diameterlubang:20mm.
Ketebalanmaterial:20mm.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
26/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
Toolyangperludisiapkan:
1.FaceMill80,untukpermukaanatas.
2.ToolCarbide/HSS20,untukcontour.
3.CenterDrill
4.Drill
5.Reamer/H720,untukmenghaluskanlubangsetelahprosesdrilling.
6.Champer,untukmemperbesarlubangsebagailubangawalpadaprosesreamer).
7.HSS12,untukcontour.
LangkahlangkahPengerjaan:
1.Facingareaatas(1).
2.Contour300200(7).
3.CenterDrill(3).
4.Drill(4).
5.Camper(6).
6.Reamer(5).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
27/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
ProgramFacing.
O002(SubProgram).
O001(MainProgram).
G91G01X500.F500;
G40G80;
G00Z10.;
G91G28X0.Y0.Z0.;
Y20.;
G00G90G54X250.Y180.;(StartPoint)
X500.;
S800M03;
Z10.;
G43Z50.H1;
M99;
G01Z0.F400;
M98P02L5;
G00Z100.;
M05;
G91G28Z0.;
M30;
ProgramProl(KotakLuar).
O004(SubProgram).
O003(MainProgram).
G91G01Z1F800;
G40G80;
G90G41G01X150.D1;
G91G28X0.Y0.Z0.;
G01Y100.;
G00G90G54X180.Y130.;(StartPoint)
X150.;
S1200M03;
Y100.;
G43Z50.H1;
X180.;
G01Z0.F1000;
G40G01Y130.;
M98P04L20;
M99;
G00Z100.;
M05;
G91G28Z0.;
M30;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
28/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
O005(CenterDrill).
G40G80;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y0.;(StartPoint)
S1200M03;
G43Z50.H1;
G98G81X0.Y0.Z5.R5.L0;
X110.Y60.;
X110.;
Y60.;
X110.;
G80;
G00Z100.;
M05;
G91G28Z0.;
M30;
O006(Drill).
G40G80;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y0.;(StartPoint)
S1000M03;
G43Z50.H1;
G98G83X0.Y0.Z20.R5.Q3.L0F200.;
X110.Y60.;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
X110.;
29/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
X110.;
Y60.;
X110.;
G80;
G00Z100.;
M05;
G91G28Z0.;
M30;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
30/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
ProgramPocket(MembesarkanLubang).
O008(SubProgram).
O007(MainProgram).
G91G01Z1F500;
G40G80;
G90
G91G28X0.Y0.Z0.;
G13I9.9D1F500;
G00G90G54X110.Y60.;(StartPoint)
M99;
S800M03;
G43Z50.H1;
G01Z0.F600;
M98P08L20;
G00Z10.;
G90X110.;
G01Z0.F600;
M98P08L20;
G00Z10.;
G90Y60.;
G01Z0.F600;
M98P08L20;
G00Z10.;
G90X110.;
G01Z0.F600;
M98P08L20;
G00Z10.;
G90X60.;
G00Z100.;
M05;
G91G28Z0.;
M30;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
31/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
ProgramReamer(MenghaluskanLubang).
O009.
G40G80;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y0.;(StartPoint)
S100M03;
G43Z50.H1;
G98G85X0.Y0.Z20.R5.F10.L0;(Reamer)
X110.Y60.;
X110.;
Y60.;
X110.;
G80;
G00Z100.;
M05;
G91G28Z0.;
M30;
Keterangan:
UntukCampermenggunakanperintahG81,tetapitoolyangdigunakandigantidengantoolCamper
atautooldrilldengandiameteryanglebihbesar.
32.TapperdenganMenggunakanProgramMacro.
CuerFacemill20mm
Untukmempermudahpengerjaan,gambardiubahmenjadi:
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
32/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
=tg
a
Y
X
Y=tga.X
=tg30.50
=25,47
Carapemakanan:
Bendayangdiarsirakandihabiskan.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
33/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
ProgramMacro
G40G80;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y30.Z100.;(StartPoint)
S1000M03;
#1=0;
#2=50;
#3=0.5;
#4=#3*TAN[30.];
#5=25.47;
N8G00Z#1;
G41D1X30.;
G00Y#5;
G01X100.F500
G00Y50.;
X0.Y30.;
G40;
#1=#1#3;
#5=#5#4;
IF[#1GE#2]GOTO8;
G00Z100.;
G91G28X0.Y0.Z0.;
M30;
33.ProgramTapperMenggunakanperintahG10.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
34/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
O00123(MainProgram)
O00124(SubProgram)
G40G80;
G91Z0.5F500;
G91G28X0.Y0.Z0.;
G90G10L13R0.577;
G00G90G54X0.Y0.;(StartPoint)
G90G41G01X25.47D1F500;
S800M03;
Y100.;
G43Z20.H1;
X5.;
G01Z0.F1000;
Y0.;
M98P124L20;
G40X0.;
G90Z50.;
M99;
G91G28Z0.;
M30;
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
Keterangan:
35/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
Keterangan:
R=tan30=0.577.
Setiapmemulaiprogramwearpadaosetharusnol,Dengancaradirubahradiustoolpadaoset.
PrograminidipengaruhiolehZ(factorpengurangan/kedalamanpemakanan)danL(jumlah
pengulangan)
SeingZdanLosetradiustool(wear=0).
34.ProgramContourMenggunakanG17(XY),G18(XZ),G19(YZ).
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
36/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
O001(ProgramXY)
O003(XZ)
G40G80;
G90G41G18G01X20.D1;
G91G28X0.Y0.Z0.;
G03X20.R20.;
G00G90G17G54X10.Y50.;(Start
Point)
G40G01X50.;
S800M03;
G43Z50.H1;
G01Z20.F1000;
M98P2L100;
G90Z100.;
G91G28Z0.;
G00Z50.;
X50.;
Z20.;
G91Y1.;
G40;
M99;
M30;
O002(ProgramYZ)
G90G41G19G01Y20.D1;
G02Y20.R20.;
G40G01Y50.;
G00Z50.;
Y50.;
Z20.;
G91X1.;
G40;
M99;
35.CircleDrill(ObatNyamuk):G34DANG36.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
37/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y0.;(Start
Point)
S1500M03;
G43Z50.H1;
G83Z20.R5.Q5.F1000;
G36X0.Y0.I100.J10.P30K8;
G34X0.Y0.I150.J10.K8;
G34X0.Y0.I200.J20.K8;
G80;
G00.Z100.;
M05;
G91G28Z0.;
M30;
36.SpiralInterpolation:G02.1.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
38/39
20/11/2016
CONTOHPROGRAMCNCMILLsetiyonojaya20
G40G80;
G91G28X0.Y0.Z0.;
G00G90G54X0.Y0.;(StartPoint)
S1000M03;
G43Z50.H1;
G17G91G02.1X100Z150.I150.P3F500;
G00Z100.;
M05;
G91G28Z0.;
M30;
Abouttheseads(https://wordpress.com/abouttheseads/)
Leaveacomment
BlogatWordPress.com.
https://setiyonojaya20.wordpress.com/2015/05/18/contohprogramcncmill/
39/39