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

HWACHEON TRAINNING CENTER

NC SCHOOL HWACHEON MACHINE TOOL

MACHINE CENTER
PROGRAMING MANUAL

HWACHEON TRAINING CENTER


JANUARY,
JANUARY, 1,
1, 2007
2007
HWACHEON TRAINNING CENTER

MACHINE CENTER ?


▶ Machining
Machining center
center isis installed
installed by
by adjusting
adjusting CNC
CNC controller
controller and
and ATC
ATC
(( automatic
automatic tool
tool changer
changer )) onon CNC
CNC milling
milling machine.
machine. Machining
Machining
center
center is
is enable
enable to
to work
work containing
containing aa variety
variety of
of process
process byby
changing
changing many
many tools.
tools.


▶ AA basis
basis equipment
equipment of
of an
an automation
automation factory
factory which
which have
have been
been
enlarged
enlarged recently
recently and
and also
also itit has
has been
been installed
installed by
by essential
essential
machine
machine of
of automation
automation and
and rationalization
rationalization presently.
presently.


▶ We
We use
use the
the ball
ball screw
screw with
with aa special
special bed
bed aspect
aspect and
and itit can
can do
do aa
precise
precise location
location decision
decision for
for enhancing
enhancing to
to precise
precise machine.
machine. AndAnd
also
also itit easily
easily can
can process
process aa structure
structure such
such asas aa cylindrical
cylindrical cam
cam ,,
propeller
propeller of of airplane,
airplane, and
and mold
mold ofof tire
tire by
by installing
installing 4-axis
4-axis or
or 5-axis.
5-axis.
HWACHEON TRAINNING CENTER

G CODE (Preparatory Function)


◈ A Number following address G determines the meaning of the command
for the concerned block.
G codes are divided into the following two types

1) One Shot G Code


: The G code is effective only in the block in which it is specified.

2) Modal G Code

: The G code is effective until another G code of the same group

is specified.

(Example) G01 and G00 are modal G codes in group 01.


G01 X 100. F200 ;
Y 100. ;
X 0. ;
Y 0. ;
G00 X-15. Y-15. ;

G01
G01 is
is effective
effective in
in this
this range.
range.
HWACHEON TRAINNING CENTER

G CODE (Preparatory Function) [2/1]

1.
1. GG Codes
Codes of of mark
mark   remain
remain unchanged
unchanged when
when the
the clear
clear state
state is
is set
set at
at
power-up
power-up or or reset.
reset.
GG 20
20 and
and GG 21
21 remain
remain unchanged
unchanged when
when the
the clear
clear state
state is
is set
set power-up
power-up
or
or reset.
reset.
2.
2. GG codes
codes ofof 00
00 Group
Group are
are One
One Shot
Shot GG Code.
Code.
3.
3. When
When aa GG code
code notnot listed
listed in
in the
the GG code
code list
list is
is specified,
specified, or or aa GG code
code that
that
has
has no
no corresponding
corresponding optionoption is is specified,
specified, P/SP/S alarm
alarm No.010
No.010 is is output.
output.
4.
4. Multiple
Multiple GG codes
codes cancan be be specified
specified in in the
the same
same block
block ifif each
each GG code
code
belongs
belongs toto aa different
different group.
group. IfIf multiple
multiple GG codes
codes thatthat belong
belong to to the
the
same
same group
group are
are specified
specified in in the
the same
same block.
block. Only
Only the
the last
last GG code
code
specified
specified isis valid.
valid.
5.
5. IfIf aa GG code
code belonging
belonging to to group
group 01
01 is
is specified
specified inin aa canned
canned cycle,
cycle, the
the
canned
canned cycle
cycle is is cancelled.
cancelled. This
This means
means that
that the
the same
same state
state set
set by
by
specifying
specifying G80
G80 is is set.
set. Note
Note that
that the
the GG codes
codes inin group
group 0101 are
are not
not
affected
affected by by aa GG code
code specifying
specifying aa canned
canned cycle.
cycle.

※ GG Codes
Codes are
are indicated
indicated by
by group
group
HWACHEON TRAINNING CENTER

G CODE (Preparatory Function) [2/2]

◈ G CODE LIST
GG Code
Code Group
Group Meaning
Meaning GG Code
Code Group
Group Meaning
Meaning

GG 00
00 
 positioning
positioning GG 22
22 
 Stored Stroke Check function On

GG 01
01 
 Linear
Linear interpolation
interpolation GG 23
23 Stored Stroke Check function Off
01
01
GG 02
02 Circular
Circular interpolation
interpolation (CW)
(CW) GG 27
27 Reference position return check

GG 03
03 Circular
Circular interpolation (CCW))
interpolation (CCW GG 28
28 00
00 Automatic return to reference position

GG 04
04 Dwell
Dwell (Exact
(Exact stop)
stop) GG 29
29 Automatic return from reference position

GG 05
05 High
High speed
speed cycle
cycle machining
machining GG 30
30 2nd, 3rd and 4th reference position return

GG 09
09 00
00 Exact
Exact Stop
Stop GG 31
31 Skip function

GG 10
10 Programmable
Programmable data
data input
input GG 33
33 01
01 Thread cutting

GG 11
11 Programmable
Programmable data
data input
input mode
mode cancel
cancel GG 39
39 00
00 Conner Offset circular interpolation

GG 15
15 
 Polar
Polar coordinate
coordinate interpolation
interpolation Cancel
Cancel GG 40
40 
 Cutter compensation cancel
17
17
GG 16
16 Polar
Polar coordinate
coordinate interpolation
interpolation GG 41
41 07
07 Cutter compensation Left

GG 17
17 
 XpYp
XpYp plane
plane selection
selection GG 42
42 Cutter compensation Right
Xp,
Xp, Yp,
Yp, Zp Zp
:: X,
X, Y,Y, ZZ axis
axis
GG 18
18 02
02 ZpXp
ZpXp plane
plane selection
selection oror
GG 43
43 Tool length compensation “+” direction
its
its parallel
parallel axisaxis 08
08
GG 19
19 YpZp
YpZp plane
plane selection
selection GG 44
44 Tool length compensation “-” direction

GG 20
20 Input
Input in
in Inch
Inch GG 45
45 Tool offset increase

06
06 00
00
GG 21
21 Input
Input in
in mm
mm GG 46
46 Tool offset decrease
HWACHEON TRAINNING CENTER

G CODE (Preparatory Function) (2/3)

◈ G CODE LIST
G Code Group Meaning G Code Group Meaning

G 47 Tool offset double increase


G 63 Tapping mode
00 15
G 48 Tool offset double decrease G 64  Cutting Mode

G 49  08 Tool length compensation cancel G 65 Macro call

G 50  Scaling Cancel
G 66 12 Custom macro mode call

G 51 Scaling G 67  Custom macro mode call cancel


11
G 52 Local coordinate system setting
G 68 Coordinate rotation
16
G 53 Machine coordinate system selection G 69  Coordinate rotation cancel

G 54  Work piece coordinate system 1 selection


G 73 Pack Drilling Cycle

G 55 Work piece coordinate system 2 selection


G 74 Counter Tapping Cycle

G 56 Work piece coordinate system 3 selection


G 76 Fine Boring Cycle
14
G 57 Work piece coordinate system 4 selection G 80  Canned Cycle Cancel

G 58 Work piece coordinate system 5 selection


G 81 09 Drill Cycle, Spot Boring

G 59 Work piece coordinate system 6 selection


G 82 Drill Cycle, Counter Boring

G 60 00 Single direction positioning


G 83 Peck Drilling Cycle

G 61 Exact stop mode


G 84 Tapping Cycle
15
G 62 Automatic corner override
G 85 Boring Cycle
HWACHEON TRAINNING CENTER

G CODE (Preparatory Function) (3/3)

◈ G CODE LIST
G Code Group Meaning

G 86 BORING CYCLE

G 87 PECK BORING CYCLE


09
G 88 BORING CYCLE

G 89 BORING CYCLE

G 90  ABSOLUTE command
03
G 91  INCREMENTAL command

G 92 Setting for work coordinate system


00
G 92.1 Work piece coordinate system preset

G 94  Feed per minute


13
G 95 Feed per rotation

G 96 Constant surface speed control


10
G 97  Constant surface speed control cancel

G 98  Return to initial point in canned cycle


20
G 99 Return to R point in canned cycle
HWACHEON TRAINNING CENTER

Miscellaneous Function (M code 1/2)

◈ M CODE LIST

M Code Meaning M Code Meaning

M00 PROGRAM STOP M01 OPTIONAL STOP

M02 END OF PROGRAM M03 SPINDLE FORWARD

M04 SPINDLE REVERSE M05 SPINDLE STOP

M06 AUTO TOOL CHANGE M07 OIL MIST (OPTION)

M08 COOLANT ON M09 COOLANT,AIR BLOW,OIL MIST OFF

M10 4-AXIS CLAMP (OPTION) M11 4-AXIS UNCLAMP (OPTION)

M12 OIL HOLE COOLANT ON (OPTION) M13 OIL HOLE COOLANT OFF (OPTION)

M19 SPINDLE ORIENTATION M20 MIRROR IMAGE OFF

M21 MIRROR IMAGE X M22 MIRROR IMAGE Z

M25 CHIP BLOW COOLANT ON (OPTION) M26 CHIP BLOW COOLANT OFF (OPTION)

M29 RIGID TAPPING M30 END OF PROGRAM & REWIND

M31 CHIP CONVEYOR FORWARD (OPTION) M32 CHIP CONVEYOR REVERSE (OPTION)

M33 CHIP CONVEYOR STOP (OPTION) M35 FRONT DOOR OPEN (OPTION)
HWACHEON TRAINNING CENTER

Miscellaneous Function (M code 2/2)

◈ M CODE LIST

M Code Meaning M Code Meaning

M36 FRONT DOOR CLOSE (OPTION) M50 AIR BLOW (OPTION)

M55 TOUCH SENSOR AIR BLOW (OPTION) M57 ATC DOOR OPEN

M58 ATC DOOR CLOSE M81 MG POT DOWN

M82 ATC 1 CYCLE M83 MG POT UP

M84 TOOL UNCLAMP M98 SUB PROGRAM CALL

M99 SUB PROGRAM END M100 MG TOOL DATA INITIAL SETTING

M106 TOOL CHANGE PROGRAM CALL M198 DATA SERVER SUB PROGRAM CALL
HWACHEON TRAINNING CENTER

G17 (PLANE SELECTION)


G-코드 ◈ XpYp plane (Z-axis select)

Select the planes for circular interpolation, cutter compensation, and drilling
G17 by G-code.
G18
G Code Selected plane Xp Yp Zp
G19
G17 Xp Yp plane X-axis or an Y-axis or an Z-axis or an
G90 axis parallel axis parallel axis parallel
G18 Zp Xp plane
to it to it to it
G91 G19 Yp Zp plane
G53
X-axis
G54~G59 direction Z-axis select

G92
G52

ec is
n
t io
G00 dir -ax
Y

Xp, Yp, Zp are determined by the axis


G01
address appeared in the block in which G17,
G02,G03 G18 or G19 is commanded

WORK The plane is unchanged in the block in which


G17, G18 or G19 is not commanded.
G17 code
HWACHEON TRAINNING CENTER

G18 (PLANE SELECTION)


G-코드 ◈ Xp Zp plane (Y-axis select)

Select the planes for circular interpolation, cutter compensation, and drilling
G17 by G-code.
G18
G Code Selected plane Xp Yp Zp
G19
G17 Xp Yp plane X-axis or an Y-axis or an Z-axis or an
G90 axis parallel axis parallel axis parallel
G18 Zp Xp plane
to it to it to it
G91 G19 Yp Zp plane
G53
X-axis
G54~G59 direction Y-axis select

G92
G52 Z-axis
direction
G00
Xp, Yp, Zp are determined by the axis
G01
address appeared in the block in which G17,
G02,G03 G18 or G19 is commanded
The plane is unchanged in the block in which
WORK G17, G18 or G19 is not commanded.
G18 code
HWACHEON TRAINNING CENTER

G19 (PLANE SELECTION)


G-코드 ◈ Yp Zp plane (X-axis select]

Select the planes for circular interpolation, cutter compensation, and drilling
G17 by G-code.
G18
G Code Selected plane Xp Yp Zp
G19
G17 Xp Yp plane X-axis or an Y-axis or an Z-axis or an
G90 axis parallel axis parallel axis parallel
G18 Zp Xp plane
to it to it to it
G91 G19 Yp Zp plane
G53
G54~G59 X-axis select

G92
G52 Z-axis
direction
ec is
n
G00
t io
dir -ax
Y

Xp, Yp, Zp are determined by the axis


G01
address appeared in the block in which G17,
G02,G03 G18 or G19 is commanded
WORK The plane is unchanged in the block in which
G19 code G17, G18 or G19 is not commanded.
HWACHEON TRAINNING CENTER

G90 : ABSOLUTE COMMAND G91 : INCREMENTAL COMMAND

G-코드 ◈ There are two ways to command travels of the tool

G90
G90 IP___
IP___ ;;
G17
In
In the
the absolute
absolute command,
command, coordinate
coordinate value
value of
of the
the end
end position
position is
is programmed.
programmed.
G18 G91
G91 IP___
IP___ ;;
G19 In
In the
the incremental
incremental command,
command, move
move the
the position
position by
by itself
itself is
is programmed.
programmed.

G90
G90
G90 X40.
X40. Y70.0;
Y70.0; ABSOLUTE
ABSOLUTE COMMAND
COMMAND
G91 G91
G91 X-60.0
X-60.0 Y40.0;
Y40.0; INCREMENTAL
INCREMENTAL COMMAND
COMMAND
G53 Y
G54~G59
G92 End position
G52 70.000

G00 Start position


30.000
G01
G02,G03
X
40.000 100.000
HWACHEON TRAINNING CENTER

G53 : MACHINE COORDINATE SYSTEM


◈ A coordinate system with a machine zero point set as its origin is
G-코드
referred to as a machine coordinate system.

G17 When the tool is to be moved to a machine-specific position such as a


tool change position, program the movement in a machine coordinate
G18
system based on G53
G19
(G90)
(G90) G53
G53 IP__IP__ ;;
G90 IP__
IP__ ;; [Absolute
[Absolute command]
command] Dimension
Dimension Word
Word
G91
When manual reference position return is performed after power-on, a
G53 machine coordinate system is set so that the reference position is at
G54~G59 the coordinate values of (α,β) set using parameter No.1240.
G92
G52 Machine coordinate system

G00
Machine zero
G01
G02,G03 β
α

Reference position
HWACHEON TRAINNING CENTER

G54~G59 : WORK COORDINATE SYSTEM


Choosing from six work coordinate systems set using the CRT/MDI panel by specifying
G-코드 a G code from G54 to G59, one of the work piece coordinate systems 1 to 6 can be selected.

The
The six
six work
work coordinate
coordinate systems
systems specified
specifiedwith
with G54
G54 to
to G59
G59 can
can be
be changed
changed byby
G17
changing
changing anan external
externalwork
work piece
piece zero
zero point
point offset
offset value
value or
orwork
workpiece
piece zero
zero point
point
G18 offset
offset value.
value.
100
G19
G90 50

G91 G54 G55 G56


G53
G54~G59
G92 G57 G58 G59

G52
G00 Inputting
Inputting from
from CRT/MDI
CRT/MDI Panel
Panel Programming
Programming by
by G10
G10
G01
G91
G91G28
G28Z0
Z0; ; G90
G90G10
G10L2 L2P1
P1X__
X__Y__
Y__Z__
Z__ ; ;
G02,G03 G28
G28X0
X0Y0
Y0; ; ( (G10
G10: :DATA
DATAINPUT,
INPUT,L2
L2: :COORDINATE
COORDINATE
G90
G90G54
G54GOO
GOOX100.
X100.Y50.
Y50.Z10.
Z10.; ; SYSTEM,
SYSTEM,P1
P1: :G54
G54) )
X0
X0Y0
Y0Z0
Z0; ;
HWACHEON TRAINNING CENTER

G92 : COORDINATE SYSTEM


◈ Work coordinate system is shifted to set a new work coordinate system
G-코드
so that the current tool position matches the specified coordinates.

G17 Positive
Positive value
value must
must be
be used.
used.
G18 G91
G91G28
G28Z0
Z0; ;
G19 G28
G28X0
X0Y0
Y0; ;
G90
G90G92
G92X200.
X200.Y200.
Y200.Z200.
Z200.; ;
G90 Cannot
 Cannotbebeshifted.
shifted.Only
Onlyits
itscoordinate
coordinatekeeps
keepsininmemory
memory
G00 X0 Y0 Z0
G00 X0 Y0 Z0 ;;  then, G92 is specified.
 then, G92 is specified.
G91
G53
G92
G92 X25.2
X25.2 Z23.0
Z23.0 ;; G92
G92 X600.0
X600.0 Z1200.0
Z1200.0 ;;
G54~G59 (The
(The tool
tool tip
tip is
is the
the start
start point
point for
for the
the program)
program) (The
(The tool
tool holder
holder is
is the
the start
start point
point for
for the
the program)
program)

G92
Z Z
G52 1200.0
G00 23.0
G01
G02,G03
0 25.2 X
X
0 600.0
HWACHEON TRAINNING CENTER

G52 : LOCAL COORDINATE SYSTEM


◈ When a program is created in a work coordinate system, a child work coordinate system can
G-코드 be set for easier programming. Such a child coordinate system is referred to as a local
coordinate system.

G17 By
By specifying
specifying G52G52 IP_;,
IP_;, aa local
local coordinate
coordinate system system can
can be
be set
set in
in all
all the
the work
work coordinate
coordinate
systems
systems (G54 to G59). The origin of each local coordinate system is set at the position
(G54 to G59). The origin of each local coordinate system is set at the position
G18 specified
specified byby IP_
IP_ in
in the
the work
work coordinate
coordinate system.system.
G19 When
When aa local
local coordinate
coordinate systemsystem is is set,
set, the
the move
move commands
commands in in absolute
absolute mode(G90),
mode(G90), which
which isis
subsequently commanded, are the coordinate values in the local coordinate
subsequently commanded, are the coordinate values in the local coordinate system. The local system. The local
G90 coordinate
coordinate system
system can can bebe changed
changed by by specifying
specifying thethe G52
G52 command
command with with the
the zero
zero point
point of
of aa
new
new local
local coordinate
coordinate systemsystem in in the
the work
work piece
piece coordinate
coordinate system.
system.
G91
To
To cancel
cancel the
the local
local coordinate
coordinate systemsystem and and specify
specify the
the coordinate
coordinate valuevalue in
in the
the work
work piece
piece
G53 coordinate
coordinate system,
system, matchmatch the the zero
zero point
point of of the
the local
local coordinate
coordinate system
system with
with that
that of
of the
the work
work
piece
piece coordinate
coordinate system.
system. Ex) Ex) G52
G52 IP IP 00 ;;
G54~G59
G92
(Local coordinate system)
G52 IP__
G00 (G54 : Work coordinate system 1) (Local coordinate system)

G01 G55 G56 G57 IP__


G58
G02,G03 (G59 : Work coordinate system6)

Machine coordinate system origin


Reference point
HWACHEON TRAINNING CENTER

G00 : POSITIONING

G기능 ◈ The G00 command moves a tool to the position in the work piece system
specified with an absolute or an incremental at a rapid traverse rate.
☞ In the absolute command, coordinate value of the end position is programmed. (G90)
G17 G90
G90G00
G00XX(____.___)
(____.___)YY(____.___)
(____.___)Z Z(____.___)
(____.___) )
G18
☞ In the incremental command, move distance of the position by itself is programmed. (G91)
G19 G91
G91G00
G00XX(____.___)
(____.___)YY(____.___)
(____.___)Z Z(____.___)
(____.___)
G90 ◈ The rapid traverse rate (PARAMETER NO : 1420(18i-M , Oi-M)
G91 This range is determined by the machine tool builder by setting to parameter
(The unit of rapid traverse rate : m/min)
G53
※ If we use the cutting, we have the danger to collide because of fast feed rate.
G54~G59 region.. (G00=G0 all available)
So, we use G00 when we move the tool in the uncutting region..

G92
◈ Tool path (PARAMETER NO : 1401 #1)
G52 Nonlinear interpolation positioning : The tool is positioned with the traverse rate
for each axis separately. The tool path is normally straight
G00
Linear interpolation positioning Start position
G01
G02,G03
End position Nonlinear interpolation positioning
Linear interpolation positioning : The tool path is the same as in linear interpolation
(G01). The tool is positioned within the shortest time at a speed that is not more than
the rapid traverse rate for each axis.
HWACHEON TRAINNING CENTER

G01 : LINEAR INTERPOLATION


◈ A tools move along a line to the specified position
G-코드
at the feed rate specified in F.

G17 G91 ( G90 ) G01 X ( __.__ ) Y ( __.__ ) Z (___.__ ) F ___;


Feed
Feedrate
rate(mm/min)
(mm/min)
G18
End
Endposition
positionof
ofeach
eachaxis
axis
G19
※ If the F code is not commanded, the feed rate is regarded as zero.
G90 ※ The feed rate specified in F is effective until a new value is specified..
G91
Example for G01 ☞ ABSOLUTE COMMAND
G53
G90 GOO X200. Y300. ; (P0P1)
G54~G59 400. G90 G01 X350. Y500. F300 ; (P1P2)
Y-axis
P3
P3 G90 G01 X750. ; Y500. F300 ; (P2P3)
G92 P2
G90 G01 X600. Y300. ; F300 (P3P4)
X200. ;Y300. F300 (P4P1)

200.
G52 ▶ 빨간 글씨부 삭제 가능
P1 P4
G00
☞ INCREMENTAL COMMAND
G01 200. 150. 300. G91 G00 X200. Y300. ; (P0P1)
G02,G03 G91 G01 X150. Y200. F300 ; (P1P2)
X-axis G91 G01 X 400. ; F30 0 (P2P3)
G91 G01 X-150. Y-200. ;F300 (P3P4)
P0 :Start point (reference point)) G91 G01 X-400. ; F30 0 (P4P1)
▶ 빨간 글씨부 삭제 가능
HWACHEON TRAINNING CENTER

G02,G03 : CIRCULAR INTERPOLATION

G-코드 ◈ The command below will move a tool along a circular arc

G17 order description Command Meaning


G18
G17 Specification of arc on Xp Yp plane
G19
1 Specification of plane G18 Specification of arc on Zp Xp plane
G90
G19 Specification of arc on Yp Zp plane
G91
G53 G02 Circular interpolation ( CW )
2 A rotation direction.
G54~G59 G03 Circular interpolation ( CCW )

G92 G90 2-AXIS of X, Y, Z End position of absolute command


3 End position Distance from the start point
G52 G91 2-AXIS of X, Y, Z
to the end point
G00 Distance from the start point
to the center point 2-AXIS of I, J, K Distance from ± start point
G01 of an arc with sign to center point of arc
4
G02,G03
Arc radius R Arc radius

5 Feed rate F Feed rate along the arc


HWACHEON TRAINNING CENTER

G02,G03 : CIRCULAR INTERPOLATION

G-코드 ◈ The command below will move a tool along a circular arc

G17 ◈
◈ G02
G02 :: Circular
Circular interpolation
interpolation [Clockwise
[Clockwise direction]
direction]
G18 ◈
◈ G03
G03 :: Circular
Circular interpolation
interpolation [Counter
[Counter Clockwise
Clockwise direction]
direction]
G19
G90
G91
G53
G54~G59
G92
G52
G00
G01
G02,G03
CLOCKWISE COUNTER CLOCKWISE
HWACHEON TRAINNING CENTER

G02,G03 : CIRCULAR INTERPOLATION

G-코드 ◈ The command below will move a tool along a circular arc .

G17 0°〈
0°〈 R≤
R≤ 180°
180° RR value
value (( ++ ))
G18 180°≤
180°≤ R〈 R〈 360°
360° RR value
value (( –– ))
G19 When
When RR == 360°
360° value (( II ,, JJ ,, KK ))
RR value
G90
G91 ※X=I
※X=I Y=J
Y=J Z=K.
Z=K. Value
Value from
from endend point
point to
to center
center point
point of
of arc
arc determines
determines
G53 [+]
[+] or
or [-]
[-] sign.
sign.
G54~G59 G17
G17 (XY
(XY plane)
plane)
G90
G90 G02
G02 X__
X__ Y__
Y__ R__
R__ F__
F__ ;;
G92
G91
G91 G03
G03
G52 G18
G18 (XZ
(XZ plane)
plane)
G00 G90
G90 G02 G02 X__
X__ Z__
Z__ R__
R__ F__
F__ ;;
G01 G91
G91 G03 G03
G02,G03 G19
G19 (YZ
(YZ plane)
plane)
G90
G90 G02
G02 Y__
Y__ Z__
Z__ R__
R__ F__
F__ ;;
G91
G91 G03
G03
HWACHEON TRAINNING CENTER

G02,G03 : CIRCULAR INTERPOLATION

G-코드 ◈ The command below will move a tool along a circular arc .

G17 0°〈
0°〈 R≤
R≤ 180°
180° RR value
value (( ++ ))
G18 180°≤
180°≤ R〈
R〈 360°
360° RR value
value (( –– ))
G19 When
When RR == 360°
360° RR value
value (( II , , JJ , , KK ))
G90
G91 CUTTING
CUTTING From
From AA to
to BB
G53 GG 90
90 G01
G01 Z-10.
Z-10. FF 100
100 ;;
G54~G59 GG 01
01 X-25.
X-25. ;;
G92 GG 02
02 XX 00 YY 25.
25. R25.
R25. ;;
G52
G00 CUTTING
CUTTING From
From AA to
to CC
G01 GG 90
90 G01
G01 Z-10.
Z-10. FF 100
100 ;;
G02,G03 GG 01
01 X-25.
X-25. ;;
GG 02
02 XX 00 YY -25.
-25. R-25.
R-25. ;;
HWACHEON TRAINNING CENTER

Helical interpolation

◈Helical interpolation which moved helically is enabled by specifying


specifying up to two other axes
which move synchronously with the circular interpolation by circular
circular commands.

The command method is to simply or secondary add a move command axis which is not circular
G17 interpolation axes. An F command specifies a feed rate along a circular arc. Therefore, the feed rate of
G18 the linear axis is as follow Fx ( length of linear axis ) / ( length of circular arc )

G19
G02 (G03) X_ Y_ R_ Z_ F_ ;
G90 Determine
Determinethe
thefeed
feedrate
rateso
sothe
thelinear
linearaxis
axisfeed
feedrate
ratedoes
doesnot
notexceed
exceedany
anyof
ofthe
thevarious
variouslimit
limitvalues.
values.Bit
Bit00(HFC)
(HFC)of
of
parameter No.1404 can be used to prevent the linear axis feed rate from exceeding various limit values.
parameter No.1404 can be used to prevent the linear axis feed rate from exceeding various limit values.
G91 Cutter
Cuttercompensation
compensationisisapplied
appliedonly
onlyfor
foraacircular
circulararc.
arc.
G53 Tool
Tooloffset
offsetand
andtool
toollength
lengthcompensation
compensationcannot
cannotbe
beused
usedininaablock
blockininwhich
whichaahelical
helicalinterpolation
interpolationisiscommanded
commanded

G54~G59 O001
O001 ;;
G92 G17
G17 G40
G40 G49
G49 G80
G80 ;;
G52 G91
G91 G28
G28 Z0
Z0 ;;
G00 G28
G28 X0
X0 Y0
Y0 ;;
G01 G90
G90 G54
G54 G00
G00 X0
X0 Y0
Y0 M03
M03 S800
S800 ;;
G43
G43 G00
G00 Z10.
Z10. H01
H01 ;;
G02,G03
G02
G02 I-30.
I-30. Z-3.
Z-3. F200
F200 ;;
I-30.
I-30. Z-6.
Z-6. ;;
I-30.
I-30. Z-9.
Z-9. ;;
HWACHEON TRAINNING CENTER

G04 : DWELL FUNCTION (DWELL TIME)

G-코드 ◈ The execution of the next block is delayed by specified time.

GO4 FORMAT:
FORMAT:
G40 G04
G04 X__ X__ ;;
G04
G04 P__ P__ ;;
G41
For
For example,
example, specify
specify 10
10 seconds
seconds
G42
G04
G04 X10.X10. or,
or,
G43,G44 G04
G04 P10000
P10000
G49 (P=decimal
(P=decimal point point not
not permitted)
permitted)
G10 XX ,, PP :: Dwell
Dwell time
time [second]
[second]

G11

※ ItIt maintains
maintains its
its previous
previous mode
mode when
when the
the dwell
dwell time
time was
was completed.
completed.
G20,G21
G28
ex1]
ex1] G00
G00 X30.
X30. ;; ex2]
ex2] G01
G01 X30.
X30. F0.2
F0.2 ;;
G29
G04
G04 P1000
P1000 ;; G04
G04 P1000
P1000 ;;
G30
X40.
X40. ;; X40.
X40. ;;

After
After completion,
completion, G00
G00 MODE
MODE After
After completion,
completion, G01
G01 MODE
MODE
HWACHEON TRAINNING CENTER

G40 : CUTTER COMPENSATION CANCEL


G-코드 ◈ After cutting completion, G40 cancels cutter compensation.

When the following command is specified in the G00 or G01 mode, the tool moves
GO4 from the head of the old vector at the start position to the end position (X,Y). In
G40 the G01 mode, the tool moves linearly. In the G00 mode, rapid traverse is carried
out along each axis.
G41
G40 X_ Y_ ; Tool center This command changes the mode of
G42 path the equipment from the cutter
compensation mode to the cancel
G43,G44 mode.

G49 Old vector When only G40; is specified, and


Start position
X_Y_is not specified, the tool moves
G10 by the old vector amount in the
Programmed path
opposite direction.
G11
G20,G21
Note)
G28 - When inner cutting is specified, after completion the axis are moved inside and cancel
G29 the cutter compensation at the same time.
- When outer cutting is specified, after completion the axis are moved outside and cancel
G30
the cutter compensation at the same time.

- Cutter compensation cannot be canceled in the circular interpolation ( G02,G03 )mode.


HWACHEON TRAINNING CENTER

G41 : CUTTER COMPENSATION LEFT


G-코드

G41 offsets the tool towards the left of the work piece as you see when you face
GO4 in the same direction as the movement of the cutting tool.
G40
G41 X_ Y_ I_ J_ H_(D_) ; Cutter compensation left specifies a
G41 Tool center tool to be offset to the right of work
path
piece looking toward the direction in
G42 which the tool advances.

G43,G44 OLD VECTOR NEW


VECTOR
G49
START X, Y I, J G41
G10 POINT
PROGRAMMED PATH
G11
G40
G20,G21 ※Cutter
compensation
G28 should be
canceled after G41 must be started longer distance than
tool diameter
G29 G40 cutting
completion . When outer cutting
G30 G41 If not alarm will be
occurred. ※The CNC enters the offset cancel mode,
and the action of this block is called the
When inner cutting offset cancel..
HWACHEON TRAINNING CENTER

G42 : CUTTER COMPENSATION RIGHT


G-코드

G41 offsets the tool towards the right of the work piece as you see when you
GO4 face in the same direction as the movement of the cutting tool.
G40
G42 X_ Y_ I_ J_ H_(D_) ; Cutter compensation right specifies a
G41 PROGRAMMED PATH tool to be offset to the right of work
piece looking toward the direction in
G42 START X, Y I, J which the tool advances.
POINT
G43,G44
OLD VECTOR NEW
G49 VECTOR

G10 TOOL CENTER PATH

G11 G42

G20,G21 ※Cutter G40


compensation
G28 should be
canceled after G42 must be started longer distance than
G29 G40 cutting tool diameter
completion . When outer cutting
G30 G42 If not alarm will be
occurred. ※The CNC enters the offset cancel
mode, and the action of this block is
When inner cutting called the offset cancel
HWACHEON TRAINNING CENTER

G43 : TOL LENGTH OFFSET (+) / G44 : TOOL LENGTH OFFSET (-)

G-코드 ◈ Specify +,- distance as the value of tool length

This function can be used by setting the difference between the tool length assumed during programming
GO4 and the actual tool length of the tool used into the offset memory. It is possible to compensate the
difference without changing the program. Specify the direction of offset with G43 or G44. Select a tool
G40 length offset value from the offset memory by entering the corresponding address and number (H code)

G41 Actual tool It is possible to compensate the


Tool assumed
Specify this distance difference without changing the
G42 during programming
as the value program.
G43,G44 of tool length offset. G43 is +direction OFFSET
G49 G44 is -direction OFFSET

G10 The following two methods of tool length offset can be used

G11
TOOL LENG OFFSET C TOOL LENG OFFSET A
G20,G21
Z-axis
STANDARD TOOL ETC ETC
G28 Difference
No.1 tool
No.3 tool zero point
from standard tool
No.2 tool
Difference
G29 to etc tool
From Z-axis
G30 Zero point
To upper side
material
Of material

◎ G43 Z5. H1 ; -> H1 OFFSET VALUE is specified.


HWACHEON TRAINNING CENTER

TOOL LENGTH OFFSET SETTING

G-코드

GO4

① Z-axis
Z-axis compensate
compensate value
value sets
sets Z0,
Z0, then
then offset
offset value
value of
of each
each tools
tools
G40
G41 input
input distance
distance from
from program
program origin
origin to
to machine origin..
machine origin
G42

② The
The offset
offset value
value of
of standard
standard tool
tool inputs
inputs 00 and
and distance
distance from
from
G43,G44
G49 standard
standard tool
tool to
to each
each tools
tools on
on offset
offset screen.
screen. At
At this
this time
time work
work
G10 coordinate
coordinate zz value
value is
is the
the distance
distance from
from program
program origin
origin to
to machine
machine
G11
origin.
origin.
G20,G21
G28 ③
③ Number
Number of
of OFFSET
OFFSET is
is 32,
32, Number
Number of
of offset
offset containing
containing option
option is
is 99.
99.
G29
G30
HWACHEON TRAINNING CENTER

G49 : TOOL LENGTH OFFSET CANCEL

G-코드 ◈ Using for cancel tool length offset.

To cancel tool length offset, specify G49 or H0.


GO4
After G49 or H0 is specified, the system immediately cancels the offset.
G40
G41 NOTE)

G42 1. After tool length offset B is executed along two or more axes, offset along all
the axes is canceled by specifying G49.
G43,G44
㉠ Tool length offset A
G49 : Compensates for the difference in tool length along the Z-axis.
G10 ㉡ Tool length offset B
G11 : Compensates for the difference in tool length along the X,Y,Z-axis.
㉢ Tool length offset C
G20,G21
: Compensates for the difference in tool length along a specified axis
G28
2. In the case of the offset in three axes or more, if the offset is canceled by G49
G29 code, the P/S alarm 015 is generated. Cancel the offset by using G49 or H0.
G30
HWACHEON TRAINNING CENTER

G10 (PROGRAMMABLE PARAMETER ENTRY )

G-코드 ◈ COORDINATE SYSTEM, COMPENSATION DATA SETTING

GO4 ① (COORDINATE SYSTEM SETTING)


G90(G91) G10 L2 P1-P6 X__._ Y__._ Z__._ ;
G40
L2 : Coordinate system setting / P1-P6 : G54-G56 coordinate system
G41 Work coordinate system is performed by G90, It inputs from machine zero point to work zero point distance.

G42 ② (OFFSET SETTING)


G90(G91)G10 L1 P1 R10. ;
G43,G44 L1 : OFFSET setting (Omitting is available) / P1 : OFFSET No.1 / R10. : OFFSET value
G49 ① (Coordinate setting) : Automatic WORK coordinate INPUT
G10 1. We make maximum 6 origins in a work. We call the origin when we need and use for our
convenience.
G11
2. : One table be installed on 6 material. Then, each origin sets
G20,G21
(PROGRAMMING EXAMPLE ) •The coordinate system is set to the automatic with left
G28 table according to P number
G90G10L2P1X_ .Y_. Z_. ; (G54)
G29 •Some or all X.. Y. Z. coordinate value input freely. We
G90G10L2P2X_. Y_. Z_. ; (G55)
usually input X Y coordinate and use much.
G30 G90G10L2P3X_. Y_. Z_. ; (G56)
•The positive value inputs in a machine coordinate if a
G90G10L2P4X_. Y_. Z_. ; (G57) work coordinate stays at the + direction. The negative
value inputs in a machine coordinate if a work
G90G10L2P5X_. Y_. Z_. ; (G58)
coordinate stays at the - direction
G90G10L2P6X_. Y_. Z_. ; (G59)
HWACHEON TRAINNING CENTER

G10 (PROGRAMMABLE PARAMETER ENTRY)

G-코드 ◈ COORDINATE SYSTEM, COMPENSATION DATA SETTING

② Automatic coordinate system setting


GO4
a. See the below the picture. Set the G54~G59 programming
G40 b. Distance from machine coordinate to G54 coordinate
X-axis : -300.mm Y-axis : -150.mm Z-axis : -400.mm

40
G41 c. TOOL : 20.mm End mill G56 G55 G54

40
LENGTH OFFSET (H) : 10

0
G42

R1
140
TOOL OFFSET (D) : 20 (H command is available) 40

60
Cutting depth : 10.mm Material : Aluminum
G43,G44
G59 G58 G57

40
G49
G10 40 60 60 40
200
G11 O0100; (MAIN PRO) G90G00G55X0Y0;
O0200; (SUB.PRO)
G00G40G49G69G80; M98P0200;
G00G90Z3.;
G20,G21 G91G28Z0; G00G90G56X0Y0;
G01Z-10.F200;
G91G28X0Y0; M98P0200;
G42X-20.Y0D20F350;
G28 G90G10L2P1X-300.Y-150.Z0; G00G90G57X0Y0;
Y20.;
G90G10L2P2X-360.Y-150.Z0; M98P0200;
X20.;
G29 G90G10L2P3X-420.Y-150.Z0; G00G90G58X0Y0;
Y-20.;
G90G10L2P4X-300.Y-210.Z0; M98P0200;
X-20.;
G30 G90G10L2P5X-360.Y-210.Z0; G00G90G59X0Y0;
Y12.;
G90G10L2P6X-420.Y-210.Z0; M98P0200;
G40X0Y0;
G00G90G54X0Y0; G91G28Z0;
G00Z3.;
G43Z50.H10S3500M03; G28X0Y0M05;
M99;
M98P0200; M30;
HWACHEON TRAINNING CENTER

G10 (PROGRAMMABLE PARAMETER ENTRY)

G-코드 ◈ COORDINATE SYSTEM, COMPENSATION DATA SETTING

GO4 ① Automatic coordinate system setting method

G40 a. FORMAT
G10 P_ (OFFSET NUMBER) R_ ; (OFFSET VALUE)
G41 b. Set the programming (Cutting outside of the square)

160

240
G42 c. ASSUME X-400. Y-200. Z-350.
(The upper side of material is zero point of Z-axis]
◐R
15

G43,G44 TOOL LENGTH OFFSET NUMBER(H) : 5 , TOOL LENGTH OFFSET(D) : 6


e. TOOL : 30.mm End mill Material : Aluminum,
50
G49 Material size : 240X240X100
(EXAMPLE)
160

O0010; (MAIN PRO) O0200; (SUB.PRO) 240 100


G10 G17G40G49G69G80; G91G10P5R-10.;
G90G00Z0M05;
G11 G91G28Z0;
G91G28X0Y0; M98P40030; (O0030 4 repeats)

G20,G21 G90G10L2P1X-400.Y-200.Z0; M99; 1. OFFSET values input


G90G10L1P5R-350.;
absolute value or increment
G28 G90G10L1P6R55.; O0030; (SUB.PRO)
G00G54X140.Y140.; G91G10P6R-10.; value by using G90 or G91.
G29 G43Z5.H05S2500M03; G90G01G41X80.Y82.D6F250;
M98P50020; (O0020 5 repeats) Y-80.; 2. A number of repeats of
G30 G90G10P5R-350,; X-80.;
subprogram are decided by
G10P6R15.; Y80.;
G00Z50.M09; X97.; offset value of G10.
G91G28Z0M05; G00G40X140.Y140.;
G28X0Y0; M99;
M30;
HWACHEON TRAINNING CENTER

G11 (PROGRAMMABLE PARAMETER ENTRY)


G-코드 ◈ Programmable parameter entry CANCEL

GO4
G40
G41
G42
G43,G44
G49
G10
G11
G20,G21
G28
G29
G30
HWACHEON TRAINNING CENTER

G28 (Reference position return)


G-코드 ◈ Function of reference position return.

Reference position is a fixed position on a machine.The tool can easily be moved


GO4 by the reference position return function.
G40
G41 G28 IP_ ; Reference position return.
G42 예) G91 G28 Z0;
G43,G44 G28X0Y0;
G49 When G28 command is specified, G91 must be commanded.
G10
Positioning to the intermediate or reference positions are performed at the
G11 rapid traverse rate of each axis. Therefore, for safety, the cutter compensation,
and tool length compensation should be cancelled before executing this
G20 command. The coordinates for the intermediate position are stored in the CNC
G28 only for the axes for which a value is specified in a G28 block. For the other axes,
the previously specified coordinates are used.
G29
(Example) N1 G28 X40.0 ; intermediate position (X40.0)
G30 N2 G28 Y60.0 ; Intermediate position (X40.0, Y60.0)
HWACHEON TRAINNING CENTER

G29 (Return from the Reference position)


G-코드 ◈ Function of return from the reference position.

Positioning to the intermediate or reference points are performed at the rapid


GO4 traverse rate of each axis.
G40
G41 G29 IP_ ;
G42 IP : Command specifying the destination of return from reference
G43,G44 position (Absolute/ Incremental command)
G49 In general, it is commanded immediately following the G28 command or G30.
G10 G29 X_ Y_ Z_ ; When the work piece coordinate system is changed after the tool
reached the reference position through the intermediate point by the G28
G11
command, the intermediate point also shifts to a new coordinate system.
G20 (예) G91 G28 Z0 ;
G28 G28 X0 Y0 ;
G29 M06 ;

G30 G29 X_ Y_ Z_ ;
HWACHEON TRAINNING CENTER

G30 (2nd, 3rd, 4th reference position return)


G-코드 ◈ 2nd, 3rd, 4th reference position return function

Even after a machine coordinate system is established upon the completion of


GO4 reference position return, the manual reference position return feed rate
G40 conforms to the setting of the parameter.

G41 G30 P2 IP_ ; 2nd reference position return (P2 can be omitted) (PARMATER NO.1241)

G42 G30 P3 IP_ ; 3rd reference position return (PARAMETER NO.1242)

G43,G44 G30 P4 IP_ : 4th reference position return (PARAMETER NO.1243)


G49 IP : Intermediate position (Absolute/ Incremental command)
G10 In a system without an absolute-position detector, the first, third, and fourth
G11 reference position return functions can be used only after the reference
position return (G28) or manual reference position return is made.
G20
The G30 command is generally used when the automatic tool changer position
G28 differs from the reference position.

G29
G30 ⊙ Up to 4 reference positions can be specified by setting coordinates in the
machine coordinate system in parameter (NO.1240 ~ 1243).
HWACHEON TRAINNING CENTER

G50 : SCALING CANCLE G51 : SCALING

G-코드 ◈ A programmed figure can be magnified or reduced.

G50,G51 ※
※ I_
I_ J_
J_ K_;
K_; Scaling
Scaling magnification
magnification O0002
O0002 ;;
CYCLE 가공 for
for X,
X, Y,
Y, ZZ axis
axis respectively
respectively G17
G17 G40
G40 G49
G49 G80
G80 ;;

G80 G91
G91 G28
G28 Z0
Z0 ;;
G28
G28 X0
X0 Y0
Y0 ;;
G81
G90
G90 G54
G54 G00
G00 X0
X0 Y0
Y0 M03
M03 S2000
S2000 ;;
G82
G43
G43 G00
G00 Z5.
Z5. H01
H01 ;;
G73
G51
G51 I2000
I2000 J2000
J2000 ;;
100

G83 G01
G01 Z-1.
Z-1. F200
F200 ;;
50

G74 X50.
X50. ;;
G84 Y50.
Y50. ;;
G76 50
X0.
X0. ;;

G85 Y0.
Y0. ;;
100
G00
G00 Z20.
Z20. M05
M05 ;;
G86

※ Specify
Specify G51
G51 in
in aa separate
separate block.
block. After
After G91
G91 G28
G28 Z0
Z0 ;;
the
the figure
figure is
is enlarged
enlarged oror reduced,
reduced, specify
specify G28
G28 X0
X0 Y0
Y0 ;;
G50
G50 to
to cancel
cancel the
the scaling
scaling mode
mode M30
M30 ;;
HWACHEON TRAINNING CENTER

G50 : SCALING CANCEL G51 : SCALING


◈ The dimensions specified with X_,Y_, and Z_ can be scaled up or down
G-코드
with the same or different rates of magnification.

G50,G51 G51 X__ Y__ Z__ P__ ; PP :: Scaling


Scaling magnification
magnification

CYCLE 가공 XX YY ZZ :: Absolute
for
Absolute command
command
for center
center coordinate
coordinate value
value of
of scaling
scaling
G80
1.
1. Scaling
Scaling up
up or
or down
down along
along all
all axes
axes at
at the
the same
same rate
rate of
of magnification.
magnification.
G81 ※Unless
※Unless specified
specified inin the
the program,
program, the
the magnification
magnification rate
rate specified
specified inin the
the parameter
parameter isis applied.
applied.
Least
Least input
input increment
increment of of scaling
scaling magnification
magnification is:0.001
is:0.001 or
or 0.00001.
0.00001.
G82 ItIt is
is depended
depended on on parameter
parameter SCRSCR (NO.5400#7)
(NO.5400#7) which
which value
value is
is selected
selected
※If
※If scaling
scaling PP isis not
not specified
specified on
on the
the block
block of
of scaling,
scaling, the
the scaling
scaling magnification
magnification set
set to
to parameter
parameter
G73 (No.5411)
(No.5411) is is applicable
applicable
G83 G51 X__ Y__ Z__ I__ J__ K__ ; II JJ KK :: Scaling
Scaling magnification
magnification for
for X,Y,Z
X,Y,Z
G74 XX YY ZZ :: Absolute
Absolute command
command forfor center
center
coordinate
coordinate value of scaling
value of scaling
G84
G76 2.2. Scaling
Scaling of
of each
each axis,
axis, programmable
programmable mirror
mirror image
image (negative
(negative magnification)
magnification)
※Set
※Setaaparameter
parameterXSC
XSC(No.5400#6)
(No.5400#6)which
whichvalidates
validateseach
eachaxis
axisscaling.
scaling.
G85 Set
Set Parameter SCLx (No.5401#0) to enable scaling along eachaxis.
Parameter SCLx (No.5401#0) to enable scaling along each axis.
Magnification
Magnificationisisset
setto
toparameter
parameter(No.5421)
(No.5421). .
G86
IfIfaanegative
negativevalue
valueisisset,
set,mirror
mirrorimage
imageisiseffected.
effected.
IfIfmagnification
magnificationI,I,JJor
orKKisisnot
notcommanded,
commanded,aamagnification
magnificationvalue
valueset
setto
toparameter
parameter(No.5421)
(No.5421)isis
effective.
effective.However,
However,aavalue
valueother
otherthan
than00must
mustbe
beset
setto
tothe
theparameter
parameter
※Decimal
※Decimalpoint
pointprogramming
programmingcan
cannot
notbe
beused
usedto
tospecify
specifythe
therate
rateof
ofmagnification
magnification( (I,I,J,J,KK) )
HWACHEON TRAINNING CENTER

CANNED CYCLES LIST

G-코드 ◈ Canned cycles list


DRILLING
DRILLING (-Z Operation Retraction
G50,G51 GG CODE
(-Z Operation at
at the
the Retraction
Application
CODE direction)
direction) bottom of a hole
bottom of a hole
(+Z
(+Z direction)
direction) Application
CYCLE 가공 Intermittent
Intermittent feed Rapid
Rapid traverse High-speed
G73
G73 feed traverse High-speed peck
peck drilling
drilling
G80
G74
G74 Feed
Feed DwellSpindle
DwellSpindle CW
CW Feed
Feed Left-hand
Left-hand tapping
tapping
G81
G76 Feed Oriented
Oriented spindle
spindle stop Rapid
Rapid traverse Fine
G76 Feed stop traverse Fine Boring
Boring
G82
G80
G80 Cancel
Cancel
G73
G81 Feed Rapid
Rapid traverse Drill
G81 Feed traverse Drill ,, Spot
Spot Drilling
Drilling
G83
G82 Feed Dwell Rapid
Rapid traverse Drill
G82 Feed Dwell traverse Drill ,, Counter
Counter Boring
Boring
G74 Intermittent
G83 Intermittent feed Rapid
Rapid traverse Peck
G83 feed traverse Peck drilling
drilling Cycle
Cycle
G84
G84
G84 Feed
Feed DwellSpindle
DwellSpindle CCW
CCW Feed
Feed Tapping
Tapping
G76
G85
G85 Feed
Feed Feed
Feed Boring
Boring
G85
G86 Feed Spindle Rapid
Rapid traverse
G86 Feed Spindle stop
stop traverse Boring
Boring
G86
G87 Feed Spindle Rapid
Rapid traverse
G87 Feed Spindle CW
CW traverse Peck
Peck Boring
Boring
G88 Feed Dwell spindle stop
Dwell spindle stop Manual Boring
G88 Feed Manual Boring
G89
G89 Feed
Feed Dwell
Dwell Feed
Feed Boring
Boring
HWACHEON TRAINNING CENTER

A CANNED CYCLE CONSISTS OF A SEQUENCE OF 6 OPERATIONS

G-코드 ◈ A canned cycle consists of a sequence of six operations

G50,G51
1.1.Positioning
Positioningof
ofaxes
axesXXand
andYY Rapid
Rapid traverse
traverse
CYCLE 가공 Feed
Feed
2.2.Rapid
Rapidtraverse
traverseup
upto
to
G80 Operation1 Initial
Initial level
level
point
pointRRlevel
level
G81
G82 3.3.Hole
HoleMachining
Machining Operation2 Operation6
G73 4.4.Operation
Operationat
atthe
thebottom
bottom Point
Point RR
G83 of
level
level
ofaahole
hole
G74
5.5.Retraction
Retractionto
topoint
pointRRlevel
level Operation3 Operation5
G84
6.6.Rapid
Rapidtraverse
traverseup
upto
to
G76
G85 the
theinitial
initialpoint
point
Operation4

G86

G98 : Return to initial point


Return point level
G99 : Return to point R level
HWACHEON TRAINNING CENTER

G80 : CANNED CYCLE CANCEL

G-코드 ◈ G80 cancels canned cycles.

G50,G51
G80;
CYCLE 가공
All canned cycles are canceled to perform normal operation.
G80
G81
G82 M3 S500 ; Cause the spindle to start rotating.
G90 G99 G76 X300. Y-250. Position, drill hole 1, then return to point R
G73
Z-50. R3. Q5. Orient at the initial level, then shift by 50mm
G83
P1000 F120 ; Dwell time 1 second
G74
Y-550. ; Position, drill hole 2, then return to point R
G84 Y-750. ; Position, drill hole 3, then return to point R
G76 X1000. ; Position, drill hole 4, then return to point R

G85 X-550. ; Position, drill hole 5, then return to point R


G98 Y-750.; Position, drill hole 6, then return to point R
G86
G80 G28 G91 X0 Y0 Z0; Return to the reference position return, canned cycle cancel
M5; Cause the spindle to stop rotating
HWACHEON TRAINNING CENTER

G81 : DRILL CYCLE , SPOT BORING


◈This cycle is used for normal drilling. Cutting feed is performed to the bottom of the
G-코드
hole. The tool is then retracted from the bottom of the hole on rapid traverse.

G81 X __ Y__ Z __ R __ F __ K __;


G50,G51
CYCLE 가공 X__ ☞
☞ After
After positioning
positioning along
along the
the X,
X, YY
X__ Y__
Y__ : : Hole
Hole position
position data
data
Z__: axes,
axes, rapid
rapid traverse
traverse isis performed
performed to
G80 Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
thehole
hole to
R__:
R__: The distance from the initial level to point Rlevel
The distance from the initial level to point R level point R. Drilling id performed
point R. Drilling id performed from Rfrom R
G81 F__
F__ : : Cutting
Cutting feed
feed rate
rate to
to Z.Z. The
The tool
tool id
id then
then retracted
retracted inin
K__
K__ : Number of repeats(if required)
: Number of repeats(if required) rapid
rapid traverse
traverse
G82
G73
G81
G81 (( G98
G98 )) G81
G81 (( G99
G99 ))
G83
INITIAL
INITIAL LEVEL
LEVEL
G74
G84
Point
Point RR level
level
G76 Point R Point R

G85
G86
Point Z Point Z
HWACHEON TRAINNING CENTER

G81 : DRILL CYCLE , SPOT BORING

G-코드 ◈ EXAMPLE

M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G50,G51
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
CYCLE 가공 Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G80 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73 G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
M5;
M5;
G74
G84
※ Before specifying G81, use a M code to rotate spindle
G76
※ When the G81 command and an M code are specified in the same block, the M code is executed
G85 at the time of the 1st positioning operation. The system then proceeds to the next drilling operation.

G86 ※ Do not specify a G code of the 01 group and the G81 in a single block.
Otherwise, G81 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G82 : DRILL CYCLE , COUNTER BORING


◈This cycle is used for normal drilling. Cutting feed is performed to the bottom of the hole.
G-코드 At the bottom, a dwell is performed, then the tool is then retracted from the bottom of the hole
on rapid traverse. This cycle is used to drill holes more accurately with respect to depth.

G82 X __ Y__ Z __ R __ P__ F __ K __;


G50,G51
CYCLE 가공 X__ ☞ After positioning
☞After positioning along
along the
the X,
X, YY axes,
axes,
X__ Y__
Y__ : : Hole
Hole position
position data
data
Z__:
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
the rapid
rapid traverse
traverse is is performed
performed to to point
point R.
R.
G80 hole
hole Drilling id performed from R to Z.
Drilling id performed from R to Z. When When
R__:
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR the
the bottom
bottom of of the
the hole
hole has
has been
been reached,
reached,
G81 level
level aa dwell
dwell isis performed.
performed. TheThe tool
tool id
id then
then
F__
F__ : : Cutting
Cutting feed
feed rate
rate
G82 K__
retracted
retracted in in rapid
rapid traverse
traverse
K__ : : Number
Number ofofrepeats
repeats (if
(if required)
required)
G73
G82
G82 (( G98
G98 )) G82
G82 (( G99
G99 ))
G83
INITIAL
INITIAL LEVEL
LEVEL
G74
G84
POINT
POINT RR LEVEL
LEVEL
G76 POINT R LEVEL POINT R

G85
G86
P POINT Z P POINT Z
HWACHEON TRAINNING CENTER

G82 : DRILL CYCLE , COUNTER BORING

G-코드 ◈. EXAMPLE

G50,G51 M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. P100
P100 F120
F120 ;;
CYCLE 가공
Position,
Position, drill
drill hole
hole 1,
1, DWELL 1S, then
DWELL 1S, then return
return to
to point
point R.
R.
G80
Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81
Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82 X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73 X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83
G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
G74 M5;
M5;
G84
※ Before specifying G82, use a M code to rotate spindle
G76
※ When the G82 command and an M code are specified in the same block, the M code is executed
G85 at the time of the 1st positioning operation. The system then proceeds to the next drilling operation.

G86 ※ Do not specify a G code of the 01 group and the G82 in a single block.
Otherwise, G82 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G73 : PECK DRILLING CYCLE


◈ It performs intermittent cutting feed to the bottom of a hole
G-코드
while removing chips from the hole.
G73 X __ Y__ Z __ R __ Q __ F __ K __;
G50,G51
X__
X__ Y__
Y__ : : Hole
Hole position
position data
data ☞
☞ The
The high-speed
high-speed peck peck drilling
drilling cycle
cycle
CYCLE 가공 Z__: performs
performs intermittent feeding along
intermittent feeding along the
the Z-
Z-
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
the axis.
hole axis. When
When thisthis cycle
cycle is
is used,
used, chips
chips can
can be
be
G80 hole removed
R__: removed fromfrom thethe hole
hole easily,
easily, and
and aa
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR smaller value can be set for retraction.
smaller value can be set for retraction.
level
G81 level This
This allows,
allows, drilling
drilling to
to be
be performed
performed
F__
F__ : : Cutting
Cutting feed
feed rate
rate efficiently.
efficiently. Set the clearance, d,
Set the clearance, d, in
in
G82 K__
K__ : Number of repeats (if
: Number of repeats (if required)
required) parameter 5114.
parameter 5114.

G73 G73
G73 (( G98
G98 )) G73
G73 (( G99
G99 ))
G83 INITIAL
INITIAL LEVEL
LEVEL

G74 POINT
POINT RR LEVEL
LEVEL
POINT R POINT R
G84
G76 q d q d

G85 q q
d d
G86
q q

POINT Z POINT Z
HWACHEON TRAINNING CENTER

G73 : PECK DRILLING CYCLE

G-코드 ◈ EXAMPLE

G50,G51 M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
CYCLE 가공
Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G80 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73
G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
G74 M5;
M5;

G84
G76 ※ Before specifying G73, use a M code to rotate spindle

G85 ※ When the G73 command and an M code are specified in the same block,
the M code is executed at the time of the 1st positioning operation.
G86
The system then proceeds to the next drilling operation.
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G83 : PECK DRILLING CYCLE

G-코드
◈ It performs intermittent cutting feed to the bottom of a hole
while removing chips from the hole
G83 X __ Y__ Z __ R __ Q __ F __ K __;
G50,G51
X__
X__ Y__
Y__ : : Hole
Hole position
position data
data ☞☞ QQ represents
represents the the depth
depth ofof cut
cut for
for each
each
CYCLE 가공 Z__: cutting feed. It must always be
cutting feed. It must always be specifiedspecified
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
the as
hole as an
an incremental
incremental value.
value. In
In second
second andand
G80 hole subsequent cutting feeds, rapid traverse
R__: subsequent cutting feeds, rapid traverse
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR is
is performed
performed up up to
to aa dd point
point just
just before
before
level
G81 level where
where thethe last
last drilling
drilling ended,
ended, and and cutting
cutting
F__
F__ : : Cutting
Cutting feed
feed rate
rate feed is performed again. D is
feed is performed again. D is set in set in
G82 K__
K__ : Number of repeats (if
: Number of repeats (if required)
required) parameter
parameter 5115.
5115.

G73 G83
G83 (( G98
G98 )) G83
G83 (( G99
G99 ))
G83 INITIAL
INITIAL LEVEL
LEVEL

G74
POINT
POINT RR LEVEL
LEVEL
POINT R POINT R
G84
G76 q d q d

G85 q d q d
G86
q POINT Z q POINT Z
HWACHEON TRAINNING CENTER

G83 : PECK DRILLING CYCLE

G-코드 ◈ EXAMPLE

M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G50,G51
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R-3.
R-3. Q15.
Q15. F120
F120 ;;
CYCLE 가공 Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G80 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73 G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
M5;
M5;
G74
G84 ※ Before specifying G83, use a M code to rotate spindle
G76 ※ When the G83 command and an M code are specified in the same block, the M code is executed

G85 at the time of the 1st positioning operation. The system then proceeds to the next drilling operation.

※ Do not specify a G code of the 01 group and the G83 in a single block.
G86
Otherwise, G83 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G74 : LEFT-HANDED TAPPING CYCLE

G-코드
◈In the left-handed tapping cycle, when the bottom of the hole
has been reached, the spindle rotates clockwise.
G74 X __ Y__ Z __ R __ F __ K __;
G50,G51
X__
X__ Y__
Y__ : : Hole
Hole position
position datadata ☞☞ Tapping
Tapping isis performed
performed by by turning
turning the
the spindle
spindle
CYCLE 가공 X__
X__ Y__
Y__ :: 구멍
구멍 위치
위치 DATA
fromDATA
Z__: counterclockwise.
counterclockwise. When When thethe bottom
bottom of of the
the hole
Z__: The distancefrom
The distance point
pointRRtotothe
thebottom
bottomofofthe
the has
hole
Z__
hole : 소재 Zero점에서 구멍 밑점까지의 거리 has been
been reached,
reached, the the spindle
spindle isis rotated
rotated
G80 Z__
hole : 소재 Zero점에서 구멍 밑점까지의 거리 clockwise
clockwise for
for retraction.
retraction. This
This creates
creates aa reverse
reverse
R__:
R__:The
R__
R__ The distance
:: 소재
소재 from
fromthe
Zero점에서의
Zero점에서의
distance theinitial
R점까지의level
R점까지의
initial levelto
topoint
거리RR
거리
point thread.
thread. Feed
Feed rate
rate overrides
overrides areare ignored
ignored during
during
level
F__
level :: 절삭
G81 F__ 절삭 이송속도
이송속도 left-
left-handed tapping.
left-handed tapping. AA feed
feed hold
hold does
does not
not stop
stop
F__
F__
K__ ::: Cutting
Cutting
반복 횟수 feed
feed
(반복할rate
rate필요가 the
the machine
machine until
until the
the return
return operation
operation is is
K__ : 반복 횟수 (반복할 필요가 있을 있을 때만) 때만) completed.
completed.
G82 K__ : Number of repeats
K__ : Number of repeats (if required)(if required)

G73 G74
G74 (( G98
G98 )) G74
G74 (( G99
G99 ))
G83 INITIAL
INITIAL LEVEL
LEVEL

G74
SPINDLE CCW
G84 SPINDLE CCW
POINT R POINT R
G76 POINT
POINT RR LEVEL
LEVEL

G85
G86
POINT Z POINT Z

SPINDLE SPINDLE CW SPINDLE SPINDLE CW


STOP STOP
HWACHEON TRAINNING CENTER

G74 : LEFT-HANDED TAPPING CYCLE

G-코드 ◈ EXAMPLE

G50,G51 M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
CYCLE 가공
Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G80 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73
G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
G74 M5;
M5;

G84 ※ Before specifying G74, use a M code to rotate spindle


G76 ※ When the G74 command and an M code are specified in the same block, the M code is executed

G85 at the time of the 1st positioning operation. The system then proceeds to the next tapping operation.

※ Do not specify a G code of the 01 group and the G74 in a single block.
G86
Otherwise, G74 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G84 : TAPPING CYCLE

G-코드
◈In the tapping cycle, when the bottom of the hole
has been reached, the spindle is rotated in the reverse direction.
G84 X __ Y__ Z __ R __ F __ K __;
G50,G51
X__ ☞☞ Tapping
Tapping is
is performed
performed by by turning
turning the
the spindle
CYCLE 가공 X__ Y__
Y__ : : Hole
Hole position
position data
data clockwise.
spindle
Z__: clockwise. When the bottom of the hole has
When the bottom of the hole has
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
the been
hole been reached,
reached, the
the spindle
spindle is
is rotated
rotated in
in the
the
G80 hole reverse
reverse direction
direction forfor retraction.
retraction. This
This creates
creates
R__:
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR threads.
threads. Feed rate overrides are ignored during
Feed rate overrides are ignored during
level
G81 level left-
left-handed tapping.
left-handed tapping. AA feed
feed hold
hold does
does not
not stop
stop
F__
F__ : : Cutting
Cutting feed
feed rate
rate the
the machine
machine until
until the
the return
return operation
operation is
is
G82 K__
K__ : Number of repeats (if
: Number of repeats (if required)
required) completed.
completed.

G73 G84
G84 (( G98
G98 )) G84
G84 (( G99
G99 ))
G83 INITIAL
INITIAL LEVEL
LEVEL

G74
G84 SPINDLE CW SPINDLE CW
POINT R P POINT R P POINT
POINT RR LEVEL
LEVEL
G76
G85
G86
P POINT Z P POINT Z

SPINDLE CCW SPINDLE CCW


HWACHEON TRAINNING CENTER

G84 : TAPPING CYCLE

G-코드 ◈ EXAMPLE

G50,G51 M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
CYCLE 가공
Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G80 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73
G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
G74 M5;
M5;

G84 ※ Before specifying G84, use a M code to rotate spindle


G76 ※ When the G84 command and an M code are specified in the same block, the M code is executed

G85 at the time of the 1st positioning operation. The system then proceeds to the next tapping operation.

※ Do not specify a G code of the 01 group and the G84 in a single block.
G86
Otherwise, G84 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

M29 : RIGID TAPPING

G-코드
◈ When the spindle motor is controlled in rigid mode as if
it were a servo motor, a tapping cycle can be sped up.
RIGID MODE (3 METHODS)
G50,G51 G84(G74) X __Y__Z__R__F__K__ ;
CYCLE 가공 X__
X__ Y__
Y__ : : Hole
Hole position
position data
data ※※ Specify
Specify M29
M29 S__
S__ before
before aa tapping
tapping
Z__:
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
the command
G80 command
hole
hole
R__:
※※ Specify
Specify M29
M29 S__
S__ in
in aa block
block which
which
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR
G81 level contains
contains aa tapping
tapping command.
command.
level
F__ ※※ Specify G84 for rigid tapping
Specify G84 for rigid
G82 F__ : : Cutting
Cutting feed
feed rate
rate tapping
K__
K__ : Number of repeats (if
: Number of repeats (if required)
required) (parameter
(parameter G84
G84 No.5200#0
No.5200#0 set set to
to 1).
1).
G73
G83 G84
G84 (( G98
G98 )) G84
SPINDLE STOP SPINDLE STOP G84 (( G99
G99 ))
G74 INITIAL
INITIAL LEVEL
LEVEL

G84 SPINDLE CW SPINDLE CW P SPINDLE STOP


P SPINDLE STOP
G76 POINT R POINT R
POINT
POINT RR LEVEL
LEVEL POINT
POINT RR LEVEL
LEVEL
G85
G86
P POINT Z P Z점

SPINDLE STOP SPINDLE STOP


SPINDLE CCW SP[NDLE CCW
HWACHEON TRAINNING CENTER

G76 : FINE BORING


◈When the bottom of the hole has been reached, the spindle stops, and the tool is
G-코드
moved away from the machined surface of the work piece and retracted

G76 X __ Y__ Z __ R __ Q__ P __ F __ K __; SPINDLE


SPINDLE Orientation
Orientation tool
tool
G50,G51
CYCLE 가공 X__
X__ Y__
Y__ : : Hole
Hole position
position data
data
Z__
Z__ : :The
Thedistance
distancefrom
frompoint
pointRRto
tothe
thebottom
bottomofofthe
thehole
hole
G80 R__
R__ : :The
The distance from the initial level to point Rlevel
distance from the initial level to point R level
Q__
Q__ : :Shift
Shiftamount
amountat atthe
thebottom
bottomof ofaahole
hole
G81 P__
P__ : :Dwell time at the bottom of a hole
Dwell time at the bottom of a hole
F__
F__ : : Cutting
Cutting feed
feed rate
rate
G82 K__
K__ : : Number
Number of repeats (if
of repeats (if required)
required) Shift
Shift amount
amount qq
G73
G76
G76 (( G98
G98 )) G76
G76 (( G99
G99 ))
G83
SPINDLE CW INITIAL
INITIAL LEVEL
LEVEL
G74
SPINDLE CW
G84
POINT
POINT RR LEVEL
LEVEL
G76 POINT R POINT R

G85
P P
G86
OSS OSS
POINT Z POINT Z
q q
HWACHEON TRAINNING CENTER

G76 : FINE BORING

G-코드 ◈ EXAMPLE

M3 S500 ; Cause the spindle to start rotating.


G50,G51
G90 G99 G76 X300. Y-250. Position, drill hole 1, then return to point R
CYCLE 가공 Z-50. R3. Q5. Orient at the initial level, then shift by 50mm
P1000 F120 ; Dwell time 1 second
G80
Y-550. ; Position, drill hole 2, then return to point R
G81 Y-750. ; Position, drill hole 3, then return to point R

G82 X1000. ; Position, drill hole 4, then return to point R


X-550. ; Position, drill hole 5, then return to point R
G73 G98 Y-750.; Position, drill hole 6, then return to point R
G83 G80 G28 G91 X0 Y0 Z0; Return to the reference position return, canned cycle cancel
M5; Cause the spindle to stop rotating
G74
G84 ※ Before specifying G76 use a M code to rotate spindle
G76 ※ Do not specify a G code of the 01 group and the G76 in a single block.
G85 Otherwise, G76 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
G86
at the time of positioning to point R
※Be sure to specify a positive value in Q. If Q is specified with a negative value,
the sign is ignored. Set the direction of shift in bits 4 and 5 of parameter 5101.
HWACHEON TRAINNING CENTER

G85 : BORING CYCLE

G-코드 ◈ This cycle is used to bore a hole.

G85X __ Y__ Z __ R __ F __ K __ ;
G50,G51

☞ After
After positioning
positioning along
along the
the X,
X, YY
CYCLE 가공 X__
X__ Y__
Y__ : : Hole
Hole position
position data
data
Z__: axes,
axes, rapid
rapid traverse
traverse is
is performed
performed to to
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
the
G80 hole
hole point
point R. R. Drilling
Drilling is
is performed
performed from
from RR
R__:
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR to
to Z.Z. When
When point
point ZZ has
has been
been reached,
reached,
G81 level
level cutting
F__ cutting feed
feed is
is performed
performed to
to return
return
F__ : : Cutting
Cutting feed
feed rate
rate
G82 K__
K__ : Number of repeats (if
: Number of repeats (if required)
required)
to
to point
point R.
R.

G73
G85
G85 (( G98
G98 )) G85
G85 (( G99
G99 ))
G83
INITIAL
INITIAL LEVEL
LEVEL
G74
G84
POINT
POINT RR LEVEL
LEVEL
G76 R R

G85
G86
Z Z
HWACHEON TRAINNING CENTER

G85 : BORING CYCLE

G-코드 ◈ EXAMPLE

G50,G51 M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
CYCLE 가공
Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G80 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73
G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
G74 M5;
M5;

G84 ※ Before specifying G85, use a M code to rotate spindle


G76 ※ When the G85 command and an M code are specified in the same block, the M code is executed

G85 at the time of the 1st positioning operation. The system then proceeds to the next boring operation.

※ Do not specify a G code of the 01 group and the G85 in a single block.
G86
Otherwise, G85 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G86 : BORING CYCLE

G-코드 ◈ This cycle is used to bore a hole.

G86X __ Y__ Z __ R __ F __ K __;


G50,G51

☞ After
After positioning
positioning along
along the
the X,
X, YY
CYCLE 가공 X__
X__ Y__
Y__ : : Hole
Hole position
position data
data
Z__: axes,
axes, rapid
rapid traverse
traverse is
is performed
performed to to
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofofthe
the
G80 hole
hole point
point R. R. Drilling
Drilling is
is performed
performed from
from RR
R__:
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR to
to Z.Z. When
When thethe spindle
spindle stopped
stopped at
at
G81 level
level the
F__ the bottom
bottom ofof the
the hole,
hole, tool
tool is
is
F__ : : Cutting
Cutting feed
feed rate
rate
G82 K__
K__ : Number of repeats (if
: Number of repeats (if required)
required)
retracted
retracted in
in rapid
rapid traverse.
traverse.

G73
G86(
G86( G98
G98 )) G86(
G86( G99
G99 ))
G83
SPINDLE CW INITIAL
INITIAL LEVEL
LEVEL
G74 SPINDLE CW
G84
POINT
POINT RR LEVEL
LEVEL
G76 POINT R POINT R

G85
G86
POINT Z POINT Z

SPINDLE STOP SPINDLE STOP


HWACHEON TRAINNING CENTER

G86 : BORING CYCLE

G-코드 ◈ EXAMPLE

G50,G51 M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
CYCLE 가공
Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G80 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G81 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G82
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G73
G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G83 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
G74 M5;
M5;

G84 ※ Before specifying G86, use a M code to rotate spindle


G76 ※ When the G86 command and an M code are specified in the same block, the M code is executed

G85 at the time of the 1st positioning operation. The system then proceeds to the next boring operation.

※ Do not specify a G code of the 01 group and the G86 in a single block.
G86
Otherwise, G86 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G87 : BACK BORING CYCLE

G-코드 ◈ This cycle performs accurate boring.


G87 X __ Y__ Z __ R __ Q__ P __ F __ K __; Spindle
Spindle Orientation
Orientation tool
tool
G87
G88 X__
X__ Y__
Y__ : : Hole
Hole position
position data
data
Z__:
Z__:The
Thedistance
distancefrom
frompoint
pointRRto
tothe
thebottom
bottomofofthe
thehole
hole
G89 R__:
R__: The distance from the initial level to point Rlevel
The distance from the initial level to point R level
Q__:
Q__:Shift
Shiftamount
amountat atthe
thebottom
bottomof ofaahole
hole
G60 P__: Dwell time at the bottom of a hole
P__: Dwell time at the bottom of a hole
F__
F__ : : Cutting
Cutting feed
feed rate
rate
G68,G69 K__
K__ : Number of repeats (if
: Number of repeats (if required)
required) Shift
Shift amount
amount qq
G15
G87
G87 (( G98
G98 )) G87
G87 (( G99
G99 ))
G16 q Not used
G94,G95 OSS
After
Afterpositioning
positioningalong alongthetheX,X,Y Yaxes,
axes,thethespindle
spindleisis
stopped
stopped at the fixed rotation position. Thetool
at the fixed rotation position. The toolisismoved
G08 ininthe
moved
the direction opposite to the tool tip, positioningisis
direction opposite to the tool tip, positioning
SPINDLE CW performed
G05.1 performedtotothe thebottom
bottomofofthe thehole.
hole.TheThetool
toolisisthen
then
shifted
shifted in the direction of the tool tip and the spindleisis
in the direction of the tool tip and the spindle
rotated
rotatedCW. CW.Boring
Boringisisperformed
performedininthe thepositive
positivedirection
G05 OSS along
direction
along the Z-axis until point Z is reached.AtAtpoint
the Z-axis until point Z is reached. pointZ,Z,the
the
spindle
spindle is stopped at the fixed rotation position again,the
is stopped at the fixed rotation position again, the
Z tool
toolisisshifted
shiftedininthethedirection
directionopposite
oppositetotothe thetool
tooltip,
tip,
P then
thenthethetoo tooisisreturned
returnedtotothe theinitial
initiallevel.
level.The
Thetool
toolisis
then
thenshifted
shiftedininthe thedirection
directionofofthe thetool
tooltiptipand
andspindle
spindleisis
R rotated CW to proceed to the next block
rotated CW to proceed to the next block operation. operation.
HWACHEON TRAINNING CENTER

G87 : BACK BORING CYCLE

G-코드 ◈ 예제 EXAMPLE
M3 S500 ; Cause the spindle to start rotating.
G87 G90 G99 G76 X300. Y-250. Position, drill hole 1, then return to point R

G88 Z-50. R3. Q5. Orient at the initial level, then shift by 50mm
P1000 F120 ; Dwell time 1 second
G89 Y-550. ; Position, drill hole 2, then return to point R
G60 Y-750. ; Position, drill hole 3, then return to point R
X1000. ; Position, drill hole 4, then return to point R
G68,G69
X-550. ; Position, drill hole 5, then return to point R
G15 G98 Y-750.; Position, drill hole 6, then return to point R
G80 G28 G91 X0 Y0 Z0; Return to the reference position return, canned cycle cancel
G16
M5; Cause the spindle to stop rotating
G94,G95
G08 ※Be sure to specify a positive value in Q. If Q is specified with a negative value,
the sign is ignored. Set the direction of shift in bits 4 and 5 of parameter 5101.
G05.1 ※ Before specifying G87, use a M code to rotate spindle
※ When the G87 command and an M code are specified in the same block,
G05 the M code is executed at the time of the 1st positioning operation.
The system then proceeds to the next boring operation.
※ Do not specify a G code of the 01 group and the G87 in a single block.
Otherwise, G87 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G88 : BORING CYCLE

G-코드 ◈ This cycle is used to bore a hole.


G88X __ Y__ Z __ R __ P __ F __ K __;
G87
X__
X__ Y__
Y__ : : Hole
Hole position
position data
data ☞After positioning
☞After positioning along
along the
the X,
X, YY axes,
axes,
G88 Z__:
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofof rapid
rapid traverse
traverse is
is performed
performed to
to point
point R.
R.
the hole
the hole
G89 R__: Boring
Boring is
is performed
performed from
from point
point RR to
to point
point
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR
level
level Z.
Z. When
When boring
boring is
is completed,
completed, aa dwell
dwell is
is
G60 P__:
P__:Dwell
Dwelltime
timeat
atthe
thebottom
bottomofofaahole
hole performed,
F__ performed, then
then the
the spindle
spindle is
is stopped
stopped
G68,G69 F__ : : Cutting
Cutting feed
feed rate
rate
K__
K__ : : Number
Number ofofrepeats
repeats (if
(if required)
required)
G15
G88
G88 (( G98
G98 )) G88
G88 (( G99
G99 ))
G16
G94,G95 INITIAL
INITIAL LEVEL
LEVEL

G08 SPINDLE CW
SPINDLE CW
G05.1
POINT R POINT R POINT
POINT RR LEVEL
LEVEL
G05

POINT Z POINT Z
P P
SPINDLE STOP AFTER DWELL SPINDLE STOP AFTER DWELL
HWACHEON TRAINNING CENTER

G88 : BACK BORING CYCLE

G-코드 ◈ EXAMPLE

M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G87
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
G88 Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G89 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G60 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G68,G69
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G15 G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G16 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
M5;
M5;
G94,G95
G08 ※ Before specifying G88, use a M code to rotate spindle
G05.1 ※ When the G88 command and an M code are specified in the same block, the M code is executed

G05 at the time of the 1st positioning operation. The system then proceeds to the next boring operation.

※ Do not specify a G code of the 01 group and the G88 in a single block.
Otherwise, G88 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G89 : BORING CYCLE

G-코드 ◈ This cycle is used to bore a hole.

G89X __ Y__ Z __ R __ P__ F__ K __ ;


G87
X__
X__ Y__
Y__ : : Hole
Hole position
position data
data
G88 Z__:
Z__:The
Thedistance
distancefrom
frompoint
pointRRtotothe
thebottom
bottomofof
the hole
the hole ☞
☞ This
This cycle
cycle is
is almost
almost the
the
G89 R__:
R__:The
Thedistance
distancefrom
fromthe
theinitial
initiallevel
levelto
topoint
pointRR
level
level same
same as
as G85.
G85. The
The difference
difference is
is
G60 P__:
P__:Dwell
Dwelltime
timeat
atthe
thebottom
bottomofofaahole
hole
F__ that
that this
this cycle
cycle performs
performs aa dwell
dwell
G68,G69 F__ : : Cutting
Cutting feed
feed rate
rate
K__
K__ : : Number
Number ofofrepeats
repeats (if
(if required)
required) at
at the
the bottom
bottom of
of the
the hole.
hole.
G15
G16 G89
G89 (( G98
G98 )) G89
G89 (( G99
G99 ))
G94,G95 INITIAL
INITIAL LEVEL
LEVEL

G08
G05.1 POINT R
POINT
POINT RR LEVEL
LEVEL
POINT R
G05

POINT Z POINT Z
P
P
HWACHEON TRAINNING CENTER

G89 : BORING CYCLE

G-코드 ◈ EXAMPLE

M3
M3 S2000
S2000 ;; Cause
Cause the
the spindle
spindle to
to start
start rotating.
rotating.
G87
G90
G90 G99
G99 G81
G81 X300.
X300. Y-250.
Y-250. Z-50.
Z-50. R3.
R3. F120
F120 ;;
G88 Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G89 Y-550.
Y-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G60 Y-750.
Y-750. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
X1000.
X1000. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G68,G69
X-550.
X-550. ;; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G15 G98
G98 Y-750.;
Y-750.; Position,
Position, drill
drill hole
hole 1,
1, then
then return
return to
to point
point RR
G16 G80
G80 G28
G28 G91
G91 X0
X0 Y0
Y0 Z0;
Z0; Return
Return to
to the
the reference
reference position
position return,
return, canned
canned cycle
cycle cancel
cancel
M5;
M5;
G94,G95
G08 ※ Before specifying G89, use a M code to rotate spindle
G05.1 ※ When the G89 command and an M code are specified in the same block, the M code is executed

G05 at the time of the 1st positioning operation. The system then proceeds to the next boring operation.

※ Do not specify a G code of the 01 group and the G89 in a single block.
Otherwise, G89 will be canceled
※ When a tool length offset is specified in the canned cycle, the offset is applied
at the time of positioning to point R
HWACHEON TRAINNING CENTER

G60 : SINGLE DIRECTION POSITIONING


◈ For accurate positioning without play of the machine, final positioning
G-코드
from one direction is available

※ An
An overrun
overrun and
and aa positioning
positioning direction
direction
G87 Overrun
are
are set
set by
by the
the parameter
parameter (No.5440)
(No.5440)
G88 ※
※ G60,
G60, which
which is
is an
an one-shot
one-shot G-code,
G-code,
G89 Start position Temporary stop can
can be
be used
used as
as aa modal
modal g-code
g-code in
in group
group
01
01 byby setting1
setting1 to to the
the parameter
parameter (No.5431
(No.5431
G60
bit
bit 00 MDL
MDL ).). This
This setting
setting can
can eliminate
eliminate
G68,G69 specifying
End position specifying aa G60
G60 command
command foe
foe every
every
Start position
G15 block.
block.
G16
When
WhenONE
ONESHOT
SHOTG60
G60command
commandare
areused When
used WhenMODAL
MODALG60
G60command
commandisisused
used
G94,G95
G90
G90; ; G90
G08 G90G60
G60; ;
G60
G60X0X0 Y0
Y0 ; ; G60
G05.1 Single direction G60X0
X0 Y0
Y0 ; ; SINGLE DIRECTION
G60
G60X100.
X100.; ; G60
positioning G60X100.
X100.; ; POSITIONING
G05 G60
G60Y100.
Y100.; ; G60
G60Y100.
Y100.; ;
G04
G04X10.
X10.; ; G04
SINGLE DIRECTION G04X10.
X10.; ; SINGLE DIRECTION
G00
G00X0
X0Y0
Y0; ; MODE CANCEL G00 MODE CANCEL
G00X0
X0Y0
Y0; ;
;; ;;
;; ;;
HWACHEON TRAINNING CENTER
G68 : COORDINATE SYSTEM ROTATION MODE START
G69 : COORDINATE SYSTEM ROTATION MODE CANCEL
◈ A programmed shape can be rotated. By using this function
G-코드
it becomes possible.
FORMAT
FORMAT
G87
G17
G88
G18 G68 α_ β_ R_ ; Start rotation of
G89
a coordinate system
G60 Angle of G19
G68,G69 rotation
:
Coordinate
G15 Center of : system rotation
rotation mode
G16 :

G94,G95 G69 ;

G08
α_
α_ β_
β_ :: The
The command
command specifies
specifies the
the coordinate
coordinate of
of the
the center
center of
of rotation
rotation for
for the
the value
value
G05.1
R_
R_ :: Angular
Angular displacement
displacement with
with aa positive
positive value
value indicates
indicates CCW
CCW rotation
rotation
G05
Least
Least input
input increment
increment :: 0.001
0.001 deg
deg
Valid
Valid data
data range
range :: -360.000~360.000
-360.000~360.000
HWACHEON TRAINNING CENTER
G68 : COORDINATE SYSTEM ROTATION MODE START
G69 : COORDINATE SYSTEM ROTATION MODE CANCEL

G-코드 ◈EXAMPLE

Depth : 5mm R20


G87 20
Matter : Aluminum
G88 Tool length : 20.mm 45’
Offset No : NO.1 (tool length) 80 40
G89
NO.10 (compensation)
G60 Zero point : Z-axis
G68,G69
G15
G16
MAIN PROGRAM SUB PROGRAM
G94,G95
O0001
O0001; ; O0002;
O0002;
G08 N1
N1 G00
G00 G40G40G80G80G17G17G49 G49; ; G90
G90G00
G00G54 G54 X0
X0 Y0Y0 ; ;
G91
G91G28G28 Z0
Z0 ; ; G42
G42G00
G00 X20.
X20. Y67.
Y67. D10
D10; ;
G05.1 G90
G90 X0X0 Y0
Y0; ; G01
G01 Z-10.
Z-10. F200.
F200.; ;
G90
G90G00G00G54
G54 X0 X0 Y0
Y0 ; ; Y100.
Y100. F300.;
F300.;
G05 G43
G43 Z5, HO1 S4000 M03
Z5, HO1 S4000 M03 ; ; G03
G03 X-20.
X-20. R20.
R20. ; ;
M98
M98 P80002
P80002 ; ; G01
G01 Y80.
Y80.; ;
(SUB
(SUB PROGRAM
PROGRAM O0002
O0002 88repeats)
repeats) X32.
X32.; ;
G69 ; (CANCEL)
G69 ; (CANCEL) G00
G00 Z5.
Z5.; ;
G90
G90G00G00 Z50.
Z50. M08
M08 ; ; G40
G40 X0.
X0. Y0.;
Y0.;
G91
G91G28G28 Z0
Z0 M05
M05 G68
G68 X0 Y0G91
X0 Y0 G91 R45.
R45. ; ;(START)
(START)
M30;
M30; M99 ;
M99 ;
HWACHEON TRAINNING CENTER

G15 CANCELING THE POLAR COORDINATE COMMAND


G-코드 ◈ CANCELING THE POLAR COORDINATE COMMAND
※ CANCELING THE POLAR COORDINATE COMMAND OF G16
G87
G88
G89
G60
G68,G69
G15
G16
G94,G95
G08
G05.1
G05
HWACHEON TRAINNING CENTER

G16 THE POLAR COORDINATE COMMAND


G-코드 ◈ Starting the polar coordinate command
◈ The end point coordinate value can be input in polar coordinates.
G87 ◈ The plus direction of the angle is CCW of the selected plane

G88 first axis + direction, and the minus direction is CW


◈ Both radius and angle can be commanded in either absolute or incremental command (G90, G91).
G89
G60
◈ FORMAT
G68,G69 Y
G17 G90 G16 ;
G15
G81 X100. Y30. Z-20. R5. F100 ;
G16 150°
Y150. ;
G94,G95 30 ° G91 Y120. K2 ; (Numbers of
X Y270. ; repeat)
270 °
G08 100mm G15 G80 ;
G05.1
G05
◈ In this programming
X100. specifying a distance.
Y30. Angle of polar coordinate system.
K2 Numbers of repeat. Decimal point not permitted
HWACHEON TRAINNING CENTER

G94 : FEED PER MINUTES G95 : FEED PER REVOLUTION


G-코드 ◈

G87 G94 (분당


(Feed이송)
G94 (Feed per
per minutes)
minutes)
G88
: After F, specify the amount of feed of the tool per minutes.
G89
G60 ※ G94 is a modal code. Once a G94 is specified, it is valid
until G95 is specified.
G68,G69
G15 F = mm / min
G16
G94,G95 G95
G95 (Feed
(Feed per
per revolution)
revolution)
G95 (회전당 이송)
G08
G05.1 : After F, specify the amount of feed of the tool per revolution.

G05 ※ G95 is a modal code. Once a G95 is specified, it is valid


until G94 is specified.

F = mm/rev
HWACHEON TRAINNING CENTER

G05.1 : HAI (Hwacheon Artificial Intelligence) FUNCTION

◈ AI NANO CONTOUR CONTROL 180 BLOCK calculates

G87 COMMAND
COMMAND FORMAT
FORMAT
G05.1
G05.1 Q__
Q__ ;;
G88 Q1
Q1 :: HAI
HAI mode
mode ON
ON
Q0
Q0 :: HAI
HAI mode
mode OFF
OFF
G89
1)
1) Always
Always specify
specify G05.1
G05.1 in
in an
an independent
independent block.
block.
G60 2)
2) The
The AI
AI contour
contour control/AI
control/AI nano
nano contour
contour control
control mode
mode is
is also
also canceled
canceled
by
by aa reset.
G68,G69 reset.

G15 Can not be specified of the HAI FUNCTION


△ One-tenth input increment (G60)
G16
△ Automatic corner override (G62)
G94,G95 △ Arc interpolation (G7.1)
G08 △ Polar coordinate interpolation (G12.1,G13.1)
G05.1 △ Threading cutting (G33)
△ Normal direction control (G41.1,G42.1)
G05
△ Index table indexing
△ High-speed cycle cutting (G05)
△ Program restart
△ Tool life management
△ MACRO EXCUTER
HWACHEON TRAINNING CENTER

G05.1 : HAI (Hwacheon Artificial Intelligence) FUNCTION

◈ Can be specified

G87 The
The following
following data
data can
can be be specified
specified in
in G5.1.
G5.1.
G88 PS
PS alarm
alarm 5111
5111 occurs
occurs ifif the
the below
below condition
condition do
do not
not satisfy.
satisfy.

G89 G00
G00 Positioning G49
G49 Tool length compensation cancel

G60
G01
G01 Linear interpolation G50
G50 Scaling cancel
G68,G69
G02
G02 Circular interpolation (CW) G50.1
G50.1 PROGRAM MIRROR IMAGE CANCEL
G15
G16 G03
G03 Circular interpolation (CCW) G64
G64 Cutting mode
G94,G95 Polar coordinate interpolation cancel
G13.1
G13.1 mode
G67
G67 MACRO MODAL CALL CANCEL
G08
Polar coordinate command cancel
G05.1 G15
G15 mode G69
G69 Coordinate system rotation cancel

G05 G25
G25
Spindle speed fluctuation detection
G80
G80 CANNED CYCLE CANCEL
OFF

G40
G40 Cutter compensation cancel G94
G94 FEED PER MINUTE

G40.1
G40.1 Normal direction control cancel mode G97
G97 CONSTANT SURFACE SPEED CONTROL CANCEL
HWACHEON TRAINNING CENTER

G05.1 : HAI (Hwacheon Artificial Intelligence) FUNCTION

◈ PS alarm list in HAI mode

G87
NUMBER CONTENTS
G88
G89 5110 An illegal G code was specified in HAI command mode

G60 5111 An illegal G code is left modal when HAI command mode is specified
G68,G69
5112 Look-ahead control(G08) was specified in HAI command mode
G15
At the time of restart after manual intervention, the coordinates at which the
G16 5114 manual intervention occurred have not been restored
In HAI command mode, the controlled axis selection signal (PMC axis
G94,G95 5156 control ) changes
G08 Zero is set in the parameter for the maximum cutting feed rate
(parameter No.1422 or 1432 )
G05.1 5157
Zero is set in the parameter for the acceleration/deceleration before
G05 interpolation (parameter No.1770 or 1771)
HWACHEON TRAINNING CENTER

G05 : HPCC

◈ The functions are performed at high speed by an RISC processor

G87
G88 1) This function is valid in Equipped 64 bit RISC board HAI command mode.
G89 The function lamp displayed “HPCC” on right-below screen.
G60
G68,G69
G15
G16 2) COMMAND FORMAT

G94,G95 G05 P10000 : 64Bit HAI command mode ON


G05 P0 : 64Bit HAI command mode OFF
G08
G05.1
1) Always specify G05 in an independent block.
G05 2) The HAI mode is also canceled by a reset.
HWACHEON TRAINNING CENTER

G05 : HPCC

◈ The following data can be specified in HPCC mode

G87

△ G00
G00 :: Positioning
Positioning △
△ G91
G91 :: Increment
Increment command
command
G88

△ G01
G01 :: Linear
Linear interpolation
interpolation △
△ DXXX
DXXX :: Specifying
Specifying aa D-CODE
D-CODE
G89
G60 △
△ G02
G02 :: Circular
Circularinterpolation
interpolation(CW)
(CW) △
△ FXXXX
FXXXX :: Specifying
Specifying aa F-CODE
F-CODE
G68,G69 △
△ G03
G03 :: Circular
Circularinterpolation
interpolation(CCW)
(CCW) △
△ I,J,K,R
I,J,K,R :: I,J,K,R
I,J,K,Rspecified
specifiedfor
forcircular
circularinterpolation
interpolation

G15 △
△ G17
G17 :: Xp
Xp Yp
Yp plane
plane selection
selection △
△ (( )) :: Comment
Comment specification
specification
G16

△ G18
G18 :: Zp
Zp Xp
Xp plane
plane selection
selection

△ /n
/n :: OPTIONAL
OPTIONAL BLOCK
BLOCK SKIP
SKIP
G94,G95

△ Mxxxx
Mxxxx :: Auxiliary
Auxiliary function
function
G08 △
△ G19
G19 :: Yp
Yp Zp
Zp plane
plane selection
selection
G05.1 △
△ Sxxxx
Sxxxx :: Auxiliary
Auxiliary function
function

△ G40
G40 :: Cutter
Cuttercompensation
compensationcancel
cancel
G05 △
△ Txxxx
Txxxx :: Auxiliary
Auxiliary function
function

△ G41
G41 :: Cutter
Cuttercompensation,
compensation,left
left

△ Bxxxx
Bxxxx :: Auxiliary
Auxiliary function
function

△ G42
G42 :: Cutter
Cuttercompensation,
compensation,right
right

△ M98,M198
M98,M198 :: SUB
SUB PROGRAM
PROGRAM CALL
CALL

△ G90
G90 :: Absolute
Absolutecommand
command
HWACHEON TRAINNING CENTER

G05 : HPCC

◈ The following data can be specified in HPCC mode

G87 IfIf such


such aa G05
G05 P10000
P10000 specification
specification is
is not
not be
be satisfied,
satisfied, PS
PS 5012
5012 alarm
alarm is
is issued
issued
G88
G89 G13.1
G13.1 CANCELS
CANCELS POLAR
POLAR COORDINATE
COORDINATE INTERPOLATION
INTERPOLATION
G60 G15
G15 CANCELS
CANCELS AA POLAR
POLAR COORDINATE
COORDINATE COMMAND
COMMAND
G68,G69 G40
G40 CANCELS
CANCELS CUTTER
CUTTER COMPENSATION
COMPENSATION (M
(M SERIES)
SERIES)
G15 G40.1 CANCELS
CANCELS NORMAL
NORMAL DIRECTION
DIRECTION CONTROL
CONTROL (for
(for the
the M
M series
series only)
only)
G40.1
G16 CANCELS
G50
G50 CANCELS SCALING
SCALING
G94,G95
G50.1
G50.1 PROGRAM
PROGRAM MIRROR
MIRROR IMAGE
IMAGE CANCEL
CANCEL
G08
G64
G64 CUTTING
CUTTING MODE
MODE
G05.1
G69
G69 CANCELS
CANCELS COORDINATE
COORDINATE CONVERSION
CONVERSION
G05
G80
G80 CANCELS
CANCELS CANNED
CANNED CYCLES
CYCLES
G94
G94 FEED
FEED PER
PER MINUTE
MINUTE
G97
G97 CANCELS
CANCELS CONSTANT
CONSTANT SURFACE
SURFACE SPEED
SPEED CONTROL
CONTROL
HWACHEON TRAINNING CENTER

G05 : HPCC

◈ ALARM LIST FOR HPCC

G87 NUMBER
NUMBER CONTENTS
CONTENTS

G88 5012
5012 G05
G05 P10000
P10000 has
has been
been specified
specified in
in aa mode
mode from
from which
which HPCC
HPCC mode
mode cannot
cannot be
be entered
entered

G89 5000
5000 The
The specified
specified code
code was
was in
in correct
correct in
in the
the high-precision
high-precision contour
contour control
control mode
mode

G60 5003
5003 The
The parameter
parameter setting
setting is
is incorrect
incorrect
G68,G69 5004
5004 High-precision
High-precision contour
contour control
control is
is not
not ready
ready

G15 5006
5006 The
The number
number of
of words
words specified
specified in
in aa block
block exceeded
exceeded 26
26 in
in the
the HPCC
HPCC mode.
mode.

G16 5013
5013 G05
G05 P0
P0 has
has been
been specified
specified in
in G41/G42
G41/G42 mode
mode or
or before
before cancellation
cancellation axis
axis is
is not
not found.
found.

G94,G95 ◈ LIMITATIONS [1/2]


G08 1)
1)The
TheG05
G05P10000
P10000block
blockcannot
cannotbebeexecuted
executedininthe
thesingle
singleblock
blockmode.
mode.
2)
2)The
Thesecond
secondfeed
feedrate
rateoverride
overrideand
andoptional
optionalblock
blockskip
skipfunctions
functionscannot
cannotbe
beused
usedin
inHPCC
HPCC
G05.1
mode
modeunless
unlessthese
theseoptions
optionsare
areprovided.
provided.
G05 3)
3)Switching
Switchingto
tothe
theMDI
MDImode
modecannot
cannotbebeperformed
performedininHPCC
HPCCmode.
mode.In
Inaddition,
addition,MDI
MDIoperation
operationisis
not
notpossible.
possible.
4)
4)InInHPCC
HPCCmode,
mode,never
neverchange
changethe
theexternal
externalmirror
mirrorimage
imagesignal.
signal.
5)
5)InInHPCC
HPCCmode,
mode,calculator
calculatortype
typeinput
inputisisignored.
ignored.
6)
6)AAprogram
programcontaining
containingG05
G05P10000;cannot
P10000;cannotbe berestarted
restarted
7)
7)In
InHPCC
HPCCmode,
mode,G28
G28and
andG29
G29cannot
cannotbe
bespecified.
specified.
HWACHEON TRAINNING CENTER

G05 : HPCC

◈ LIMITATIONS 2/2

G87 8) When cancellation and start of HPCC mode is specified in cutter


G88 compensation mode, the P/S alarm NO.5013 and NO.0178 is issued.
G89
예1) G41X_Y_ D01;
G60
---
G68,G69 G05 P10000 ; PS ALARM(NO.178)
G15 예2) G05 P10000;
G16 G41X_ Y_ D01 ;
G94,G95 G05 P0 ; PS ALARM(NO.5013)
G08 9) If cutter compensation mode is canceled while a vector still remains
G05.1 and HPCC mode is canceled before a move command is specified, the
P/S alarm NO.5013 is issued.
G05
예) G91 X100. Z100.;
G40 ;
G05 P0; - PS Alarm(NO.5013)
HWACHEON TRAINNING CENTER

Example Programming

TOOL TOOL TOOL TOOL


NUMBER SPECIES DIAMETER LENGTH
1 Flat end mill Ø20 80mm
2 Flat end mill Ø8 80mm
3 drill Ø8 80mm

You might also like