Professional Documents
Culture Documents
ENG MC Program Manual
ENG MC Program Manual
MACHINE CENTER
PROGRAMING MANUAL
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
2) Modal G Code
is specified.
G01
G01 is
is effective
effective in
in this
this range.
range.
HWACHEON TRAINNING CENTER
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 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 LIST
G Code Group Meaning G Code Group Meaning
G 50 Scaling Cancel
G 66 12 Custom macro mode call
◈ G CODE LIST
G Code Group Meaning
G 86 BORING CYCLE
G 89 BORING CYCLE
G 90 ABSOLUTE command
03
G 91 INCREMENTAL command
◈ M CODE LIST
M12 OIL HOLE COOLANT ON (OPTION) M13 OIL HOLE COOLANT OFF (OPTION)
M25 CHIP BLOW COOLANT ON (OPTION) M26 CHIP BLOW COOLANT OFF (OPTION)
M31 CHIP CONVEYOR FORWARD (OPTION) M32 CHIP CONVEYOR REVERSE (OPTION)
M33 CHIP CONVEYOR STOP (OPTION) M35 FRONT DOOR OPEN (OPTION)
HWACHEON TRAINNING CENTER
◈ M CODE LIST
M55 TOUCH SENSOR AIR BLOW (OPTION) M57 ATC DOOR OPEN
M106 TOOL CHANGE PROGRAM CALL M198 DATA SERVER SUB PROGRAM CALL
HWACHEON TRAINNING CENTER
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
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
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
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
Machine zero
G01
G02,G03 β
α
Reference position
HWACHEON TRAINNING CENTER
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
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
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
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)
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
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
G-코드 ◈ The command below will move a tool along a circular arc
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
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
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
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
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
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.
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.
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
G11 G42
G43 : TOL LENGTH OFFSET (+) / G44 : TOOL LENGTH OFFSET (-)
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)
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
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
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
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
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
GO4
G40
G41
G42
G43,G44
G49
G10
G11
G20,G21
G28
G29
G30
HWACHEON TRAINNING CENTER
G30 G29 X_ Y_ Z_ ;
HWACHEON TRAINNING CENTER
G41 G30 P2 IP_ ; 2nd reference position return (P2 can be omitted) (PARMATER NO.1241)
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,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
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
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
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
G86
Point Z Point Z
HWACHEON TRAINNING CENTER
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
G85
G86
P POINT Z P POINT Z
HWACHEON TRAINNING CENTER
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 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
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
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
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
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
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;
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
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
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;
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
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
G85
P P
G86
OSS OSS
POINT Z POINT Z
q q
HWACHEON TRAINNING CENTER
G-코드 ◈ EXAMPLE
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
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;
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
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
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;
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
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
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
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
G08
G05.1 POINT R
POINT
POINT RR LEVEL
LEVEL
POINT R
G05
POINT Z POINT Z
P
P
HWACHEON TRAINNING CENTER
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
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
F = mm/rev
HWACHEON TRAINNING CENTER
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.
◈ 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
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
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
G05 : HPCC
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
G05 : 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.
G05 : HPCC
◈ LIMITATIONS 2/2
Example Programming