Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
For commanding position of each axis, refer to the section “6-4. Tool Holder Tables” and “8-4.
Coordinate System”.
Program Beginning
[HEAD2]
O1234 ; Program number
G130 ; Z2-axis coordinate system cancel
G140 ; E-axis coordinate system cancel
M131 ; The turret is used by the HEAD1 side (waiting for HEAD1 side)
G99 G40 G97 M9 ; Feed/rev, tool nose radius compensation, constant surface speed
cancel, sub spindle unclamp
M05 ; Sub spindle stops
G00 T00 ; Tool offset cancel
G28 W0 ; Z2-axis reference point return
G50 Z0 ; Coordinate system Z0
M200 ; Waiting for M200 of HEAD1 side
M20 ; One cycle stop
M25 ; Coolant 1 ON
8-137
HEAD2 Single Operation
To execute the HEAD2 single operation, be sure to command the HEAD2 block jump
(G900 Jj ; , Nj ;) in the program to be skipped.
This function make blocks jump from the G900Jj to the sequence number Nj during the
Example: Press the ONE CYCLE key to turn the light on, and execute the program stop
at M20 in SIMUL operation. Press the HEAD2 key and START buttons to
execute HEAD2 single operation. (It starts the machining of picked up parts by the sub
spindle.)
Format
[HEAD2]
O1234 ;
Program start
M20 ;
M25 ;
Back machining
Parts ejection HEAD2 single operation block j
G900 Jj ; ump
Front machinig j:Sequence number (decimal in
Parts pickup put is impossib
le)
e.g.: G900 J5
Nj ; 0 ;
M99 ;
Sequence number N50 ;
8-138
Parts Pickup in Cut-Off Process
Program example
[HEAD1] [HEAD2]
G99 M03 S ;
T100 ; Cut-off tool selection
G00 X Z T01; (Cutting-off positioning) M11; Sub collet unclamp
M82 ;(waiting) M82; (waiting) Synchronous rotation control ON
G131; Setting of Z2 axis coordinate system for
parts pickup
G00 Z–1.0 ; 1mm positioning from the material end.
M68 ; Z2-axis torque limit ON
M14 ; Air blow ON
G98 G01 Z F2000 T30 ; (Pickup position)
M10 ; Sub collet clamp
M15 ; Air blow OFF
G99 ; Feed per revolution
M69 ; Z2-axis torque limit OFF
M500 ; (waiting) M500 ;(waiting)
G01 X-2.0 F0.02 ;(Cutting off process)
M510 ;(waiting) M510 ;
M68 ;
G00 W-10.0 ; Parts pickup
M69 ;
M83 ; (waiting) M83 ; (waiting) Synchronous rotation control OFF
M80 ; M27 ; Parts ejection detection
G00 T00 ;
(No bar stock detection process) G28 W0 ; Z2-axis reference point return
G130 ; Z2-axis coordinate system cancel
G05 ; Sub spindle stop
M81 ; N50 ; Block jump sequence number
M99 ; End of program M99 End of program
8-139
The drawing of positional relation of pickup
G131 ;
G00 Z–1.0 ; see a drawing below
8-140
Turning [HEAD2]
The drawing of linear machining and taper machining
8-141
Program example
Turret / 2-station tool holder for inverse tool setting for back 16mm [43103]
[HEAD2]
T00 ;
M132 ;
T1331 ;
G00 E-140.0 ;
M04 S2000 ; Sub spindle reverse
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining, a protruded
length from the sub spindle is 30mm.
G00 Z-1.0 T31 ; Move the Z2-axis so that the tool tip is located at 1 mm from the product
tip of the sub spindle.
G00 Y11.0 ;
G01 Y5.0 F0.05 ;
G01 Y8.0 Z0.5 F0.02 ;
G01 Z19.0 F0.04 ;
G01 Y11.0 Z20.5 F0.02 ;
G00 Y40.0 ;
G00 T00 ;
T1332 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining, a protruded
length from the sub spindle is 30mm.
G00 Z23.0 T32 ; Move the Z2-axis so that the tool tip is located at 23mm from the
product tip of the sub spindle.
G00 Y11.0 ;
G01 Y8.0 F0.02 ;
G01 Y11.0 F0.05 ;
G00 Y40.0 ;
G00 T00 ;
G28 V0 W0 ;
G130 ; Z2-axis coordinate system setting cancel
8-142
G130 Z2-axis coordinate system cancel
G132 Kk .....Z2-axis coordinate system setting at back machining
k:Material length from the sub spindle cap end (mm)
Command G130,G132 Kk in sigle block independently.
Value k in command G132Kk is modal.
Before commanding G132Kk, input a wear offset E(plus value) for using tool No. G132Kk on
geometry offset 2 screen.
EThe distance from cut-off tool tip to tool tip for back work at E-axis reference point
position.
Before commanding G132Kk, perform the offset cancellation of HEAD2 (T00) and tool
selection.
After commanding G132Kk, the E-axis movement will not influence to the absolute position
of Z2-axis. Command G132Kk once again when commanding the E-axis control or tool
selection on HEAD2 side.
8-143
Circular Interpolation Machining [HEAD2]
This command will move a tool from the current position to the specified position with an arc of
commanded radius.
Circular interpolation direction
The radius command is set within 180°. When setting a circular arc that exceeds 180°, divide
the value into 2 blocks.
8-144
Machining drawing
Program example
Turret
Wedge-free type 16mm for back machining [78171]
[HEAD2]
G00 T00 ;
M132 ;
T1400 ;
M03 S2000 ; Sub spindle foward
G00 E-140.0 ;
G28 W0 ;
G132 K20.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 20mm
G00 Z-0.5 T14 ; Move the Z2-axis so that the tool tip is located at 0.5mm from the product
tip of the sub spindle.
G00 Y11.0 ;
G00 Y4.0 ;
G01 Z2.0 F0.03 ;
G154 ;
G18 G02 Y6.0 Z3.0 R1.0 F0.02 ; Circular interpolation
G01 Z10.0 F0.03 ;
G03 Y10.0 Z12.0 R2.0 F0.02 ; Circular interpolation
G01 Y11.0 F0.05 ;
G00 Y40.0 ;
G00 T00 ;
G28 V0 W0 ;
G130 ; Z2-axis coordinate system setting cancel
8-145
Before commanding G132Kk, input a wear offset E(plus value) for using tool No. G132Kk on
geometry offset 2 screen.
EThe distance from cut-off tool tip to tool tip for back work at E-axis reference point
position.
Before commanding G132Kk, perform the offset cancellation of HEAD2 (T00) and tool
selection.
After commanding G132Kk, the E-axis movement will not influence to the absolute position
of Z2-axis. Command G132Kk once again when commanding the E-axis control or tool
selection on HEAD2 side.
8-146
Single Point Threading [HEAD2]
Machining drawing
8-147
Program example
Turret / Wedge-free type 16mm for back machining [78171]
[HEAD2]
G00 T00 ;
M132 ;
T1600 ;
G00 E-140.0 ;
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm.
G00 Z-2.0 T16 ; Move the Z2-axis so that the tool tip is located at 2 mm from the product
tip of the sub spindle.
G00 Y13.0 M24 ; Chamfering OFF, the starting position Y is greater than “the thread
diameter + 2 pitches”
M03 S1000 ; Sub spindle forward rotation
G04 U1.0 ; Rotation waiting time
G92 Y9.58 W11.0 F1.0 ; W is the length of thread (allowance is included)
Y9.26 ;
Y9.03 ;
Y8.93 ;
Y8.83 ;
G00 Y17.0 ;
G00 T00 ;
G28 V0 W0 ;
G130 ; Z2-axis coordinate system setting cancel
G130 ...........Z2-axis coordinate system cancel
G132 Kk .....Z2-axis coordinate system setting at back machining
k= material length from the sub spindle cap end (mm)
Command G130,G132 Kk in sigle block independently.
Value k in command G132Kk is modal.
Before commanding G132Kk, input a wear offset E(plus value) for using tool No. G132Kk on
geometry offset 2 screen.
EThe distance from cut-off tool tip to tool tip for back work at E-axis reference point
position.
Before commanding G132Kk, perform the offset cancellation of HEAD2 (T00) and tool
selection.
After commanding G132Kk, the E-axis movement will not influence to the absolute position
of Z2-axis. Command G132Kk once again when commanding the E-axis control or tool
selection on HEAD2 side.
Chanfering
Chamfering ON (M23): There is an incomplete thread.
Chamfering OFF (M24): (Status when power is turned on.)
Chamfering width L=
parameter No.5130, unit 0.1lead When
the value of No.5130 is “10”, L=1 lead.
8-148
Drilling [HEAD2]
Machining drawing
8-149
Program example
Turret / Triple sleeve holder main/back [43111, 43112]
Centering T1451 Y36.0 / Drilling T1452 Y-34.0
[HEAD2]
G00 T00 ;
M132 ;
T1451 ;
G00 E-120.0 ;
M03 S2000 ;
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30 mm
G00 Z-1.0 T21 ; Move the Z2-axis so that the tool tip is located at 1mm from the product
tip of the sub spindle.
G00 Y90.0 ;
G00 Y36.0 ;
G01 W3.5 F0.03 ; Centering
G04 U0.1 ;
G00 Z-1.0 ;
G00 T00 ;
T1452 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm.
M03 S1500 ;
G00 Z-1.0 T22 ; Move the Z2-axis so that the tool tip positions at 1 mm from the product
tip of the sub spindle.
G00 Y-34.0 ;
G01 W11.0 F0.04 ; Drilling
G04 U0.1 ;
G01 Z-1.0 F0.1 ;
G00 T00 ;
G28 V0 W0 ;
G130 ; Z2-axis coordinate system setting cancel
8-150
G130 ...........Z2-axis coordinate system cancel
G132 Kk .....Z2-axis coordinate system setting at back machining
k= material length from the sub spindle cap end (mm)
Command G130,G132 Kk in sigle block independently.
Value k in command G132Kk is modal.
Before commanding G132Kk, input a wear offset E(plus value) for using tool No. G132Kk on
geometry offset 2 screen. (EThe distance from cut-off tool tip to tool tip for back work at
E-axis reference point position.)
Before commanding G132Kk, perform the offset cancellation of HEAD2 (T00) and tool
selection.
After commanding G132Kk, the E-axis movement will not influence to the absolute position
of Z2-axis. Command G132Kk once again when commanding the E-axis control or tool
selection on HEAD2 side.
8-151
Tap and Die Cutting [HEAD2]
Machining drawing (tapping)
8-152
Program example (G284)
Turret
Triple sleeve holder [43111, 43112]
Tap sleeve T1453 Y36.0
[HEAD2]
G00 T00 ;
M132 ;
T1453 ;
M03 S1000 ;
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm
G00 Z-1.0 T23 ; Move the Z2-axis so that the tool tip is located at 1mm from the product
tip of the sub spindle..
G00 Y90.0 ;
G00 Y36.0 ;
G99 ;
G25 ;
G284 W10.0 F0.8 ; Back theading: W=parts length, F=thread pitch
G26 ;
G00 T00 ;
G28 V0 W0 ;
G130 ; Z2-axis coordinate system setting cancel
8-153
Back Rigid Tapping
Program example
Turret
Triple sleeve holder [43111, 43112]
Drill sleeve T1453 Y36.0
[HEAD2]
G00 T00 ;
M132 ;
T1453 ;
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30 mm
G00 Z-1.0 T23 ; Move the Z2-axis so that the tool tip is located at 1mm from the
product tip of the sub spindle.
G00 Y90.0 ;
G00 Y36.0 ;
G99 M05 ;
M29 S1000 ; Rigid tap rotation
G84 W10.0 F0.8 ; Back theading W=parts length F=thread pitch
G80 ; Rigid tapping cancel
G00 T00 ;
G28 V0 W0 ;
G130 ; Z2-axis coordinate system setting cancel.
8-154
Sub Spindle Indexing Method (C-axis control)
C-axis reference point (C0) positioning should be commanded as an initial indexing.
A direction of positive indexing equals to sub spindle reverse rotation the direction (M04) .
Commanding method
When indexing the position of 90 degree from the machining position of the gang tool
post.
Machining by the gang tool post ········ Command G00 C90 ; or G00 H90 ;
Machining by the turret ··················· Command G203 C90 ; ,G00H–90.0 ; or G00 C270 ;
Program example
[HEAD1]
M08 ; Sub C-axis control ON
G00 C0 ; Sub spindle reference point return
M06 ; Sub spindle clamp ON
8-155
Cross Drilling and Cross Tapping [HEAD2]
Machining drawing
Positioning:
Y = Bar diameter +(allowance2)+[(tool length–standard tool length)2]
Standard tool length・・・・The tool length to the center of guide bush at Y0 positioning.
Z = Machining position on drawing (the position from a part back end face)…for G132Kk.
8-156
Program example
Turret Cross drilling unit ER16 [20150] T1500
Cross tapping unit ER11 [20151] T1600
[HEAD2]
G00 T00 ;
M132 ;
T1500 ;
G00 E-140.0 ;
M08 ; Sub C-axis ON
G00 C0 ; Sub spindle reference point indexing
M06 ; Sub spindle clamp ON
G103 ; Turret side power-driven tool feed/rev
M46 S2000 ; Y power-driven tool forward rotation 2000min –1
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm
G00 Y37.0 Z10.0 T15 ; Positioning: Y=10+(0.52)+[(33–20)2]=37.0
Move the Z2-axis so that the tool tip is located at 10mm
from the product tip of the sub spindle.
G01 V-25.0 F0.04 ; Drilling
G04 U0.1 ;
G01 Y37.0 F1.0 ; Drilling retract
G00 T00 ; Offset cancel
T1600 ; Tool selection
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm
M46 S500 ; Y power driven tool forward rotation 500min–1
G00 Y36.0 Z10.0 T16 ; Positioning Y=10+(12)+[(33–21)2]=36.0
Be sure to input Z command after tool selection.
G484 V–10.0 F0.8 ; Threading: V= screw length on drawing2
M48 ; Y power-driven tool stop
M09 ; Sub C-axis OFF
G00 T00 ; Offset cancel
G28 V0 W0 ; Y, Z2-axis reference point return
G130 ; Z2-axis coordinate system setting cancel
G99 ; Feed per revolution
8-157
EThe distance from cut-off tool tip to tool tip for back work at E-axis reference point
position.
Before commanding G132Kk, perform the offset cancellation of HEAD2 (T00) and tool
selection.
After commanding G132Kk, the E-axis movement will not influence to the absolute position
of Z2-axis. Command G132Kk once again when commanding the E-axis control or tool
selection on HEAD2 side.
Adjust a value of G484 V–10.0 after actual machining.
Use the Y cross-rigid tap cycle (G884) for tapping when using the cross drilling unit ER16
[20150] installed on the turret
Command a pitch amount of G884 with the address V (incremental).
Command G884 (X cross rigid tapping cycle) after commanding M48.
Alarm may occur if M48 is commanded just before G884. In this case, input dwell between
M48 and G884, or command M code other than M48.
Program example shows a right-handed machining.
For the left-handed machining, change “M46” to ”M47”.
Do not command the approach function during the X cross-rigid execution. If it is
commanded, the approach function may not work.
The feed function designation will be G98 (mm/min) after execution of G884.
Program example
[HEAD2]
M48 ; Y power-driven tool stop
T1600 ; Tool selection
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm
G00 Y38.0 Z10.0 T16 ; Positioning:Y=10+(12)+[(33–20)2]=38.0
Be sure to input Z command after tool selection.
G884 V–10.0 F0.8 M46 S500 ; Threading: V= screw length on drawing2
M48 ; Y power-driven tool stop
M09 ; Sub C-axis OFF
G00 T00 ; Offset cancel
G28 V0 W0 ; Y, Z2-axis reference point return
G130 ; Z2-axis coordinate system setting cancel
G99 ; Feed per revolution
Positioning:
Y = Bar diameter +(allowance2)+[(tool length–standard tool length)2]
Standard tool length・・・・The tool length to the center of guide bush at Y0 positioning.
Z = machining position on drawing + a shift amount of tool in the Z direction
8-158
Milling [HEAD2]
Machining drawing
8-159
Program example
When the cross drilling unit ER16 [20150] is mounted and machining with the B-axis.
[HEAD2]
G00 T00 ;
M132 ;
T1700 ;
G00 E-100.0 ;
M08 ; Sub C-axis ON
G00 C0 ; Sub spindle reference point indexing
M06 Sub spindle clamp ON
G103 ; Turret side power-driven tool feed/rev
M46 S1000 ; Y power-driven tool forward rotation 1000min –1
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm
G00 B15.5 ; Positioning :B=(D+d)/2+α=(20+10)/2+0.5=15.5
G00 Y12.0 Z10.0 T17 ; Y=(A+H–20)2=(20+6–20)2=12
Move the Z2-axis so that the tool tip is located at 10mm
from the product tip of the sub spindle.
G01 B-10.0 F0.03 ;
G00 Y50.0 ;
G00 T00 ;
G28 V0 W0 ;
M48 ;
M09 ; Sub C-axis OFF
G99 ;
8-160
Slotting [HEAD2]
The rotation speed of cutting tool is equal to 0.3 tomes the commanded value for the slotting
unit [43153, 43154].
Therefore, Commanding rotation speed = Desired rotation speed/0.3
Y power-driven tool feed per revolution (G103)
= Desired Y power-driven tool feed per revolution (G103)0.3
Machining drawing
8-161
Program example
When the slotting unit [43153, 43154] is mounted and machining with the B-axis.
[HEAD2]
G00 T00 ;
M132 ;
T1800 ;
G00 E-100.0 ;
M08 ; Sub C-axis ON
G00 C0 ; Sub spindle reference point indexing
M06 ; Sub spindle clamp ON
G103 ; Turret side power-driven tool feed/rev
M46 S500 ; Y power-driven tool forward rotation S500=1500.3
G28 W0 ;
G132 K30.0 ; Z2-axis coordinate system setting in back machining
a protruded length from the sub spindle is 30mm
G00 B22.0 Z-0.5 T18 ; Positioning: (Cutter is shifted 6mm in B-axis direction).
Move the Z2-axis so that the tool tip is located at 1mm from the
product tip of the sub spindle.
G00 Y17.0 ; Material center when one cutter use
G01 W5.5 F0.5 ;
G01 B-17.0 F0.08 ; Slotting
G01 Z-0.5 F0.5 ; Y power-driven tool feed per minute F0.08=0.270.3
G00 T00 ;
G28 V0 W0 ;
M48 ;
M09 ; Sub C-axis OFF
G99 ;
8-162