T32-3 Programming-EIA
T32-3 Programming-EIA
PROGRAMMING MANUAL
lor
Serial No.:
09. 1990
~.1azak
Con1ents
-1-
1. M and G codes used frequently by MAZATROUEIA programs
r.1azak
(Applicable to INTEGREX)
M codes M codes
M03 Turning mode, spindle forward MB6 Slaady rest roller 0P'Jn (SMW)
M04 Tl.lrning mode, spindle raverse MB7 Steady r8$1 roller Clo&e
M05 Turning mode, spindli, Slop M74 Steady rfft body clamp (ioint OFF)
MOB Chuck open M75 Stil:\ilely res! body unclamp (joint ON)
M07 Chuck dose
MOS Cooiam ON "'"
M99
EIA - EIA subprogram call
EIA - Rlllurn lo main program from EIA
M09 Coolam OFF &Ubprogram
M72 Chuck inside damp M220 No.40 Y-axis m~I tool orient
M63 Tool nose measurement arm adv;ince (valid) M274 Rest coolant ON (Niag;ua ON)
M84 Tool nose measurement arm retreat M275 Rest coolant Off (Niagara OFF)
Mes Misl coolant ON (optional) M600"' Magazine indexing No.1 ~ No. 60
M660
M391 No tuming/m~l1ng spindle rotation
prohibit alarm
M390 M391 cancel
M370~ Overtaad detection coOes
M379
-1-
G codes for turning G codes for milling
~.1azak
Goo Rapid traverse G12.1 Milling lmerpolation mode
Go1 Cutting feud G13.1 Milling interpolalion }
G02 Circular interpolation CW modff cancel Same 11ginflc.llnc:e
G72 Turr,lng, face rough turning cycle GBS Face boring cycle
673 Turning, copy rough turning cycle G87 V direction drilling cycle (G19)
G74 Turning, face cut-off cycle GBB V direction tapping cyele (G19)
G75 Turning, longi1udinal cut-off cycle G89 V direction boring cycle (G19)
G76 T1Jrning, thread cutting cycle
G90 Turning, outer diameter turning cycle
G92 Turning, th,ead cutting cycle
G94 Turning, fac::a !urning cycle
G96 Constant peripheral speed command
G97 G96 cancel, constant speed
G9e Pe,-minu1e feed command (mm/min)
G99 Per-revolution feed command (mm/rev)
-2-
2. Tool nose radius compensation in the turning rnode
r.1azak
19029A77
•
~.
_.,.£.14!-
:•,,•
""
Nose R {radius)
poinl Direction (a)or (9)
Tool setting
19029A76
-3-
r',1azak
050 G42
(1,97) G01Z-20.F0.2
GolX50.0 K·1.0
G01XS1.0
'
20 (0.79) !
In the above, an error result$ since no travel in the Z
direci.ion is provided at C1. Ar, error also results since
8'.'en iii the X direction the travel .alTIOIJM is not more
tha.n twice the nose radius (0,8).
G42
Go1z-20.o Fo.2
GOtXS0.0K,1,0
GOtZ-21.80
G01X51.60
NG!
19029A78
-•-
3. Plane selectio11 In the mill"1ng mode
~.1azak
G16
·c•,._.;•,,
y
r1pheral
f>eripheral cam
ngth - t
machining
z
19029A79 19029A80
X
G17
X-Y plane
19029A81
10029A82
-5-
G19
y.z piano
190:?9A83
l0029A64
•
I
~----vzj.1., G41 milling mQCle line 0 OJ
- H
e; machining Qeft)
•80
(3.15) ·"·
40
(1.58) ~'f !
-
''°
(0.79)
.
UJ
[[Q)is set for NOSER on
- - 10 (0.39)
-X (0.39)
the offset screen.
19029A85
G12.1
G17
G'1 G002-5.0
G01X40.0Y10.0F100- G98 {mm/min) is automatically sel in
G01X10.0 · the milling mode (G12.1).
~--------G42 GOOZ5.0
GOOX40.0
GO YO - - - - - - - - U p o n completion of machined shape,
G40 it is aclvi&able lo enter @.
When G41 or 042 is use<J, a (.:Ut aqulva,
lent in si2.e to the tool diameler is made ~~~;• •~_- - - - A n error res.ult& if IG4DI is enlered here,
at the X end point in the -Y direction, 300 0
.i.nd s.o the nose radius is compensated G28UOW0
in tt\e opposite direction.
(This does not pose a problem whan thEI
G40 line machining cen1er mode is
assigned.)
Other points
1)' G16, G17 or G19 musl be assigned after the milling inlerpofalion (G12.1) command,
1) Whae the G12.1 command is operat~nal, commands in the X direction are oll$Signed wilh diametrical values.
2) C-.axis oommands (angle indexing) cannot 00 assigned during !he G17 i::ommand.
3) Tool nose radius compensa1ion tnust be canceled (G40) when 012.1 is as&iQned,
-7-
5. MAZATROL programs call from EIA programs
~.1azak
EIA/ISO PROGRAM No.I 100::?J
(ROUG-0D);
N10G28UOWO; [ChdpoimJ
G53; C-axis offset is not possible using the EIA for-
l020020.9; mat. Therefore, proceed wilh the machining
M38G96G99S 130; of th8 turning and milling without phase con-
Gox100.0Z2.0M4; trol using 1h1;1 EIA format flNit, lhen conduci
GOX85_0Z2.0M8; the C-ruds offs01 mci.1~uromem, &tla IQllgw
G"/1P11017U0.3W0.1 D5000F0.55$100; with the actual milling.
Ni 1GOX56.0Z2.0;
Ni 2G42G01X56.021 .OF0.10;
N13G01X60.0Z-1.0;
N14G01Z-20.0;
N15G01XSO.OR-3.0;
N16G012-30.0l1.0;
N17G01X8$.00;
G40GOX300.0Z100.;
G28U0Wo;
(TUFlN-DUMMY) M38;
N50 T002000.9;
M30;
% 10029A86
MAZATAOL
....... ~ .. PROGRAM LIST "****IWOAK NO. 1001 I( ) PAGE l
'°" 54,25
.
3()8.~1 2.71 0.02
,cw
5 LNE
59.67
56.96
308.571
308.571
•• 2.71
♦
0.02
0.02
PNo. MOOE 111'1
202
#2 ., ,. ., •• •• #10 ., ,12
• M 38
PNo. MOOE COUNTER RETURN WK No. CONT. NUM. SHIFT
5 ENO 1_002
I .. Opomtioi, now relurns to EIA progrll.m No. 1002.
-•-
6. Example of tool nose measurement program
r.1azak
****• PROGRAM LIST "'"' "** WORK No, -9999 PAGE 001
EINISO PROGRAM
Z-20
{1H1 775754-5-0Pl);
N01 (R-OD)G2BUOWOM38;
G53; SETUP
l0200'.Xl.9:
G36X-341.919K.3P10002A0:
M83;
GOOX160.oo:l,
;J
• Z-20.0i
G31X14B.OOOF10; TEACH
G0X300,0; L
G37·
G2al.mwo·
M84; '
Emera value aboul 2 mm
{0.08 in.) less than the 863
parameter value,
;J
19029A87 I
M30; [ol !INPUT!
Example when tool eye face serves ai.
programmed zero point
T20
'i-::-::----=---------===;-;----------::;;:~',,,;,---,1
WNo. !:!S99E Sea.ling X I 0.3 ,.. ...,,,.
PNo. ,. 10 Zr·201' __ ..................... ...
TNo.20V-O ~
(R-FCE ) .,. .......... ~1.919
Machirle
X 491.91 :, • .. p;,,i;itiQn
Z 230.755
yC o.
0. ,.._ _____________________ _
1
rameter
e160 {6.3)
ample)_ 148.478_ __ _ _ _ _ _ _ _ _ _ _ _
'
Programmed 1.ero poinl
( )
T,-------.--------.----
i
/'~----------------------------,,
1 19029A88
Note('"):
• Theg}value differs according to lhe Z offset value.
• The targeI value@:HHers for each tool number. When lhe tool setlings have been completed, make a note of Iha target values.
• After measurement, the compensation vafui, appeari,s on tha offset screen.
-9-
7. Example of work measurement program
r.1azak
**•** PROGRAM UST ...,... WORK No. • 3333 PAGE 001
G13.1;
G53;
G28UOWO;
11500.08; Program T015CXX).6 for a 6-digll T command
G3E:X84.685K0, 1P200R1 .49AO;
GOX90.00Z10.0; X: Measuremenl 1arget (machined diameter)
G98G01Z·8.0F150; R: Value equivalent to one-hall of styl~s diameter
G31X82.0f10; K; Tolerance
G0tX90.0F150; k. Zero@is acceptable
G0Zl0.0; Q: ZerolQ)for measurement at both ends
G0X-95.0; P;
G1Z-8.0F150;
G31X-85.0F10;
Offset number
.,
(O.i2)f
G1X-95.0F150;
GOZ20.0; 19029A89
X3()0.0;
G2euowo: Tool setting
G31: posiliOn
M30;
%
\,r - - - - - - - - - - - - - - - - - -
I
. -' ~
!
~------------/
WNo. 333.3E Scalrng x 1.• ,' !
PNo. O· 19 ' '
TNo. 15H- 0
~-=====-cir',,,(-- --1 '' '
I )
X 997.054
Z 131.906
C 0.
y 0.
El'!R0---l--1----------------1
::·. ~;( ); •. t!:: :::-~ ': ; , ...
~~ ~-t------r---7,-----,--(-,--)
;·'----------------------------~,
19029A90
1· 14 15· 19
WNo. 2222E
FNo. a -
TNo.O·O
I )
X 0.
Z 0.
C 0.
y 0.
e42.40
l------·---f'(1c67L.. _ _ . _ _ ~+-•--·-·--·--•--
( )
I
1 1 \
19029A91
-11-
r.1azak
['Nork measurement, outer diama1er = Reference polm comparison wntact mode]
Chuck
"250
(9.85)
200 (7.88)
19029A92
G13.1
G53
G28UDWOM38 ,.... Gearshift
T1500.9
M19 (M16, M17, M18) ...... Position is oriented to avoid interference wtth soft jaw.
G36X25Dl304K0.03P01 01 ROA0
G0X350Z10
G98GD 1Z-220F2000
G98GD1X310F150
" G31X302F10 ...... Reference point is measured. X! ME.aS1.Jrement target (machined diameter)
G01X310F150
G01Z-JOf2000 J: Reference point position (diameler)
G01X270Ftso K: Tolerance
• G31X248F10 ,,.,,. Target point is measured. P: Offset number
G01X27DF150 Q: Measurement mode
G01 XSsOZ 10F200
R: Sensor diameter, zero@] is acceptable
G28U0W0
G37 A: Zero@Jis acceptable
M30
• If the 001erclia1meterofthe work exceeds 150 mm (5.91 In.), it will l'lOI be pouible lo measure the outer diameter at both ends
du8 to the X-axis stroke and so it is measured 1:11 one end only.
-12-
8. Example of machining in the milling interpolation mode
r.1azak
EIA/1S0
[Example cf periphperal oam machining]
G28UDWO;
M200;
T051000.9;
l051051.9;
G53;
G~BHD:
G9BG97S600M203;
G0X300.Z20.0M8;
G12.1G16G4o;
G0X45.0;
M211; ,,. ............. C-.axis brake
G1ZOF50;
G1Y-45.0Z-45.0F20D;
YOZ-90.0;
Y45.0Z-135.0;
YOZ-160.0;
GOX30CLOM9;
G13.1;
G28UOW0M200;
M30;
0 w
-Y
180 (7.09)
,,
r 5
,, (0.2)
,, , .,
0100
(3.94)
, 020 (0.79) (1.77)
+Y
-z , JI
, -Y
, ,
, ,,
I
l
+Y
-X
19029A93
-13-
~.1azak
828UOWO:
M200;
T051000.9;
T0S1051.9;
G53:
G28H0;
GoCO;
G98007S600M20J;
GOX300.Z20.0M8;
G12.1G16040;
GOX70.0;
M211;
G1Z-20.0F50;
G02Y02· 120,0R50.0F200;
G02Y0Z-20.0A50,0;
GOX300.0M9;
G13.1;
G26UOWOM200;
M30; TF,113-00085
-Y
"20
, (0,79)
0150
(5 91)
+Y
+Y
20 (0.79)
-x
TR113-00086
70 (2.76)
(Mac:hining multiple oqui(lislant grooves]
~.1azak
..... PROGRAM LIST ,.,,.,.,.. WORK NO ... StXX> PAGE001
EINISO PROGRAM
(Mill-FACE K!Rll<AKI); It is convenient to 1.1se a subprogram for draw-
G28UOWO; ing multiple, numbers of lines in 1he milling in-
M200· lerpola1ion mode, and in this case YO rnust be
G28H,O; programmed in subprogram No.10. If this is
GOCO; not entered, a cut equivalern ln size k.> lh8 cut-
T048COO.ll; ler diameter will be mada ill the V directfQn.
N1301048048.8;
G53;
G98G97S400M203;
G0XB0.025.0;
G13.1;
N100M98P10; Subprogram call
G0H9()_0;
19029A95
M98P10;
Cutter diameter
GOH90~.0~;_ __
M98P10;
..
Milling mode line machlninQ Jeft
GOZs.o;
G41
G40;
G13.1;
GOX300.0; ~
G28UO\-VO;
M30;
"
-x
II I
~-
NOSE R-2,5
19029A97
-15-
~.1azak
0 • 0 PROGRAM LIST uu• WORK NO. - 0010 PAGE001
ElA/ISO PROGRAM Subprogramffg]in program No. 5000
G98G97M203SSOO;
"4200;
G1:n;
G40;
GOX45.0; ~
G1z.2.0F100;
G
M211· 1~;
G4 G1X40 0Y2 385FSO; When G42 is used, the following is pl'Qgrammed;
G1X25.0Y2.385, {G41GOZ2.0
G1 X20.0Y2.385, GOX45 O
G42GOZ2: Yo
GOX45.; } Checkpoint
YO;
G40;
G13.1;
G1B;
M200;
M99;
%
\ I
'' /Scaling x
WNo. 10E I ''
1.
I
PNo. O· ''
TNo.0-0 ''I ''
I )
I '' '' I
X
z
0.
0. "'' '' ''
C o. rr~:"
y
"''
0.
' ''
''
'' I
'
'
'i'
---- ---- ----
'
( )
I
I I i I I i I I
\
190251A98
-16-
l'.1azak
9. Example of milling program
..... PROGRAM LIST ..... WORK NO. -0102 PAGE 001
(Face keywayj
EWJSO PROGRAM
(IHI-Mll-OP-2);
G28UOW0;
(STD-Mll50);
M200;
T051000.6;
N1D T051051.8;
G53;
G28H0;
Ji~---- Last 3 digits for 0ffset No.
First 3 digrts for tool No.
G98G97M203S500;
GDCO;
GOX8o.OZ5D;
,M~•~•~P=SO~L~•~·----- Subprogram call, repeatud
GOZ10.0; 4 lirTIM
GOX300.0;
G28UOW0;
cc==-----,
M200; _______ , _____
M200:
T048000.8;
N20 T048048.B; 19029A99
G53;
G28H0;
G98GS7M203S500;
GOCO,
G0X100.0Z5.0; (MiMing mode line machining tight/left)
G12.1;
G17;
G41G0X40.0Y5.25;
G1Z-3.0F100;
M211;
G1X15.0YS.25f50;
G0ZS.0;
M200;
G40;
GOX40,0;
G42G0X40,0Y-5.25;
G1Z-3.0F100;
M211;
G1X15.0Y-5.25F50;
G0ZS.0;
M200;
G42
G40;
G41GOX-5.25Y40.0;
G1Z-3.0F100;
M211;
G1X-5.25Yt5.0F50;
GOZ5.0;
M200;
G40;
G42G0X5.25Y40.0; 19029600
G1Z-3.0F100;
M211;
G1X5.25Y15.0F50;
GOZS.O;
• When a tool nose radius compensa!ion command (G41, G42) is assigned, enler a value equivalent to one--half of the diameter
as NOSE A on the offset screen.
The groove width will iocreasa If the machining width is adju&led lo a lower value.
-17-
uu• PROGRAM UST "* 0 "'
WORK NO.=0102 PAGE (XR
~.1azak
EIA/ISO PROGRAM
G40;
M200;
0--,--~;
G0X30C>.OZ25.00;
(i13.1; 10 (0.39) [Drilling cycle]
G28U0W0;
M200;
T051000.8;
N30 1051051.B;
G53;
G28HO; ,'
G90097S500M20J; 1:
GOX40.0Z5.0; +- lnilial point
G12.1; T Return to 5,0 upon completion
' "'"" R20
G17; of machining -----0--L
GOXS(X).OM200;
GB□;
T ,:__
G83X20.0Z-10.0001.0 P.3FSO;
0.3 sec. dwell
c_ _ _ _ _ Cul amount 1.0 mm/pass
Deep hole drilling cycle
1.-1:-,c,,,
'""'
G1X23.5~50;
G02X16.5A3.5;
G02X23.5RJ.5;
G1X20.0:
GOZ5.0M200;
G13.1; Contouring
G0X300.0;
G28UOWO; I
M30;
15(l29B01
(Con1ouringJ
-18-
W/No. 0050 Sub.
~.1azak
M210;
G98(i97M203S500;
G1Z-3.0F200;
G1Xi5.0f=S0; {Diametrieal value)
GoZ2.0:
GoX00.0; (Diametrical value)
M200;
G0H90.0;
M99;
"
1- 9
u• PROGRAM 50E • 0
(
-19-
~.1azak
--••• PROGRAM LIST •u•• WORK NO. • 0102 PAGE 004
EIA/1SO PROGRAM
M09;
M30;
%
WNo. 102E
PNo.O·
TNo.o-o
( )
X O.
Z 0,
C 0-
y o.
1
19029802
GOOXOZ10.0YO;
GOiZ-2,0F400;
G01X15,0;
G02X-15.0R15.0;
G02X15.0A15.0:
Goz,o.o;
GOX300.0Z50.00;
G13.1;
G40;
G28UOW0;
(Y-OUI);
N30G2BUOWO;
T061C00.9;
N30 T0610St9;
G53;
G28UOW0;
M200;
G28Ho;
-21-
u•u PROGRAM LIST ••u• WORK NO. -4444 PAGE 002
~.1azak
EIA/JSO PROGRAM
T061DG1.9;
GOC09(l0M210; The C axis (machining surface) should be
- , - - - - ~ - - indexed before assigning the G12.1 and
M08; G19 (;Ommands.
G98G97M203S500;
G12.1;
G19; - - - - - Y-Z plane
GOYso.o;
GOX100.0Z-tO.OM8;
GOX3!5,0;
G01Y-50.0F400;
G01Z•55.0;
G01Y50.0;
G0X100.0;
G0Z300.0;
M200·
~·
(DO NOT FORGET YO); When machining is compl91ed:
Gi3.1; The G12.1 will not be canceled
G28UOWO; unless the Y axis is returned to
G26H0; zero@ z
--------0--------0-------
M200;
(Contouring with No. 50 mm klol]
TD51000.8; 10029603
N40 T051051 .8; -x
M200;
G53;
G2BUOWO;
G28H0;
M201;
T051051.8;
G98G97M2038500;
G12.1;
G17;
MOS;
G40;
GOOXOO.OZ10.0YO;
G01Z·2.0F400;
G01X15.0Y0;
G02X-15.0YOR15.0;
G01X0Y0;
'Gozmo;
G0X300.0Z50.00;
013.1;
G28UOWO;
M202;
(TURN-DUMMY);
M38;
1002000.9;
N50 T0020CXl.9; 19029804
-22-
u••• PROORAM LIST ..... WORK NO... 4444 PAGE003
~.1azak
EIA/1SO PROORAM
\ I
'''
i
'' .,I ,,G ,r,~scaling x 0.7 '' .I
'''
'
''' 1·'
I
..,, ,.,. ,,
I _,,. ''
'''
.I
.
''I
' '' ' ,,f/ '
: : ci'''•
I ,, J,
l' .,,. .l'ir
'''
C . -;1
L...J 1: ,:
- - • - - - - . - - - - r :,
,.. ___ '
''
.
i I r1
,,,
\ 1, .
__,,,,,,,
-----
WNO. 4444E
. :, ----·---
---·---· r L\
\ )
.
PN(l.
TNo. .21/- 0
50-2 - ~
( GNL-OUT)
X
2
C
y
490.536
209.903
0.
0.
I I.
Ii Ii
( )
I
I I 1 I I T I I
\
19029605
-Z3E-