Professional Documents
Culture Documents
:]
':!
:;!:a':__'
-r l. ' "
?a,QgzJ I
ChapterI Introduction
Concept 1.1NC Programming
is to the The pupos of NC programmitrg i\Titing a Program cornmand CNC machineto maclune arc a work pieceaccordingto the g en drawing. The procedures illustmtedin Figure 1-1.
Figure 1-1
X +ie
/o / |
l-)l L_
Figure 1-2 * Nore:X-r\is coardimte in slalcd dianetervalue. Progam zero mustbe selecled beforestart programmiog
i
I
Decembor i998
Poitrt B
x
40 40 70 70 80
z
0 -50
-50
-l l 0
c
D E
-r l0
fierEise:
Point
c
D
Erdcise:
Point B
c
D E
F
D*mber 1998
NTJMACMACHTNERYSDN BHD
Chapter2 BasicProgramming
2.1 Program Configuration
Gene.allya programcoffists ol l) fbgram Nalne. label. Nameard Sequac 2) Squence andcommatrds 3) Coordinates 4) Remarks. 5) End ofProgram block. usingALPHABATIC CHARACTERS and NUMf,RIC CHAR{CTER-S This tufornation is presenled E ch line ofcbamctersis calleda BLOCL (Canbe omitled d otrlti one programin the file) X_ Z_ S_ T, M_ G_
N____ :
r,42
format E\anple 2. t: Programming
oool2 Nl00 G50s2000 Nl0l 600x5002450 CI.II OD) NATOI(ROUGH Nl02 T0l0l0I Mol M08 Nl03 x80 250s430 N104 X70230 F0.5 N105 G0l X230.25s
o
can - Up to 4 characters be usdcrn - The .f chamclers b nqnenc. mustbe a hadof numericchardcter. - Alphabeticcharacter 2.2: Example Progrm Name
:' Prcgtrm \ame canbe omitled iI thereis onll one main prognn in thc file. Deember 1998
---alnrngl\,lr.[ual - Lath
2.3i Name Example Prognm r' a)N1234 r' b) NAT02 c) NIAT2 d) Nl23 + N0123
CONTENTS
Positionine Straishtline cuttine Circr ar cuttins fclockwise) Circular cunina (counterclockwise ) Dwell Tool noseradiusconlDensation: Cancel Tool nosemdius compensation: left Tool nose ndius comDenlatiolr: neht Maximum SDindlesDeed desiqution lanqitudinal comDound fixed threadcuttine cvcle Lonsiludinal ercovin(rcomDound fixed cvcle Trans:\,ersc co'nDoundyedcacle fi aroovinc/drilline TaDDins comnound fixed c-\,cle. EndofshrDedesisndtion GAP) SI,3n lonsitudimlshaDe of desreMtron fLA?l St?noftnNvers sluDedesiFation(LAP) Callof rouchbarturninec\cle tLA? ) Callof firushlmirq cycle(LA?) Absolutc Drosranninc
G40
G.ll
c5t)
G7 l
G90
__ge_i
_Gll G!i
G96
{r
G9:,:..rb-r ie98
:mlns
\,farual - l-a$e
v00
Progam Eop EEd of Dmgam Sdtrdle clochiis rotalon Srindle counFrclockwiserouuon C-elant on
v0r
v05
M08 \I09
Coola.ot otr
I ]t orderto lel drc machire bo$ Nhele it shouldmo\'edrelool. ihe coordiEnpoiEs have to t by The coordinat\:Jue i5 repre$nted X, Z. A. C. I andK a\is Ha,rever. .{b X and Z .rxis is {rif.d *6E nncemed ir &rs clrss
is settitrgtheunit syslem in millimeters - h ieadt parameter t X90-l is effcnely90. mmor 90l00pm - r"sr br defauhthetmirqsem allows3 sigrificantdigit afterthedecifialpoiDt. x0.00I if - ar:-s.d pointis not 6strtra1 oteger\alueis assigDd.
X90 is efre.ti1e X90.orX9o.0 as
Exanple 2 .1:
Y.!al-
falh
Irl
-
Selection
T da onting tool is madeby 4{igit figutes following a character
r 9292
rrdius mmpe$ation fimctiol is used,selectionof a cutting tool is madeby 6-digit T6l Dose
r82q2q2
\ \Tool Offset Number Tool Number
dn\
Eli
directior. (IMPORTANT: Seefigure for $ Stins the spindlelll Countr-Clockwise
'/T\\
hignatcs ',hespindlespeed R.r'/ mio )
w'
xzm
5
zloo
xi002300
aEds
the machineto slattool trumberL +ddle speedro 2000 r.p.m determined pre\ ious S by rhe slindle to .ote itr clocbi.ise directioo at ro(atlons?ed G. 2000r.p.mt qrtudle.
onroff(M08,M09)
0l
SJff) VO3 Gm xt88 220.t xl85 5 Gol xl85 zl20 F05 xl90
zloo
)I200 gn xi002300
llj
ltot) \t2
Enn
k;rli dio[
qrirl nop. M0l performs sanefunction M00. ;xcepl.it is oni) effeclirer{hen tle as rL OPTIONAL STOP bulton on the controlpanelis swilchedon. PrssingCYCLE dle 5f.1RT ai this point will resume operatior fl .a pmgram, It mustbe ircluded to indicateendof a progmrn.This codealso resets ft.ootrol-
TO IOI s2000 M03 c00 xl88 2204 xl85 M00 M08 cnl xl85 zl20 F0.5 xl90
ztoo
tirtton is pressed.
b5
-eE
ing (G00)
the Bachne to position lhe cutter to a mordinatepoinl at npid feedmte
-IdZ
mtol s20mM03
Emple
2 9:
ml0l s2000M03 c00 xl88 2204 xl85 M08 GO1 X185 2120 m.5 x190
x200 G00x3002300
MJ M09 M2
zrw
cn4F
MrDal - lltie
-X a
point ofarc. + atrdK speciryllre tpsition of the centerpoht relative to lbe sta-rt - L is usedt9,spe.ifiedthe radiusoflhe arg I andK shouldnot be s?ecilied ifl, is given -The nart polnt of arc is the positiotri$mediately before the G02 or G03 coEmandline.
x-t
c0l
60
l0 T0l0l
20
100
\a
t2
Gio s3000 ml 0 l
slfi)0 M03
Gm x60zl04 zt00
TIO8 G{l x65 218.66 F0,5 G42 X80 210 I-5 K{.66 F0.5 G00 x3002300 Nf5 I!f09 TO
'y
l. ]
100
i,,ffi
Decemberlg)s
G code G80 designationfo. bar rough qtr c.vcle. Ddcripriotr: EDdof finishing shape
G80
G code: G8l desigMtioo for roughbr tumin8 clcle Dscription: Sranof lotrg:rudinalsbape
G8I
1.."
G82
N E\lnrple
L/'
l5
G85N
N____ D, F_ U_ Exanple:
DF UW
nameofthe definedshape. Sequence Rougtringcycle depthof cut (drameter) Roughingcyclefeedmte. for Stockresorve finishing in X-direction (diameter) for Stockresrve finishing in Z{irection.
/Feedrate of roucling cycle. N0j0 X6t z16I T0t0t 5500Mol M08 N040G96S | 20 (Ca[ roughbar turning cycle) N050 G85 NLAI1 D2 X'0.tU1'0 W0.5 -----'shape define) (Startlongitudinal rough tumingfinished G81 NI,AP N060G0 x-0.1 zl5?
N ^ rn ^^r
-'"
7 r{ < F n o K -
".""
------------
i:ts
x=51
. ''..'
1998 December
l6
U_
N0l0 G50s2000 x5002500 N020 G00 M03M08 N030 x6r 216l ml0r s500 N040 G965120 T91------Reture
orroug*'*
(Callrough Rming c) cle.I bar N050C85 NLAPI D2 F0.t Ul.0 W0.5 define.) (Start longitudinalroughbar tuming sbape NLAP G81 N060G0 x4.l 2157 N070 G'l zl55 F0 06----___-------Feedrate offinishing cycte
N090 90 z
Nr00 xso
Nll0 250 Nl20 x6l Nl30 G80 Nl40 G975500 X5002500 Nl50 GOO Nr60 x4.l 216l m202 Nl70 G96Sl50 NISOG87 NLAPI Nl90 G95 S500 N200 G00x500 zs00 N999M02
Decenb('r 1998
t1
TrainingManual-tathe
3.3 ToolNoseRadiusComPensation
G coderGtO DescriDtiotr:Carcel oftool nosecornpensationGll and G{2 must b c{trceled by G40 beforeendng the pmgram. G code:G41 Description: Tool nosecompensatioqleft. Rquiredcuttingpath. Actual cutting palh o tool
Example:
CnoG42X32Zl22 N060 N070G01G96Sl00X30Zl20 N080 280 N090 xsO,z50 Nl00 248 Nll0 x52 Nl20 Gito Nl30 G00xs00,2500
Z= 50 Z= a0 Z= t20
X=50 Z= 3l (Canceltool nosecompnsation. )
1E
x z
I B D U H L
F J M
Final diameterof thrad. Z coordinateof endpoint of tfuead. Taperangle. skning point and endpoinl for taper Difrence in mdiusbetween in thread(xpress radius). Nomrallyis equalto Infeedangle(B = 0-180;0ifno B provided. cutter tip point angle). Depth of cut in first threadculting cycle(e+ress in diameter). in Finishing allowance(express diameter). in Threadheight (xpress dia$eter). Chamferingdistancein final threadcutting cycle. (effective in M32 as modetif no L word is providedin M23 node, L is assumed the distanceequivalentto onelead) Threadlead. Number of thrc'ads wioin a distancespecifiedby F word. Usedto selecttfueadcuftrngpattemand modeof infeed. The numberof tlreads for multipl-dread dread cutting.
Dcccrirber 1998
t9
l.
!
I
L
Training Mrnual - Lathe N'IIMAC MACHINERY SDN. BHD.
z
I K D L F T
Decen$er 1998
2{l
.-/
x z
I K D L F T
X coordinaleof targetpoint (X=o whendrilling). of Z coordinate targetpoi-nt. Shift amountin X-&xisdirection (in diameter). Shift amountin Z-axi! direction (I(=0 when drilling). Deplh of cut (iDfeedamount)Tool infeedamountfor tool withdrawal motion. Feedrate, Dumhon of dwell motion when targetpoint on X-axis is reached. Tool ofset numbrdeterminingthe tool offset amountwhen tr-rget Dointon Z-axis is reached.
lDlK
<-______<__
v2
l9Y8 Decelnber
zl
*-r
\ Z K F
X=0
lccmber l99s
\D