50% found this document useful (2 votes)
436 views

Text (Basic)

The document provides information on Hanwha Machinery Co.'s coordination system, tool numbers, G-codes, and coordinate shift functions. It defines common addressing terms like word, address, and block. It explains the functions and meanings of different G-code addresses for axes movement, feeds, tools, cycles, and more. It also describes how to perform coordinate shifts to temporarily change the zero position.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
50% found this document useful (2 votes)
436 views

Text (Basic)

The document provides information on Hanwha Machinery Co.'s coordination system, tool numbers, G-codes, and coordinate shift functions. It defines common addressing terms like word, address, and block. It explains the functions and meanings of different G-code addresses for axes movement, feeds, tools, cycles, and more. It also describes how to perform coordinate shifts to temporarily change the zero position.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

PROGRAM(BASIC user)

HANWHA MACHINERY CO.LTD

Machine Tool Division


Coordination system & Tool No.
• Coordination system • TOOL Number

HANWHA MACHINERY CO.LTD


2Path System

HANWHA MACHINERY CO.LTD


Block,Word,Address
• Word: Alphabet Letter+figure
• Address: Alphabet of word
• Block: Consist of several words
• Useful Alphabet:
• C,F,G,H,M,N,O,P,R,S,T,U,V,W,X,T,Z

HANWHA MACHINERY CO.LTD


Function and meaning of address
Address Function Meaning
N Sequence number To use cutting progress
G Ready function Designate to each function of NC
X, U X Axis Move X: Absolute, U: Incremental
Z, W Z Axis Move Z: Absolute, W: Incremental
Y, V Y Axis Move Y: Absolute, V: Incremental
R Corner R, Radius of circle Designate to Corner R or Radius
F Feedrate Designate to Cutting speed
S Spindle speed Designate to spindle RPM
T Tool designation Designate to tool number and tool offset
M Function designation Optional function designation
P Repeat number Designate to repeat number of sub-program
Dwell time Designate to dwell time
O Program number Designate to program number
C,H Spindle indexing angle C: Absolute, H: Incremental
M9xxxx Calling to Head2 program To activate Head2program in the Head1 program

HANWHA MACHINERY CO.LTD


Program origin point

X Axis: material Center Cut-off bite


Z Axis: End face
Guide bush

HANWHA MACHINERY CO.LTD


Command of moving distance and Feedrate


Absolute & Incremental value
Absolute- Itself name use as X,Y,Z
• Feedrate
• Incremental-corresponding name use as • Feed per revolution(G99:Unit
U,V,W mm/REV)
• Ex) G99 G01 X10.0 F0.03 ;
• ⓐ G00 X30.0 Z20.0 ;
• G00 X5.0 Z30.0 ;
• Feed per minute(G98: Unit:
• G00 C90.0 ;
mm/min)
• G00 C180.0 ;
• Ex) G98 G01 X10.0 F120 ;
• ⓑ G00 X30.0 Z20.0 ;
• G00 U20.0 W10.0 ; • Feedrate is Modal code.
• G00 C90.0 ; • This means is effective until code
• G00 H190.0 ; changing.

HANWHA MACHINERY CO.LTD


Tool Function(T)
T △△□□
△△ : Tool Number(Ex:T01,T02….)
□□ : Offset number (Ex: 01,02…..)

●Tool offset (Ex:front tool holder) T1 TOOL OFFSET DATA


NO. DATA
10 0.000 X AXIS (+ UP - DOWN)
X 11 0.036 X AXIS (+ UP - DOWN)
12 -0.040 X AXIS (+ UP - DOWN)
13 0.000 X AXIS (+ UP - DOWN)
Y
10 0.000 Y AXIS (+FORWARD -BACK)
11 -0.025 Y AXIS (+FORWARD -BACK)
12 0.030 Y AXIS (+FORWARD -BACK)
13 0.000 Y AXIS (+FORWARD -BACK)

[T0 OFS] [T0 FIX] [T1 FIX] [INPUT] [+INPUT]

HANWHA MACHINERY CO.LTD


G-code explanation(1)
●Positioning(G00) ●Linear interpolation(G01)
Straight moving: G00X [U]___;or 00Z[W]____; Straight moving : G01 [U]___F_____;
Slant moving: G00X[U]____Z[W]_____; Slant moving : 01X[U]____Z[W]_____F___;

●Circular interpolation(G02,G03)
Clockwise :G02X__Z__R__F__;
Counter clockwise:G03X__Z__R__F__;
G 03
●Dwell(G04) G 02

Address U :G04 U___;


Address X :G04 X___; G 03
G 02

Address P : G04 P___;


▶ How to 0.5sec dwell command
G04 U0.5 ; G 02

G04 X0.5 ; G 03

G04 P500 ;

HANWHA MACHINERY CO.LTD


G-code explanation(2)
●Constant lead threading(G32)
G00 X11.0 Z-2.0;
Straight: G32 Z(W)__ F__;
X7.0;
Taper :G32X(U)__ Z(W)___F___;
G32 Z9.0 F1.25;
G00 X11.0;
Notice) Z-2.0;
1. The imperfect screw is happened because of the X6.0;
servo-motor. lead=1.25
G32 Z9.0 F1.25;
2. Thread cutting is stopped after block executing at δ1=2mm
the single block. δ2=1mm
3. The feedrate override is disregarded while using 1timecutting=0.5mm
G00 X11.0 Z-2.0;
this command.
X2.0;
G32 X7.7 Z9.0 F1.25;
G00 X11.0;
Z-2.0;
X6.0;
G32 X6.5 Z9.0 F1.25;

HANWHA MACHINERY CO.LTD


G-code explanation(3)
● Cycle thread cutting(G92)
Straight : G92 X(U)___Z(W)___F____;
G00 X11.0 Z-2.0;
Taper: G92 X(U)___Z(W)___R__F__;
G92 X7.36 Z9.0 F1.25;
X6.92;
Lead :1.25 X6.64;
δ1=2mm X6.48;
δ2=1mm X6.38;
1time=0.032mm G00 X11.0 Z-2.0;
2time=0.22 G92 X7.36 Z9.0 R-2.0 F1.25;
3time=0.14 X6.92;
4time=0.08 X6.64;
5time=0.05 X6.48;
X6.38; (* R is half diameter)

HANWHA MACHINERY CO.LTD


G-code explanation(4)
●Tool nose radius compensation(G40∼G42) G41
cancel : G40
Z axis[+] direction move : G41
Z axis[-] direction move : G42

Insert tip radius will be automatically


compensate when you use insert bite if this
value were inputted in tool offset memory
with imagined radius direction and size.
G42

HANWHA MACHINERY CO.LTD


Coordinate shift(G50)explanation(1)
※Coordinate shift: It is changed new position as much as given value.
(Another meaning: making zero position)

●Coordinate shift format


G50 W___;or G50 U___;
Coordinate system will move G50 W-3.0:
as much as given value.
ex) G50 W-3.0;
G00 Z13.0;

It will have +3.0 moving ∼


effect from current position
G50 W3.0

※ After machining,
have to cancel as
much as previous
given shift.

HANWHA MACHINERY CO.LTD


●X axis direction coordinate shift

T1313;
G50 U6.0;

G50 U-6.0;
T0;

●Back turning coordinate shift

T2424; T2424;

G50W-150.0; G50W-150.0U200.0;

∼ ∼

G50 W150; G50 W150U-200.0;

T0; T0;

HANWHA MACHINERY CO.LTD


Machining coordinate system setting and return(G300,G310)
Head1: G300
□ Format : G300 X-2.0 Z50.0 T0101; Head2: G310
X-2.0 : X axis coordinate position when □ Format : G310 Z210.0 T2100;
cut-off
Z210.0 : Sub side max stroke
Z50.0 : machining stroke .
T2100 : Sub spindle.
This stroke have to add 5∼10mm
at the parts length.
□ Z2 axis have to designate all stroke to
This position will become program avoid crash and interference.
zero position(Z=0)

T0101 : Cut-off bite


□ Procedure of axis moving :
Y axis-->X axis--->Z axis

HANWHA MACHINERY CO.LTD


Example of fixing method for non-specified cut-off bite

※ Cut-off tool of our machine has been fixed


20 or 25mm under from bite holder.

※ G300 case
The distance of X commands X8.0(-2.0+10)

※ In case of cut-off process


G50 usage
G50 U-10.0 ; When programming, it
does not amend the dimension.

※ Usage of G50 on MDI mode


The distance of X commands X8.0(-2.0+10)

★To change X distance in bar-feeder program

HANWHA MACHINERY CO.LTD


X1 axis cutting coordinate system(G150)explanation
※ G150 function is same as G50 and it is only one time used under command of G300 in the head1.

Usage ex.1)-normal Usage ex.2)


O001; -Left type bit use
M9xxx; O001;
G40 G0 T0/M08; M9xxx;
M11; G40 G0 T0/M08;
G300 X-2.0 Z50.0 T0101; M11;
G150 Z-0.2; G300 X-2.0 Z50.0 T0101; Cut-off
bite
M10 G150 Z9.8;
Guide Bush
∼ M10

Basic line

HANWHA MACHINERY CO.LTD


Calling method of sub-program(M98)
● Format
M98 P○○○□□□□ or
■ Example of program
M98 P□□□□ L○○○ O001;
M98 :Command code ∼
N3 M98 P30002;(3 times call)
○○○ : Repeat number , If not write this
number, it is executed one time . N4 ∼;

□□□□:sub-program number N11 M98 P2;(1 time call)
● End part of sub-program N12 ∼;

M99 [P△△△]
M30;
△△△ : Return to designated sequence number
Call to program: O0002;(sub-program)

1) Calling sub-program from sub-program -----
enable. M99;

2) The sub-program which it uses from the Head1


side makes in the Head1 memory side.Sub-
program of Head2 have to made in the Head2 side
also.

HANWHA MACHINERY CO.LTD


Spindle Function

A. Main spindle B. Sub-spindle


M03 : CW M03/M103 : CW
M04 : CCW M04/M104 : CCW
M05 : Rotating stop and coolant off M05/M105 : Stop
※ No rotating in indexing mode(M50/M82) ※ Depend on machine type

C. Cross drill D. Back tool spindle


M23 : CW M23/M123 : CW
M24 : Reverse rotation against M23 M24/M124 : CCW
M25 : Stop M25/M125 : Stop
Max. RPM : 4,000 Max. RPM: 4,000
※ Rotating in indexing mode(M50/M82) ※ Rotating in indexing mode(M50/M82)

HANWHA MACHINERY CO.LTD


Major G-Code
G code Main Sub Description Remarks
G00 ○ ○ Rapid traverse
G01 ○ ○ Linear interpolation(cutting feed)
G02 ○ ○ Circular interpolation CW
G03 ○ ○ Circular interpolation CCW
G04 ○ ○ Dwell
G07.1 ○ Cylindrical interpolation
G12.1 ○ Polar coordinate interpolation mode Option
G13.1 ○ Polar coordinate interpolation mode cancel Option
G17 ○ X-Y plane select
G18 ○ Z-X plane select
G19 ○ Y-Z plane select
G28 ○ ○ Reference position return
G32 ○ ○ Threading
G40 ○ ○ Tool nose R compensation cancel
G41 ○ ○ Tool nose R compensation (left)
G42 ○ ○ Tool nose R compensation (right)
G50 ○ ○ Coordinate system setting(except Z axis)
G92 ○ ○ Threading cycle
G96 ○ ○ Spherical speed control Option
G97 ○ ○ Spherical speed control cancel Option
G98 ○ ○ Traverse per minute(mm/min)
G99 ○ ○ Traverse per revolution(mm/rev)
G128 ○ Z2 origin return during Z super imposed control
G150 ○ Coordination system setting (only for Z axis)
G300 ○ Return to machining zero point(X1/Z1/Y)
G310 ○ Return to machining zero point (X2/Z2)

HANWHA MACHINERY CO.LTD


Major M-Code(1)
M code Main Sub Description Remarks
M00 ○ ○ Program stop
M01 ○ ○ Optional stop
M02 ○ ○ Program end
M03 ○ *○ Main/Sub spindle CW
M04 ○ *○ Main/Sub spindle CCW
M05 ○ *○ Main/Sub spindle stop & Coolant off
M08 ○ ○ Coolant On
M09 ○ ○ Coolant Off
M10 ○ Main chuck close
M11 ○ Main chuck open
M12 ○ Main spindle speed arrival check
M13 ○ Main spindle CW & Coolant On
M14 ○ Main spindle CCW & Coolant On
M17 ○ ○ Part catcher forward Option
M18 ○ ○ Part catcher withdrawal Option
M20 ○ ○ Sub chuck close
M21 ○ ○ Sub chuck open
M23 ○ ○ Cross drill CW
M24 ○ ○ Cross drill CCW
M25 ○ ○ Cross drill stop
M26 ○ ○ Air Blow 1 On Option
M29 ○ ○ Rigid Tapping Option

HANWHA MACHINERY CO.LTD


Major M-Code(2)
M30 ○ ○ Program end and cursor return
M36 ○ Cut-off tool breakage detection Option
M37 ○ ○ Part ejection detection Option
M38 ○ Tap breakage detection Option
M39 ○ ○ Bite breakage detection Option
M50 ○ ○ Main clamping On (Cs contouring)
M51 ○ ○ Main clamping Off (Cs contouring)
M52 ○ ○ Sub spindle speed arrival check
M53 ○ Main & Sub spindle speed arrival check
M53 ○ Main & Sub spindle phase synchronization On
M54 ○ Main & Sub spindle phase synchronization Off
M56 ○ Main & Sub spindle speed synchronization On
M57 ○ Main & Sub spindle speed synchronization Off
M58 ○ Main & Sub spindle Torque down On
M59 ○ Main & Sub spindle Torque down Off
M60 ○ Barfeeder torque Off Option
M61 ○ Barfeeder torque On Option
M62 ○ Barfeeder bar change Option
M78 ○ ○ Check of part chucked in subspindle
M79 ○ ○ Check of part ejected from subspindle
M82 ○ Main spindle brake On Option
M83 ○ Main spindle brake Off Option
M91 ○ ○ Sub program call(O9001)
M92 ○ ○ Sub program call(O9002)

HANWHA MACHINERY CO.LTD


Major M-Code(3)

M93 ○ ○ Sub program call(O9003)


M95 ○ ○ Barfeeder check start
M96 ○ Barfeeder check end
M98 ○ ○ Sub program call
M99 ○ ○ End of sub program
M103 ○ #○ Sub spindle CW ( To use except “HP(II))
M104 ○ #○ Sub spindle CCW ( To use except “HP(II))
M105 ○ #○ Sub spindle stop ( To use except “HP(II))
M220 ○ ○ Z1/Z2 synchronization Off
M221 ○ ○ Z1/Z2 synchronization On
M222 ○ ○ Z1/Z2 synchronization On(Z1 stop)
M230 ○ ○ X1/X2, Z1/Z2 composite control Off
M231 ○ ○ X1/X2 composite control On
M232 ○ ○ Z1/Z2 composite control On
M233 ○ ○ X1/X2, Z1/Z2 composite control On
M250 ○ ○ Z1/Z2 superimposed control Off
M251 ○ ○ Z1/Z2 superimposed control On
M500~ ○ ○ Main & Sub program mutual wait
M599
M9xxxx ○ Sub side program search & start

HANWHA MACHINERY CO.LTD


Sequence for programming

1. To checks drawing.
-.Tolerance, Roughness, material.etc.
2. To draws cutting Lay-Out.
a. To considers tool type, tool holder.
b. To considers quantity of machining H1 and H2 side.
※ A lot of machining at the H2 side make trouble at the H1 sometimes.
c. A precise cutting and heavy cutting have to do at the H1 side.
d.To calculate cut-off position and extrude length from guide bush.
This need when you choose cut-off bite and sub chuck type.
3. To prepare main chuck, guide bush, sub chuck,finger chuck.
4. To do make program.

HANWHA MACHINERY CO.LTD


Example of programming(1)

Machine:SL20He
Chuck :Main:Φ12
Guide bush:Φ12
Sub chuck:Φ12
Finger chuck:Φ12
※ Here used sub chuck is 10mm extruded special chuck.
※ Finger chuck shape is depend on bar feeder type.

HANWHA MACHINERY CO.LTD


Example of programming(2)

H1 Start portion H2 Start portion

O 0001; O 0001;
M 90001; G 40 G 0 T0;
G 40 G 0 T0 /M 08;
G 310 Z210.0 T2100;
M 11;
G 300 X-2.0 Z35.0 T0101;
G 150 Z-0.1;
M 10;
G 99 G 0 X60.0 Z-2.0;
M 03 S 3000;

HANWHA MACHINERY CO.LTD


Example of programming(3)

H1 program end H2 program end

M 550; M 550;
N 99 T0101 (C U T O FF); N 99 T2100 M 21;
M 03 S 3000; M 103 S 3000;
G 50 W -2.0; G 00 Z 25.0;
G 00 X13.0 Z 25.0; G 98 G 01 Z 5.0 F3000;
M 560; M 560;
M 20;
M 570;
G 99 G 01 X -2.0 F0.03;
G 00 Z210.0 M 105 T0;
G 50 W 2.0;
M 599;
M 570;
M 30;
M 95;
/M 92;
M 96;
M 11 S 500;
G 4 P 1000;
G 00 X -2.0 Z -0.1 T0;
M 599;
M 97;
M 30;

HANWHA MACHINERY CO.LTD


Example of programming(3)
1. By from the cutting time which position of sub
Cut-off program(2) spindle moves quickly and the remainder must advance
slowly and it will be able to prevent the collision to
spindle.
2. This is the picture which is to check cut-off location.
Calculation of cut-off position
1.Sub chuck :10mm longer sub chuck
2.Z2=0 : 14mm far from guide bush face
3.Cut-off bite width:2mm
4.Sub chucking location on drawing:7mm
5.calculation
Actual chucking location:7+2(bite W)=9
14-9=5(Distance of sub traveling limit)
10(Extension length)-5(needed length)=5mm
※ If Z2 axis moves to until 5mm position,
then it can be chucking.

HANWHA MACHINERY CO.LTD


Example of programming(4)

Front drilling

N 10 T 1313 (D R IL L D 4.3);
G 1 Z 0.5 F 0.02;
Z 13.0 F 0.04;
Z - 2.0 F 1.0;
Z 12.5;
Z 18.3 F 0.04;
G 4 P 100;
Z - 2.0 F 1.0;
T 0;
Drawing depth= 17mm . How long is it actually deep??

L=17+4.3×0.3=18.3

Needed drill speed ??

RPM=(V×1000)/3.14×D=(40×1000)/3.14×4.3=2962≒3000

HANWHA MACHINERY CO.LTD


Example of programming(5)

Front boring

1. Tip direction have to locate under not to


accumulate chip.

2.Coordinate shift(G50 U-4.0)


Have to move minus direction of X axis

N 20 T 1212 (B O R E );
G 50 U - 4.0;
G 41 G 0 X - 6.9 Z - 0.5;
G 1 X - 5.5 Z 0.2 F 0.03;
Z 5.5 F 0.04;
G 3 X - 4.5 Z 6.0 R 0.5 F 0.03;
G 1 X - 4.1 W 0.2;
G 40;
G 0 Z - 2.0;
G 50 U 4.0;
T 0;

HANWHA MACHINERY CO.LTD


Example of programming(6)
Front tapping
1.Tap holder selection
Harder drill holder-Rigid tap: enable
Spring tap holder-rigid tap, common tap:enable
2. The depth of drill hole have to enough drilled to
consider a depth of tap.

N 30 T 1111 (T A P M 5P 0.8);
G 98 G 1 Z 4.0 F 2000;
M 3 S 600;
M 29 S 600;
G 99 G 84 Z 14.5 P 500 F 0.8;
G 80;
G 0 Z - 2.0;
T 0;

HANWHA MACHINERY CO.LTD


Example of programming(7)
Out side turning

N 40 T 0202 (T U R N );
M 3 S 3000;
G 0 X 4.0 Z - 0.5;
G 41 G 1 Z 0.0 F 0.05;
X 6.8;
X 9.8 W 1.5 F 0.03;
Z 10.0 F 0.08;
G 4 P 100;
X 11.4 F 0.05;
X 12.4 W 0.5 F 0.03;
G 40 G 0 X 60.0;
M 05;
T 0;

HANWHA MACHINERY CO.LTD


Example of programming(8)
End milling(1)

1.Cross drilling(T07∼T10) have to use G98


mode(mm/min)
2. Main spindle indexing and orientation

Basic line
N 50 T 0808 / M 08 (E N D M IL L ); V 14.0 M 83;
G 50 W - 5.5; G 0 C 180.0;
M 50; M 82;
G 28 H 0.0; G 1 X 10.0 F 1000;
M 81; V - 14.0 F 100;
M 24 S 2000; G 0 X 60.0 M 83;
G 0 X 20.0 V 7.0 Z 14.0; M 25;
G 98 G 1 X 10.0 F 1000; M 51;
V - 14.0 F 100; G 50 W 5.5;
G 0 X 20.0; T 0;
;

HANWHA MACHINERY CO.LTD


Example of programming(8)
Endmilling(2)

1. Main indexing(brake) command is depend on machine type.


●Contour function: M50,M51( available with : M81,M82)
●Non contour function: M50,M51(only)

Endmilling(3) 1.Endmill travel direction is A or V Axis.


2.Y axis traveling : to use “V” address.
3. If called tools are reached at the their position then
the position value will be zero.

V 7.0 → A 7.0
V -14.0 → A -7.0 "A" axis is only
used at the S-type
V 14.0 → A 7.0 machine.
V -14.0 → A -7.0
A ccording to program

HANWHA MACHINERY CO.LTD


Example of programming(9)
Grooving

1.Commonly G50 Coordinate shift is used.


But always not.
※ Have to check groove bite tip width.

N 60 T 0303 (G R O O V E );
M 03 S 3000;
G 0 X 13.0 Z 10.0;
G 99 G 1 X 7.5 F 0.04;
G 4 P 100;
X 13.0 F 1.0;
G 0 X 60.0;
T 0;
;

HANWHA MACHINERY CO.LTD


Example of programming(9)
Thread cutting
1.Basic command of thread cutting is G32.
2.Cycle thread command of G92 can use conveniently.
3. It can be reduce imperfect thread when thread cutting have a
little spare distance at the rear and front.

N 70 T 0404 (T H R E A D );
M 03 S 800;
G 50 W - 1.0;
G 0 X 14.0 Z - 2.5;
G 92 X 9.3 Z 8.7 F 1.5;
X 8.8;
X 8.48;
X 8.28;
X 8.16;
X 8.06;
G 0 X 60.0;
G 50 W 1.0;
T 0;

HANWHA MACHINERY CO.LTD


Example of programming(10)
Thread burr remove

After thread cutting, it had to one more cutting to remove burr.

N 80 T 0202 (T U R N ); N 90 T 0404 (T H R E A D );
M 03 S 3000; M 03 S 800;
G 0 X 13.0 Z 1.8; G 50 W - 1.0;
G 42 G 1 X 10.4 F 0.3; G 0 X 14.0 Z - 2.5;
X 6.8 Z 0.0 F 0.05;
G 92 X 8.06 Z 8.7 F 1.5;
X 4.0;
G 0 X 60.0;
G 0 Z - 0.5;
G 40;
G 50 W 1.0;
G 41 G 1 Z 0.0 F 0.1; M 05 T 0;
X 6.8 F 0.05;
X 9.8 W 1.5;
Z 9.0;
G 0 X 60.0;
G 40 T 0;

HANWHA MACHINERY CO.LTD


Example of programming(11)
Cross centering and drilling
To meet angle with previous worked face, the angle of
drilling should be turn to make 90 degree.

N 100 T 0707 / M 08 (C E N T E R ); T 0909 (D R IL L D 3.0);


G 50 W - 8.0; G 0 X 13.0 Z 14.0;
M 50; G 1 X 0.0 F 150;
G 28 H 0.0; G 0 X 13.0 M 83;
G 0 H 90.0;
H 180.0;
M 81;
M 82;
M 23 S 3000;
G 1 X 0.0 F 150;
G 0 X 13.0 Z 14.0;
G 98 G 1 X 4.5 F 90; G 0 X 60.0 M 83;
G 0 X 13.0 M 83; M 25;
H 180.0; M 51;
; G 50 W 8.0;
G 1 X 4.5 F 90; T 0;
G 0 X 60.0 T 0;

HANWHA MACHINERY CO.LTD


Example of programming(12)
Turning(Back)
Chamfer for cut-off face have to cut 0.1∼0.2mm longer than
drawing .
Because of get rid of step at the end of parts..

N 110 T 0505 (B A C K T U R N );
M 03 S 3000;
G 50 W - 2.0;
G 0 X 13.0 Z 17.5;
G 41 G 1 X 12.4 F 0.1;
X 11.4 Z 18.0 F 0.03;
X 10.0 F 0.04;
G 4 P 100;
Z 24.0 F 0.06;
X 7.6 Z 25.2 F 0.03;
X 13.0 F 1.0;
G 50 W 2.0;
G 40 G 0 X 60.0 ;
T 0;

HANWHA MACHINERY CO.LTD


Example of programming(13)
Machining of sub spindle
Sub spindle machining is began after cut-off process.
So machining sequence of sub spindle is like below.
Back side machining ▶ Parts ejection ▶ Cut-off
※You need enough spare length for using G50 shift when
you set up the tools.(Ex. G50 W-180)
you have to setup tools when you do not found any problem
in your program.

N 10 T 2323 (C E N T E R ); N 20 T 2424 (D R IL L D 2.6); N 30 T 2525 (T A P M 3P 0.5);


M 104 S 3000; G 50 W - 160.0; G 50 W - 162.0;
G 50 W - 150.0; G 0 Z 2.0; G 0 Z 2.0;
G 0 Z 2.0; G 1 Z - 9.0 F 0.03; M 29 S 600;
G 99 G 1 Z - 4.5 F 0.02; Z 2.0 F 1.0; G 84 Z - 9.0 F 0.5 P 500;
Z 2.0 F 1.0; G 50 W 160.0; G 80;
G 50 W 150.0; T 0; G 50 W 162.0;
T 0; G 0 Z 210.0; T 0;
G 0 Z 210.0; G 0 Z 210.0;

HANWHA MACHINERY CO.LTD


Example of programming(14)
Parts ejection

1.Parts ejection should be check before cut-off process.


2.Parts ejection is consist of pneumatic cylinder and mechanic device.
3. Location of ejection is T2600 (depend on machine type)

N 9 0 T 2 6 0 0 (E JE C T );
M 104 S 200;
M 1 7 ; → P arts re ce iv e r fo rw ard
M 2 1 ; → S ub ch uck o p e n
M 7 8 ; → P ush b ar fo rw ard
M 2 8 ; → A ir b lo w o n
G 4 P 1000;
M 7 9 ; → P ush b ar re turn
M 1 8 ; → P arts re ce iv e r re turn and p arts co nv e y o r o n
M 105;
T 2100;

HANWHA MACHINERY CO.LTD


Programming practice(1)

Drawing Analysis
1. Off center drill will works at the front face.
2. Material: Free cutting steel(SUM24L)
3. The Chamfer, the roughness must refer to the drawing.

HANWHA MACHINERY CO.LTD


Programming practice(1)-Lay-Out

HANWHA MACHINERY CO.LTD


Programming practice
O1000; N40 T1111 M3 S400 (TAP); N70 T0303 M3 S3500 (GROOVE);
M91000; M29 S400; G0 X16.4 Z14.0;
G40 G0 T0/M08; G84 Z10.0 P500 F0.5; G01 X10.0 F0.03;
M11; G80; G04 P50;
G300 X-2.0 Z60.0 T0101; G0 X40.0 Z-2.0 M05 T0; W1.0 F0.015;
G150 Z-0.1; ; G04 P50;
M10; N50 T0101; X16.4 F0.5;
G99 G0 X40.0 Z-2.0 G0 X40.0; G0 X40.0 T0;
M03 S4000; M50; ;
; G0 Z28.0; N80 T0505 (THREAD);
N10 T0606 (TURN); M501; M3 S800;
G0X16.4 Z0; M505; G50 W-1.0;
G01 X-0.5 F0.1; G0 H180.0; G0 X17.0 Z2.0;
G0 X40.0 Z-2.0 T0; M506 G92 X11.5 Z13.0 F1.5;
; M510; X11.24;
N20 T1313 (CENTER); M51; X10.86;
G1 Z3.0 F0.05; G0 X40.0 Z-2.0 M3 S3800; X10.68;
G04 P50; ; X10.52;
G0 Z-2.0 T0; X10.38;
N60 T0606 (TURN);
X10.26;
; G99 G0 X16.4 Z-0.2;
X10.16;
N30 T1212 M3 S3000 (DRILL); G01 X8.2 F0.5;
X9.0 W0.4 F0.03; X10.1;
G01 Z7.8 F0.06;
Z4.0 F0.04; X10.06;
Z-2.0 F2.0;
Z7.3; G04 P50; G50 W1.0;
Z12.0 F0.05; X9.9 F0.1; G0 X40.0 T0;
G04 P50; X11.9 W1.0 F0.03;
Z-2.0 F2.0; Z15.0 F0.04;
T0; G4 P20;
X15.0 F0.08;
X17.0 W1.0 F0.03;
G0 X40.0 Z-2.0 T0;
;

HANWHA MACHINERY CO.LTD


Programming practice
N140 T0808 (DRILL);
N90 T0606 (DEBURR-TURN); N120 T0303 (GROOVE);
G50 W-8.0;
M3 S3800; G50 W-2.0;
M24 S2000;
G0 X17.0 Z5.5; G0 X16.4 Z25.0;
G0 X17.0 Z32.0;
G1 X12.9 F0.3; G1 X12.2 F0.1;
G98 G1 X11.0 F1000;
X9.9 W-1.5 F0.05; X10.0 F0.03;
X9.2 F40;
X9.0; G4 P50; G4 P20;
G0 X40.0 W-1.0; X13.0 W1.5; U0.5 F2000;
T0; G50 W2.0; X0.0 F80;
; G0 X40.0 M5 T0; G04 P50;
N100 T0505 (DEBURR-THREAD)
N130 T1010/M8 (ENDMILL); X11.0 F1000;
M3 S800;
G50 W-22.0; G0 X18.0 ;
G50 W-1.0;
M50; H180.0;
G0 X17.0 Z2.0;
M24 S1000; G01 X11.0 F1000;
G92 X10.06 Z13.0 F1.5;
G98 G0 X19.0 Z32.0; X9.2 F40;
G50 W1.0;
G0 V-11.0; G4 P20;
G0 X40.0 T0;
G1 X10.0 F1000;
; U0.5 F2000;
V22.0 F60;
N110 T0202 (B-TURN); G0 X19.0; X0.0 F80;
G50 W-12.0; H180.0; G4 P50;
G0 X16.4 Z43.0; G1 X10.0 F1000; X11.0 F1000;
G01 X9.0 Z40.1 F0.02; V-22.0 F60; G0 X40.0 M25 T0;
X10.0 W-0.5 F0.04; X19.0 F1000; N150 T0707 (TAP);
Z37.0 F0.05; G50 W22.0; M23 S400;
G4 P20; G0 X40.0 T0; G98 G0 X12.0 Z32.0;
X12.0 W-1.0 F0.03; G1 X2.0 F180;
Z25.0 F0.05; M25;
G4 P50; M24 S400;
X15.0 F0.08; G1 X12.0 F200;
X16.4 W-0.7 F0.03; G50 W8.0;
G50 W12.0; G0 X40.0 M25 T0;
G0 X40.0 T0; M51;
; ;

HANWHA MACHINERY CO.LTD


Programming practice
M595; O1000; N20 T2626 M104 S2000 (CENTER);
N99 T0101 M3 S3000; G40 G0 T0; G50 W-127.0;
G310 Z210.0 T2200; G0 Z2.0;
G50 W-2.4; ; G98 G1 Z0.5 F2000;
N10 T2222 (OFF CENTER DRILL) Z-5.0 F80;
G99 G0 X16.4 Z40.0;
M501; G04 P20;
G1 X11.0 F0.04; G50 W-22.5; Z1.0 F2000;
G0 X-7.0 Z2.0; G50 W127.0;
M596; M103 S3000; G0 Z210.0 T0;
M20; G98 G1 Z-0.5 F45; ;
G4 P50;
X-0.5 F0.02; N30 T2525 (DRILL);
W0.5 F1000;
Z-4.5 F120; G50 W-135.0;
M597; G0 Z2.0;
G4 P50;
X-2.0 F0.04; Z2.0 F2000; G1 Z0.0 F2000;
Z-4.0; Z-10.0 F120;
G50 W2.4;
Z-6.5 F120; Z2.0 F2000;
M95; G4 P50; Z-9.5;
Z2.0 F2000; Z-16.5 F120;
/M92; M505; G4 P50;
M96; M506; Z2.0 F2000;
G1 Z-0.5 F45;
M11 S500; G4 P50;
G0 Z10.0 T0;
W0.5 F1000; ;
G4 P1000; N40 T2424 M104 S400 (TAP);
Z-4.5 F120;
G0 X-2.0 Z-0.1 T0; G4 P50; G0 Z3.0;
Z2.0 F2000; M29 S400;
M97;
Z-4.0; G84 Z-13.0 P500 F320;
M599; Z-6.5 F120; G80;
G4 P50; G0 Z10.0 T0;
M30; Z2.0 F2000;
G50 W22.5;
G0 Z210.0;
M105;
M510;

HANWHA MACHINERY CO.LTD


Programming practice
N50 T2323 M104 S2000; ;
G50 U-5.0; M595;
G0 X-8.2 Z2.0; ;
G1 Z0.0 F600; N99 T2100 (CUT OFF);
G3 X-7.0 Z-0.6 R0.6 F60; M103 S3000;
G1 Z-5.7 F80; G0 Z30.0 M21;
G2 X-6.4 Z-6.0 R0.3 F60; G98 G1 Z2.4 F2000;
X-4.2; M596;
Z2.0 F1000; M597;
G0 Z210.0 M105 T0;
G50 U5.0 W135.0;
M599;
G0 Z210.0 M105 T0;
M30;
;
N60 T2600 (EJECT);
G0 X-2.0;
M17;
M21;
M78;
G4 P1000;
M79;
M18;
T2100;

HANWHA MACHINERY CO.LTD


Programming practice(2)

Drawing Analysis
1. If length of parts is longer than the stroke of machine, then it have to
accomplish at the Head1 side.
2. Material: Free cutting steel(SUM24L)
3. The Chamfer, the roughness must refer to the drawing.

HANWHA MACHINERY CO.LTD


Programming practice(2)-Lay-Out

HANWHA MACHINERY CO.LTD


Programming practice
O2000;
M503; M21;
M92000;
M95 ; G50 W2.0 ;
N8000;
/M93 ; M550;
G40 G0 T0 /M08;
M96 ; M220;
M11;
M20 ; M57;
G300 X-2.0 Z210.0 T0101 ;
M11 ; ;
G150 Z-0.1 ;
G00 Z0 /M08 ; N60 T0303 (GROOVE);
M10 ;
M10 ; G00 X 6.6 Z390.6 ;
M03 S3000 ;
M21 ; M98 P4100 ;
G00 X30.0 Z-1.0 ;
G50 W210.0 ; M508;
;
; ;
N10 T0202 (TURN);
N40 T0303 (GROOVE); N99 T0101 (CUT OFF);
G00 X14.0 Z0 ;
G01 Z364.6 F6000 ; M3 S3000;
G99 G01 X-0.5 F0.05 ;
M504; G50 W-2.4 ;
X5.0 F0.2 ;
M505; G00 X12.4 Z400.0 ;
X6.0 Z0.5 F0.03 ;
M03 S3000 ; M509;
Z20.0 ;
G0 X12.6;
G04 P100 ; M20 ;
M98 P4100 ;
X11.0 F0.1 ; X-0.5 F0.02 ;
N50 T0404 (B-TURN);
X12.6 W0.8 F0.03 ; M510;
M21;
G00 X30.0 ; X-2.0 F0.03 ;
M506;
N20 T0303 (GROOVE); M03 S3000 ; G50 W2.4 ;
G00 X6.6 Z9.6 ; G50 W-2.0 ; M95 ;
M98 P4100 ; M507; /M92 ;
G00 X12.6; M96 ;
M56;
Z35.6 ; M221; M11 S500;
M98 P4100 ; G4 P1000;
M20;
G00 X30.0; G0 X12.6 Z379.2; G50 W-210.0 ;
; G00 Z-0.1 T0 ;
G01 X11.0 Z380.0 F0.02 ;
N30 M21 (FEED); M97;
X6.0 ;
M05 ; M512;
G04 P100 ;
M501; M30 ;
Z399.5 F0.03 ;
M502; X4.6 Z400.2 F0.02 ;
G98 G01 Z210.0 F6000 G00 X30.0 ;

HANWHA MACHINERY CO.LTD


Programming practice

O2000;
M506;
N8001;
G0 Z0.0 M103 S3000;
G40 G0 T0;
;
G310 Z210.0 T2100;
M507;
;
M221;
M501;
M550;
G98 G01 Z50.0 F6000;
M220;
;
M508;
M502;
;
M503;
N99 T2100 M103 S3000;
M95;
M21;
/M98 P9005;
G98 G1 Z9.0 F2000;
M96;
M509;
;
M510;
M504;
G0 Z210.0 M105 T0;
G0 Z210.0;
M512;
;
M30;
M505;

HANWHA MACHINERY CO.LTD


Example of bar feeder program
Common(Short shaft) Long shaft(2 path)

O9002 (B/F); O9003 (BF-LONG SHAFT-MAIN); O9005 (BF-LONG SHAFT-SUB);


M60; M60; T2100 M21;
G00 X21.0 M09 S200; T0101 M13 S2000; M103 S2000;
G98 G01 W-50.0 F1000; G00 X21.0; G98 G01 Z2.2 F3000;
M11; M590; M590;
M62; M20; M591;
M10; G99 G1 X-2.0 F0.04; G00 Z210.0 M105 T0;
G04 P2000;
M591; M593;
M61;
G00 X21.0 M09 S200; M96;
M13 S3000;
G99 G01 W50.0 F0.3;
G98 G01 W-50.0 F1000; M99 P8001;
G1 X-2.0 F0.03; M11;
M99; M62;
M10;
G04 P2000;
M61;
M13 S2000;
G99 G01 W50.0 F0.3;
G1 X-2.0 F0.03;
M11;
M593;
M96;
M99 P8000;

HANWHA MACHINERY CO.LTD

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy