Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

I

NTRODUCTI
ONTONC/
CNCSYSTEM

Thepar
t pr
ogr
ammear
ewr
it
ten on asof
twar
eusi
ng hi
gh l
evell
anguagesi
nce
comput
erhasenhancedmemor
ycapaci
tyoft
heNCmachi
neoper
ati
onsar
econt
rol
l
edbyt
he
comput
er.TheNCsy
stem cont
rol
l
edbycomput
eri
sknownas“
Comput
erNumer
icalCont
rol

(
CNC)her
epunchedt
apesar
erepl
acedbyf
loppyorROM di
sc.

ADVANTAGES:
-

 Gr
eat
erf
lexi
bil
i
tyi
nmanuf
act
uri
ng.
 I
mpr
ovedqual
i
tycont
rol
.
 Accur
acyi
smor
e.
 Thepar
tpr
ogr
amscanbeeasi
l
yedi
ted.
 Repeat
edoper
ati
onscanbest
oredasasub-
rout
ine.
 Adv
ancedpr
ogr
ammi
ngl
i
kemi
rr
ori
ng,
sub-
rout
ineet
c.
 Abi
l
ityt
ost
oret
ool
off
setandt
ool
compensat
ion.
 Pr
oduct
iont
imei
sless.
 Hi
ghl
yski
l
ledandexper
iencedoper
atesi
snotnecessar
y.
FUNCTI
ON:
-

 Tocont
rol
themachi
net
ool
.
 Todoi
npr
ocesscompensat
ion.
 Toi
mpr
ovet
hepr
ogr
ammi
ng&oper
ati
ngf
eat
ures.
 Todi
agnoset
hemachi
net
ool
.
G&M CODESFORTURNI NG G63 Tappi ngmode
G00 Posi tioningi nRapi d G64 Cut tingmode
G01 Li nearI nterpol ation G65 Usermacr osi mpl ecal l
G02 Ci rcul arInter pol ation( CW) G66 Usermacr omodal call
G03 Ci rcul arInter pol ation( CCW)
G67 Usermacr omodal callcancel
G04 Dwel l
G07 Feedr atesi necur vecont rol.. G68 Mi r
rori magef ordoubl etur
retsON
G10 Dat aset t
ing G69 Mi r
rori magef ordoubl etur
retsOFF
G11 Dat aset t
ingcancel ..
.. G70 Fi ni
shi ngCy cl e
G17 XYPl ane G71 Tur ni ngCy cl e
G18 XZPl ane G72 Faci ngCy cleG
G19 YZPl ane G73 Pat ter nr epeat ing
G20 I nchUni t
s G74 PeckDr il
li
ngCy cle
G21 Met r i
cUni t
s G75 Gr oov i
ngCy cl e
G22 St or edst rokecheckf unctionON G76 Thr eadi ngCy cle
G23 St or edst rokecheckf unctionOFF G80 Cannedcy clef ordr i
ll
ingcancel
G25 Spi ndl espeedf luct uati
ondet ecti
onOFF G83 FaceDr il
li
ngCy cle
G26 Spi ndl espeedf luct uati
ondet ecti
onON G84 FaceTappi ngCy cle. .
G27 Ref erencepoi ntr etur ncheck G86 FaceBor ingCy cle
G28 Aut omat icZer oRet urn G87 Si deDr i
ll
ingCy cle
G29 Ret ur nf rom Zer oRet urnPosi ti
on G88 Si deTappi ngCy cle
G30 2ndr eferencepoi ntr eturn G89 Si deBor i
ngCy cl e
G31 Ski pf unct i
on G90 Absol ut ePr ogr ammi ng
G32 Thr eadcut ting. . G91 I ncrement al Pr ogr ammi ng
G34 Var iablel eadt hreadcut ti
ng. . G92 Thr eadCut tingCy cle..
G36 Aut omat ictool compensat ion G94 Endf aceTur ni ngCy cl
e..
G40 Tool NoseRadi usCompensat i
on G96 Const antsur facespeedcont rol
Cancel G97 Const antsur facespeedcont rol
cancel
G41 Tool NoseRadi usCompensat i
onLeft G98 Li nearFeedr atePerTi me
G42 Tool NoseRadi usCompensat i
onRight G99 Feedr at ePerRev olution
G46 Aut omat icTool NoseRadi us G107 Cy l
indr ical I
nt er pol ati
on
Compensat ion G112 Polarcoor dinat eint erpolat
ionmode
G50 Coor dinatesy stem set ti
ngand G113 Polarcoor dinat eint erpolat
ionmode
maximum r pm. . cancel
G52 Local coor dinat esy stem set ti
ng G250 Poly gonal tur ningmodecancel
G53 Machi necoor dinat esy stem set ti
ng G251 Poly gonal tur ningmode
G54 Wor kpieceCoor dinat eSyst em
G55 Wor kpieceCoor dinat eSyst em 2 M07 Coolant1On
G56 Wor kpieceCoor dinat eSyst em 3 M08 Coolant2On
M09 CoolantOff
M30 EndofPr ogr
am, Resett
oSt
art
M98 Subprogram cal
l
M99 Returnfr
om subprogram
M-CODESFORTURNI NG
M00 Pr ogram Stop
M01 Opt ionalProgram Stop
M02 Pr ogram End
M03 Spi ndleOnCl ockwise
M04 Spi ndleOnCount erclockwi
se
M05 Spi ndleStop
G57 Wor kpi
eceCoor dinateSyst
em 4
G58 Wor kpi
eceCoor dinateSyst
em 5
G59 Wor kpi
eceCoor dinateSyst
em 6.
.
G61 Exactst opcheckmode
G62 Aut omat i
ccor neroverri
de
EXERCI
SE–

FACI
NGANDTURNI
NG

AI
M:
Towr
iteaCNCprogram f
orf
aci
ngandtur
ningoper
ati
oni
nCNCsimul
ati
onsof
twar
e
andt
omachinethewor
kpiecefort
hegi
vendi
mensionsusi
ngCNCmachi
ne.

PROGRAM:

O0002(FACE* TURN);
G0X0.0;
G0Z-150.0;
T0101;
G0Z2.0;
G0Z40.0;
M04S1000;
M07;
G1Z-0.7F0.1;
G1X-1.0F0.1;
G1Z1.0;
G1X38.0;
G1Z-20.0;
G0X50.0;
T0000;
M09;
M05;
G0X0.0;
G0Z-150.0;
M30;
;
;
%
RESULT:
Thusthefacingandtur
ningoper
ati
oni
sdonebyCNCpr
ogr
ammi
ngandr
unni
ngt
he
CNCmachine.

*
***
***
EXERCI
SE-

DRI
LLI
NG

AI
M:

Towri
teaCNCprogram fordri
ll
i
ngoperat
ionoper
ati
oni
nCNCsimul
ati
onandt
o
machi
netheworkpi
eceforthegivendimensi
onsusi
ngCNCmachi
ne.

PROGRAM:
O0003(DRILLING);
T0000;
G0X0.0;
G0Z-150.
0;
T0606;
G0X0.0;
G0X2.0;
M04S800;
M07;
G1Z-15.
0F0. 05;
G0Z2.0;
M09;
M05;
T0000;
G0X0.0;
G0Z-150.
0;
M30;
;
;
%

RESULT:

Thust
hedr
il
li
ngoper
ati
oni
sdonebyCNCpr
ogr
ammi
ngandr
unni
ngt
heCNCmachi
ne.

*
***
***
EXERCI
SE-
STEPTURNING
AIM:
Towri
teaCNCprogram forsteptur
ningoperat
ionoper
ati
oninCNCsi
mul
ati
onandt
o
machi
netheworkpi
eceforthegivendimensionsusi
ngCNCmachi ne.

PROGRAM:
O0012(
TRN*
CYCL);
T0000;
G28U0.0W0. 0;
T0121;
M04S250;
M07;
G0Z1.0;
G0X45.0;
G0Z0.0;
G1X41.0F0.1;
G1X-1.0;
G0Z1.0;
G0X42.0;
G71P11Q13U0. 0W0. 0F0.
1;
N11G0X29. 0;
G1X31.0;
G1Z-10.0;
G1X34.0;
G1Z-20.0;
G1X37.0;
G1Z-30.0;
N13;
G1X32.0;
M09;
M05;
T0000;
G0X0.0;
G0Z-150.0;
G28U0.0W0. 0;
M30;
;
;
%
RESULT:
Thusthesteptur
ningoper
ati
oni
sdonebyCNCpr
ogr
ammi
ngandr
unni
ngt
heCNCmachi
ne.
EXERCI
SE-

TAPERTURNI
NG

AI
M:

Towri
teaCNCprogram fortapert
urni
ngoper
ati
onoper
ati
oninCNCsi
mul
ati
onandt
o
machi
netheworkpi
eceforthegivendimensi
onsusi
ngCNCmachine.

PROGRAM:

O0010(TAPER*TRNG*CYCLE);
T0000;
G0X0.0;
G0Z-150.
0;
T0101;
M04S800;
M07;
G0Z1.0;
G0X38.0;
G71U1.0R1.0;
G71P10Q20U0. 0N0.0F0.
1;
N10G0X26. 0;
G1Z0.05;
G1X28.5;
G0X33.5A175.0;
N20G0X50. 0;
M09;
M05;
T0000;
G0X0.0;
G0Z-150.
0;
M30;
;
;
%
RESULT:
Thusthetapert
urni
ngoper
ati
onisdonebyCNCpr
ogr
ammi
ngandr
unni
ngt
heCNC
machine.

*
***
***

You might also like