Professional Documents
Culture Documents
WARNING
Read the section "7. Operation" thoroughly before executing MEMORY operation
8-1 Programming
The CNC automatic lathe will work exactly as instructed by the program in memory. The act of
writing down commands in accordance with specific rules to control the tool number, tool path
and other processing conditions when machining parts is called programming.
Discuss the tooling when the drawings of parts to be machined have been determined.
8-1
8-2 Program Structure
Meaning and command unit of address
Address Meaning Command unit
O (Note1) Program number 4 digits (19999)
N Sequence number 5 digits (199999)
G Preparatory function 3 digits (0999)
X・U X-axis movement command 0.001mm unit (diameter)
Y・V Y-axis movement command 0.001mm unit (diameter)
Z1-axis movement command,
Z・W 0.001mm unit
Z2-axis movement command
A A-axis movement command 0.001mm unit (radius)
B B-axis movement command 0.001mm unit (radius)
E E-axis movement command 0.001mm unit (radius)
Main spindle angle indexing command 0.001 unit
C・H
Sub spindle angle indexing command 0.001 unit
R Arc radius designation 0.001mm unit
I・K Arc center element 0.001mm unit
,Q Notch signal output coordinate 0.001mm unit
Feed per revolution 0.0001mm/rev
F Feed rate designation
Feed per minute 1mm/min
S Main spindle speed command 5 digits min-1 unit
T Tool selection number & Tool offset number 4 digits
M Auxiliary function 3 digits
U・P・X Dwell time command 0.001s99999.999s
Subprogram number command Low-order 4 digits (19999)
P
Subprogram repetition command High-order 3 digits (1999)
P・Q Sequence number command 5 digits (199999)
Gang tool side: 3 digits
,A Approach command designation (X, Y-axis)
Turret side: 4 digits
,E Approach command designation (E-axis) 0.001mm unit
NOTICE
(Note1) For ISO code, ":" can be used as the program number address.
Block
A 1-line unit in the program is called a block.
1 block is terminated by the end-of-block code ";".
1 block can hold a maximum of 128 characters.
Word
Blocks are made up of words.
Words are made up of addresses (alphabet letters) plus following data (numerical values).
(“+” or ”–“ code may be added in front of the data.)
8-2
Decimal input
Although there are some restrictions depending on the address, address that having a unit
such as distance, speed or time can be written with decimal value.
Following table shows that the decimal inputting unit and their usable address.
Unit Address
Distance (mm) X・Y・Z・U・V・W・A・B・E・,E・I・K・,Q・R
Speed (mm/rev, mm/min) F
Time (s) U・X
Angle (/degree) C・H
Program number
Program has a maximum 4-digit number at their head to distinguish each other.
Maximum 63 programs can be registered in the memory of HEAD1 and HEAD2
independently.
Sequence number
A block in program can add the maximum 5-integer at their head.
Block skip
The block containing a slash code "/" on their head will be ignored while the BLOCK SKIP
key is on.
If a slash code "/" does not place at the head of the block, the contents from the slash code "/"
to the end of block "; " will be ignored.
The block with the slash "/" code in the program will be inputted or outputted regardless of
the condition of BLOCK SKIP key when inputting or outputting the program.
NOTICE
There is BLOCK SKIP key for each HEAD1 and HEAD2.
Reading zero
When data (numeric value) other than "0" is specified, following "0" can be omitted.
Example:
G01 G1
T0200 T200
F0.020 F0.02 (Do not omit 0 of the first digit.)
X10.05 X10.05 (0 can not be omitted.)
8-3
8-3 Dimension Word
The dimension word is a command that executes movement for any axis, and it consists of the
address that specifies the axis and the data that commands the direction and amount of
movement.
There are two commanding methods: absolute commands and incremental commands.
NOTICE
If the amount of movement is 0, as mentioned in above ( ), it is not necessary to command.
8-4
8-4 Coordinate System
The X, Y, A and B-axis take the center of the bar as the zero point (X0, Y0, A0 and B0). The bar
end surface of the Z1-axis will be considered as "zero point" after cut-off process. And the
reference point of the E and Z2-axis will be considered as their zero point (E0, Z0). The
reference point is a mechanical fixed point, and moves with the reference point return operation
or command.
8-5
8-6
8-5 Soft OT Function by Tool
Refer to the section “8-4. Coordinate system”.
How to release the alarm
In the JOG mode , move the alarm axis out from the prohibition area, and then press
First soft OT
Effective stroke mm
Machine position Absolute position
X-axis 72.0 145.0 +1.0 X 5.0 X 141.0
Y-axis 147.0 –295.0 ~ +1.0 Y–35.0 ~ Y261.0
A-axis 235.0 233.5 +2.5 A 233.5 A 2.5
B-axis 57.0 –26.0 +32.0 B–26.0 32.0
310.0 1.0 +311.0
Z 1.0 Z 311.0
standard No.1321 No. 1320 (HEAD1…Z)
300.0
1.0 +301.0
Bar stock gripping unit Z 1.0 Z 301.0
Z1-axis No.1321 No.1320 (HEAD1…Z)
[42418]
291.0
1.0 +292.0
Rotary magic guide Z 1.0 Z 292.0
No.1321 No.1326 (HEAD1…Z)
bush unit [43341]
E-axis 157.0 –140.5 +17.5 E –140.5 E17.5
–0.5 +335.5
Z2-axis 335.0 No. 1321 No. 1320 Z –0.5 Z335.5
(HEAD2・・・・Z)
Z1-axis stroke ············· 310 st. Standard
300 st. Bar stock gripping unit [42418]
291 st. Rotary magic guide bush unit [42341]
Z2-axis stroke ············· 335 st.
NOTICE
Always A-axis position will be considered as "A0" after tool selection of the gang tool post.
Always B-axis position will be considered as "B0" after tool selection of the turret.
8-7
Second soft OT
CAUTION
The second soft OT is available in the MDI and MEMORY modes , not in the
8-8
8-6 Feed Function
Rapid feed speed
The respective axis moves in a constant high speed with "G00" command in the program.
Axis Rapid traverse feed rate
X-axis
Y-axis
15000mm/min
A-axis
B-axis
C1-axis 90000/min
Z1-axis
E-axis 18000mm/min
Z2-axis
C2-axis 90000/min
NOTICE
To change the G code, command new “F”.
Do not command 0 or minus values.
The command value of the X-axis and Y-axis are a speed along the radial value.
In the simultaneous interpolation with 2 or more axes, the speed will be a tangential
speed.
8-9
8-7 Spindle Function (S Function)
Address “S” can directly command the spindle speed.
Power-driven attachment Command range
Main spindle
5007000min–1
Sub spindle
X-axis power-driven tool 6000min–1 max.
Y-axis power-driven tool 5700min–1 max.
NOTICE
When the X power-driven tool is rotating in 4500 min–1 or more, the permissible
continuous time is 5 minutes.
In power-driven tools shown below differs in the spindle speed.
For the turret power-drive tool unit, the specified spindle speed becomes the actual
spindle speed by entering 5 digit code of the power-driven tool at TOOL UNIT NUMBER
on the INPUT OF TOOL UNIT NUMBER screen.
8-10
Power-driven tool unit Commanding method (commanding range)
Slotting unit 60B [43153] Desired spindle speed=Specified spindle speed0.3
Specified spindle speed=Desired spindle speed/0.3
Slotting unit 60A [43154]
Specified Y power-driven tool feed per revolution (G103)
=Desired Y power-driven tool feed per revolution (G103)0.3
Desired spindle speed=Specified spindle speed1.7
Specified spindle speed=Desired spindle speed/1.7
High speed 2-spindle closs
drilling unit ER11 [43152]
Specified Y power-driven tool feed per revolution (G103)
=Desired Y power-driven tool feed per revolution (G103)1.7
Slotting unit 60B [20155]
Desired spindle speed=Specified spindle speed0.39
Slotting unit 60A [20155H]
Specified spindle speed=Desired spindle speed/0.39
Adjustable slotting unit 60B
[20159]
Specified Y power-driven tool feed per revolution (G103)
Adjustable slotting unit 60A
=Desired Y power-driven tool feed per revolution (G103)×0.39
[20159H]
Desired spindle speed=Specified spindle speed0.528
Specified spindle speed=Desired spindle speed/0.528
Thread whirling unit/outer
Specified Y power-driven tool feed per revolution (G103)
=Desired Y power-driven tool feed per revolution (G103)×0.528
NOTICE
The main spindle forward rotation takes the same direction as the sub spindle reverse
rotation.
When executing the power-driven tool spindle speed "S" command, command M36 (M46)
or M37 (M47) in the same block.
For the power-driven tool unit on the turret, the rotating direction will be set up by
inputting the power-driven tool unit 5-digit No. into “TOOL UNIT NUMBER” on
“INPUT OF TOOL NUMBER” screen.
However, in case of executing back machining with Counter face drilling unit ER11
[20156], Counter face 2-spindle drilling unit [43159], the rotating direction with the
right-handed blade tool requires M47 command.
In case of executing back rigid-tap machining with Counter face drilling unit ER11
[20156], Counter face 2-spindle drilling unit [43159], the rotating direction with
the right-handed blade tool requires M46 command.
For details, refer to the followings.
8-11
Set the keep relay as k15-bit7=1
To display the “INPUT OF TOOL UNIT NUMBER” screen.
MENU2 OFFSET (GEOMETRY)DISP.2ID NO.SETING“INPUT OF TOOL UNIT
NUMBER” screen
For the power-driven tool unit on the turret, the rotating direction will be set up by inputting
the power-driven tool unit 5-digit No. into “TOOL UNIT NUMBER” on “INPUT OF TOOL
UNIT NUMBER” screen.
Use the numbers listed in Chapter 6, “6-3-2 Turret” section.
(The 5-digit No. excepts alphabet e.g. : 22155H should be 22155)
When inputting the power-driven tool unit 5-digit No. shown on the “INPUT OF TOOL
UNIT NUMBER” screen into “TOOL UNIT NUMBER”, ID No. will be set in the last 2-digit of
the tool number, then the rotating direction of each tool number will be set up.
The tool number with ID No. given will be shown on “GEOMETRY OFFSET 2 “ screen.
e.g. : When using the right-handed blade tool on drilling, the rotating direction requires M46
command.
However, in case of executing back machining with Counter face drilling unit ER11
[20156], Counter face 2-spindle drilling unit [43159], the rotating direction
with the right-handed blade tool requires M47 command.
In case of executing back rigid-tap machining with Counter face drilling unit ER11
[20156], Counter face 2-spindle drilling unit [43159], the rotating direction
with the right-handed blade tool requires M46 command.
8-12
Rotating direction
8-13
8-8 Tool Function
8-8-1 Tool Number
Tool numbers are expressed by T plus 3-digit/4-digit in accordance with the tool position.
Turret
8-14
8-8-2 Tool Function (T Function)
The tool function has function of the tool selection and the tool position offset, and these are
commanded with address "T".
Function Command digit Commanding method
T3 or T4 digit HEAD1 side tool…T100T400, T600T800,
command T1100T2000
T4 digit command HEAD2 side tool…T1100T2000
Tool selection function When the 2-station tool holder, 2-spindle cross drilling unit, triple
sleeve holder or double sleeve holder are installed on T1100 to
T2000, command the ID number shown in the table 1 into the last
2-digit of the tool number. E.g.) T1131, T1132
T1 or T2 digit
Tool offset position T0T32 (T0T64 are option)
command
Table-1
Tool holder ID number
(31, 32) (33, 34) (35, 36) (37, 38)
8-15
NOTICE
The tool selection T code must be commanded in single block independently.
Tool wear offset can be cancelled by commanding the T00; or T00; of tool selection.
The "G" code of the tool function under M05 G01 G99 conditions should be G00 or G98.
After tool selection command, the geometry offset will function with a movement
command of Z1-axis of HEAD1 side and Z2-axis of HEAD2 side. Always input the Z-axis
absolute coordinate value in the G00 positioning block after tool selection command.
When using the turret on the HEAD1 side, command M131 in a block before tool
selection. When using the turret on the HEAD2 side, command M132 in a block before
tool selection.
8-16
Tool position offset function
This function is called "tool offset" or "offset".
In tool position offset, there are tool wear offset and tools geometry offset.
[HEAD1 side]
Tool No. Tool wear offset number Offset address
T100 T01 X, Z
T200 T02 X, Z
T300 T03 X, Z
T400 T04 X, Z
T600 T06 X, Z
T700 T07 X, Z
T800 T08 X, Z
T1100 T11 Y, Z
T1200 T12 Y, Z
T1300 T13 Y, Z
T1400 T14 Y, Z
T1500 T15 Y, Z
T1600 T16 Y, Z
T1700 T17 Y, Z
T1800 T18 Y, Z Z: Z1-axis
T1900 T19 Y, Z
T2000 T20 Y, Z
8-17
[HEAD2 side]
Tool No. Tool wear offset number Offset address
T1100 T11 Y, Z, E
T1200 T12 Y, Z, E
T1300 T13 Y, Z, E
T1400 T14 Y, Z, E
T1500 T15 Y, Z, E
T1600 T16 Y, Z, E
T1700 T17 Y, Z, E
T1800 T18 Y, Z, E Z: Z2-axis
T1900 T19 Y, Z, E
T2000 T20 Y, Z, E
T00 will cancel the currently commanded tool wear offset function.
Cancel the tool wear offset with T00 or T0 commands.
When T code is commanded together with any address other than "O" or "N", it will be
considered as a tool wear offset and the first or second digit will be ignored.
(Example) G00 X10.0 Z20.0 T201 ; this case T code will be considered as T01.
Tool geometry offset will shift the work coordinate (ABSOLUTE). This means that position
after tool selection is shifted in plus or minus direction by tool geometry offset.
8-18
NOTICE
To work the Z-axis geometry offset, command the Z-axis coordinate value (absolute) in a
block for G00 positioning after tool selection.
Be sure to note down each setting data.
Commanding method
Tool geometry offset can be inputted by automatic measurement with tool setter or key entry
from CNC operation panel.
For automatic measurement with tool setter, please refer to "10-6. Handling the Tool Setter".
<Geometry offset key input>
Use the following procedure to enter the geometry offset for each tool by key.
(2) Press 2 and INPUT key to display the tool geometry offset1 screen for gang tool
post.
Press the soft-key [screen 2] on tool geometry offset1 screen so that the tool geometry
offset2 for turret will appear.
(3) Move the cursor on the axis data of the tool number to be input. The cursor will move by
8-19
8-9 Approach Function
There are two kinds of approach functions in this machine. One of the approach function (,A)
makes X-axis or Y-axis, which is used for next procedure, approach to machining prepared
position for preparation of next procedure. Another approach function (,E) command the E-axis
position on HEAD1 side.
Using this function can shorten the tool replacement time.
This function is used for the HEAD1 side tools.
NOTICE
Do not command this function during the tool nose radius compensation, or it will execute
the approach function in former block of the command.
Command the next approach function after the former approach operation is completed.
Do not execute the approach operation for the turret during the X-cross rigid tapping
(G784).
Do not execute the approach operation for the gang tool post during the Y-cross rigid
tapping (G884).
Commanding method
, A100 ,A800 commands are available in the T11~T20 machining.
And , A11~,A20 commands are available in the T100~T800 machining.
Even if the tool is called with an approach command, the tool selection with T code cannot be
omitted.
ID number is normally 00.
2-station tool holder (31, 32) (33, 34) (35, 36) (37, 38)
2-spindle cross drilling unit (41, 42) (43, 44) (45, 46) (47, 48)
Triple sleeve holder (51, 52, 53) (54, 55, 56) (57, 58, 59)
Double sleeve holder (61, 62) (63, 64) (65, 66) (67, 68)
:Tool No.18
[Turret]
G170 Y ;
,A ;
:Tool No. 1120
:ID No
8-20
Operation
(1) This function will select the tool number which is specified with the ,A00 or ,A
command
For the gang tool post, the A-axis will move to the specified tool position after the
completion of X-axis reference point return.
For the turret, the Y-axis will return to the reference point and then B-axis will move to
the specified tool position. After that the turret will index the specified tool number.
(2) The axes will move to the machining stand-by position quickly.
The “machining stand-by position” means a position commanded with G170 X; or G170
Y ; in the program.
Normally the X or Y setting is "bar diameter + 1.0mm".
Commanded value of X or Y with G170 will be valid only in the initial approach after
commanding G170.
Commanded value of X or Y with G170 can be cleared by reset
Although an approach function can be commanded in a movement block, it is better to be
inputted in a cutting process command. (The alarm will occur if the tool selection is
commanded while the tool commanded in the approach function moves. In a cutting
process, the probability of an alarm occasion becomes small.)
Example)
In a cutting process of T200 from "b" to "c" shown in a drawing below, commanding the
G170 Y21.0;
,A1600 ;
will select the T1600 and will move it to the machining stand-by (bar diameter+1.0mm)
position.
8-21
8-9-2 , E Approach Function
NOTICE
Pay attention tool collision when commanding “,E” because the E-axis will return to the
reference point when commanding a tool selection T11 T20 on HEAD1.
Command ",E" into the HEAD 1 side program.
",E" cannot be commanded in a macro program.
When an alarm occurs during the execution of ",E", set the E-axis coordinate system
again.
G00, G01 of the gang tool post side and M, S, T codes can be commanded in the same
block with ",E" approach command.
",E" command does not synchronize with the block command. It means that the program
progresses without waiting the completion of ",E".
Commanding method
Program example
E-axis positioning from HEAD1 E-axis positioning from HEAD2
",E" command ",E" command
[HEAD1] [HEAD1] [HEAD2]
・ ・ ・
T1100 ; T1100 ; ・
,E –10.0 ; M132 ; M132 ;
・ ・ G00 E–10.0 ;
・ M131 ; M131 ;
・ ・
Alarm
An alarm will occur when the following command overlaps with the operation of ",E"
command.
Tool selection command from HEAD1 and HEAD2
",A" approach command
G140, G141 command
8-22
8-10 Heat Expansion Compensation Function
Use this function when performing the heat expansion compensation of Y-axis.
CAUTION
It’s at Y0~Y0.5, E17.0 position after G551 completion. Therefore pay attention to the tool
collision. If there is fear of collision, execute reference point return of Y and E axes after
G551 command..
Operation
(1) Check the data on the heat expansion compensation screen.
(2) Set the G code for heat expansion compensation into an execution program.
G551 is commanded after M20 on both HEAD1 and HEAD2.
G212 is inputted just before the tool selection that executes the heat expansion
compensation on HEAD1.
G211 is inputted just before the tool selection that executes the heat expansion
compensation on HEAD2.
Use (1.0) for the heat expansion coefficient 2 on HEAD1 and (0.7) for the heat expansion
coefficient 1 on the HEAD2 normally. For the other data, use the initial setting data.
When the Y-axis heat expansion value is changed with circumstances or machining
condition, change the heat expansion compensation coefficient 13.
E.g.) when the machining outer diameter of Y-axis has displacement in positive direction,
command the G code with biggest coefficient.
G212 (Heat expansion compensation 2 : compensated magnification 1.0)
G213 (Heat expansion 3 : compensated magnification 1.3)
Heat expansion compensation data can be changed to any value when it’s required to
use other than initial setting data..
(3) Press the soft key [MASTER SET] on the counter screen and switch the HEAT
COMPENSATION MATER SET “ON”.
(4) Press the SIMUL key to turn the light on, and press the START button to
8-23
execute the execution program in MEMORY mode . This function will work with
execution of G code of Heat expansion compensation in the program.
NOTICE
The heat expansion compensation is available only in the SIMUL mode .
Program example
HEAD1 HEAD2
O1234 ; O1234 ;
G130 ;
G140
M131 ; M131 ;
G99 G40 G97 M09 ; G99 G40 G97 M09;
M03 S500 ; M05 ;
M11 ; T00 ;
G00 Z0 T00 ; G28 W0 ;
G28 V0 ; G50 Z0 ;
M200 ; M200 ;
M20 ; M20 ;
T1700 ; Command other than T1600 M25 ;
M10 ;
T100 ;
M27 ;<option>
G00 Z-0.5 T00 M25 ;
G28 U0 ;
G551 ; G551 ; Measuring of the heat expansion
M132 ; M132 ;
G211 ; The coordinate system shift that
considers the heat expansion
coefficient 1
T ;Tool selection
G00 Y Z T ;
M131 ; M131 ;
G212 ; The coordinate system shift that
considers the heat expansion
coefficient 2
T ; Tool selection
G00 Y Z T ;
M99 ; M99 ;
8-24
Alarm
3025 SKIP MACRO ERROR 1
The heat expansion switch did not work in the heat expansion measurement or the wire of
heat expansion switch was broken.
3026. If this occurs, press the RESET key to release the alarm state, press the soft key
[MASTER SET] to display ON at the “master position registration” and resume the MEMORY
operation.
3027 SKIP MACRO ERROR 3
The heat expansion switch is pressed before starting the heat expansion measurement, or
wire of the heat expansion switch is short circuit.
Setting
A registration function of the heat compensation
Master setting is required before starting the machining when using the heat compensation
function. (HEAT COMPENSATION MASTER SET is displayed on the counter screen.)
(1) Press the soft key [MASTER SET] on the counter screen, and display "ON" at the HEAT
COMPENSATION MATER SET.
(2) Pressing the SIMUL key to turn the light on, executing the program operation
(G551) will set the master position, and the HEAT COMPENSATION MASTER SET will
switch to
"OFF".
8-25
Heat expansion compensation data function
(1) Display the heat expansion compensation data screen by pressing 8, INPUT key on
the menu screen.
(3) Pressing [data] INPUT key could change the initial setting data.
E. g.) When using a data other than initial setting data of the heat compensation coefficient
13
Initial data of the heat compensation coefficient 1 = 0.7
Desired data of the heat compensation coefficient 1 = 0.5
Commanding G code for the heat expansion compensation coefficient 1 is G211.
Thus, commanding G211 will use the compensation magnification 0.5.
NOTICE
The checking range A to C is displayed as . INCH for the inch version.
The data on this screen will be required when using the heat expansion compensation of the
Y-axis.
8-26
Function Initial setting Contents
Heat expansion Compensates with a setting magnification of the heat
0.7
coefficient 1 expansion coefficient 1 when commanding G211
Heat expansion Compensates with a setting magnification of the heat
1.0
coefficient 2 expansion coefficient 2 when commanding G212
Heat expansion Compensates with a setting magnification of the heat
coefficient 3 1.3
expansion coefficient 3 when commanding G213
0.003MM ・A case of the measured data≦Checking range A
Checking range A
(0.0001 INCH) measures every setting value in the checking cycle A.
0.005MM ・A case of the checking range A< Measured data
Checking range B
(0.0002 INCH) ≦Checking range B
0.015MM measures every setting value of the checking cycle B.
Checking range C ・A case of the checking range B< Measured data
(0.0006 INCH)
≦Checking range C
Checking cycle A 5 Measure every setting value of the checking cycle C.
Checking cycle B 3
・A case of the measured data> Checking range C
1 (It measures
displays alarm No. 3026 on the screen.
Checking cycle C each cycle time.) (Measured data = former data – current data)
8-27