Documente Academic
Documente Profesional
Documente Cultură
n:~~;
-:-D
3.8
-'--
...,- .,.
1 -
G-Code Table (2/2)
-
G83
G84
09 Peck drilling cycle
Tapping cycle
B
B
G84.2 Rigid tapping cycle o
G84.3 Rigid counter tapping cycle o
G65 Boring cycle B
-
G66
G87
Bori,ngcycle
Backboring cycle
B
B
G66 BOringcycle B
G69 Boring cycle B
'G9O Absolute command B
03
G91 Incrementa! command B
G92 Alternation' of work-coordinate system B
00
G92.1 Work coordinate preset B
G96 Canned cycle Initial level return B
10
G99 Canned cycle reference pOint level return B
".
..;' .
List of M Codes
.,MAKINO
List of M Codes
MO Program Stop
M1 Optional Stop
M2 End of Program
M3 Spindle CW Start
M4 Spindle CCW Start
,'I'j,
M5 Spindle Stop
M6 Automatic Tool Change
M7 Mist Coolant/Air Blow ON
M8 Nozzle Coolant ON
M9 Coolant OFF
M10 4th Axis Clamp
M11 4th Axis Unclamp
M12 5th Axis Clamp
M13 5th Axis Unclamp
M14 BTS Arm Advance (Movable BTS), Tool Length Sensor Cover Open
M16 4th Axis Mirror Image ON
M18 BTS Arm Retract (Movable BTS), Tool Length Sensor Cover Close
M19 Spindle Orientation Stop
M20 BTS Check
M21 X Axis Mirror Image ON \-,'.
"\1
M22 Y Axis Mirror Image ON
M23 Mirror Image OFF
M26 Through Spindle Coolant ON
M27 Tap Oil Mist, Tap Oil Jet Mode On
M29 Unconditional Power Out
M30 Part Program End and Repeat
M31 Workpiece Auto Measuring Mode
M32 Tool Length Auto Measuring Mode
M33 Tool Length Circuit Check
M34 Workpiece Auto Measuring Spare Tool Call
M35 Workpiece Auto Measuring Pallet Unload
M36 Prior Tool Check
M37 Tool Data Register Mode OFF
M38 AC/SL Data Temporary Alter Mode ON
M39 AC/SL Data Temporary Alter Mode OFF
III
M45 Tool Length Circuit Check
I
M46 SL Lower Limit Coefficient Setting 125%
I
'
Ii I
M47 SL Lower Limit Coefficient Setting 0%
M48 M49 Mode Cancel
M49 Feedrate Override Cancel
M50 AC Coefficient 100%, SL Coefficient 200%
M51 Auto Reject Mode ON (M52 Mode Cancel)
M52 Auto Reject Mode OFF (Reject Inhibit for Alarm)
M54 Tool Offset Data Negative Register Mode
M56 Tool Offset Data Transfer Command
M57 Tool No. Register Mode
M58 M59 Mode Cancel
M59 Spindle Speed Override Cancel
M60 Pallet Change
M61 Pallet Change
M62 Pallet Change
M63 Pallet Change
M64 Pallet Change
M65 Pallet Change
M74 Custom Macro Interruption Invalid
M75 Custom Macro Interruption Valid
M77 Through Spindle Air ON
M80 Pallet Change
,.,;"
M84 Pallet 1 Load Check
M85 Auto Measuring Approach Mode
M86 Auto Measuring Rapid Mode
M88 APC Shutter Open 'Yj,
M89 APC Shutter Close
M94 Tool Data Delete Mode ON
M95 Pallet 2 Load Check
M97 Ceiling Shower Coolant ON
M98 Sub Program Call
M99 Return to Main Program
M100 Cleaning Air Off
1-4
.. «.
- ----
....
What is Programming
./ Programming is the process of creating a set of commands such,
as cutter movement, feedrate and spindle speed, in order for the
machine to perform some operations.
~.
./ When programming, always base on the principle that only the
cutter moves while the workpiece is fixed. <,.,C\.
.Ii
"
"
'i; Types of Communications
./ ONC link - a software that allows programs to be transferred from
computer to machine & vice versa, using RS232 cable. Machine
can run on drip feed mode when memory space on the controller
is not enough. Therefore machine is dependent on computer.
.?:;
Machining conditions f".
I'i-
.':~~~: .I
:u..
:;'~j'
i' . ~t
,i ...
Generate tool path
. ~ '
;~!'f1i
and progran1
.~~
,"-'r.
';.;.
:~"'~.
.~:! i~
1';),
~~
~~~
"''''':',.
... ':"if~I;t.
~
'"
,;,.~~~.
t t~.ff:'
Transfer of progrmTI
~
Machining
I,.
4
, Configuration of Program
,~ !',"
l ,
§gguence number 'N'
:1~J
J~~; This can be omitted. Used for easy access, to program during changes.
'i(.
Notes :
,/ Each sentence of a program ends with; ( ~nd Of Block ).
.',' F == Sz x Z x N
"
Sz : Feed per tooth (mm/tooth) [Given in cutter catalogue]
Z : Number of flutes
F : Cutting Feedrate (mm/min)
.,:,(
N : Spindle Speed (rpm)
6
I
Example. . .
~
I(
..
lit
W,I',
11
,.'
c
.
I
:;.. l'~I',:. ..'
-iBl.
.[
. ~1JjH'
,[!~I:
.:~{tl!:. F = O.05x2xll00= 115mm/min
i~1
.-..----.--.
..'
- --.. -- - --- .
'., M30 - End of program and rewind. Ithas the same function as M02
;.(: but it will search for the head of the program (rewind) after
completed all operations.
'1N&';;
M07 - Blown air or mist coolant is applied.
)\
;~I~~,
~I
M19 - Oriented Spindle Stop. When using this function, the spindle
".:
rotates and stops at a predetermined position. It is mainly used in
Auto tool change and boring processes.
~,1..~~1:
I(~'~~l
t;:!:' )f~~)/.'
;~. :".. .,.
((
.,J;*~
,; ;'1'-/."
'" ~:~~~r', ,
... ..~i
9
-"-"-'-'
.
"
,t
.
Wor k C00.rd.In",..e
at S
" .
. .
.,ystem . .
. · .' ;./. j
.', .' ·
X3
' ')
X2 -
1"\
Y...... Xl
MaChineOrigin
... '.
. ..
r=-- __
IT .
I L' t=@ . ~
~ ~
.
Y4 Y5
Y6 "iI -!/56 ~( YI X+
,I ~G57 I G55 G58
"~ - :
L__ l- ] ltj X JI
X4
X5
X6
W orl( SettIng rroceaure P4
h1~
o Mount workpiece on machine table. 3Z.f:~probe
Pi P2
t.) Press P~S button on controller followed by ";}~ -L-IL ':'-.[/',
'~.fd ~.r '~~~r:~',j
REL softkey. Workpiece
"
P3
Press 'XQ' followed by PRESET softkey. This
will set X to zero. Also, set Z to zero, so that all (Relative)
values will be taken from the same Z level. X 0,000
t
:ril.
if&:
fl."!
;~
Y -123,456 ~
--
-'Jfu.!
~~
..
,.'
.~~ Bring probe to touch workpiece at position P2. Z -90.789
;i!:,J. '.~.
..:':>.r
' ''
...t~,
i '''
The screen will display certain X value. Divide I
Preset Origin l
i: .~
, . ,.'..
~
;~i STEP (3)
.~i( ..~(~;~ ':~~.
y,;t
the X value by half, then input the calculated
"",
:1:* :~:
~:.t
~
~\ value by pressing 'X and the value '~followed
(Relative)
i~~:
by PRESET softkey. .
X -234,765
~1i':j~t;
;. .:
" Repeat step C)and e .forpositionP3 and P4 Y -123.456
Z -90.789
for Y axis, but pressing 'Y' instead.
;tJ.~
'l~_1f,'Jj
STEP (4)
o Bring probe to the position where REL screen..
<~~~;<.;
shows 'XO'and 'YO' 11
h
.---...--
" "'.,n".-_. _._..__..______.._.___
! !.,
ABS and INC Command
Up
G90 - Absolute command. Specify the I y+\
next movement with reference to the
work zero point. . t G91
y+ ~
00001(Abs); 00002 (Ine);
A G90 GS4 Xl0. Y20.; G90 GS4 X10. Y20.;
."
....... 51000 M3; 51000 M3;
40 "'''''' D YSO.; G91 Y30.;
~B X30. Y30.; X20. Y-20.;
Yl0.; Y-20.;
20 XSO. Y40. M5; X20. Y30. MS;
M30', M30;
x+
13
" Wark Setting Procedure
& Press OFFSET SETTING button, followed by WORK softkey and bring
cursor to selected wcs, egoG54
(3 Press 'XQ' MEASURsoftkey and'YQ' MEASUR saftkey. The X and Y
zero point of workpiece will be recorded into machine controller.
, .
o Put the first cutter into spindle and a gauge block on the workpiece
surface. Bring down Z axis so that cutter touch the gauge block. Let's
~
say the gauge block is 14mm.
;f;~
...
"m> At the work setting screen, press 'Z14.0' MEASUR saftkey. This will set
;1
\i~l
.t~:'
the Z zero point of workpiece into controller.
':'h" r;"
...
1.:",'~~
s~ EXTX..AQQ.. G55 X ...Jl:QQ.. EXTX --.2:RL G55X
J'j:lY-,
y y YiQL Y
".},t" ,',,'
z Z 0.00 Z 0.00 Z 0'.00
~L~1r~:::;;i'"I .;, ,;"'"
,tif"!;<,'.1i~ J{ "'J:flt
."
I'j~'!', "'::)~'!:', (i'.:rN'/"
~',.. .
E '
.u...XerC1S:e,..:. }
Start from zero point and return to it in clockwisedirection. Use 1200 rpm &
F125 to create program under absolute and increment modes.
y+ - -- Rapid positioning
- Cutting feed
5 7 .8
40
20
..~
-
L.In e ar Movemen. t!.,'
.
' . :'.. . ," " " ., '.',' ", ~
.'
'. .. /
. . .G01 - Use for cutting straight lines. Feedrate must be specified with F in
the program.
:Hx
!
I':'
;IF
iilii:
y+ ---
-
Rapid positioning
Cutting feed
G90 G55 GO XO YO ;
51000 M3;
. G90 G55 GO XO YO ;
51000 M3;
-
Q£)
i~~, .
; \;j
: . '. ..
'/1,,,.
HiJ!:
": r
~r
!
'
l
~
", :. ""..
, ,
ill!
2. ':> ,3
Gl Y50. Fl00; Gl Y30. Fl00;
Il.... :If~i;
l
: (... :..".
'Jill; (::':":
'.~~ .Im..
:!r,i!i
:pl!,.
j~h' :
40+ I I X50.; X30.;
Y20.; Y-30.;
:i;i:
X20.; X-30.;
.LI 14
20+ I' < GO XOYO M5; GO X-20. Y-20. M5;
M30; M30;
.. .
,l'/( , . ,
. , . , . . X+
20 40
~
.-. ......._...
~.. .~ ~-_._--......
Exercise 2
Start from zero pointand returnto it in clockwisedirection.Use 1500 rpm &
F150 to createprogramunderabsoluteand incrementmodes.
60 -~
40 2
20
x+
20 40 60
.-
.1:'
;.~:)
: Circular Movement
G02 - cutting circles or arcs in clockwise direction.
. .G03 - cutting circles or arcs in anti-clockwise direction.
,..;;.. 70 t //
.-------------
51000 M3;
G02 X40. Y10. R30. F100; 0
I .
M30;
50+ IA
------
! "'j I
U
I '. I . 01111 (Bigger arc);
#"\
I {:J \ I .
-r I Q'?) \I .
.'.' {i,
G90 G54 GO Xl0. Y40.;
30+ I
lO+-'-- "' _ .
51000 M3;
X+ G02 X40. Y10. R-30. F100;
10 30 50 70
M30'1
;~.
. When the arc is more than 1'80°, Rmust be ne ative si n. This is
how the machine differentiate when there's two possibilities.
17
. .-- ..,-._--------_.. -- -.-------.
------...
Circular Movement
. When cutting arcs with unknown radius, I, J or K must be used.
. To determine I and J, calculate the distance from the start oint to
the arc center. Note that I, J and K are incremental values.
y+ I I =X distance y+
I
J =Y .distance
K = Z distance
50 50
B(endpt) .~
B\(start pt)
. "..'., "'-..
...I "
~
:i~~'''
30 .' I 30 / I .~
J . / I \ '
i II '\ \' .
1 "./.- A (endpt)
.1-_.,,- '''-':..:.::-~;-:' /': _".'.-.~ A (start pt)
I ,. ,.. I J .I .._/~" " ,, ;
i:I r-
IJ.
I
I i""', !
! Cenller I Cenjter
I I I
x+
.;'.
I
.Ly+
~~~;{
02000; 02001;
G90 G54 GOX20. Y40.; (Point B) G90 G54 GOX40. Y20.; (Point A)
51000 M3; . 51000 M3;
G02 X40. Y20. 1-10. J-30. Fl00; G03 X20. Y40. I-3D. J-10. F100;
M30; M30;
18
I
..
f,;~)~¥1~(t7'Z~'~5::,~:~~}~~'f~~:;:;
l I~
nhl':I
" -. ~:;..
;~iL
~IJ / /-/ M30./
I
-,;;:.., '
'"
;
,
,.:
,~,
/.
,
:'
I
";~;,
,
,./;.;: I l/
I Q-'!J";\
'''~J'
I . ......../ , I
;~~
.'11,':
;iiri'
X+
.[~! ~F>i'
~J,j~;
~~'
02003 (Point B);
/
':ii~~
(~;f.
'1'-;1' J
G90 G54 GOXOY-30.;
J~~.. 51000 M3;
....,..../ '
B ' G03J30. F100;
:,:t:~1;~,:.
M30;
-::,.: :' .,', .'
/tPi(
,;,;;1.1.'-
~~~~;'?'
.,.~~
~
i:.~'~r
{: .~
,>t', ,-
19
u_ ._. --
.~.._~ ~ --------
0'0o___~
i '.
E.xerCls.e4
. . ... ,. .,,' ... ,. ... .(
y+
--- Rapidpositioning
3 - Cutting feed -'...,0
~,?--0
.'
~
f'0.3>0'
~
1 -------
- <t-'?;C:>.
6
x+
.p
{I) I .V'
8 7
..::'."
.J!":
:,.,
Exercise, 3 I
,
')!liL"". .
,
"
!!~
I
".."
j
'
.
'.. .., , .,.
.~ :,:";,
.
1
. *v
I
::!I~:.
:;
ill.!j: \
I
!4
, '~I\:.!: , 'l'lh,i -50 \
, "f i!Ji: . ~P.f'
;:~!:
l :hFI:
;J
\
\
;,It,,::
~~: \
':!ih
''':!~I;
"~"~'''
mI . ,
'Irf.
\
\
12'
'1J
~
.~
'0
~
_\
""'.R( "}""""" ,I~i: -150 \ ' .~
. t I;
;;I!.. \ o .-".~~~.3:\~3.
1
,\Iii!"..,;.,..,,:;;:>',, II
:\I!!' f:;;.;~"'; !I
dU' \
':.. ;:;~~
; \
";1 \
.i.::~::! ," ',. .~!!g. I
..~j: \
..,
-300 -
1 5
+ ,
.;
~.
.j. {
.,
:-
--
".-- ~
r ~~,,,...~-~:,,..""'~#
'~I.:.~..,..- .
'o'
.'
d£ r Z A M t
'," ..!'.
C
"
:. '..' ,..,
.,.. ,"
. I . "
. ,>
$ .
> "'
~! '" ,., ".,. , . ,., ,' '. . .:
..amman
. .;' ; ~. .~ "..' ~.'
...0 ~. } : .? 1':" , ]! _..()~emen.,.
I'"
x..:.s 1 ? i . . \( I '. ,. ',' - -:' ~: "" .' ;
IABSI I I I liNe I
1J)
C'y
1 Z-12.
Exercise' 5,
. .
Start from zero point and return to it in clockwisedirection. Use 2500 rpm
.&F215 to create program under absolute mode. Depth of cut lmm.
y+
--- Rapid positioning P2 = X6. Y29.394
- Cutting feed P3 = X54, Y19.596
2 P4 = X38, Y-16
P5 = X24, Y-18
~
~
1 x+
..,
l
.- - - ,
G40 ';,.i/
tf'~ '6-// ~/;j::\ ~ TnOL JIaUla
"JI'_ H'''E t)IR5"'TIOI"j
". ..
11~{&:j1 . .
G42
"
EXTERN AL CUTTING
30
y1;'~J - 11f .
""
Fj,t
W
- --fh~
I I
I I
~
,
~I l
I
I
G41 tI
I
;!:,
~:,~\
f'£~- r
'<:i:lJ
I
~~
{$I"
t'0' ,
~,
-zr~:
stal't st art Always use G41
"-:', ,;., (downcut) in
It"-JTERt"-JAL CUTTU,JG order to have
longer tool life,
1- 30 -I machining
~~__ fi.~;~ accuracy and
[
"40' W..(.d
~ 'G41 i better surface
. ~~
~'
~,
".2:j;
finish.
St at't
start 24
- "'. -
'.'-' '~-' -'-=:~:"'" ~~"; -.. .. - ".-="-"".
_.-.. .-. ,-.-,,,,,--"""
r. ~---, ,.. -="='""~; .--..
10.
..JI
r -~.------
';"
o
;
'
cRC ( C:ont d )
. " ,'
Roughing Finishing
Offset amount for roughing = A + B
I~ Offset amountfor finishing = A 0010.00 0175.10 0010.00 0175..00
.1 0020.00 0180.00 0020.00 0180.00
0030.00 0190.00 0030.00 0190.00
.I
A = Tool radius I
I
B = Allowance I
I
I
I
I
.. settingJworkl
offsetl I I
offset setting work l
Offsetscreenonmachine Offsetscreenonmachine
;
~ ~- --- -
~-,
CRC ( Cont'd )
o When specify G41, machine will read 2 blocks in advance in order to".
calculate the offset amount. If there are two Z values just after G41
been specified, and during which G17 is selected, overcutting occurs
because compensation is active only for X and Y values.
o Always remember to set the offset amount in the offset screen and
confirm the setting before running the machine.
03000 (Overcut) ; y+
~
G90 G58 GOXOYO; <'t
Z100. M1 ;
60
51000 M3;
G11 X20. Y10. 010; Z2. M8 ;
..,
"'-'"=- .= -.
...::.:::;~ :.::,::::::;,,:,-:-.~::-:;.:~--,::_:;,:,,:~~::-:;::;;:;:;-'::':~'.~-:--;';:,:::::-
.'
Startfromzeropointandreturnto it inclockwise
direction..
Use2500rpm&
F250to createprogramunderabsolute mode.DepthofcutSmm.
}:~:-
y+
Rapidpositioning
- Cutting feed
10
80
....\
I 8
1 ().
';:,::. 60 M
..
,,\
.." I I
R10
--'\ \ -J
_ 13
40 I I (Ii
tJ) (
... . , ...-- :/\.2
7'
I
20
14
1
x+
20 40 60 80
Use 010mm FEM,speed 3000rpm, feed rate 300mm/min and depth of cut 3mm.
. ,;.:,'.~.
y+ --- Rapidpositioning
Cutti ng feed
1.:-
60
!!\;:
.::.. i"!:':.
. '.' C. 1 ~
. ., .1:
: ,:
.
40
. ::: : :
. . : c'
.
~
-
()J "~
ij
~.~
2
.. : '!I\!:
: 20
.'
. ~
. i,"
.
I
11
..
1
. ""
..
.....
_.~¥\.
~
--.
---.-....
·
aetu
.
G28 A t o a
.' .; .
. .
, .<"'"
. .
u...:,
. ..
i... /
..",m...,.tl...
-. :,..
. ,"
. f.!
i
C
'"
.' Z
i
./:
,? ""
,er ~;'~)
! 0
.' . .';
.
"
~ .
i
..
MachineZero i I MachineZero
t
L
\}J
~
.
i
iI
Workpiece
~ L , Zero
I
-J-
Workpiece
Zero
I
;;
, :"
I
I I
I 1
i i
". ,",
. ",.
""'. 843Z100.H1; I
I
i I
I
100
i I
I
i I
- ZO
>'
J!r:
1:Ii
.,~
.
I
,.
. ...
.'
.:. .....
.
.:t.:..
. j.
,
.
~
,,~
. ..
.I
~i i
.
11'
:j~ .;.,' :m~)
,~t 0' The length of cutter, H value, is measured and recorded into offset
screen on the machine controller. Note that this value must be
I.....
added into the work coordinate -settingas well.
.,~:;!~t i;I[',
[if When machine reads G43 Z100. H1 in a program, it will take the
:.~.r~.'~~..
value stored in offset number 001 and compensate the amount,
such that the cutter will stop at 100mm above the workpiece.
.'.J
.
.> tte
T oo;l Pre~sie ..,.. ' .. ." . ..' .~
,'.
..' .
; uu;r'
.0.", ..'.
~
t'<\
.. i.~..(';~r~,~;:~~i.)
:.' ""vh.."...,.,,,J,,,. Hun ::/ \.;. i
5!\;~.J
..,'.. ..~...F
." .;<~~~~
'!
.;.,
' . ..'
: '. .";:.,,,.'
:..~.t:'\\
t
~ .
'. . i
- -- -
Dwell
a To delay the execution of the next block.
& Must be specified as a block by itself.
& P1000 means. a delay of one second.
t=xample :
G04 P1000;
& If machine coordinate has 4 decimal places,
~
then P10,000 means delay of one second.
~
~
~
~ Inch/Metric Conversion
& G20 - program written in inches.
& G21 - program written in millimeters.
· i
~':.
..'~ 32
"l "
PIan S 1 eCt n G 17 G 18, G 19 : ' . ' '.'. . .'
... ., :. '. :.. I .. ' ,.;' " / r " !.,:.. !
. , . . . , .. . ;";
I ..f
"
I
!
1., .
. . ... ...e . ..' e..' ../. ..1.0 ,.", .'.. ." .?,' ...,i .,'"
z+ .....
z+
/' \,.
t,.,
/.1 1'1..
~/;".
. .I I
z+ ~
~
I G17 Plan.!J IG18 Plantl ~
XY plane, view from ZX plane, view from
positive side of Z axis, positive side of Y axis.
workpiece top surface.
->.1\
~
':ii:
IG19 Plantll
~.'. YZ plane, view from
positive side of X axis.
\
RJ To alter offset data through programming., ~
G10 P R_, j
1
P represents the offset number ~
R represents the value to be input in offset screen.
RJ When use under G91, it will add or subtract from the existing data.
34
Exercise 8 '
80
~
,~;; ~
1;1:~;
60+ 2
:& I'
I
~.
;~,
,~,
:~~}
1fg'
:f",
~ 40 + . I Dlr, I RIOO
<1Ii ;~~:"
~,
'i~ ':
'it',
:~'
(!
.~. ,
ill
t<w~,.
,M:.,l,.
I
x+
20 40 60 80 100
~ro\"~~: "
tt~.:!;:)"':
~~~~f:~~i'
.<t~}~f:~'
~:t~(~i..
35
,- --" -. ~
~
8 . e.
M !.ac..: h 1n.e C td
{..:oo.r'("lna.:,e S..:,ys.:.,em.
t
.
..,
Example:
Position to point P1 ,
G90 G53 GOO X-340. Y-210. ;
iir:'
,r
"
, ' ~.~
":,
~
. ~.
~
l
.: I
y
1
~;r.
~.
1f!
'. .... .
'W
. ..
:,
!
o,aH ~ ,.;. '.
v.~I
~~.
,. ~1 1
i:
~, ~ (Y
1[
. -'-570 -340 Machine Zero Point
iI!!'
--x
1
. '"
:!t!i. . ~..
.:!~ 1:~:I!
I
.. I
I
I
I
-210
I
I
Pi
I
I
I
-340
.~!"
L__~~_ _ ____ --- --- --- --- --
.,
Subprogram
\h A subprogram is used when we need to repeat a specific routine.
M98 - call for subprogram.
M99 - returnto main program.
P - subprogram number.
L - number of times to repeat.
.~ "Q
J;~.
'If
:+
;. ;~
,\
<I ~ A subprogramcan be called fromanother subprogramup to four
,tl,(,k'i .
1 levels.,
I ' ~:
:1,
I \h
. ~~
~~
'
'
I
'!~?:i-
,.
, }i;
'~:,
To call programsin Data Server, use M198.
,. ,:;:::'
i'-!>'lk', '
'i:tml'",-' ~?~ :"
,'~~;"
,-;:,:~::; d~y,f-:";/J~
rJ"{<",,;)};'~~,<, ,
37
Ji~j1,~"::'.;'1:'~,< "
-_.~-_. - ,....
~.-::.;;:::::.::::::?:==: .':::~.:::.:.:~:=-_::.:..: ' ----
'LL
_..,: ,',...,,~
,':~~,.>-F..:~,~..~~~; . . '.,'.0.-,,-:, '"".O:;-~."'~
40
CD CD \ \ CD
20
x+
03500 ; (MAIN) ~
G17 G21 G40 G69 G80 M23; 20. 40 60 80 100 120 140 160
Exercise 9"
y+ :_- Rapidpositioning
- Cuttingfeed
.'!.~:i'-
3 4
..
. \'
60 ~
. ..i~
~
.~
I '\t-
;ti
:,
:. ~:
';~. I,
~.
!~:
.
:;ii;:
.,~
'I. .'i...
,~~".,
'\~~/"
I~I
.'
.. .
'<. Y.
'1,.0
'~,"'.
40
I
2 -5
I
I
.
~~~~r
I
;;!~.
,.
"
'~.'
:ipi 7 '~
6 I
f
\oji I I
/
I
',;.>
20+ I
r'/
/ /'
"'.-. 1
/ '"
/'
I '"
/ '"
/'
-r- x+
20 40 60
i;~~i;
,~~?:
~lAJ(e;::.::..:,;y;:~:.
.,~,.t".".,,~. ,J~."
.~.;~ij:\~i'f~~?">:i-,::.~:.\r
.. . . . ." ~.;:;~:~.,
,.,
:.~3-,:"/~.."':~'; ..~.:
. 39
" -_._- ., -_.- .-." .---.----
f""
.~;~:~:',":"..~t-:::-.,':",.._;,;,.;.:tI...~~~~
-.
Exercise 10 y+ -, ---
-
Rapid positioning
Cuttingfeed
4~~
5
x+
20 40 60 80
~
~
40
- - -- ------------
Mirror Image Command
... -- ~ -- ~
M21 ORIGINAL
~
x- x+
y+ y+
x- \ x+
y- y-
M21 M22
,.
M22 41
f~
'-
- --- - ---
~,... ,_.,'~H_','_
M6;
F200, depth of cut 5mm.
G90 G54 GO XOYO;
G43 Z50. H5 M1 ;
S2000 M3 ;
M98 P4003 ; (Image 1)
M21 ;
y+ M22; .
I.~..
: .:~~:
M98 P4003 ; (Image 3) lsJ
\\1m M23'; q
:\m\, 50 G28 G91 ZO M5 ; , 04003 (SUB) ;
tl!H
G1 X50.; ,
@ CD
+
'':.'' i.t
~
\:),j: .'i:?'-~' G28 G91 XOYO; -10 I 10 30 50 70
'!i''l ..
. .
';11
,
;~i' T4 .
I
~
.~r I
.'Il
.~I 04001 (SUB) ;
~ . !!i.
' M6;
Iti
,~! .
G90 Z2.;
.
.
iif.ffl!!..:
',' . G90 G54 GO XOYO; '-.Sl
;',~
. .
G43 Z50. H4 M1 ; G41 X20. Y10. 014; ~
84000 M3 ; G1 Z-5. F400;
It .
. ~f Y40.;
~:-,('
.!;. ., .~' M8 ;
~.,<
. ,~. M98P4001 ; .; (Image1) G3 X40. Y60. R20.;
,I,
,~~
~t/.
M21 ; G1 X50.;
M98 'P4001 ; --- (Image 2) G2 X60. Y50. R10.;
M23'.. G1 Y30.;
H:{rft~~i). G2 X50. Y20. R10.;
I'~<j~;
M9' ,
i~!it;:
~*"f.: G28 G91 ZO M5; G1 X10.;
M30; GO Z50.;
~.i~!;;..'~';;.~.:
i!4~~'f'},
. .}'.:r ,-.."li~.;.:'..", :.:tJ...~." G40XO YO;
~~ft'~;~:i~{i:\. : :,'; ;, .' M99'I 42
.. .
;.,
I
,.
X+
10 30
:\:::
~ [§J f'
V
.,;-"!.,
Exercise,12,
Use 010mm FEM, 53000,
F300, depthof cut 2mm.
y+
---Rapid positioning
~H ~"
-Cutting Feed
,,,I, :ii::
:U~:
:;i 70
i\!h'' ),, :\\h
'';'!:
'"!
C?) (:)
\(~: .
:\~\'
If)
,1<'1\' !t~' ~
i!I!!
.,:
:
~
:!I:' \
\ ~
l l'J,,< "i),: ';
if'!:
,...
,,
\
\
'm"""
l '.' ~
:;i'!' ',\.
\
\
I
! ,I.
J. I
~
i~!:: 1 / 40.
:if!h 1/
'\i~r';":::(fV ;' :k!(
x+
!'hl;
,i
.
30 50 70
.,,!.
:~m~
'ij.l.'
H!ii'
"I'I
.
10
"\\...
\ "
I \ "
/'1/ \
j:i! I, \
I
@ @
~..
,
;;- ,,,:;.;,;:~'~';~J(.f;fi~~
Canned Cycle
'.:"1
...,.
p F- L--' K
G9G G98 G x -----.Y R Z Q
;~~:.
};G_ - Types of cycle mode ~
.:;:
.::>< - X position of hole
. y _ Y position of hole
R - Reference pointposition
Z - Depth of hole
Q _ Cut in amount or shifting amount ( incremental)
. p _ Dwelltime at bottomof hole
F - Cutting feedra~e
L_K_ - Repeating number of times 46
~.- --,..' ..'. . , "\;--"'11'"
Difference
.'4. between ,G98
. and G99 ;~
IG98I'
"
· When usingG9'8, machine w'iII
Rapid position retracts to the initialpoint after
-=.,:t,,: - CuttingFeed
drillingeach hole. This method
will.result in longer cycle time
i
, --,I -r-r--r---Initial point
I
I
I I I
I
I
I
I
I
I
but it is highly recommended to
I I I I
I
-r-'I
I, I
---rI
I .
R pOint
use because of safety reason.
I I
..'>
I I
I I
'-
7~'
.,::!1.,
1 ___1_-1 Zpoint Q
\,.,.
lI;
I,~
:~:
.}:
"~
fi':
:~
+
IG991 · When using G99, machine will
Rapid position
retracts to the R point after
.'
- Cutting
Feed drillingeach hole, and finally
returnto the initialpoint after
i
--, I Initialpoint completing'the last hole. Ifthis
I I
I
I
method is used, please ensure
I
that there is no obstruction
I I
... ~.(:",
I I
,duringthe movement from one
. -;_J__I___L.J_
-: Rpoint
Z point hole to another.
:,1'
47
,.-"-...-. I
WIll;;' - ". -" ;.:..,;,;"...'
~/I':"~,~~""~,__''''''''_."",-~~~L_~,,..":':'''~',L~..~~<u<:~"t;~_,~~~,.,;..i:.!~~
I
I
rA/J
.
I
I
:
I
I
I
I
I
point I
I I
I
I
I
-
:,p
1 -rI
.---- R
Z.point
pOInt
t -!I --- R point
-Zpoint
G98 G81 X y R Z F
Rapidposition Rapidposition
- CuttingFeed -- CuttingFeed
.. --1 Initialpoint
--, -l Initial point , I
,,'
I I
I
I
I
I I
I ~
I I I
I I I !s)
,ii: I I
" I '
.iJ;
" '"
I , I
" ."
~
~" l'
I I
,
! -: ---R .
point
I,
I 1 -: --- R point
q; ,
Z
- pOint I -Zpoint
" Retractsafterdwell Retractsafterdwell
"
z
.F,: .
G98 G82 X y R p F
'.,.'
"'.", . For machining of blind holes. Flatness is improved due to dwell.
. When P 1000 is specified, a one second dwell is performed.
49,
.,.,1.
.'
"L
.;;;.:jt;;,; :~;~,~~}~?~t~<t.L~.~~¥J~_...
..~~:"!C.~~..,; "-""'~-"~"'~";:'.'" '.
.'
---- Rapidposition ---- Rapidposition
.,:~
::jf
."
- CuttingFeed
- CuttingFeed
'
__,I ----------Initial point
__, ------l-Initial point I I
i' ,I ,I
I I
I
,
,I
.. I
I
TTTT--t--R point
TT"11--i- R point
Jl
QI'illttJ .
I
I
I I
I I
I I
I
I
I
d
Q I
I
I
tD
I
I
'I
I I
+
I 1
I
I
I
I
d
K\
l.s)
?!> Q
.1t .,
.~:~:
: II
I -DdI
QI .lttUd I I
*1 :
I
Q 1.
I I
:'~'.
QI I I
L_ Z point.
I .
--'--Z pOint
;1'
> .:
G98 G83 X y R z Q F
..il... . Q is the pecking depth and after each peck, always return to R point.
. . 'd' is the amount where the machine start to use cutting feed before
the next peck. The default setting isO.1 mm.
G73High Speed Peck Drill Cycle-.
IG9S1 IG991
:Ji.:"
.'r.',' .
Rapidposition Rapidposition
'.j.':
- CuttingFeed CuttingFeed
-rr-Id
'0
rrJd' rt
Q ,.-- o ,---
I I
Q Q
G98 G73 X y R z Q F
J,,"-i
'~t~~it~~~i~~~.~""~""''''''''
G84TappingCycle.
IG9S\ IG99 I
.~t~i~~:'
...j ;..
--1 --r Initialpoint I
~-1
I
--'-..: Initial point
I I i I, I
, I I I
Spindle
cw II ~Spindle
cw Spindlecwl I
SpindleCW
it
:f;t:; ,:~;,.;
'I
---R point ~
tJ
";:';0..
{~~
t --f~--- R point
~11D'.
SpindleCW 'SpindleCCW
,'Y.
;~~i.:.
'(ff
>-0;:.."
.~~~::.
.~.£
, " -Z point
Spindle
aN Uindle~ Zccw
point
'.
G98 G84 X y R z F
I G9s1 IG991
~\~~~~::
Rapidposition Rapidposition
- CuttingFeed - CuttingFeed
;;~,
',~ .
:~J
,)'
\i:;..i:;
ii --, -T Initialpoint I
I
--l I
Initialpoint
;11, '
I I T I 1
'J. ....
I I I I
I I
I
I
I
I
I
e;
point I - ---H point
[I
' n-R
~;,:
"91
Ii
.... [ - Z point - Zpoint
::~
:h
z
..
- --
]
IG99 I
, G98,
Rapid position
Rapid position .
- CuttingFeed
- CuttingFead
--1 I Initialpoint
--1 -l Initialpoint i
I I
I I I I
~
.~ 1; .
I I I
I I I
I I
jil
i
._;f:;.
t -\I ---RZ
.
point
- pOint .
1 -~
I
---R point
-Zpoint
Spindle
Stop
SpindleStop
G98 G86 X y R z F
@ 1, -----R point
: -Zpoint @. 1, --:---R point
c::; Zpoint
I _
.
Spindle Stop W Spindle Stop W
G98 G76 X Y R Z Q F
· Oriented Spindle StoQ (M 19) is performed at bottom of hole and
retracts after shifting in the direction opposite to the tool tip, thus there
is no scratch mark on the surface. '
· The shifting direction +X, -X, +Y, -Yare set on the controller in
advance. (check shifting direction before use) .
... L-
Exercise 13
Tap the holes given speed 2000rpm, feed rate 200mm/min, depth of hole
25mm.
;c:~~:;~;;
y+
Iii"
1
:':'.-'.
40
2 t
~.~.'.
3 t
~~;
:~{-
:~J.
20
4 t
I
!
i
i
!
&
" ';:%:~' ! !
'}t: 1i~ 17 i
: I i I .
~!~~':
'~1:~ ~.if\. X+
Tf ,~~~~.
'("
10 30 50
"
~
Drill the holes using peckdrill command, given speed 1000rpm and feedrate
100mm/min. .
60
~-Ef}~~
40
,,; ..'
05000 ;
G17 G21 G40 G69 G80 M23;
G28 G91 ZO; . ~~~~ ~
G28 G91 XOYO;.
x+
T1', 60 80 100 120
20 40
M6;
G90 G54 GO XO YO ;
G43 Z100. H1 M1;
81000 M3 ;
M8;
G98 G83 X30.Y20. R2. Z-20. Q1.F1 00 ;
G91 X30. L3K3 ;
Y40. ;
X-3D. L3K3 ;
G80 G90 XOYOM9 ;
G28 G91 ZO M5;
M30 .I
::L.
Exercise 14'
Givenspeed1000rpm,F100,depthof
hole 30mm,writea completeprogram
startingwithcenterdrill.
':..i.!.~'
" \,-~{~E:'( y+
..
," -
o
~~~~-$--$~-$-~
:".~;
"
\1,', *~~~~~~-$-*
~~-$~-E!T~~-$-~
~
i
" "..'"
i
\~~'.
:,ro.
0
0'
~0
...
~~~~-$-~~-$-~
~'~~~~~~-$-~
'--
'-9
~
.~ .::
:~"';'
:~t 'x
co ~$--$~$--$$--$-~
?~:;
.j'
;~r
':,'. ~~-$-~-$-~-$--$-~
,. ~~~~-Etr-<t7~-$-~
o... '~$--$~$--$$--$~
....
x+
,"
10 8X10-eo 10.
"
100
."",
...
58
~,_.. =0:"' ::-.-: , :-;- " =.~ ~.....
.
r,;~ ~ ~, ",,";I1'~~~\i
Super GeometricIntelligence .
. Automatic feed rate control resulting ,in high 'precision and good
surface finish. Machine will automaticallyadjustthe feed rate
given in a program, depending on corners or profiles.
Recommended to use with Data Server.
07000; . 07100;
G17 G21 G40 GS9 Gao M23; G17 G21 G40 GS9 Gao M23 ;
,;. G28 G91 ZO; G28 G91 ZO;
..:
''l. G28 G91 XOYO; G28 G91 XOYO;
.;.).
~!,..; T8.I T8. , ~
~::
.J MS", MS., ~
.~1~
;~ G90 G54 GO XOYO ;. G90 G54 GOXOYO ;
G43 Z50. H8 M1 ; G43 Z50. H8 M1 ;
It.
55000 M3 ; 55000 M3 ;
..J~' G01 F1000 M8 ; G01 F1000 M8 ;
M198 P7001 ; GOSP10000 ;
G90 GO Z100. M9 ; M198 P7101 ;
G28 G91 ZO M5; GOS PO ; .
Coordinate Rotation
· It is a functionto rotatea specificprofilein the programat a
specificplane.
" .,.,.
·
.:-";
G69 - cancelrotation.
Examlll!z :
G68X y R
;(.
J";'
.,":
r:':' '- .
.',:.
'.:,,'
.:f;~
X and Y specifiesthe rotationcenterwithabsolutevalue.
't):'
~.?
~~::
):~.
When omitted, the position"whereG68 is specifiedbecomesthe ~
.'
centerof rotation.
R specifiesthe rotationangle
M6' I 70
G90 G54 GO XO YO;
G43 Z50. H11 M1; Z-axis 60mm above workpiece
50
;~'.
51000 M3; Depth of cut 6mm
',1',
",'
Z2.M8 ; Cut image 1 ~
.,.;.
G68 XO YO R60.; 30 'J)
w~
i"~~'
,.(.,
~}i'
"
.;~'.
/.~:
":({
::'!
,~.'
G41 X60. Y-30. 021;
G1 Z-5. F100 ;
,
I
I
, I
I
. ~;\I'
"'J
10 I
Y20. ; x+
X100.; ~
iO.,
-
30 50 II 70 90
Y-20.; -10 "', ... I II
, J
X50.; , --~-- L --------.
, A
GOZ50.; ,j,
-30
G40 XO YO M9 ;
G69; "
"
64
kj,X..f.~..r..~:c.;~i("..~.:t-'-1
Helical Interpolation
Using G020r G03, cutter cutting in a spiral motion.
Example:
JI.;:
. "~no
06789 (NORMAL); ....
..z+
G90 G55 GOX50. YO51000 M3;
G43 Z50. H1; .P-y..
G3 XOY50. R50.;
M30;
(P1 to P2) ~
.i:J
':.;i::
-------------------------------------------------
.(.
10
.~
:"!;" . 05678 (HELICAL);
"
:!', G90 G55 GOX50. YO5.1000 M3;
',< G43 Z50. H1;
G3 XOY50. Z30. R50.; (P1 to P3)
.,' M30;
65
Use 010mm FEM,depth of cut 2mm, depth per pass O.5mm.
" .
:'t~~:;...
.\","
,',
..
.:.J',.
o
U1
"'.' t.
'.~1.;'
Lf)
ru
.....
d::
j
.:\~' ~:/ \q
'~N :';..
c
U1
20
125
66
~
.
.~ .
J
08000 (Main) ;
G17 G21 G40 G69 G80 M23 ;
G28 G91 ZO ; 08001 (Slot) ; 08002 (Slot) ;
"
G28 G91 XO YO ; G90 GO X50. Y-50. ; G91 G01 Z-O.5 F300 ;
T4 ; G01 ZO F300 ; X-30. ;
M6 ., M98 P8002 L2 ; X21.213Y21.2t3;
Z O5 .
,
' ",
- ."' . :.., .
'.'~.' ~
M98 P8001 ;
M21;
M98 P8001 ;
.~. ~
M22' , ,
\£>
M98 P8001 ; 08003 (Pocket) ; 08004 (Pocket) ; ,
M23' I G90 G01 ZO F300 ; G91 G01 Z-0.5 F300 ;
M22' ,
, G10 P10 R5. ; G41 Y6. D10;
M98 P8001 ; M98 P8004 L4 ; X-8. ;
"
M23' , , G90 GO Z5. ; Y-12. ;
G90 GO X-19.5 Y-16. ; G91 X19.5 ; X16. ;
M98 P8003 L3 ; M99 . I Y12. ;
G90 GO X-19.5 YO ; X-8.; ,
(J)
(1)
S4
o' ~
:J o
<:)
»
»
.;
.i,.. ~
..j
,... ~~:'~;~i~.:o .~.
;;.
...
.::fJ~~~~!:t
'. .~". "':t~:~/
-- - -