Sei sulla pagina 1di 71

'i' I·\<f-a ilJA!

if
. L, (J '-...J
{);),H[r~ jrqnrn }UPJSUOJ
:;: (i, ;'UjtEtH) CO!Jr1F"iA;).l .~del paJ~J 96~
s;(i ~)
(up:.U/:TiHI) ;-qun:ur :FJ{I [>Ja,1
P _.,.,t'l''"
i "l.tt,.~ . . .;- "'>qr·I'IJ"
~ _,_ . . ,, -, J,l .... ;'-t..-t. ... c,. ig"
!l~J .. 1··'J '"}'!-'~l""
~~·- i'-' I'll'}
-~ d \. \ "''"'' ~
f't;,_,.:...l)
I(; ~-)
.,. . !i:L ~r:uro;) ?ttl IIUHm.l::'iU.Jd
\. . . J"~llJOS<1V
, '
, ;)p .1·.J ~-;u!ru 1~ ~:hrrzsruu .u)J JI!.!:::> 060
:)( ~.) nu ;n.: n~ ,Cd';.·: .n.:q q~'ino:; .lOJ IIU~) - LR~
..'-L(,J.
~ . ~(·_:· . £ .IOJ 'T"/' 98~
',..' !•
.. ,'''•> l•
·1 ·r · lllJ ·T''<I
• ' '~ '' r· ,• 1l"V
(l' cf ',' ji UGij!l : ijd; :: }}LWJ<i JO l-H:~S
ss:_.}
("(>C"~
<
'1 \. )'\f>~; ~I ., . .,,
·<• ll., :,:,• · ,:. ·') ' ' ' ' !(• ~ c·
, ' '·'"! ·' ,J .•.. • " .,' n,,.
" "II, , J() .,,. ll', 1 C~ '--"' . · ··
, .... J (. 10
ll <i t
•·
'l?'l vl• ~,\}1l 1 ;I • 1t:l i -: ! .:;
r,
U i• ._~)! 1·,, I/
~
U O f '-.JO J.ltP1 UC' ZHO
• l''·-
. ·J~;;)
; • .. -'!'P ,)
; ' _. , I '·ft··· 1.. J'j'J .
~I., ,rl'"S iJ1(.) "r>·t I·
1
t , l1 •JrJ
'' r~ ..~.-- ,
·:: l 1 •. ! J t.1 "') ·.... T·" . . 1 --."XI ... \J (~ )..,_,,1
,1 , 1,-,,J ·" ... _.-,,(1
.- 1.r,. ,, 1 , ::..,v :\.d • .f'"-· .J_i_
· :-: ;:.1,\:> ;b~(hhq p;)X!.~I ..
fL>O
~·ru y n • ; " .. {) l -, .I). ;
LZ,~_>
..._ r
~ ~ t '- .. ._ l . •a ' ' :. J • . ._
~ .,f p·t ,. i \ .! J •.n1. .,.~ t
~~ ·~ ~J
{'/X)
I
a': ..r 1...
l'L:-:
·tL. :~~~
' ,. r·. ' l f 'J - " ' • \ .::; .,. • "·
;; .\.Jt •.
•1 .....s •1 ,., ;,~·~ •tt.J
.. • •... ( 7~~J• :! i.JJ U\ 1{.
r ' • "- • l • ' :. . . _,.._) ,__1,'(f .... ~.y-··--, fl '"""'··y·, 't .i~ ~~)
•< t... ,_;~.· /).' ( ~ q :- ; .; { ,.J llI 4···""\..•t' H
t .~ t ,. t·' {I s..: ,1
1 4
fL:)
J\f() )P.lpHL) rfoO.!IJ
l ... .. - , ., ' l ' ' .., .... ~r-l
59 f)
;t t...; ~ t:_ {) j ·, ; . ~, tl•.vv
tr~ r-,,
},~.a.'-
t~ 9~)
.j)Ul!tWUQ;) ;}:.-;·1(.1~ ;: qm !..-t~: ln ni:u! "\'..HI
;
· ·lt•r•l T 05~)
-1' l{q'
H!.t· •t.JI,
-· , , .!- "•<·r')ur>·f
· i~I_ <>.')I.·.Jt. <. '. · -.
L' .)•" /;· ..;1
' ' >t'·, ..l '..1C'(•f.'
,. ' • l('(l
·' "•.L
J ... - Zi?O
~~.PI=N\ :.:ngt>::uaomo;:-. ~;!qpe.r ,-,s·on IOO,t
' .t ' •
Ii'"J .
* ,r;n IIG: ;:~.<- ::;-HhHO,I snnn:.l .)SOil }OOJ.
;,;. ··nt'T
· •Jt< ' ' r;r-·v
•tl., ,!.J L', TIO
. fl~'JT1PS-'l'')'
.\ : , ' " h U Fl-0 >l - :
1 •. 1 "J, '-''~'rJ·· ., I
l>. •<V ,,n· -,_
...... .t·t< k,,i
OPD
1
SID
t:·o~
ro()
. . k/
(:0~)
~
:,. !)-')
' I.
0~)~~)
. . ?.~·~.,;~r,;-('f?(-..1 .
l..· .......' \ .. l ~J... ! '·• 't
·~fr.' )stJdui
'2

·',
. ADDRESS CONTENTS
.. ·. ·:t:
: .-;; t\1

MOO Pf1ograf?li~~op -=·


MOl Optional -:stop '·
..... ....
· M02 End .of
-~ .
pr.o grarn
,, . ..
_-._

M03 Srl_~ndle C.'JIJ.: dir~ctJ?~ .. . ~ ~- ~


_M04 Sptndle C.C.W. d1rectaon ·
MOS Spindle stop
. MOB Coolant ON .
M09·- -·~ - ---
. Coolant OFF-
M22 Chamferi'ng ON
M23 ·. Chamfering OFF
.. M30 End of tape (same functiort as l\102) ·
M32 Straight in.feed along thread face (left face) :;i ~ . .. ,.,

M33 Zig-zag infeed in thread cutting .


M34 · Straight·infeed along thread face (right face)

I
1!\
MSS .
· M56
Tailstock spindle retract ·
tailsto.cl< spindle advance
M60 Cancel of M61 _
M6t Ignoring fixed RPM a·rrival in constant speed
cutting t
. fv'j62 Cancel of iv164
M63 Ignoring spindle rotation answer .. '

M64 Ignoring gener2I ·M-code answer


M65- Igrioring T-code answer . .
M66 Turret indexing position free . ,
M73 ' .
tnfeed pattern for thread cutting cycle
ri74 Ihfeed pattern .for-thread cutting cycle
· M7S IJ1feed patt.e rn for thread cutting cyde
M83 · Chuckc!ose ·
M84 . Chuck open · · .
'1,
..
: ~;
··'t-;
l·:-;~1

..
~\..
·-
-AXIS AND MOTION
3-

r,.,~

0
.,

. X-axi s
( +)

(-) Z-axis

(- ) ( •).

~-
t X-axi s
( +)

l:
upper turrell

(- ) Z-ax1s
---->-
(- ) ( +)
r-~------------:r

(- )
I Z-axis

1-' Turret B (lower turret)

(")
f X-axis
1--14 + VG (LS30-N, LH35-N)

-Rear turret (lu:rel 8)


G14 •

~
y~i~:·..r

-
!~_J_z_: - - Fron t lurrel (turret A)
- G13
' 3

H4 + H4 '(LSJO-N onl y)
- - - Rear turret (turrei B)
. G14

-··.,._
- '{
..... "'

~' ,_ -. i
:1/ 2P'
~~--u-
! !
;c---,i
-----,
3
.
i
r
I
--- - - i= r onl l~rrre; (iurrel A)
3~ 3

I
I
~ .:

. '.
:. LATI-IE MACliiNE REFERENCE POTNTS

(1) ~achine zero · referenc~ · point


Factory preset value

( 2) . Workpiece zero reference point


X axis zero point is f a ctory preset ~
Z axis zero point is set -b y machine·op~rator.

.z XO, ZO : Zero offset value .


X, z Pr o grammed comm and
r.'

X
'-~ i
L:L__

Program zero
zo {workpiece origin)

Machine o~igin .- ...,.- - . · ·- ··.- ·::-:·- - -·-···

~-

..
~~ ­
') ... ·
I

Prog ramming Format


Model 1S (Sin gle Turret Model)

N G X z 1,1<, F S, T,M . I

..
0 01 00

N OOO O. G50 so o oo
.
·NOOOl. G OO Xoo oooo Zoooooo Soooo T oooo Moo

N0002 Xoooooo Zoooooo . ~03((\1104) M0 8


N0003
- .
..
(Cutting Program)
-

NOOSO GOO . Xoooooo · Zoooooo . MOS M09


-
N005_1 .. .. M02
·'

Mod el 28 (Tw o~ Turr e t!Tw o-Sa ddle Model) . '+

N · G X
,.
z l.f<. F S,T,M
I•

I
I
I

I
J',·.
I
o o1ou
r-- .. i
I
NOOOO G 13 '

·-
. N0001 GOO xoooooo zoooooo P10 SOOOO TOOOO MOO ! I. .
t:-·- . - ·
N0002 · XOOOOOO zoooooo P20 M03 (M04) M08 I
- !

. . - . (Cutting Program for A Turret)

N0049
. .

GOO xoooooo zoooooo .


I
I
I
I
..
NOOSO · G14

N0051 Goo xoooooo zoooooo p 110 SOOOO TOOOO MOO


N0052 xoooooo zoooooo P120 M03 (M04) M08
..
(Cutting Program f.or 8 Turret)
.
.. .
'

- -·
. N0100 . Go6 · xoooooo zoooooo fJ190 M05 M09
N0101 M02
I
-.
......
s.. .
' \~ >

..
;l

..
6

PROGRAM PROCESS SI-IEEX


..

PART NAME: DATE:


:.PART NO. : __ ___ ··-··~-- PIWGRAMMER:
llLANKSIZE: -APPROVED/CH F.CK: . ···-:
.
FiLE NAME:
. PROGRAMMING NAME/NO.: .
MATERIAL:.

SIN SEQ.NAME. TOOL NO . . DESCJPTION v ·r D REMARK

: 1 NTI T010101 O.D.ROUOH . 220 0.3 6 o:4 FOR FINISH .


2 NT2 ·T020202 O.D .f-TNISI-1 250 0.15

3 NT3 T0303 CENTRE DRILL · 1000 0.05 Dia.5min


~
4 NT4 TOt104 GROOVING ' 1200 0.1 2nml TOOL Ol~FSET
"
. ..
rpm N0.4 NO.l8
--·---
·5 NT5 T0505 DRILLING 1400 0.08 3 DIA.8.Smm
.. rpm· ;

". :

~-j
' --
NTG TO GOG . O.D. THREADING 1500 !.5 !

i r
. qJm
.... .. .. ;
--
' .. "
. .


1 .NT7 T0707 · MIOTAPPING 350 1.25
l
· riJm

..

'~ ..

.;,. .. ~

..
--
....
'-:-·\~.
t

... .....:.
7
'l

WORD FORMAT

Word Format Associated Information and Function


,.

.Ooooo .Program Number _oi Program Name

Entered at the beginning of a part program to identify


res pee t i.ve··progtams.

Program Number Up tQ·four numeric characters following


address character "0" are used to indicate
a Prog.ram Number.

Program·Name When an alpha chara.cter appears following


address cl:wracter '.'0", such express·ion is.

~L_:_
1-"
Noooo
_ .--- .
referred to as "Prograrr, Name". Up to three
~lphanumerici can be used following the.
first aipha~etic character .

Sequenc~ N~mbet or Sequence Name


:I
I .

!
Entered at the beginning of each block to identify re~pective i.
It
blocks {n a part program.
I
I Number3 are ·JsuaJly used t o indic~te the execution order o[
I blocks . ·Although pr o g~am nuntbers are gen~rally assigned with .
'I ~onsecutive nu~bers, such number may not necessarily be con-
~

_ secuti~e . Seq~~nce name is used to identify a specific block I


in a part program. l
I

I
Sequence Number Up t o four numeric c.haracters follo-wing
address character "N" are used to indicate I
1

I a Scque·n ce Number..•
I
I
II. Sequence Name Ob oo an alpha charactoc appear• following I j
address character '.'N"; such expri:!ss ioa is ·
· refer .r ed to as "Sequence Name". p to
i
II thtee aiphanum2rics ca~ be used ollowirtg I
I
I
~-~__.,-....:...
the fi~st alphabeti~ character.
i
I
!
l f
+
X+ooo. oO"o
:;,. __..
Dimension Word : Diameter
'.
I I.

~'
Used to specify X~axis cooulir,ate in diameter

I ..
I ~ .
!. -\, . .1
! ~-000~000
+ I · uimension Word: LongitJJdina Dimension ·

I Used to specify Z- aHis _xoordin~te

I l
I

lt 1 I
r
I
~
8
G-CODES :'

Code Ass ociated Information and function

G Code: Three nu me~i c characters following add~ess character


C establishes · the mode of axis movements .

.,
GOO Rapid Feed

Used to feed the axes at a rapid feedrate to the commanded


cciordinate pOsition.

·C Ol Linear Interpolatiori

Us~d to cut a strai ght line parallel to X- or Z-axis or a t~p~~.


Feedrate to be e mployed fn th.is mode is commanded by an F· w'ord,
FoooiJ.

C02 Circular Interpol atiori, CW

Used to cut an arc in the c1ock0ise direction. Feedrate to be


employed i s commanded by an F wo r d, Fooooo, as in COl mode.

I
.\....
L ~G02 z
~- - . - . .,. . -_-- ..------- -' '·

f---:-----..,.-
.. -~--
- --'--------'---'----
e._.- ~----:--
. ~'___J
GOJ Cir c ular Interpolation, CCW . . . . I
Used to cut an arc · in th~ counterclci~kwise direction. Feedrate
to be employed is aommanded by an F word, Foooo, as in COl
mode.

~
C0 3 \
· ~- .·-'"' - - - - - -- - - -
I

e
I

-'t
co4 l}~c 11
:
!
Use d to act~v~te dwell f un c tion whi c h st o ps axi s motion foi any
tt::quirc~ du r ation of time d tr inr; a machining cycle.
Durati.on of d;-.rell m "~ men L s pt~ogt· <Hnmed in an F word : G04
Foooo.
.Got,·Fl2.3 stops ax is motion fo r 12 .3 seconds, fo~ instan c e. I
·--··--·- --·. -- - - ------ .... ··-··-·--··-··- - - - -- - ------ -- - - ---'
.: I
9

Code As~oclated Information and Function



GJJ Fixed Thread Cut~ing Cycle : Longitudi~al

Automa~ic thread cutting cycle as


~ . .. shown at the left is executed.

~ .
.. :·· .· ·:
-

G40 Tool Noie'Radius Compensation : Cancel


Used t6 cancel the:tool nose radius compensation function
., ..

G.41 Tool Nos~ Radius Compensation: lD Ordinally C~tting

Used to call out ~he tool nose radius co~pensation mode for
ordinally ID cutiing ~ycle.

.. G4.2 Tool Nose R~dius Compensation: OD Ordinally Cutting ,


Used to call out the tool nose radius compensation mode for
ordinally OD cutting cycle.
I. 'l
1- ____ _.......:..__ _ _ _-i
~

i -.
GSO. Maximum Spindle Speed DesignatiOn
Used to set the!llowable maximum spindle ipeed.

G90 i\bsolu.te Programming


Used to es.talil i'sh absolute programming mode.
When the control is resetJ ~t is in the G90 mode.
·.~ · t
~

I .

G91 lncrement.a 1 Programming ·


'(';._._
Used to establish incremental programming mode.

G94 Feed per Minute Mode


Used to.~sta~lish mm/min feedra~e mode. ;.

G95 -:. -+ -F~-eci per EC~ofu_tTo;-Mode-


used to establish mm/rev.· feedrate mode.

..
When the control is reset, it is in the G95 mode . t
G96
.P-

.
-~stant Spe~d Cutting ON
Used to £~tablish the constant speed ~utting mo~e .
-
G97 I Constant speed cutting OFF

L Used to cance~ t~e cc~stan: speed cutting mode.

1\_ _,.,
:~

.
"j .
10
.

M:..CQDES

. . Code · Associated· Inforniation ·a nd function

HOO M Cod e. Up to th~ee numeric characters follo~i~g address.


character Mare used for specifying various·miscellan
eou~ machine functions such ~s spindle ~W/CCW,
collant ON/OFF, etc.

HOO. Program Stop

\.fuen !:100 ~s executed, machine ope.rat ion ·g oes intc eye le stop
state~ spiridle rotation and collant ~upply are also brouiht
to a stop.

To continue execution of the part progra1n, press the CYCGE


START button.

1- This :~rogram st~~


furictidn is effecti~~ly
used for · measuring
finished dimensions and also fbr r~movin~ chips du5ing cy~le.
\ ---.·-1I.
MOl Op t ional Sto p

MOl pe tfo rms th e same function as MOO Pro gram Stop, except
that the control igno re:s programmed MOl o des unless the·
_OPTIONAL STOP ~wi t ch is tu~ned ON.

!102 End of Program

M02 provided at the end o f a part program resets the conu·ol.

t-- M
-0-3---- --+-C- I--l- Ro-t-.-a-t-1-. o-t-1' ------------------'------'-----~---~
t-103 starts the s-pin dle ·rotation to advance a right handed
screw _into the workpiece .


.. .

· Viewing spindle

\
1 __-__j
J
11

Code As so ci a t ed Informa t ion and f unc tion


,.
;
-
!-!04 CCW Rot a tion '
. . ..
M04 st a r ts spindle rota t ion t o . r etr act a r i ght-hind e d s cre w
fr om t he w or kp iec ~ .

"
'
,
,.

----
ccr~ ~ H04
·.• .;:
... . ·· . .. ·- · .· -··-·-- --
toCat"io o
..
..

Vi e wing spind le
I ..
' I

L
HOS Spindle Stop

MOS stops spindle rot a tion


..

--
, l I

I
..
-l•
I

MG8 .Coolant ON
.. .
1I
I
H09

·~
.. Coo l ant OFF

Il
(

r ~~22 Cancel of M23 · I

!
I
~
I .
··chain ,er(ng ON - : ....

M23 exe~utes c ham fering using a fixed c'ycle, in G31 c.hrough


- . - ' I

G33 thread cutting c ycle. ·


I:
..
. N]J Patte::-n of ~bread cutting -
.

t-174 Pattern of t:hread cutting · '


..

ms ~- t13.ttern of thread cut t ing _


' _j

II
• .,
....r
I '~
-:- · ~

II

' .
GOO POSITIONING 12 .
..0 . • .

· · ------~;91· inde~
~------~=-------
----·
.
----
. .
· position
.. .

/ CD .
/
/
180
/
/
/ ·
!' /
~ @ GOO X300 Z300
· Progra(rl hr.r----l §1. GOO XlOO Zl80

GOl STRAIGHT LINE CUTTING

. ~ .. .. . ,.. --- ...... ---:----- - ~-- · ·--:-·.--::-:-----·· · ·.• ....-

204
.T",J.

20'0

. 120 /
100 · .

0
0 .

GOO X185 Z204


Pro ram Zero GOl · Z120 F0.15
Xl90 -. F0.25
ZlOO
!'?\. Xl90
\:::..) ZlOO

.;.. . ~-

.•. l
· @ ·~
<2)~g~
·.·,
Xl 90
·zuio
.
0l-<llf-'-
· .- ------e0
Xl85 Xl85
Zl20 Z204

_j

..
G01 TAPER CUTTINIG '
I
1-
lJ
-~


I
l;
.... .
jl -
)J ,.

/I
I I @,- ·
I I II Q)X500
.I I
.TI :1
I I
1
·
Zl85
·

/
.;... I1
I
/ tI
' I
/ I
· I I
. · I · j
(4) I . I
X20Cf~ .
ZlOO · 0) ® . . . f
X185 Xl85

r
Zl80 Z185
1oo ~ 1
180~
185
t

G02/G03 ' .ARC . currTING


I..
.,. .
i

.. I
I

1.. l

200
195
..
185
~ '-. :._
. 180 .. ,
., I . \t;~,
'/~lj

· l~ :J~ - ~- . GOO X180 Z204 . ..:. ·-r


.,,..._
~ ii '
GOl Z200 F0.2
0
ol · ·-
N . 0
0
G03 X190 Zl95 LS ..
co
& rl GOl Zl85 . + 'i tl . . ., "'t
&
G02 X200 Zl80 L5 1 '
..
- :!~
..,...


"'- ~-----------~

. . .. L..- . . . .
. ·~· ~< CIRCUltAR INTERPOLATION
14 I•


G02/G03 X Z L
~~ OR
G02/G03 X Z I± K+

- 50 .. 1
//
] G.. ; 3
OR
G03
xso Z50 LS :

xso zso I-5


RS .

y;50 ~

-
50
---1
.I
l· v/
·r ,
. .
\...
.. \ ~ .
.
G02 X80 Z50 L5
. RS .· . OR
080 . G02 X80 Z50 IS

._____ _...
80
_.__I" ' - . .

T T"'-\ G03 X50 Z80 L5


. (· . R~
OR
.· . ... .-··.- --·:.·. :-- 0 5o··
--co~ -
-c · · . - - · ·· .
.G03 X50 Z80 K-5
..":".,..
't....

11: ! •f
...

1~ I

-- ~------- ~ -~ v
G02XZ LlO
4 I OR -
- G02 X Z 17 K4

( '

G03 --X Z LlO ' t


OR ·
G03 X Z I-7 ; K2 - I
1

\---'----- --- - - -

l
:i_i)~?

/ -,. .. .
"'
t.
.
I
_' t
~

J
.;:t.. -· . ~
)~

~-~'! ~
:.. - 11 ..

G03 X Z L10
"'~·
3 OR
7 .G03 X Z I-3/ K-4 ,.
~ ....
'\-
~- -'4- .

::- '
. -( f
\) (\_.( f "(_
ANGLE COMMAND
G01 X A
GOl Z A

II
_
-I \ -
~ , .
-J-·


.

anti -clockwise
positive angle

180 -0
-- -
..·'"+, . .
- - \ - - - -
0"
·

_ . __ . . __ _ • \ -·- ) · .· ~~~~~~!~angle
\
27 0 ° .

80
GOl xJ·o
X40 A1 3 5 (A- 45 OR A - 2 .? 5)
zeo
X60 Al 2 0 (A-60 . OR 1\.-240)
"I'''

060~., \L !T
\-__,_--
· Z50
. 0100 A90 .
XlOO. Z30 A150
- - _,- - - - - - - - - 030

GOl A180
XBO ZSO Al35

0 ;
...._ ....____________________________•.>'•••--~·---.-.,...,....,..;..~. --· I • •..,- ~~!bJ.U'- u~·~~ •(

00
r--
-r-~•
T
• T of _ . _Tool Offset No. 32 pairs (o 1 to 3~) ·
For two-spindle. model, ·32 pairs ·-o f tool
offsets are used on-the individual
·~... . .
turrets '·

~__ _ _ _ _ _ _ _ _ _. Tool No. The number identifying the turrE-.~ face


positJon is used as a· tc.iol number

00 00 00
T · A

T - - - "Same as above

,_.;
The tool_ nose .radius compensation
L------------- Compensation No: ! number from 01 to 32.is specified

5 6 J'

3
4 .
5
4 ... ,~~-
,. .
v

/
2 6

Tool ~ station
No. · 1·

;_/4
18 I.

CUTTING CONDITIONS
·, .
V=rcxDxN ·
1000

)
)
where V: cutting 'speed in (n1hnin) ·

.n:
. circular
. constai'1t (3.14) . .

D: workpiece dian1eter (min) ·

N: turning speed (rpn1)


, . ~.

SpincUe speed
l. ·G97S1000
Call fol: fixed RPM, irregardless of workpiece dian1eter.
Usually used
. .. .
in threading and grooving cyde.
.
' . .

2. G96 8120 .
· Call (or perip]ICral cutting speed. The sinallel: the workpiece
dian1eter, the faster. the RPl\1.- The value (n1/min) depends
:on the type of "vorkpiece ri1aterial. Usually t1se in 0/D & liD
:roughing I finishing cycle .

. Feedrate .
Ex. FO.l5. Cutt~r ·advances O.lSn1n1 in one turn of workpiece.
Feedrate_in .r.otighing. is slower than in finishing.

Depth ofcut
Cutter advanc~s ipto n1ateriaJ in .X axis direction. ( dian1eter
value) "·
. -:-~~ .
• •' ' lloo •

•. ..
t
I
I PROGRAMME EXAMPLE 1 19

I .... -.·-·-· - -

1-·~ i
- · .. ·- ~- - • -::r-·::- ----;-o~- - --•

,.
..
, ~.:

l ~~ -(
100
90
;

E ,
D' C. A-
I
B'
- ~

.Workpiece material S45C -


. Type of machining : On~y finish . requir'
0 0 0
( 0 r-
~~achining fro~ po~nt A to Ppint E
CX)
r-l . tSl · t$l
&

,-.;;

•· . ;
'
NlOO GSO S3500 ) ('?o T'\ ~
Sequence No. Maximum spindle speed command
I I 'fil
NlO!' GOO X800 Z800 9 ,T, ~t\
..- - . • f
R a pid fee d Li mit = t o ol ind ex ing 'p o sition ,.i.L:' k\\ 0-v,' ~f& ~---P
' 1
NlO~ X70 .
'
Z102 T0101 S680 M41 M03 · M08
'• Spinde Spi ndle Spindle· Coolant
speed speed forward ON
range rotation

Nl03. GOl · Z90 FO.i8 F fl -l g c_,w d·V\/ rz e.V)


Linear Interpolation
,.
... ' Feed
. Co (

Nl04
~-
f' ''V Ct- ~).
X80
:.. .- . .: Cr q~~ rw..'4y..J
Nl05 Z60 ·;~-fiJ-I_\:r ,;:_~-~~ . ~~ f~,
N106 X102 (\.t~~ {1<-(' '·-~-~-~ ..o~"~.v:.j
~- )
-,~).11)
N107 GOO' .
...... <(;- • X800 zsoo·
Nl08. ~--
' MOS M09
- -
Spindle Coolant
stop OFF

N109 M02
End of program

j
20 I

PROGRAMME EXAMPl-E 2

0 82
0190

Enlargec~ view of R4

. so .

0190

~.· . start . '


(
-
'\'

!15190 .

NlOO G50 S300 . i . •• "


·Nl01 GOO XSOO . zsoO · '·\ . · . · :· M03 MOS
N102 xisz Z104 TOlbl $200 :M4't
:· · ,N103 G01 Z100 F0.2 · .·· .· .
.,_
· ; '. N104 Gb3 .. X190 Z96 · K-4
.. - --~
Nl05 GOl . Z85
N106 G02 X200 ZSO 15
·. ·Nl07 GOl.. X204
N lOS · GOO~(; ){.800 . Z 800 .
":'""'"'-"
l\'105 M09
N109
Nl10 · M02. ·

...
'

~- -·---- - --
21

Absolute & Incremental Programming


,_

55
. ,

... j
rY .
~ -
--~-- I

. I
08.0 Rl0~72.
fI
AO I I r?Sf_~ 1
-~=lT~~--
-
go-
84 .
. 104
. _J d32

. ---·· ·-- 1~~';~0'


' . ". . ({ ___ - ---
. l
,.. . . ·
f
. .

Absolute p~ogran11r1ing G90


;.

GSO S2500 . .GSO S2500 ·..


GOO XSOO ZSOO GOO XSOO ZSOO
G42 X8 Z1~6 T010101 M8 G42 X8 Z106 T010101 M8
G96 S140 . G96 8140
. Gql Zl04 F0.8 'M3 .
G9-1
G03
GOl Z-2 FO . 8 H3
Xl6Z-8 L8
.. G03 X24Z96 L8 .
· GO_l Z-12 . GOI Z84 '. ·
X8 " X32
X8 Z-4 X40 AI20
Z-8 _. Z72
G02 . X20 z~1i:~10 G02 X60 Z62 Ll 0
GOl Xi2 . . :~ GOl X72 -.
xa z-7 X80 ZSS
GOO X4 GOO X84
G40 "
G40
G97 s1ooo -- - · G97 SlOOO
· GOO XSOO ZSOO MS GUO X500 ZSOO MS .
M2 . J\12
TOOL NOSE RADIUS COMPENSATION FUNCTION
22
· . G COPES •

G41: Tool nose r·~dius com.p ensation left. Used when the tool move~ O~l ,.
. the left side of workpiece. ..
G42: Tool nose iaditis compensation left Used when tl.~ tool moves on
·the right side of Woi:kpiece. · '
G40: Cancel the tool nose radius compensation function.

G4. l ·· G4.2

tG .
I "z

G4i

G42

T CODES·. .,

Too odC5o
- ·.I.!~ TOO.L Ol'FSETNO.

-~~ TOONO. .

TOQL NOSE RADIUS COMPENSATION NO.


. ····- Tool -No'se .'Radius enlarged

COMMAF~- POINT

Cutti r ,Jithout .
Tool .. ~ Je P. i s · compensation
NOSE R
/ .•

r UNCUT PORTION
I
/'i;
r

J
}-

( ..MANDED

I
.;

l
..,..___

/ /


. UNCUT PORTION
,,,., "' > > > 7~
'Nl
..
. ·.t;
.......
G7f. UTOMATIC ROUNDING ,.,, I

!._ ! -:.

X+ X120 zso X120 Z12 0


R5
. t

GOO xso Z120


G01 G76 Xl20 LS
. zso ' .

....... .. . .,_ .- ·- · · · --· - - - -~- -· - -- ~


X50 Z12Q_

-z+

G75 . AUTOMATIC CHAMFERING

X+ X120 Z50 X120 Zl20

X50 Zl20

'"---------~----------:- Z+
,.
(

. ANY- l\ 'l1GLE
AUTOI~t-\TIC CH.AMFERING/ROtn~DING

X+1 .100 z3o XlOO Z7 2.


--·- -- - ---.....·

~'GOO X2Q Zl20 Zl20


G7 5 . G01 X60 L3
G7.6 Z9 0 LS
G7 5 Al~O XlOO L6

X2 0 Zl20 .
L ---:---
Z-3 0_ _ __
....
....
7'
.

~,..
- - - -- -- - "".-t-"
- - ----- "LI
TI-IllliAD CUTTING CYCLE 27
,.
I
G71 X48.Q5 ~40 AlSO (IlO) ·B60 D0.4U0~0 ·4 H~.95 L4 Fl..S

(J} M23 M73 M32 (Q)


,.
Starting
point 6f
thread cu~tini
cycle

.,

- -__ _J~
-----

.J-- ,~_-_--_-::rD/2
X : Final dia. of threa~
.. L------~~---_-IU/2
- :J.....
A .: Z axis target point of thread
A : Taper _angle
I : Different in radius· between start point & end point
B : Thread i n sert an~le
D : Depth of cvt in firs~ thread cutting cycle
·U : Finish allowance~ Last depth · of cut
H : Thread height
·L : Chamfering distance. Effective in M23 mode.
F . : Feedrate
.J No. of thread .per · inch. (Imp~ rial thread.)
Q .. No .. · of start
M . M32 . - ~.J:nfeed ~long . l .e ft side of thread
M33 - Zig zag infeed
M34 - Infee~ along right side of. thread
.. .
•. . .
M23 - Ch~fering on
- - -- . ~ -. - o-- ·- ··• - - --- - - -
~-...... .
M73 -Thrca'd infced patter-n.
· Dcptl! of cut from equal depth to gradually reduced.
M74- Thread infecd pattern.
Equal depth of ~tit.
l\175- Thread _infced_' pattern:
Depth .Pf cut gradu ally reduced.
-~ .'
28

The · thread height H is calculated ·in the following


formulae:-
·· - - .... -:-·-·-
OD THREADING ' H=F/(J X ' N) X 65%
ID THREADING H=F I ( J X N) X 5 Q '?~
FACE THREADING H=F / (J X N} X 87%

PRECAUTIONS - FOR PROGRAMMING THREAD CUTTING CYCLES


1; . Never change s pi n~ ie speed during thread c1itting
cycle
2. The feedrate overr ide di a l i s i n effec.t i v e during
thr~ad ctitting cycle
3. Leave extra ~ len~th . in thread ap~ro aching · and
overtravel ·.distance.

\ .

J HORD USED IN THREAD CUTTI NG . <:;:YCLE ('>~t ~~ ~ tb ~ c,:J -~)


It is no.· of thre a ds within a d{ s tan 6e specified by F word. If
' no J word is provided, the contro l a ssume J=l.
J .word is not all <;> wed to contain d e c imal point. Only whole no . .
is ~ccpeted . .

Example ·: a) . 2"...:.14UNF F25.4 J14 - 14 threads within a distance


' - ~- -· of 25.4mm. Pitch=14/25.4
=0.55lnun
. h) 3"-4 . 5UNF F25.4 J45 - 45 thread_s within a distance
of 25.4mm. Pitch=45/2~4
.. =0.177mm
..1 .Or F50. 8 J9 .
~ · -... ·
·or F5. 6 Jl
GROOVE)
(SI~GL~ 29 _,

G73.GROOVING CYCLE
-~
T0505
. . . '\..I
·u.
,/
. T0515 .
.
,.

. . L 1 Ja tit-')
7771J7777"-l
50 .t __
2..aJ n
~- .T
040
. . 050 058

·-·-- -~ G-OO ·X7 4·-- Z53 -T0515, --


. ·s 7 50 r,dlc&(j
M3
· G73 X40 Z53 p4 Il6{-L) FO • 15 EO .<_5.,
GOO X500 Z500

G74 .·DRILLING CYCLE


r · .. _ _

I
-
30
100
l . .. /
/
/ .
/.
"
·~ ·.

I
-- / ..- '
--0( / ,c r- - I' . c_~- (1'00L NO.: ~
. . 1 I " I HSS DRILL.

V//J/Y/1//1151 . 20

~ _. -
GOO XO Z135 T0606 . ·.;; · ~ )
S800 NI3 . (chietl /)arl
' . 77
.. . G74 XO .Z30 1(20 DlS L30 FO.l
.....'t- .GOO XSOO zso·o IYIS
~- .

..

\
J ,,,..:; i .
of
.... : ,. .
r-i s .30
. .
·. .
'(WI.DE GRO.OVE) - -

G73 GROOVING CYCLE

,. .

' ·,

040 -

GO O X114 Z12 0 T0 51 5
G73 .X40 Z70 K4 . 5 !30 DlO L15 F0.15 E0.5 T05
-
\,

. 080
' 70

GOO X114 Z70 T05Q5


G73 X4~ Z120 K4.5 I30 DlO L15 .·F0.15 E0.5 Tl 5
""'*'
.'\
. . .
~· ~

I .

. --: \
t , ....
\
,_ '

(
,/1
..
(
·:i
. (WIDE GROOVE)
G74 · GROOVING CYCLE 31 ..!
••
70
..
· T0515 '•
/
Tc .·.
rs-~
L:--l-
45 . " "
. _-080: 1
~ TOSOS

50
.I ,,

040

I .
GOO X80 Zl20 T0515
G74 X40 ZSO K45 14.5 DlO Ll5 F0.15 E0~5 T05

t 70

...

T
....
'• ~

08~ 1
. 1~o .I
50 ~I T0515
,---~/
. ··--r~··-· ·-- +"""·...,~L
. ·. - ..
!<l40 1 .
~
~:--"'~---· · · -·:'· ~1 ...-~-
. · To5o5 -
''

-.-. ..
......
. •lot".:
.
-~~·rrl.:
G 0 0 X 4 0· ~i~1.2 0 T 05 05
G 7 4 X8 0 :Z: 50 K 4 5 .I 4 • 5 D~l 0 L 15 F 0 . 15 E 0 ~ 5 T 1~_ · .
..
.
~ t - · -
. _·. ~--~
-.---~
:?~:.~
. r-- ~- r,~~
D-,_ A)0.r uCML · ·.. _.._ ~
. :·g~'
!"·:~']_~
I
'
'
', L- ~
~
· Ma._
I'
.":;~ .·
0~ .
~~
32

C85<-C82<-C80

. <D
"0
0
:2
·a.
<(

'. I,

' "': I •

' j

.,

:::::1
(')
Q_ <D

5 0
~
Q_
<(

I
I I
I

C8'8+G8hG80

~
·a
Q_ . -
<l>·
<( "d
_J 0
~
Q_

-~

I •

<D
u
0
-~

.a_
<(

_ _ _ __j
33

< ,

LATI-IE AUTO-PROGRAMMING FUNCTION (LAP)


. .
.G CODES USED TO DESIGNATE LAP CYCLE ~

GSS: Bar rough turning cycle (cA~y/h:') .· .


f~~~ G84: Change ofcuHing conditions for bar rough turning
d-\.IC~V\111. . .· - -··-- ··: ---~ - .~ - .· -- -- · . -- . . - -- .. ..
G86: Copy turning cycle

G87: Finish turning cycle ( -1//}/z)

.-f~ ~- G88: Continuous tlu·e~d <;utting cycle

G83: Start of blank sbape definition (LAP 4)


. .

G81: Sta.r t of longitud!na(I con toni· definition (belt£~ elf ,-:;J,)


(h)~
. . .

G82:
-
.Start of
. transverse (eiul face ) contour definition
I .

........ ,..;...
i>(; f', ,. ·: G80: End of contou~· definition (_let)

;. ---

~ .
.....
.-:-·'t.........
34

_G85 : Bar Turning Cycle·


Fon11at

' \ N0210 G85 NTURN D4 · U0.4· . W0~2 . FO.lS . G84

N0210. · : Sequence numb'er (can be omitted)

· G85 : G code for rough turning cycle

NTl)RN : Seqtience name in the first block of contou'r definition


D4 : 'Depth of cut 4mm in diameter

UOA : X axis diameter 0.4 in finishing stock removal


. ·' . .
\V0.2 · . : Z axis 0.2 in finishing stock removal ....

F0.15 : Fccdr~tc . O..lS

· G84 :·change of rough turning condition

.
:..g84 _:Change of cutting
. . -.
condition
·-····
in G85 ·.cycle
. -- .. -·· ·.-·-·- · .. . '"':" -:

Format ..
; ·,

. · N0210 .GBS . . NTURN . D4 U0.4 W0~2 F0.15 .G84

$ G8.4 Xi~= ( ZA~ ) DA= FA~ ~ ,·,

$ XB= ( ZB= ) ·DB= FB=


( 1) . .~ (2) (3) (4)

.(1) : Indicate the commands are ·contimiousfrom last block


• ' I ' ' • '

(2) : Specifies the diameter or Z axis po.siti'on wh~re cutting


. conditions arc changed

·· ·(3) : New dcptl1 of cut

-~ .

. ·,
\,·

35
•. •
G87 :·Finishing ·Turning Cycle .
Foi-maf ,
N0203 G87 NTUH.N . 00.4 vV0.2

N0203 : : Sequence number (can 'be omitted)

G87 . : G code for finish turning cycle

- NTURN .: Sequence na,ne in the first block of contour definition

UQ.4 · : X axis diameter 0.4 in finishing stock removal' · ... ,

Vl0.2 : Z axis 0.2 in finishing stock removal

. \ . . .
· G86 : Copy Turning Cycle
.\
·,
,:;.~

'' Format '-...

NODRl' G86 NlOOO D3 FO.l5 . U0.4 W0.2 - '- t. -· -

•,
.;_.:'

NODRT : Se.qucncc na1i1c (can be omitted)


..,......
-
G86 ; G co'd.c fot· .Copy turning cycle
.
• . .. . . )l· .
NlOOO :Sequence name in the first bloCf( of contour d_§jnition · '

~
D3 : Depth of cut in diameter 3mn1
-- ·'
., __

FO.l5 : Feed rate .0.15 --- -------- -- .- -·· ~~-


;---- -
..
.....,'
-·;~·,
...__
,... .
U0.4. =~-X axis diameter 0.4 in finishing stock removal ..~,·

. ;.~

W0.2 : ·Zaxis0.2 in finishing stock removaJ


-:-•
--:'!( '
~ .......... . it..
~-

...
"'
· ·.·
LAP PROGRAMMING EXAMPLE 1 - ··
.36

~100 .

C4 070 . . :.

.
,':

\ ...
.

Mate;rial. : S45C
Finish::.ng stoc-k dia.0.2 for X, 0.1 for Z
Depth of cut in roughing 'cycle dia.S

NlOO GSO 81000


NlOl GOO XBOO Z800
· Nl02 X102 Z92 · T010101 8470 M41 M03 M08
LAP Start point

N103 . G96 Sl50


Nl04 G$5 . · 'NLAP DS F6.3 U0.2 WO.l .,
Calltng LAP round bar . Depth Feedrate fo·r Finishing stuck Finishlng,~tock
J

rough cutting cycle of cut rough cutting in the X-axis in the Z-:ucls
(lircctlon directio'n f· . ~ ,.

-: l
NLAP
. Tht.
. Gd 1
s:~me scquo!nce number (name)
St!\rt of longitudinal contour definition
. +
NIOS' GOO X70. Z92 G42
. N.i06 GOi Z49 FO.l2
: Nl07 X78 Z45
· NlOf, Xl02 F0.2
N,l09 ...,. G40
N,llO G80.
G::'»e--
-
' End of contour definition '
·I
i,"'

Nlll'· G97 8470


N112 GOO . . :X800. Z800
:&113
.,.
X70 Z92. T020202 8820 .
Positio'ning for finish cutting

N114. .. G96 8180


N115 G8~ N~f
Call of finish cuff~g cycle

- UH16 G97 8560'


N117 GOO X800 Z800
.N118 MOS M09
.. ... · ::-··--- --
N119 M02
LAP PROGRAMMJNC1 EXAMPLE 2 38 '

100
~.{~ . .
k;
...
~
~.. 90 .. \ .· ,.
iiI. · .~~. . I . - 60 . ~
li
i

0
0
rl
&
---i'-!d.f.:.,'\----..,..-

•'fit.
TOOL NO. 1 - O.D. ROUGH TURN · . -.
-~ ~.

..
'
TOOL NO.2- O.D. FINISH TURN - -· .
,
t ... --
~
. I· ~~

! ·.
f.
/ '.
--- ...
..·.:.'
-:~-· "' ·-

G50 8350.0 . , __ ,j·i,. · #- .o ;·

:g~
GOO X500 Z600
. NlOO · X102 Z105 T010101: 8600 · M3· ~~
~ ''I

. G96 8140 -- .

---- .....__
G96 8180
G87 N~Pl ~
.GOO G97 X500 Z600 8600
...
It
• M05 M9
. NL..l\.Pl G81 ~
' -..;

GOO G42 X70 Z102 ·


II G01 Z90 FO.l5
lilt :i\:80 ;

11~ ·
~

,.,
Z:~o
. • -:' ... 'l·

X101
I~ .,.. •/"f-
G40 ..
GH·o , .!' •:,;-

M2 '{ .,.,.
\ ~.;...:, : ~- ' · ~
,,·.,_
·~..

t-·~ .·. ,.
i ~ _______., -"""'
39
LAP PR.OGRAMMlf\lG EXAi'1PLE 3
• f

100

R5 .

.0202
0182
0190

..'
T O O L NO ., 1 - O.D . I~OUGH T URN
'

TO OL NO . 2- O.D. FINISI;I TURN '


.. -- ·- ~.

DEF WORK .
·ps r;c, [O, OJ, [too,202]
END
DRAN . /
GOO.· X500 Z500
. G50 8 3 500 ·
,GOO X500 Z6 0 0
·-- · N25. X204 Z105 T010101 S500 M3 :t-!8
G9G ~. S140
.. G85 . ; ~100 p6 F0.3 U0.2 , W0.1
GOO G97 X500 Z600 S500
~ NSO X204 ~105 . T020202
G96 S180
G87 !:)flO 0
liF 1f N100 G81 ~~
GOO · G42 X182 Z104 ••
.;
G01 Z100 F0 . 1:5 ·
G03 X190 Z96 L4
G01 ·Z85 ·
'"G02 X20 0 Z8 0 L.5
dol x2o3
~ • " .... 0 '

. G40
G80 .·,.
. ..
~00 G97 X500 ·z60 0 S5 0 0
1'15 l':-1 9
M30 ·'

..~.-. .:
-----~----~- - -..oa.==·--------·.0 . ·--- --~ --- --· .. ·· ..;.. - - - -·-- ·-- - -
LAP PROGRAl\1Mlf~!G E~Cl\.MPLE 4 40
r'

.'\.: · ~·

~ '• ,

100

~
_.-
24

~ '<:t'
-~
0'1
...
0
.(f)
RS ! C5
0 0
r-1 )
_o
&
I ~~- -
-~!
1..0
&

l
_____.___ - ·_ _L- _ /
44 --1 _
64
~::
' DEF WORK · TOOL NO. 2 - o:b. FINISH TU~N
-1 LC I [ 0 I 0 ] I [ 1 0 0 1 04 ] I .I

· E ND
DRAW
........
N001 GSO saooo- _ .lli;
~~

N002 ~ XBOO Z200 J

NLAPL. G81 •.
• '"'c. • f
,. .
NOlO - GOO X44 Z101
o,.c- -·
. NOll . GOl G42 X4'6 F0.2
- N012 X48 - ~ lc ~;

N013 . X60 Z95


~-~... ~.a: _.,..
N01'4 Z69
...: !"'. ;, :...• c,

N015 G02 X70 Z64 L5 ··-


N016 -·· G03 X80 .Z59 ___L5 . ___
~. ~

N017 ·GOl z44 . . .. . . . ·,.~!


N018 X103.094 Z24 ~ - .~..-., !'
r, _
N019 · G40 GOO Xl05 K-1 .;~_;~.. ; -
1
\-.·

Nd20 GBO - .,;.': ..,;-~


,...,,~

~/
-• ttl_
................
t
N100 - GOO XBOO Z200 S500 :M03 .:?
- '
NlOl X104 Z105 T010101 MB
N102 -. G96 sla·o - :·
.N103 ' G85 NLAP 1 DB - U 0 . 4 WO • 1 FO • 4.
Nl04· GOO Xl04-il05
. ........-+ • . .~-:·""-
~105~.~97 XBOO Z200 SSOO .
- NlO~ " X104 Z105 8700 ~020202 -
N107 .., ,G96 S220
N108 G87 NLAPl - -
N16'9 ' GOO X104 Z105
N110 G97 XBOO Z800 S700 MS MB
Nlll r12
-. __
___, . - - - - --
- -----
-~-
41
LAP PROGRAMMil\JG EXAMPLE 5

105 . .

90 . TOOL NO.5- I.D. ROUGH TURN


,
... ,
55
75
.. I .
. .
.

. .I 1-
I
TOOL NO. G- I.D. FINISH TURN ·

c1 c~
. '·
Cl ~~
Cl · ~I ·
~--------~~~~-------------+---~
. l.C) 0 l.C) 0 co
--·-+-- oc;:ji l.C) . L.() 1.0 r-
& & & & · ~

L -
:

GOO xsoo Z500 zgo ·


G50 S2500 G75 X55 Ll . ' ........
.GOO X500 Z600" G01 Z75
NlO X44 ZlQT T050505 ssoo M3 118 G75 xso Ll
G96 S140 Z55
\ .
G85 N110 D6 F 0~25 U0.1 WO.l X47
GOO G97 XSOO Z600 ssoo X45 Z54
N20 X44 Z107 T060606 G40
G96 S180 G80
G87 N110 M2 .
GO 0 . X44 Z107 ·
G91 GOD X500 Z600 S500
M05 M09
NllO G81
G41 GOO X62 Z107
G01 ZlOO F0~18
x6o Z99
.•d
·.t
- -
. ·'
- ·":'• "~,.,. _ _ _•. - · .1 •

..
. i

':
41.

LAP PROGRAMMING EXA1viPL1t 6 !

.
t
1.
C1 I

RlD
. 30. 5
C2
~-Tr ·

~_-,.-l1
· - . _: M30>~l.50
~ M10X1.25
f
__1/J. 80 .~
60: ~j
L
~1
,. ...... ..... ~. .. _ #

+.~· ..

TOOL NO. · 1 O.D. ROUGI-I .CUT


2 O.D. FINISH CUT
. 3 CENTERING .(CENTRE DRILL}
·4 . GROOVING (WIDTH 3MM)
5 DRILJ.JJNG (DIA. 6.8)
6 . THREADING (M30 ){ lo25P)
-~~7 . .TAPPING . {MS X 1.25J:')
I. <),..
I
I
I '
.. ,X

,if\,

i
I

I· r
l. -~
i I -----·- . -·--::..,.
>ll ,,_\, __ ___ .. =·
~==~~----~~====-===--===·-=-~-~-------~~~~--------------~------------~--
..
' ' •
43
G5 ,0 S3500
GOO XBOO ZBOO M03 S1000 •

. -NLAP1' G8l·
GOO G42 ~24 ~101 ·
. ~01 X30 A135 FO .15
Z60
X40
. .x~o A15.o
· Z40
G02 X70 Z30 IlO KO
G01 X78
. X82 . Ai35 .
G40
G80
~ GOO X82 Z105 T010101 M8 (O.D.ROUGH)
G96 S220
G85 NLAP1 · D6 · · tJO -~ 4 WO •1 · FO • 3
$G84 XA=50 DA:::B E:A=O .35 .
..
-~ ,'('
,•-. ,..
i GOg. ~
X8820. Z108500 S1200.
z -~"~\'-•· ...
.....,!.-:.,, . .: .

G I
X .. . . '~ .
- ~·'.
~ . '

.@ X82 Z105 T020202 (O.D.FINISH)


· G96 8250
't:; . '
. G87 NI.APl
r~·

· .. ~-! GO 0 Y..82 ZlO 5


)I ' .

~ G97 XBOO ZBOO SlOOO


G NT3 XO Z110 T030J (C'TRE DRILL)
r. . .
~ - G0 1 Z 1 0 2 . F 0 • 6
YJ .

{: Z95 F0.05 ·
1< '
~ · G04. · FO. 5
't, ; . .
. •· <:;oo z110
)\ '• .

_ ~ .X800 ZBOO 81200 . ..


·. ( 'NT4 X40 Z65 T0404 (GROOVING 3MI.vl}
1
" G73 X27.8 Z70 I9 K2.5. FO.l D2 E0.5 ' T18
·l l ~oo . xsoo zaoo ,~1400

.Nrr5 ·xo . Z110 T0.505' (DRILLING)
. ! .

; . G7 4 XO Z7 5 K9 F(). 0 8. D3 L6 E1
: ' ·.~ G0 0 X.,O 11 0 . . , Z .J
·.· · x'so ·o .. zao o s1so o
X40 Z106 T0:606 ' (· O~D. TH:READING)
:NT6
X28.05 JZ6 8 .BGO D0.3 U0.0 5 H1.95 L0.5 F1.5 M32 M73 t-t23 .
•· G71
. , GOOX800 . Z80'0 N22 H05 . • • • :·J ";\·

M03
S350
~T7 XO Z1i5 T0767 (M10 TAPPI~G)
c',' G77 xo zao KB F1.2 5
. 1..: GOO X800 Z800 !Vi05 M;09

. ;.'·: .
..LAP PROGRAfvYfyiiNG·EXI-\.MPLE 7
G50 S3500
GOO xsoo zsoo
NAPl G82
GOO G41 . X82 Z42 .
45
GOl Z45 Al35 F0.~8
X60
-Z50 A120
X3T
zs2
G40

NAP2 G81 I()


GQQ ; G41 X43.5 ZSi . C>
a)
(")
G01 · ~38.5 A45 F0.15 (")
'Q
'U

Z33I.
G03 X32.5 Z30 L3
'G Ol ..X30
Z25
X25 Z20 40
· xis
G40
GBO
GOO G97 XS~O Z500 M3 ·S600 . I
NTAl . X90 Z51 T010101 M8 . (---O.D:ROUGH---)
G96 S150
G85 NAPl D2 U0.4 WO.l F0.3
GOO X90 Z51
G97 XSOO ZSOO S600 (

NTA2 X90 Z52 T020202 (---O.D.FINISH---)


G96 S200
. ::. G87 NAPl- ... - -~- - -- -- --
GOO G97 xsoo zsoo saoo·
NTA3 XiS Z55 T050505. (---I .D .ROUGH---)
G96 S150
G85 NAP2 D4 U0.3 WO.l F0.25 . 1
GOO X18 Z55
G97 xsoo ·zsoo saoo
NTA4 Xl8 Z55 T060606_ (-:--I.D.FINISH---)
G96 S180
G87 NAP2
GOO X18 Z55
G97_xsoo zsoo saoo
N'i!AS X34 . Z56 T07.07 (---I.D.THREAD-:-:....)
G71.X40 Z40 B60 D0.4 UO.OS Hl.S F1.5 .Ll-M33 M73 l:f.23
GOO xspo-zsoo M22
•",•.
MS M9
M2

..
;,

.I
.•'
45
LAP PROGr ~rnG EXAMPLE 8

G50 '83000
G97 X500 Z500 S1000 M3
XiB Z57 T030303 MB
G96 S120 ·
G85 NlOO D3 U0.4 · W0.1 F0~3
N100 ·GS2
GOO G42 XlB .Z35
G01 X18 Z14 F0.15
. G02 XB6 Z50 L70
G01 · XlOG .
G40
. GBO
GOO G97 XSOO Z500 S1000
Xl08 Z57 T050505
G96 8140
TOOL NO.3 . .:. I.D. ROUGH MID-FACE
GOO G41 Z50
G01. X86 F0.15
G03 X20 Z14 ..L.? -0 ~- · .- .... TOOL.NO. 5....., J.D. FINISH TURN
G0l.Xl8 Z12
GOO G40 Xl8 Z57 , TOOL NO. 1 - O.D. ROUGH & FINISH 'fURN
GOO G97 X500 Z500 SlOOO
X104 Z57 T010101 .
. G96 SlBO
·GB5 N200 D2 U0.2 WO~l F0.25
N200 GBl·
~00 G42 X95 Z50.5 .
GOl XlOO Z48
~42
X104
G40
· ·. GBO .
·<;oo Xl04 Z57
G9.6 S180
G87 N200
'
~00 G97 X500 zsoq_ SlOOO M9
.M5
M2
..l-..._ .._.. -..__J ..o....~ ............. ~ ............. _._ ..... _ _. _... _ ..... -

46
( G85+G83+G81+G80 )

/•

.....
/
___ /'/
~ --

J· . ~---/48

X30
ZlOO

~~ , r c c c c c , c c c· c c c c / c c t1
'~ ..
~ :;.~~;.

'

VTLIN[1]=1
Vl'LFN[1]=2
VTLL[l]=SO
VTLA2 [1] =3
VTLA1t1]=35 .
VTLIN [2 ]':::7 .
. VTLFN[2] =2
.· .VTLL [2] =50 .
. VTLA2
.
[2]
. =3
VTLAl [2] =35
. VWKR=9999. 999 .
1' ~
VCHKL=10
VCHKD=15
. VCHKX=120
VCHKZ=O
CLEAR
DEF WORK
p s LC I [ 0 ~ 0 ] I [ 1 0 0 ; 12 0 ]
. PF 41 [4012611 [58,26] 1. [72,60] [23~60110
L I

p F 4.I [ 6 9I 3 8 ]~,\ ' [ 8 5 I ~ 8] I [ 7 8 , 6 0] i [ 7 0 I 6 0 ] l ? I ,

. PF 41 .[88124], [100124] I [lOOI6o] I [7616o.llo


PF 4, [401 '-26] I [581'-26], [70,'-60], [23,-60] 10
PF 4, t60 1 -38.-]• 1 [85 1 -38], [78~-60] ~ · [70,-60] 10
p F 4 I [ 8 8 I - 2 4] I [ 1 0 0 , - 2 4] I [ 1 0 0 I . - 6 0 ] I [ 7 6 I - 6 0 ] I 0
I . .

. END
DRAW
.47

GOO XSOO Z800


GSO 82500
GOO·Xl2'5 ZllO TOiOlOl M3 '81000
G96 8140·
G85 NLAP1 DB U0.1 WO F0.3
.NLAP1 G83
G01 X48 Z100
Z9.0
X76 Z83
Z64'
XSO Z56
·Z40 .
X120 Z23
NlOO .G81
GOO G42 X30 ' Z105
GOl Z85 F0.15
X52 . Z78
G03 X52 Z64 L8.1675
COl X40 Z60
Z35
0 '

X120 Zl5
G·10 X125
G80
G97 GOO XB00 - ~800 .81200
GOO X125 Zllb T020202
.i
.G96 8180 _·.
G87 N100
GOO X125 Z110
G97 81200 ·
GOO X800 Z800 MS M9 .
M2

1
' ...

. LAP PROGRAMMING .EXAMPLE 10 48

. ZlOO~ Z150 ·I
GOO XSOO ZSOO
G50 .83000
G97 XSOO ZSOO· SlOOO M3
~Xl02 Z1S2 T010101
G96 8140 ¢40
G85 N1000 DS U0.2 W0.1 F0.3 M85
NlOOO G83
GOl X90 Zl50
X100 · NoTE: M85 EFFECTIVE ONLY IN LAP4 WITH G83 MODE
ZlOO ·{ . , '

NLAPO G8.1
. G41 GOl X90 Z151 F0.15
Z100
XlOl
G40
G80
G97 GOO XSOO ZSOO 81000
X38 . Z152 T020202
G96 · 8130
G85 NLAPI D5.5 U0.2 W0.2 F0.15 (M85)
NLAPI G81 ,·
---
r
G01 G41 X60 Zl51 F0.12 NOTE: Do NOT USED M85 FOR 1/D OPERATION
ZlOO
:X39 ·
. G40
. G80 ~
~

G97 G06 XSOO . ZSOO 81000


GOO Xl02 Z152 T030303
G96 Sl80 .
G87 NLAPO
NOTE: G87 CAN CALL EITHER NLAPO OR
G97 GOO XSOO zsoo · s1000
NIOOO_ HOWEVER; IF CALL NLAPO,
. X58 . ZT52 ... '1'04040A- - ~ ---- --- .. -No . M85 - FUNCTION PERFORMED.
G9€i 'S140 .
G87 NLAPI TOOL NO.1- O.D. ROUGH TURN
GOO X38 Zl52·
G97 GOO XSOO Z500 SlObO TOOL NO.2 --l. D~ ROUGH TURN
MS ,f/;;
M2 - ·1
·< TOOL NO.3 - O.D. FINISH TURN
: ~· .,,

TOOL NO.4 - I. D. FINISH TURN


LAP PROGRAMMING EXAMPLE 11
0'1, •
2 00
~

63.021
.
M3 0XP 1.5 •

; .
I.

¢60 ¢55
- - - -
. ~ .-! ..::.-.

I
\-J' I

T01 T02 I T 03
·~
I I I
I .
~
_ ; :/',
• i
!

DD ROUGH DD FINISH THREADING .


\' I

• - .... # ~

·.
. 50


DEF . WORK
ps LC I [ 0 0]
I I [ 2 00 , 60]
,
'END
DRAW
GOO XSOO ZSOO.
GS .O S2500
NLAPl G81
GOO G42 X25 Z201
GOl X30 Zl98.5 F0.15
-- · ·-zT 7·s - - .-- -- ·-- -·-·
X33.'38
r
fi G03 X35~337 Zl74~208 Ll
I1 .GOl .X45 Zl51.477
\ Z144
G02 X53 Z140 L4 ·.
GOl X55 Zl39
Zl10.979
G02 X55 Z63.021 L60
GOl Z35
· ·X62
G40
GBO
GOO X62 Z204 S670 ( ~010101 M03 MOB
NTl . G96 Sl30
I G85 NLAP~ D6 F0.3 U0.4 WO.l
GOO X62 Z204
· G97 X500 · Z250 S930 ·• ·
MOl .
X62 Z204 T020202
NT2 .G96 SlSO
.. G87 NLAPl
. GOO: X62 Z204
G97 XSOO Z250 Sll35
MOl.
X40 Z204 T0303
·. NT3 . G7~ X28.05 Zl80 B60 Fl.S D0.6 Hl.95 M23 M73 M32
' GOO XSOO Z250. M05 M09 ;

M02 .
r /


.. t
.
...\
:·"" •
I
;
i
f

J.

i.
l :I
~-

- ·'
:...l · ,

LAP PROGRAMMING EXAMPLE . 12 .


80
69
• 65
56
so .
45
30
·R38
25


C2

. 0.100 : 092
' / / '. f . _. , ,080 085
. . c .'
-10~
. .

r
M75X1.5
-F-1 068
~J5 •
45° 58 5
1 M60Xl. 5
039 045. R
- ,i.
.. ; "?',..;. )
' .

l 1

~
DEF WORK
PS LC 1 [0,0], [80,100,]
-P S . LC , [ 0 , 0 ] , . [ 8 0 , 3 9 ] , 0
- END
. DRAW
GOO . XSOO ZSOO .,
GSO S2500
(-~---~---ROUGH 00-:---:-....:-----)
G9:7 S440 M03 M08
. GOO Xl05 Z83 T010101
"
Nl ){102
G96Sl40
G85 NLPOD . D6 F0.3 U0.2 . WO.l
NLPOD · G81
GOO X71
GOl Z80 G4.2 ·E0.3
·x75 Z7.8
Z65
X80E0.45
X8S Z56. E0.3
zso
X88 E0.4.5
X92 ~4· 8 · EO. 3
Z45
G02 Z36 I37.253 . K-7.5
~-
. GOl Z25
X96 E0.45
Xl02 Z22 E0.3
G40
G80
.G97 S44.0
. GOO XSOO ZSOO .
MOl
· (-:--~~-~-~~~--ROUGH ·rn-------------)
' . g
G97-Sl000
X36 ZB3· T050505
N2 X38
G96 Sl20
G85 NLEID 04 F0~2 U0.2 WO.l
NLPID G81~ .
-~'\;,

·,
·/ ..·

53
GOO X62.5 •
GOl Z80 G41 E0;2
X58. 5 Z78 ···
Z65
,
·xo.S EO. 3 ·
X50 : Z56.E0.2
X49 E0.3
G02 X45 Z54 K-2 E0.2 .
GOl· Z32
X38 Z28 . 5
G40
G80
· G97 SlOOO
GOO XSOO ZSOO
MOl
(---------~---FINISH ID----------------)
G97 ·s1soa
X36 Z83 T060606
N3 X38
G96 8180
G87 NLPID
· GOO X38 .
·. Z83 ·
'
G97 Sl500 r

GOO XSOO .ZSOO


MOl
(------..:.~~---...:FINISH . OD-:--:------------------)
G97 .S560
GOO ·. Xl05. z83 T020202
:N4 Xl02 I . .

G96 8180 . ., •·
G87 NLPOD ~
GOO Xl05
Z83 ·
G9T S560
GOO X500 ZSOO
·, MO.l
.. ·{-~---------GROOVE OD---·-...:. _________ ...: __ )
GOO Z600 ·.
·- ·..G97. ..S42CL~ '·- . __
_ .. ._,________ ~ .
. · - -\':: ~
-~ ' . . ,.\:,

.. .

·:.~
54
XlOS Z65 . T0808.08 •
NS. X85 ·
G13 X68 Z65 D4 Ll6 FO.l EO.S
GOO Xl05
xsoo zsoo
. MOl .. -- . . ·-·---
(----~~-----THREAD 00----~-----~-------)
G97 S450
XlOS .Z95 T0303
'N6 X85
G7,l . X73.05 Z68 Hl.95 00.926 UO.l B60 Fl.S M22 M73
M32
GOO XSOO ·. Z500
MOl
(:---:---------THREAD
. .
ID----,---·- - - - - - - - - - )
G97 ·s5.30
GOb X36 Z95 T0707

G71 X60 · Z69 Ht. 5 no·. 926 I


UO .1 B60 Fl·. 5 Ll. 5 M23 M73
M32 .
M05 M09
GOO Z95
GOO xsoo ·. zsoo ..
. r
M02

.\
55
.LAP PROGRAMMlNG EXAMPLE 13
·; G8 6 COPY TURNING CYCLE

,
Tool change point

~- === --·=== -,. . .- ~


~
Cycle start point

D/2
D/2
D/2
D/2
D/2
U/2

GOO X800 Z800


GSO· S2500
GOb X75 ZlOS T010101 M3 SlOOO
G96 S140
G86 NLAPl D6 U0.4 W0..2 F0.3
NLAP1 G81
G00 - G42 X30 Z105
GOl Z85 F0.'15
- .....
X52 Z78
G03 XS2: 7;64 L8.1675
G01 X40 Z60
Z35
..
X120 ZlS
G40 ' X1.25
G80
1
;
G91 GOO . X800 Z800 . S1200
.

-.
GOO.X125 . ZllO T020202
G96 S180 . _,,··'
. G87 . NLAPl ,.·.' , "
.GOO· Xl25 ZllO
G97 S1200 ~· '
GOO X800 ZaQO M5 · H9
M2
~ . 12 0 . ...-!
56

DEF.WORK
lC)
p s LC, [ 0, 0] I [ 12 0 T 8 5 J
-{...fl.\--- - · ro
· ------lc-- END
. ,& DRAW

70 ..j ·
1-

DEE' WORK
ps LC, [ 0 I 0 ] ' [ 7 0 ' 9 6 ]
\.0~
oo;l'
& . &
a\
\.0
PS LC, [ 0, 0] , [ 7 0, 4 6] , 0 .
END
DRAW

I '

,. 50
;; ,22

DEF WORK
,. ,. I V/J'!<<<<<<I PS LC, [0, 0] 1 [12 1 70]
p s LC' [ 12 ' 0 ] ~ [ 3 8 I 6 5]

~I ~I -~+-+-
· --~+ llo
M
'&

_t_
'<t'
'&
Lll ·
\D
'&
PS LC,
PS LC,
PS LC,
END · ·
[0, 0], [10,50]; 0
[10, 0), [12, 30] ,0 .
[22, 0] I [281 40.] I 0

DRAW

:·'--.,

•'
. ·-

CLEAR - . • 1·

.DE'lf WORK
PS LC , [O ,Li,l. -·,_ , r:-·.-~
p s LC 1 [ 2 I 0 :, •YJ , <; l ' '_:
I •

PS LC,[0,0] ,'-~,'1U ~,.::·


p s LC' [ 3 0 I 0 ) . ; I ' :\'J " i _·.
PF 4' ( 0 I 2 0).' l -~ (i, 2 0 ~ T ( 1 1•. ' !_! (' ~ / ~ .; • i - ~ -~ . (_~
1
CD

- PF 4 ( 2 2 2 0 ) 1 <. ~ , .-' r ~ : r ·~ i', . 4 -~ ·. ·• l -:_ ~ ; "-1 J J 1 :J


CD
'\Sl.

~~;'},-- liOj ,·,)


1 1
PF 4,1 [0,-20] I[ ... 'J .\ .••

PF 4, [22-2 0] , ('3 ~ ., ~;.. -:~: .. ·;·:~:,:. 401 , 0


END
' DRAW

DEF WORK
P.S LC, [0,0], [12,32)
· PS LC , [12, 0), [9, 42)
· PF 4, [21, - 15), [21r.15), (49, 8), (49,-8)
• #< j•

ps· LC, [21, 0_1, [28, 15), 0 .


;'•,
.o~·'

END
DRAW

DEF WORK
PS LC,(0,0],(12,3 2 ]
\• 9 \,
28 PS LC,[12,0),[9~4 2 ]
PF 3 , [21, 8), (21, 15], [49,8]
PF 3 , [21,-8), [21 , ~15),[49,-81

........ ,----·- ._.... - ~- - ·


- - -~ ---~_ENI) __
-DRAW ·

L.
~2.Q_-1
.
4vJJ777JA 3·
,

so
~

..., I
· 20
I :- . . ~l -- t~, 3w2
1
. -l
__L....;
, 40
1--

DEF WORK
PS .LC, [0,0] ,·[180,100]
PF 4, [50120] I [70120] I [8.0150] I [40150] 10
· pF r
4 ; [ 12 o I 2 o1 I [ 14 o I 2 o I [ 15 o I s o1 , [ 11 o, 5 o] , o
p l" 4 , [ 5 0 , - 2 0 ] , [ 7 0 , - 2 0 ] , [ 8 0 , - _5 0 ] , [ 4 0 , - 5 0 ] , 0
pF 4 , [ 12 0 I - 2 0] , [ 14 0 , - 2 0 ] , [ 15 0 I - 50]. , [ 11 0 T .- 50] , 0
/

END · (

. DRAW

DEF WORK
PF 0, [ 0, 0] , 10 0 ~ D
END .
DRAW

-' I,,
_)'. ,

·-- ..... .,.,..,..._ .


59

MAIN PROGRAM· [.MIN]


GOO . X500 Z500 M5
xso Z-14 T1212
G94 G01 X-5 FSOO
M84
G04 Fl
Z21· ·- - F..l~OO - ··-· . . . ..., - -:.- ~--·- --- ~ --
M83
G04 . Fl
BARLLength lOOOmm .
. ·1 pc. 35mm

xso
GOO G95 . X500 Z500
G50 82500

M02 '!

...
I •
·'

·.

20
. SCHEDULE PROGRAM SDF] · t..
PSELECT" ABC. MIN , , , · Q27
END
l. .-----· No. of repetition

'---~---- Sub:..program filename ·.


.,___...:___ _ _ _ _ Program name ·

Main program file na me


60

. .
Compari son of User Task 1 and User Task 2

. Function and Contents User Task 1 User Task 2


Usable programs .Main program Main program
Schedule program Subprogram
' ' Schedule program
System subprogram
Control statement ·~oro statement' 'GOTO statement'
·function 'IF statement' 'IF statement'
'CALL statement' ..
'RTS 3tatement'
'MODIN statement'
'MODOUT statement' 'GET/
PUT statement' 'READ/
I
WRITE statement'
Variable function · Common variables Common variable
Local variables Local variables
System variables ·· System variables
1/0 variables
'
Operation function
Calculation
Expression -·-··
+,-, *· /, 1+, - , *·'· -·
-~-· · (fcil.Jr rules) -- (four rules) ~

Comparison 'LT','LE', 'EO' LT','LE', 'EO'


Expression · . 'NE', 'GT', 'GE' '~E', 'GT', 'GE'
Bool ean
. Expression
-~ . 'OR', 'AN D', 'EO R',
·ror

l~
Function 'E:N', 'COS', 'TAN', 'ATAN',
'A-AN2', 'SORT', 'ABS', 'BIN' ·
'B~D', 'ROUND', 'FIX', 'FUP',
'DlOUND', 'DFIX', 'DFUP!, .
'MOD' .

[Supplement] Program eitt'ler a space or a tab code following control st\tements indicated below.
'GOTO', 'CALL', 'RTS', 'MODIN'; 'MODOL!T'

•; t
·' I .
.. J ,
{1) Arithmetic Expression 61
·Operator Meaning Example Rule and Remarks
+ Positive sign +1234
- Negative sign · -1234
+ Sum (addition) X= 12.3tV1
- .. . .. : ..
. . - Difference (subtracliorjl X= 12.3-V1
Product (multiplication) X= V10;!:10 . '
*I
~

Quotient (division) X=V11[10


·•
{2) Comparison Expression - •.

Operator Meaning ·Example Con tents Rule


LT (~ess :!:_h~n. <) IF [V1 LT 5] N100 Jump to N100
wh en V1 is less
than 5.
'
LE (Less than or IF [V1 LE 5] N100 Jump to N1JO
.§_qual to,; ~ ) when V1 is less
' than ore quarto 5 .
..
EQ (EQual to, ~) IF [V1 EO 5) N100 . Jump to N1 00
when V1 is equal to Provide a
5. space on either
NE (Not .§_qud to , ;e) . IF [V1 NE 5] N100 Jump to N_1_0_0---i side of the op-
when V1 is not erator.
eqiJal to 5.
GT (Greate•:!:_han, >) IF [V1 GT 5] N100 Jump to N100
when V1 is greater
than 5.
GE (Great1r than or IF [V1 GES] N100 . Jump to N100
~qual,~) · when V1 is greater
·-~ than ore qual to 5.

{3} Boolean Expressio7 ·


.~ ' r

Operator Meaning Example Rule


OR Logi:ali surri .· VDIN [11] OR VDIN [12]
AND Log';al product VDIN [11] AND VDIN [12] Provide a space on .either
EOR Excusiye OR VDIN [11] EOR VDIN [12] side of the operator:
NOT Ne;ation _

······ ·- _.... ---- -- -- . -- ··--·--· -- . . - ... ..

Combinathn of Operations
{1) ·. Oreratins and
. functions explained in the previous page c an bJ combined as needed.
.. . .

· X= V t V2' - V3 + V4*COS [30]


..
(2) Desigr:iti_ng operator precedence by [ ]
:
Oper or preGedence can be determined with the use of[ ]

Exarpfe:

.
.
V1:= (V2 + V3]*V4 +SIN [[(V5 - V6]N7j + V8]

.. ~- '·\· -'---0---- --0--


. ,l ,, .
~- ----%--·
5

..
r '
..
I'

·. . •
..
-
·.··· ..
. . l

b.
62

(4) Functions

.Operator Meaning Example Rule and Remark


SIN · Sine X= 15*SIN [22.5] The numbers after the function
cos Cosine . operation :symbols must be en-
Z = 15*COS [22.5]
closed using T and 1'· In addi-
TAN Tangent . .. Z = 15*TAN [12.5] tion, they are used for specifying'
ATAN
.. Arctangent (1) the priority of operation execu-
X= 15*ATAN [22.5]
Value rang: -:90° to goo ·tion order.
'
ATAN2 Arctangent. (2) ATAN2 [10, 1q) When two elements are specified
in "[LJ]", place a comma","~-
SQRT Square root X = 15*SQRT [224.5]
tween them. :

ABS Absolute value .. . ~ABS [V15]


. ..
The position of a decimal point is
BIN Decimal to binary BIN [V15] 4 BYTE . determined in accordance with
conversion the unit system selected.. ·
BCD Binary to .decimal BCD [V20] 4 BYTE Unit systems for angle com- ·
conversion ..
mands are:
ROUND Rounding off fractions . ROUND [V5] .. ..
'
1 deg. for 1 nlfT,I and 1
FIX Cutting off fractions FIX [V7] . inch unit system, 0.001
FUP Counting fractions as a FUP [V15] . deg .. for 1 !lm unit system,
whole number - 0.0001 deg. for 0.0001 inch
unit system.
DROUND Rounding off the frac~ DROUND [V20]
tions to three decimal
places (metric system) or
to four decimal places.
(inch system) · '
OF IX Cutting off the fractions DFIX [V20]
blow the third place of
decimals (metric system)'
or below the' fourth 'place
of decimals (inch system)
DFUP Count the figures below DFUP [V21]
.. the third place of deci-
rriats (metric syst em) or
below the fourth place of
decimals (inch system)
as a whole number
MOD Remainder MOD [a, b]
(a - fix[a)bJ*b) - - - - - --- '

* The value' of ATAN2 [a, b] represents the angle at' the point defined by the coordinate values (a,
b) . Its range is from :-180° to 180°:

·- ·:-- ---
..
·- '1,
_:_,:,;~~ -
. . . . r_· ./ ~~ Lf~ )
~5083000/7&
63
j . .

< ·(STOPPER . PROGRAM)

R= O
NlO · R=R~l
.IF .[R LT · ~3] NEND

.. ·.. (CUTTI.N G PROGRAM)


. .. ' . ..

VZOFZ=VZOFZ-19.5
· GOT·o NlO ·
' .
NEND VZOFZ= 12345.124 I

M5 • r'

· M2

.~ . . .
PART-OFF
TOOL
Z ZERO SET
12345.124
u
II
.,

19~5 19 . .5 19.5

- · f; .
~.
:• ,•,
64

·. VTLIN [5] = ;J-9


VTLFN[S] = l
VTLA~[5]=180
VTLW[5] = 2.5
VTLL [5] =30 .
DEF WORK
p s LC I . [ 0 I 0 ] I . [ 16 0 ' 4 0.]
p s . LC I [ 0 ' 0 ] ; [ 16 0 ' 2 0 ] I 0
END
DRAW .
GSO. S2500
. GOO XSOO ZSOO
G97 SHOO M3 .
GOO X44 Z160 T0505
AA-O
NlOO AA=AA+l
IF . [AA . GT- ;f]N2o6 ·-- I

GOO G91 Z-2 T0505


.G01 G90 ~40 F0.15 .
G9~ X-5 Z2.5
G90 GOO X44
G91 Z-25.5 T0515
r
G90 .GOl X34
GOO X44
G91 G01 Z2
G90 X40
G.91 . <:;01 . .X-4 Z-2
( G90 X19
· GOO X42
GOTO NlOO
N200 xsoo zsoo

u
MS 'M9
M2

· TOSOS / . "- TOS~S

------ C2

~1 · ~[·· ~~ :-_
· -11-
"' "' L:0 ---b / 7 7 7 7 7 7 7 7 7 7 7 71
I.. 2s ..... I
. . 160
.-

.,
.;.
.,
~ .
... ;,,t

~... i: ~
.;~ -~:.~:'»
_.;; ..-:: ::.

. :e-
65
~ t of System Variables

Variables Contents Setting Range Suffix ,


VZOFZ Z-axis zero offset
·vzoFY Y-axis.zero offset
VZOFX X-axis.zero offset
VZOFC C~axis zero offset

VZOFW ·W-axis zero offset


None
VZSHZ Z-axis zero shift ·-
VZSHY Y-axis zero shift 0 to ±99999.999
VZSHX X-axls zero shift
VZSHC C-axis zero shift
VZSHW · W-axis zero shift
VTOFZ Z-axis tool offset
VTOFY Z-axis tool offset·. 0 to32
· VTOFX X-axis tool offset 0 to 64
,VNSRZ Nose radius compensation for Z-axis 0 to 96. ·
0 to ±999.999 I
VNSRX Nose .radius compensation for _X-axis
VPVLZ Positive variable limit on Z-·axis
(machine coordi.n ate system)
VPVLX Positive variable limit on x~axis
(machine coordinate system)
VPVLW Positive variable limit on W-axis
(machine coordinate system) '
0 to ±99999.999
VNVLZ Negative variable limit on Z-axis ..
(machine coordinate system)
VNVLx Negative variable limit on X-axis '
(machine coordinate system) None

VNVLW Negative variable limit on W-axis


. - . --
(machine coordinate system) ····· -- -··· - --
VINPZ Droop amount in Z-axis
VINPY Droop amount in Y-axis o to 1000
VINPX Droop amount in X-axis · (0 to 10000)
VINPC Droop amount in C-axis
VTRTS T-axis rapid feed rate ( 1/1 o rpm) 1 to 32767
VTLGN Tool group number 0 to 24
VTLSN Number set for tool life
0 to 9999 1 to 12
VTLCN Number of machined workpieces for tool life
1 to 20
VTLST Time Set for tool life
0 to 359999 1 to 96
· Cutting lime for tool life-
VTLCT
; -.
VTLSA Tool wear amount set for tool life 0 to 999.99s,l
66

Variables .. Contents Set1ing Range ·s uffix


VTLCA Adiye tool wear amount for tool life 0 to 9999.999
,
VTLOA . Tool offset number (group 1) 0 to 32
. VTLOB Tool offset number (group 2) ·.. Oto 64
VTLOC Tool offset nurnber (group 3) Oto 96 1 1 to 12
I
VTLU$ . Variable which indicates that the tool was used in a , 1 to 20
program ! 1 to 96
. VTLNG Variable which indicates that the tool was evaluated
0/1 :
·as NG in gauging ..
v ;-LLF Variable which indicates that the tool has been used
to the life
VGRSL Tool number s eleCted in the group 0 to 96 1 to 12
VGRLF . Tool life variable (group tools) 1 to 20
.. 0/1 ' 1 to 24
'VGRID Tool index occurrence var' :tble (group tools)

I
VXMPO Input position number fo~ post-process gauging unit . 0 to 12
VXMCD Offset amount 0 to ±999.99.9
VXMON Tool offset number to be offset 0 to 32/64/96
VXMTG Tool group number to be offset 1 to 12/24
. VXMOG Tool offset group number to be offset 1 to 3 I

VXMXZ Axi s designation for offset (0: X-axis. 1: Z-axis) 0/1 1 to ··12
VXMNC Offset skip counter
VXMCO Co-nsecutive counter for + OK
. Oto 99
VXMMC Cou:-~ter ignoring offset
VXMMO Counter ignoring + OK
.VXMMD Storing the result of previous gauging 1/2/4/8/1 6/32/64
YXMD R Data read/not read variabl e · 0/80
VRNGZ Z-axis datum ring position
(program coordinate system) ·· None ·
VRNGX X-axis datum ring position
(program coordinate system)
VSNZ Z-axis sensor position (machine coordinate system) · 0 to ±99999.999
1/2
VSNX . X-ru<is sensor position (machine coordinate system)
VIMDZ Z-axis in-process gauging ·data
1'to 12
VI MDX X-axis in-process gauging data
VPFVZ Z-axis pitch error compensation value
VPFVY Y~axis pitch error·compensation value
0 to ±0.999 1 to 120
VPFVX X-axis pitch error .compensation value _.... -· - - --
VPFVT CT-axis pitch err~r corr~pensation value
VPCHX X-axis pitcti• ,
2.000 to 65.000 None
VPCHZ Z-a.Xis pitch ~- .
V10M Tool offset number A of tool at ATC 1st position
..
VTOBA Tool offset n~mb~r B of tool at ATC 1st position 0 to 96 1 to 96
VTOCA Tool offset nu~ber C of tool at ATC 1st position
I .

. 67

·'

Varrabl~ s

VTOAB
~ - ·- -··· --- · Contents.·
,. - - -- ----
Tool offset n u~ber A of tool at ATC 2nd position
-- .. ·Setting Range
- I S \.Jff1x .. .
·-:--- '

VTOBB Tool. offset.number
.
B .of tool at
' "-
ATC 2nd position 0 to 96 1 to 9G
VFOCB Tool offset number c of tool at .ATC 2nd positio~ . .
. '· ·-
VT;HRZ Thread phase matching ·amount in the z~axis direction
f · 0 \o ±99999.999 None
· VllHRX Thread phase matching,am·~unt in the X-axis direction
VLMON Load monitoring axis com.ma~d
··: . '
. 0 to 127 1 to 64
VE!NT Interruption permitted axis com111and
-VBNCT Block number count or not count
..
Oto 3 \
i None
VPWSP Parts catcher work chute position '
0 to ±99999.999 ·
· vPWTP Parts catcher work tra!}sfer position
VTLIN Tool classification code number 1 to 38
VTLFN Tool form code number ..
.. o to 4
·--
VTLA1 T<?ol nose angle 0 to 360.000
·-·
VTLA2 · Cutting edge angle .. o to ±360.000
'
\rTLL Tool holder ·length/projec~ion/~rilllength
I
-( to 12.
VTLD Tool holder dia./drill dia.
.. --- 'i to 20
VTLW: Tool width - '
: {' to 96.
~IZN Tool interference point; ZN o to 9999.999
. VTIZP Tool interference point; ZP
\tTIXN Tool interference point; XN ( ..
VfiXP
r .-
Tool interference point; XP -.
. .
\fTIPN Tool interterence pattem number Oto 2
VGRIN Tool classification code:number 1 to 38
VGRFN Tool form code number- .. 0 to 4
.\fGRA1
,. Tool nose angle ., o to 360.000 l 1 to 12
I VGRA2 Cutting edge angle 0 to ±360.000 1 to 20
. ,=:· .

VGRL ·.· Tool holder l e ngth/proj~ction/drill length 1 to 24


\I_GRD Tool holder dia./drill dia. 0 to 9999.999
VGRW
., Tool width ·-

~VsiDC Spindle orientation (pin type/electric type) G/1 None


l
,
VEXPO RS232C post-procesf?:-gauging 'point 0 to 9 .1

~-·
VEXTR RS232C post-process:·gauging turret
V EXAX . RS232C pos t~process 'gauging axis 0/1
. ,·,
-VEXGF RS232C post-process.gau ging group flag .
'
,VEXTO
.. RS232C post-process'_.gauging tool offset number 0 to ·32
1 to 12
.. I
VEXOG
.,
V EX OK
.
RS232C post-process gauging offset
.
growp
.

RS232C postprocess gauging r.esult . ·


number o to 3
0/1
'
L

' .. - .
·. VEXFB : RS232C post-process gauging feedback value. 0 to ±999999
........l-
VEXDR RS232C po_s1-process gauging
.
data end .variable
. . 0/80 None
! ~

. I
I
l

68
.\;

~

Variables Contents
I Setting Rang~ · Suffix·
.
VSIOZ Z-?Xis command target point .· ! ..-
i

(program coordinate SY.stem) • .~


~
. VSIOY Y-axis command ta.rget point 1
(program coorqinate syste.m) ~~

VSIOX X-axis commandtarget point "


~~

(progra~ coordinate syst~m) .


None
- ..
VSIOC C-axis command target point · ·~
(progrC;lm coordinate system) ..
1;
VAPAZ. Z-axis active point (machine coordi~ate system) . .:~
l

VAPAX X-?Xis active point (machine coordinate system)


· VSKPZ Z-axis sensor touch point
.- (machine-coordinate syst~m) --- --~~----- ·- . --- . -·· - .. . . . ~
·--.. ·. - - -·
VSKPY' Y-axis sensor touch point . '
1 to 2
.(machine. coordinate system)
VSKPX· X-axis ·sensor. touch point·
. (machine coordinate system) .
VSKPC C-axis sensor touch point . .. READ ONLY
1/2
(machine coordi!!ate system) · '
,
VETFZ Tool offset amount for active tool in Z-axis .
VETFY Tool offset amount for aCtive tool in Y-axis
VETFX Tool offset amount for active tool in X~axis

I~ VDIFZ
. VDIFX
DIF in Z-axis
DIF in ,X-axis· '
. VET ON Tool offset number of active tod
r VETLN Tool number of active tool
. - VAPPZ Tool retract irtervention point in Z-axis None
:
VAPPX Tool retract intervention point in X-crxis
VMIRZ Coordinate system direction match flag ;
,..-. . ($00: OK, $80:N0)
I
' VRSTT · Sequence res\art ($00:0FF, $80:0N)
- - . ~ -

- -
.VPAI · :n: .(Circular constant) , :

VCNGC Post-process gauging NG consecutive counter O.to 255


VXMDS .Post-process gauging ~ata set variable 0 to 128
.. REA~ ONLY
VTOPC Top cut judgment
.• .. '
-. .VCEJM . CEJ MATIC read data · 0 to ±99999.999 1 to 1.2 ·
; . VMCN . Gauging counter 0 to 9999 1 to 32
VMDT . NB turret data transfer variable
..
UNLIMITED
VXMBD · Binary data of gauged BCD 1 to 12
VXMAB . Turret designation for. offset 0/1
VWKCS Work count~r
.... . setting value. . 0 to 99999999 1 t9 4'
VWI<CC Work courit~r· counting value ,
VUACM User alarm comment Characters-strings
. 1 to 16
.. · (MAX 16 Characters)
. - - -- - - -

. .
..
..
I

t : ·,
..

Variables Contents Setting Rang e Suffix ,.


VSNWD ·. Dislocation between the sensor center and the
' sensor head in rotating the C-axis forvvard rotation
RE:AD ONLY
VSi'lTU Dislocation between the s·~nsor center and the
s~ nsor head in ·rotating the C-axis reverse rotation None
VRUND 360° constant -
VUNIT Unit system Oto 7
·'·
<:
System variables are
. . not available' depending on machine specifications.
;
:
(Example)
- VZOFW ..... W-axis zero o'ffset
..
(available only for the programr:nable tailstock specification)
VZOFC .... ·. C-axis zero offset
(available only for the multi-machining specification)
VPFVZ .... .. . Z-axis pitch error compen_s~tion value
..
(available only for the pitch error compensation specification)

:-·
l':

,,.
l j.
f

.;

. ).·
.•.
'
:'!i .

I
-. ~~

.. .
·'

:_t \_
70


SUB~PROGRAM
FORMAT :CALL 01000 Q2·Vl=l0 V2=:=60 DX=3 DF=0.15 •
....
.,
Local variable DX=3 ·;

·· .
Common variable V2=60

Repeat . sub-program 2 times

...
S~b-porgram No. {name)

:•

· . main program filename / s~b-program filename


·/ . ·. /
TEST.MIN TEST.SSB
GSO S350Q 01000 --- sub-program no.
GOO XSOO ZSOO G91
xao· ZlOO . TOlOlOl S850 M3( ~
zao

--
/
CALL 01000
Z40 .
CALL OlOOO ·
... __ --
--
-- . _.-/

( ---------
GOO XSOO ZSOO
'M:2 '-.·· ;.· :. '''""'·--- --~ · -. - .. -
.
:::.--:- ·· ~---:-:-----· -
~
-.......::~ G90 .
~ RTS - (Return to main program) ···
02000 '
G91

(
RTS
-.'.··
f.
·. l
"·"··
..
. ..... ~. - ·. -·: -.-- _..... .. ..-.. .- -.--· --:--.-...-:----. - - · ----=

'
CYCLE TilV.IE REDUCTION FUNCTION

. l\1166 ·~ Fi·e·e. turret i.ndexing position


. turret can be indexed at any position without moving
to the axis liniit.

. Eg;TOlO~ l\1166 (single block effective)

M65 ~ lgttore ai!Swer signal for T cotnmand·_ :


Axis nlove withou-t confi_rn1 the turret indexed position.
' I

~. Eg.GOO X100 ZlOO .TOlOl M65 M66 .


(single block (:ffcctivej .
Turret move to XlOO ZlOO and index turret
· sinurltaneous1y.

M63 -::-.Ignore spindle rota·tioil ansYver .


~xis n1ove vyithoufF(n)firm the spindle rotation speed. ·
.
· Eg. GOO XlOO ZlOO M3 82500 1\1163
(si. ngl~ block effective) ·
·Turret rr1ove to XlOO ZlOO withotit Waiting spindle to
reach 2500rpm. ·_

..

M64- lgnoi·e genen\l M codes other than M63


·,
Eg. GOO XSOO ZSOO l\1155 ~164
(single block effective)
Turret move to Iin1it position lvithout waiting tailstock
quill to reh·act. .
\ .
·-··

.\ . ..

·.·· -·:--·-- - - ·· ··-:--· ·


-r·
. ·-. -.- ... ----....-: --·-----

·-
LOAD-MONITOR 72

VLMON [ Part No. · l [ Monitoring axis no. J ·


\" \ \ 0 .· OFF

LOAD MO""~ T T OR ON 1 to 6 1
1 X AXIS
2 Z AXIS
3 X & Z AXIS
. 4 C AXIS - .
.. :.- -.-- ·:-· -·- - -·... ·--..-.- . - '8 S~INDLE , .
16 M-TOOL SPINDLE
32 W-AXIS ·
64 SUB-SPINDLE .

Automo c setting procedures:

AUTO
·AUTO ·
CYCLE SET
SET
OFF

To moni t cutting · process

-----l·ENrTo~
PROGRAM EXAMPLE
. (
M216 ( Rapid feed monitoring off
GOO X100 Z150 T C ~1 01 : 1

VLMON[1]=1+2 G01 X z' F

CUTTING PROC ''

r- j
Vi.MON[ 1 ]=0 ·
GOO XSOO ZSOO
X100 Z150 T020202 ...
VLMON[2]=2 GOl X Z F

l. CUTTING PROGRAM
I

I
-VLMON [2] =0 GOO XSOO· Z500
M2l..S MS M9. ( M2 1'5 Rapid feed monitoring on }
M2 ..J:,. .
.. } .....

.;;....._ ~ ~- ·' .; ··~ ~ ~ ....... t f!';.·


-I
I

.,
. 73
SlOC ·LOW CA I~BO N STEEL

RO UG HING
CUT DilL · CUTSPEim FEED RATE CUT DEPT
O .D.TURN ING f-~ 24 1 . 0.356 3.048
I.D.TURNING f- ~ 201 0.305 l. 524
FACING ·.t 240 0.356 2. 007
FACING t 200 . 0.203 . 1. 016

FINISIIING
I
. CUTTING SrEED 250
FJNISIIING STOCK X-AXIS ' •
0.406 ..
. FINISHING STOCK Z..AXIS 0.203
FINISHING FEEDRATE:-
v ' ROUGH 0.305 -
'V v. SEMI-FINISH 0.203
..
'VV. 'V FINISH 0.127 • '

vvvv FINE FINISH 0.102

THREADING
THREAD PITGII-· ~ - .- CUT_SPEED . ·--· - ··-- CUT. DEPTH FINIS H .STOCK
t'rmit · or less 140 0.305 0.051
1.5 mt1t. or less 140 0.356 0.051
. 2mm or less 140 0.406 0.051
2.5mnr or less 140 0.406 0 .051
3mm· or less· 140 0.406 0.051
4mm . or less 140 0.406 0.020
'
5mm or iess 140 0.406 0.020
J
5inm · more 140 0.406 0 .020

--~
.( TAPPING .
I CUTTING SPEED
. .
12

ROUGH GROOVING
TOOL WIDTH CUT SPEED FEEDRATE . CUT DEPTH
3nun oi-less too· '.0.102 1.524
Smm or less 140 0.152 2.007
~~ ... .. ..
..
: 8mm or less 140 0.203 2.007
" .12mm -o·r less · 140 0.203 2.007 '
20mu1 or less · 100 . -· 0.1 52 3.048
20t"n m mo re 80 0.102 3.048 :
~J
- FINISH GROOVING
f'·l (
CUTriNG SPEED ' . . 122 ..
I I~'INISIIING STOCK X-AXIS 0.203
I
FINISHING STO CK Z-AXIS 0.102
I
I FINISHING FEEDRA tE :-
,
I 'V ROUGH 0.305
'V V SEMI-FINISH. .0.203
I - .
·j . : vvv ·FINISH 0.127 " . . .
I
I
' 'VVVV. FINE FINISH . . 0.102
r
.>
t ·;
: ...',.
"
j
I
I

: I
·•
.
: -. j

;
lr

~
..
. -·· - ·----·· . --- --

Potrebbero piacerti anche