A00 NC Programming Manual
A00 NC Programming Manual
32A/R2A/20A/S2B Title
TC-31A
TC-31AN
TC-22A
TC-S2A
TC-32A
TC-R2A
TC-20A
TC-S2B
NC-PROGRAMMING
MANUAL
2007/05/23 1 eTCOMNCPRT
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Title
This manual describes the NC-Programming of the TC-31A, TC-31AN, TC-22A, TC-S2A,
TC-32A, TC-R2A, TC-20A and TC-S2B.
(The description of TC-31AN is same as that of TC-31A.)
The tapping centre is able to perform drilling, tapping, and facing.
We shall not bear any responsibility for accidents caused by user's special handling or handling
deviating from the generally recognized safe operation.
- INSTALLATION MANUAL
This manual describes the installation of the machine.
- PROGRAMMING MANUAL
This manual describes the programming of the machine.
2007/05/23 2 eTCOMNCPRT
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Title
INTRODUCTION
Congratulations on your purchase of the Brother CNC tapping center. Correct usage of
the machine is of most importance to assure the expected machine capabilities and
functions as well as operator's safety.
Read this Manual thoroughly before starting operation.
* All rights reserved: No part of this manual may be reproduced, stored in a retrieval system,
or transmitted in any form without prior permission of the manufacturer.
* The contents of this Manual are subject to change without notice.
* This manual are complied with utmost care. If you encounter any question or doubt,
please contact your local dealer.
(c) Copyrigt 1997-2007 BROTHER INDUSTRIES,LTD. Machinery & Solution Company.
ALL RIGHTS RESERVED.
2007/05/23 3 eTCOMNCPRT
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Title
WARNING
(1)Turn off the main power breaker handle on
Dropping a heavy object onto the control box door. Never touch the primary side
power source or the terminal of the main power
your foot may fracture your foot breaker, as these have high voltage applied.
bones. (2)Put up a signboard which says' Under Maintenance
When lifting heavy objects, (3)Never allow people to approach the machine,
particularly moving areas.
wear safety shoes. (4)Do not place any unnecessary object around the
machine.
(5)Wear a helmet and safety shoes.
1 - 2 1 - 3
2007/05/23 4 eTCOMNCPRT
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Contents
2004-5-18 1 eTCOMNCPRC
TC-31A/31AN/22A/S2A
Contents 32A/R2A/20A/S2B
Chapter 4
Preparation Function (tool offset function)-- 4-1
4.1 Tool Dia Offset (G40,G41,G42) ----------------------------------------- 4-2
4.1.1 Tool dia offset function ------------------------------------------------------------------ 4-2
4.1.1.1 Tool dia fine compensation -------------------------------------------------------- 4-2
4.1.2 Cancel Mode --------------------------------------------------------------------------------- 4-3
4.1.3 Start -up ---------------------------------------------------------------------------------------- 4-4
4.1.3.1 Inside cutting ( 4-4
4.1.3.2 Outside cutting ( )---------------------------------------------- 4-5
4.1.3.3 Outside cutting ( ) -------------------------------------------------------- 4-6
4.1.4 Offset Mode ----------------------------------------------------------------------------------- 4-7
4.1.4.1 Inside cutting ( ) ----------------------------------------------------------- 4-7
4.1.4.2 Outside cutting ( ) ---------------------------------------------- 4-9
4.1.4.3 Outside cutting ------------------------------------------------------------------------- 4-10
4.1.4.4 Exceptional case ------------------------------------------------------------------------ 4-11
4.1.5 Offset Cancel ---------------------------------------------------------------------------------- 4-12
4.1.5.1 Inside cutting ( ) ----------------------------------------------------------- 4-12
4.1.5.2 Outside cutting ( ) ---------------------------------------------- 4-13
4.1.5.3 Outside cutting ( ) --------------------------------------------------------- 4-14
4.1.6 G40 single command -------------------------------------------------------------------------- 4-15
4.1.7 Change of offset direction in offset mode -------------------------------------------------- 4-16
4.1.8 Change of offset direction in offset mode -------------------------------------------------- 4-17
2004-5-18 2 eTCOMNCPRC
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Contents
Chapter 5
Preparation Function (canned cycle) ---------- 5-1
5.1 List of canned cycle function ---------------------------------------------- 5-2
5.2 Basic motions in canned cycle -------------------------------------------- 5-4
5.3 General description of canned cycle ------------------------------------- 5-5
5.3.1 Command related to canned cycle motions ----------------------------------------- 5-5
5.3.2 Setting of data in absolute / incremental command ------------------------------- 5-5
5.3.3 Types of return point (G98,G99) -------------------------------------------------------- 5-6
5.3.4 Canned cycle motion conditions -------------------------------------------------------- 5-6
5.3.5 Machining data of canned cycle ------------------------------------------------------- 5-7
5.3.6 Repeat number of canned cycle -------------------------------------------------------- 5-8
5.4 Details of Canned Cycle ---------------------------------------------------- 5-9
5.4.1 High-speed peck drilling cycle (G73) ------------------------------------------------ 5-9
5.4.2 Reverce tapping cycle (G74) ------------------------------------------------------------- 5-10
5.4.3 Fine boring cycle (G76) ------------------------------------------------------------------- 5-11
5.4.4 Tapping cycle (G77) ----------------------------------------------------------------------- 5-12
5.4.5 Reverse tapping cycle (synchro mode) (G78) ---------------------------------------- 5-13
5.4.6 Drilling cycle (G81,G82) -------------------------------------------------------------------- 5-14
5.4.7 Peck drilling cycle (G83) ------------------------------------------------------------------ 5-16
5.4.8 Tapping cycle (G84) ------------------------------------------------------------------------ 5-17
5.4.9 Boring cycle (G85,G89) --------------------------------------------------------------------- 5-18
5.4.10 Boring cycle (G86) ------------------------------------------------------------------------- 5-19
5.4.11 Back boring cycle (G87) ----------------------------------------------------------------- 5-21
5.4.12 High speed peck drilling cycle (G173) ------------------------------------------------ 5-22
5.4.13 End mill tap cycle (G177) ----------------------------------------------------------------- 5-23
5.4.14 End mill tap cycle (G178) --------------------------------------------------------------- 5-24
2004-5-18 3 eTCOMNCPRC
TC-31A/31AN/22A/S2A
Contents 32A/R2A/20A/S2B
Chapter 6
Preparation Function (coordinate calculation) 6-1
6.1 List of coordinate calculation function --------------------------------------- 6-2
6.2 Coordinate calculation parameter --------------------------------------------- 6-2
6.3 Details of coordinate calculation function -------------------------------- 6-3
6.3.1 Bolt hole circle -------------------------------------------------------------------------------- 6-3
6.3.2 Linear (angle) --------------------------------------------------------------------------------- 6-4
6.3.3 Linear (X,Y) ----------------------------------------------------------------------------------- 6-4
6.3.4 Grid ---------------------------------------------------------------------------------------------- 6-5
6.4 Usage of coordinate calculation function --------------------------------- 6-6
2004-5-18 4 eTCOMNCPRC
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Contents
2004-5-18 5 eTCOMNCPRC
TC-31A/31AN/22A/S2A
Contents 32A/R2A/20A/S2B
2004-5-18 6 eTCOMNCPRC
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Contents
2004-5-18 7 eTCOMNCPRC
TC-31A/31AN/22A/S2A
Contents 32A/R2A/20A/S2B
2004-5-18 8 eTCOMNCPRC
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Quick index
QUICK INDEX
Chpt. 7 MACRO 7
Chpt.13 OPTION 13
2004-5-18 1 eTCOMNCPRINDEX
TC-31A/31AN/22A/S2A
Quick index 32A/R2A/20A/S2B
2004-5-18 2 eTCOMNCPRINDEX
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 1 Program composition
CHAPTER 1
PROGRAM COMPOSITION
Main program
N0001 G92X100 ;
N0002 G00Z30 ;
:
:
:
M02;
(2) Subprogram
A subprogram is used by calling it from the main program or other subprograms.
Command M99 to finish the subprogram.
Sub program
N0100 G91X10 ;
:
:
:
M99;
block block
1
X -1000
word
1
1.5 Sequence number
A sequence number (1~9999) can be used following the address N for each block.
There are such functions as a sequence search and restart.
Command format N* * * *;
(Note 1)
A slash (/) code must be put at the start of a block. If it is placed
elsewhere in the block, an alarm is generated.
This code can be also put right after a sequence number.
(Note 2) 1
In the sequence number search function, all the blocks with a slash
code can be searched regardless of the [BLOCK SKIP] key ON or OFF
status.
(Note 3) In the single block mode during automatic operation, when
the [BLOCK SKIP] key is ON the operation does not stop at a block with
a slash code, but stops at the next block.
( ............ )
(Ex.)
(Note)
A comment including the control out and in codes should not be
longer than one block.
2
CHAPTER 2
COORDINATE COMMAND
Z
Y
15
10
X
0 20
-X
Y axis
stroke
table
-Y
CHAPTER 3
3
PREPARATION FUNCTION
3.1 Outline of G code
3.2 Positioning (G00)
3.3 Linear interpolation (G01)
3.4 Circular/helical interpolation (G02, G03)
3.5 Dwell (G04)
3.6 Exact stop check (G09, G61, G64)
3.7 Programmable data input (G10)
3.8 Soft limit
3.9 Return to the reference point (G28)
3.10 Return from the reference point (G29)
3.11 Return to the 2nd/3rd/4th reference point (G30)
3.12 Selection of machine coordinate system (G53)
3.13 Selection of working coordinate system (G54~G59)
3.14 Additional working coordinate system selection (G54.1)
3.15 Coordinate rotation function (G68,G69)
3.16 Coordinate rotation using measured results (G168)
3.17 Absolute command and incremental command (G90, G91)
3.18 Change of working coordinate system (G92)
3.19 Measurement feed(G131,G132)
3.20 Change of tap twisting direction (G133,G134)
3.21 Local coordinate system funcction (G52)
3.22 Single direction positioning funcction (G60)
3.23 G code priority
3 One-shot
The G code is effective only at the block in which it is
specified.
The G codes with * mark indicade the modal status when the power is turned ON.
(Note1) Details of coodinate calculation functions are described in " Chapter 6 ".
(Note2) Details of tool dia offset are described in " Chapter 4 ".
G
G49* Tool length offset cancel
3 G56
G57
Working coordinate system selection 3
G
G59 Working coordinate system selection 6
0304-2
The G codes with * mark indicade the modal status when the power is turned ON.
(Note1) Details of tool length offset are described in " Chapter 4 ".
Modal /
Group G cord Contents
one-shot
TR2A/3042 TBL
Modal/
Group G cord Contents
One-shot
MTR2A/3043 TBL
Modal /
Group G cord Contents
one-shot
One-shot
G125 Automatic measurement Circle center(Boss,3 points)
TR2A/3044 TBL
(Note)
Commands G120 to G129 are described in detail in " Option,
Automatic Measurement " in the operation manual.
When the additional axis is commanded and the optional additional axis is not
installed, an alarm will occur.
3
In the positioning mode actuated by the G00 code, the execution proceeds to the
next block after confirming the in-position check. (Note 1)
(Note 1)
In-position check is to confirm that the machine detecting position is
within the specified range around the target (end) point.
(This range is set by the machine parameter for each axis.)
(Note 2)
The rapid traverse rate is set by the machine parameter for each axis.
Accordingly, rapid traverse rate cannot be specified by the F
command.
End
point
Start
point
(Note2)
3
3.3.1 Chamfering to desired angle and
cornering C
Chamfering to the desired angle or rounding can be performed between
interpolation commands.
Chamfering
c
X
(1) The corner chamfering command block and subsequent block must contain
the interpolation command (G01-G03).
When the subsequent block does not contain an interpolation or movement
command, an alarm will occur.
(2) The inserted block belongs to the corner chamfering command block. Thus,
if the feed rate differs from the corner chamfering command block and the
subsequent block , the inserted block moves at the feed rate of the corner
chamfering command block. Further, the program does not stop before the
inserted block occurs even during single block operation. (It stops after the
inserted block occurs.)
(3) Tool diameter compensation applies to the configuration after corner
chamfering is performed.
(4) The corner chamfering command can be commanded only on the XY
(2-D)plane.
2004-5-18 3-9 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
(5) When the chamfering amount is longer than the chamfering command block
and feeding quantity of the subsequent block, set extended point from each
blocks as "chamfer start point" and "chamfer end point".
(But the path becomes abnormal in cutter compensation mode.
Do not specify a chamfering amount longer than travel amount in cutter
compensation mode.)
Example.1: Liner cutting
(4)
C
3 (7)
(3)
(2)
C
(6)
(1)
(5)
When set the programmed path to(1.2.3.4.)and the block C as (2), operate to
1-5-6-7-4.
Example.2: Circular cutting
(4)
(3)
C
(7)
(2)
(6)
C
(1)
(5)
When set the programmed path to(1.2.3.4.)and the block C as (2), operate to
1-5-6-7-4.
Cornering
R : Radius of cornering
2004-5-18 3 - 10 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
R
3
Virtual corner
Corner-R start point intersection
X
(1) The cornering command block and the subsequent block must contain the
interpolation command (G01-G03).
When the subsequent block does not contain an interpolation or movement
command, an alarm will occur.
(2) The inserted block belongs to the cornering command block. Thus, if the
feed rate differs from the cornering command block and the subsequent
block , the inserted block moves at the feed rate of the cornering command
block. Further, the program does not stop before the inserted block occurs
even during single block operation. (It stops after the inserted block occurs.)
(3) Tool diameter compensation applies to the configuration after cornering is
performed.
(4) The corner-R command can be commanded only on the XY (2-D)plane.
(5) When the radius is longer than the corner R command block and the
subsequent command block, set extended point from each blocks as
"chamfer start point" and "chamfer end point".
(But the path becomes abnormal in cutter compensation mode. Do not
specify diameter longer than travel amount in cutter compensation mode.)
(7)
R
(4)
(3)
(6)
(2)
(5)
(1)
When set the programmed path to(1.2.3.4.)and the block R as (2), operate to
1-5-6-7-4.
2004-5-18 3 - 11 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
G02 X_ Y_ I_ J_ F_ ;
Command fromat
3 G03 R_
G 02 Clockwise (CW).
Rotation direction
G 03 Counterclockwise (CCW).
End Distance from the start point to the end point in the X
point X
direction.
G91 mode
Clockwise and counterclockwise are the rotation direction viewed from the positive
direction to the negative direction on the Z axis of the X-Y plane.
2004-5-18 3 - 12 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
G102 X_ Z_ I_ K_ F_ ;
Command fromat
G103 R_
Rotation
G 102 Clockwise (CW).
3
direction
G 103 Counterclockwise (CCW).
End
Distance from the start point to the end point in the X
point X
direction.
G91 mode
Distance from the start point to the end point in the Z
Z
direction.
Distance
Distance from the start point to the center of arc in the X
between I
direction.
start
point
and arc Distance from the start point to the center of arc in the Z
K
center direction.
Clockwise and counterclockwise are the rotation direction viewed from the positive
direction to the negative direction on the Y axis of the X-Z plane.
(Note 1)
In contrast to the XY arc case, an error occurs when the diameter
compensation command (G40, G41, G42) or coordinate rotation
command (G68, G69, G168) is used, and the machine stops operation.
2004-5-18 3 - 13 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
G202 Y_ Z_ J_ K_ F_ ;
Command fromat
G203 R_
3 Rotation direction
G 202 Clockwise (CW).
End Distance from the start point to the end point in the Y
Y
point direction.
G91 mode
Clockwise and counterclockwise are the rotation direction viewed from the positive
direction to the negative direction on the X axis of the Y-Z plane.
(Note 1)
In contrast to the XY arc case, an error occurs when the diameter
compensation command (G40, G41, G42) or coordinate rotation
command (G68, G69, G168) is used, and the machine stops operation.
2004-5-18 3 - 14 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
The end point of the circular arc takes either the absolute value or the incremental
value according to G90 or G91. The incremental value commands the distance from
the circular arc start point to the end point.
The circular arc center is commanded by both I,J and K according to X,Y and Z axes.
I,J and K form a vector component when viewed from the circular arc start point to
the center.
It is commanded by the incremental value regardless of G90 or G91.
Absolute command;
3
G90G03XxYyIiJjFf;
Incremental command;
G91G03XxYyIiJjFf;
Insted of commanding I,J and K to specify the center of arc, the radius of arc can be
used.
There are two types of circular arcs (one is less than 180°and the other is more than
180°).
When commanding a circular arc of more than 180°, put the algebrac mark "-" before
the value for the radius.
(1) G02XxYyRr
(2) G02XxYyR-r
2004-5-18 3 - 15 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
Absolute command;
G03X-60. Y-10. I-50. J-20. F1000 ;
Incremental command;
G03X-30. Y30. I-50. J-20. F1000 ;
2004-5-18 3 - 16 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
Transition of radius
(Note 6) If the ending radius is extremel larger than that of the starting
radius, an alarm will occur.
(Note 7) The G36~G39 codes cannot be commanded in the circular arc
mode.
2004-5-18 3 - 17 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
G02 X_ Y_ Z_ I_ J_ F_ ;
Command fromat
G03 R_
3
The F code commands the feedrate in the X-Y plane.
If the value of F is larger than the X,Y MAXIMUM CUTTING SPEED or the X, Y
MAXIMUN RAPID SPEED set by the machine parameter , an alarm is generated.
The feedrare in the Z axis direction is determined by the values of "feedrate" in the
X, Y axes direction, "end point X", "end point Y" and "end point Z". It can be
calculated as follows:
Z axis feedrate
Z travel distance
Radius(start point - center)
Angle
Commanded feedrate(XY axes)
When tool dia offset command is given, an offset is applied to the circular arc (XY
axes).
2004-5-18 3 - 18 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
or G04 X_ ;
2004-5-18 3 - 19 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
: Programmed path
3
: Actual tool path
After this command is given, the exact stop check function is effective at the end of
each block until the cutting mode (G64) is commanded.
2004-5-18 3 - 20 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
When this command is given, the execution proceeds to the next block without
slowing down between the continuing two blocks. This command is effective until
G61 is commanded.
(Note 1) Even during the cutting mode (G64), the exact stop check is 3
executed in the blocks in the positioning mode (G00) or in the
exact stop check mode (G09), or in the disconnected cutting
feed block.
(Note 2)
Old block
Cutting feed No traveling
New block
Positioning
Cutting feed
No traveling
Cutting mode
Exact stop check mode
When the old block is clamped while the additional axis is traveling, exact stop
check is executed.
When the new block is unclamped while the additional axis is traveling, exact stop
check is executed.
2004-5-18 3 - 21 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
3
When the G90 mode (absolute command) is selected, the commanded offset amount
becomes newly effective.
When the G91 mode (incremental command) is selected, the commanded offset
amount is added to the currently set offset amount to become a renewed offset
amount.
When the additional axis is commanded while an optional additional axis is not
installed, an alarm will occur.
P: offset number
R: offset amount
When the G90 mode (absolute command) is selected, the commanded offset amount
becomes newly effective.
When the G91 mode (incremental command) is selected, the commanded offset
amount is added to the currently set offset amount to become a renewed offset
amount.
(Note) Tool data..........Refer to “Data bank” in the operation manual.
2004-5-18 3 - 22 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
G10L13 P_ R_ ;
After automatic measurement (G121 to G129), set the coordinate system based on
the measured position.
2004-5-18 3 - 23 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation function 32A/R2A/20A/S2B
(Program)
.
.
G54 G121 X100. Y100. I20. J20. Z-10. R10. ; (Corner measurement)
G10 L99 X50. Y50. ;
.
.
Y Y
3
80 50 Measurement result
X
G54 New working 50
zero point
X
Old working
120
zero point
(Note)
If the G10 code is commanded during the tool dia offset, the tool
moves to the point where a vertical vector is formed to the last
movement command of X and Y.
2004-5-18 3 - 24 TCOMNCPR
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation function
3.8.1 Stroke
The maximum machine stroke is set by the parameter 2.
This should not be changed by the user
3
+Z
Y axis Z origin
stroke (Zero point return
position)
Z axis Axes working area
stroke
X axis stroke
-Y
2004-5-18 3 - 25 eTCOMNCPR3-1
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
Command format
These are commanded with the coordinate values in the machine coordinate system.
The command is done by the absolute values regardless of the G90 and G91 codes.
(X, Y, Z)
+Z
Movable area
-X
(I, J, K)
-Y
(Note 1) The programmable stroke or the stroke is used as the soft limit
in the following ways.
G22: The programmable stroke is checked as the soft limit.
G23: The stroke is checked as the soft limit.
(Note 2) Right after turning ON the power, the stroke limit set by the
user parameter becomes effective.
After that, the setting by changing the user parameter or the
G22 command whichever is done later becomes effective.
As for the axis which is not specified by the G22 command, the
stroke limit set by the user parameter recognized as the
command value.
If the stroke limit by the user parameter is changed,
however, all the axes which are not changed become as
specified by the user parameter.
(Note 3) The stroke set by the machine parameter is always effective.
2004-5-18 3 - 26 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
2004-5-18 3 - 27 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
(Note 1) A tool motion to the intermediate point or the commanded point is done by
positioning, and interpolation is not available.
(Note 2) The tool goes through the intermediate point commanded by the G28 or G30
whichever is given later.
(Note 3) During the single block operation, the block stops at the intermediate point.
(Note 4) For axes whose intermediate point is not memorized using G28 or G30, the
current position is regarded as the center point.
(Note 5) When the additional axis is commanded while an optional additional axis is
not installed, an alarm will occur.
Command format
This command moves the axes to the 2nd, 3rd or 4th reference point in the same way
as commanded by G28.
The G29 code can be used as the same way as G28.
(Note 1) The 2nd, 3rd and 4th reference points are set by the user parameter .
(Note 3) When the additional axis is commanded while an optional additional axis is
not installed, an alarm will occur.
2004-5-18 3 - 28 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
The coordinate values commanded in the same block as G53 is recognized in the ma-
chine coordinate system.
(Note) When the incremental mode (G91) is selected, the G53
3
command is ignored.
2004-5-18 3 - 29 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
Command format
Command format
Command format
2004-5-18 3 - 30 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
The coordinate is rotated using the angle obtaind from the measurement.
Other features are the same as those for the coordinate rotation function.
Absolute command
Incremental command
End point
Start point
2004-5-18 3 - 31 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
When B STROKE of user parameter is set to 1: YES, the B axis rotates to the
commanded angle.
When B STROKE of user parameter is set to 0: NO, the B axis rotates in the
direction closer to the commanded angle.
When the commanded angle is the same both in the positive and negative
directions (e.g. 180 deg.), the B axis rotates in the positive direction.
3 When B STROKE of user parameter is set to 0: NO, even a larger angle than
360 degrees is commanded, this is handled within 360 degrees.
Machine pos
Absol pos
2. Incremental command
2004-5-18 3 - 32 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
Command format
This command shifts the zero position in the working coordinate sytem so that the
current tool position becomes to the commanded coordinate values.
Y Y'
3
Tool position
X'
Shift amount
New working
zero point
X
Old working
zero point
Ex.) The absolute coordinate of the tool position changes to (80, 60) from the
current position (150, 100) as commanded "G92 X80. Y60.;"
(Note 1) The commanded coordinate values are always absolute
regardless of G90 and G91.
(Note 2) The working coordinate values of the uncommanded axes do
not change.
(Note 3) The current working zero position shifts when G92 is
executed, and other working zero positions also shift the same
amount accordingly.
2004-5-18 3 - 33 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
NewG54 NewG55
working zero p. working zero p.
3
Old G54 working zero p. Old G55 working zero p.
(Note 4) When G92 is commanded during the tool dia offset, the tool
moves to the position where the offset vector is formed
vertically to the X/Y movement direction.
And the working coordinate system is created with the current
position in the program as commanded by G92.
(Note 5) When G92 is commanded during the tool length offset, the
working coordinate system is created so that the target value
of the programmed Z axis becomes the same as commanded
by G92.
2004-5-18 3 - 34 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
Command format
For G131, the SENSOR SIGNAL OFF alarm occurs when the tool has moved to the
target position without the detection signal turning ON.
For G132, an alarm does not occur.
Note 1: An alarm occurs when tool dia offset mode is selected.
Note 2: The tool does not move during a dry run state.
Note 3: The tool moves to the target posision during a machine lock
state.
Note 4: When the G131/G132 are used in a restarting program, the tool
returns to the target position.
Note 5: When the detection signal is already ON, the tool stops at the
current position when attempting to execute G131/G132.
2004-5-18 3 - 35 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
Command format
Commanding G133 anf G134 rotates the spindle clockwise and counterclockwise
respectively.
3 Z axis target position.
Comforms to G90/G91 mode.
Thread pitch
No, of thread
Spindle speed
2004-5-18 3 - 36 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
Start point
3
Start point
Stop
End point
Travel amount
Operation is reset.
When the above command is executed, the axis moves from the end point for the
preset travel amount, and then moves to the end point.
G60 is a one shot command and the axis travel path is the same as that for G00.
The travel amount is set for the user parameter.
1) Single direction positioning is not performed for the Z-axis during a canned
cycle, or the XY-axes when they are moving for the preset amount of shift in
the G76 and G87 cycles.
2) Single direction positioning is not performed for any axis that does not have
the travel amount set for the parameter.
3) Single direction positioning is performed even when “0” is specified for the
travel amount.
4) An error will occur when G60 is used during tool compensation.
2004-5-18 3 - 37 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
G00
Command ~
G code G03
(3)
G00~G03
3 G102,G103
G202,G203 (1)
(4)
G04
(1)
In the above table,(4) is the case when G01 (G00 to G03) group and G04 are
commanded in the same block. The modal for G01 is updated and G04 is executed.
(1) is the case when G04 is commanded while G01 group is modal.
G04 is executed correctly.
2004-5-18 3 - 38 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
G code G00,
G03,
G43, G68, G73 G90,
G102, G22, G40 G54 G61, G66, G98, G177
G44, G54.1 G69, ~G89 G91
Command G103, G23 ~G42 ~G59 G64 G67 G94 G99 ~G189
G49 G168
G202,
G code G203
G00~G03 (3) (7) (8) (8) (1) (1) (1) (2) (4) (10) (1) (1) (1) (10)
G102,G103
G202,G203 (1) (1) (13) (1) (1) (1) (1) (1) (13) (15) (1) (1) (1) (15)
G04
(4) (2) (2) (2) (16) (2) (1) (2) (14) (11) (1) (1) (1) (2) 3
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(1) (1) (1) (1) (1) (1) (4) (2) (1) (1) (1) (1) (1) (1)
G09
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(4) (2) (2) (2) (16) (2) (1) (2) (14) (11) (1) (1) (1) (2)
G10
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(7) (3) (2) (2) (1) (1) (1) (2) (14) (11) (1) (1) (1) (2)
G22,G23
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(4) (2) (2) (1) (16) (2) (1) (2) (14) (11) (1) (1) (1) (2)
G28~G30
(1) (1) (2) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1)
(5) (2) (2) (1) (16) (2) (1) (2) (14) (11) (1) (1) (1) (2)
G36~G39
(6) (1) (2) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1)
(8) (2) (3) (1) (1) (1) (1) (2) (14) (11) (1) (1) (1) (2)
G40~G42
(9) (1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (2)
G43,G44 (8) (2) (1) (3) (1) (1) (1) (2) (14) (1) (1) (1) (1) (1)
G49 (9) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(4) (2) (2) (2) (1) (1) (1) (2) (14) (11) (1) (1) (1) (2)
G52
(1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1)
(1) (1) (1) (1) (4) (4) (1) (2) (1) (1) (1) (1) (1) (1)
G53
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
G54~G59 (1) (1) (1) (1) (3) (3) (1) (2) (1) (17) (1) (1) (1) (17)
(1) (1) (1) (1) (1) (1) (1) (1) (1) (18) (1) (1) (1) (18)
(1) (1) (1) (1) (1) (1) (1) (2) (1) (2) (1) (1) (1) (2)
G54.1
(1) (1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (2)
(4) (2) (2) (1) (1) (1) (1) (2) (14) (1) (1) (1) (1) (1)
G60
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
0307-3.tbl
2004-5-18 3 - 39 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
(1) (1) (1) (1) (1) (1) (3) (2) (1) (1) (1) (1) (1) (1)
G61,G64
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
3 (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2)
G65
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(2) (2) (2) (2) (2) (2) (2) (3) (2) (2) (2) (2) (2) (2)
G66,G67
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(11)
G68,G69, (13) (2) (2) (2) (1) (1) (1) (2) (3) (1) (1) (1) (2)
(14)
G168
(13) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(11)
(10) (11) (11) (1) (17) (2) (1) (2) (3) (1) (1) (1) (3)
G73~G89 (14)
(1) (1) (2) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (3) (1) (1) (1)
G90,G91
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(4) (2) (2) (2) (1) (1) (1) (2) (2) (11) (1) (1) (1) (2)
G92
(1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1)
(1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (1)
G94
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (3) (1)
G98,G99
(1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1)
(4) (2) (1) (1) (1) (1) (1) (2) (14) (11) (1) (1) (1) (2)
G100
(1) (1) (1) (1) (1) (1) (1) (1) (1) (12) (1) (1) (1) (12)
(4) (2) (2) (1) (1) (1) (1) (2) (14) (11) (1) (1) (1) (2)
G120
(1) (1) (2) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1)
(8) (2) (2) (1) (1) (1) (1) (2) (14) (11) (1) (1) (1) (2)
G121~G129
(9) (1) (2) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1)
0308-1.tbl
2004-5-18 3 - 40 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
G177~G182, (10) (2) (2) (1) (17) (2) (1) (2) (14) (3) (1) (1) (1) (3)
G185~G189 (1) (1) (2) (1) (1) (2) (1) (1) (1) (1) (1) (1) (1) (1)
0308-5.tbl
2004-5-18 3 - 41 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
3 (1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (1) (1)
G09
(2) (1) (1) (2) (2) (2) (1) (2) (2) (2) (2) (2) (2) (2) (2) (2)
G10
(2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (2) (2) (2) (2) (2) (2)
G22, G23
(2) (1) (2) (3) (2) (2) (1) (2) (2) (2) (2) (2) (2) (2) (2) (2)
G28 ~G30
(2) (1) (2) (2) (3) (2) (1) (1) (2) (2) (2) (2) (2) (2) (2) (2)
G36~G39
(2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (1) (2) (2) (2) (2) (2)
G40~G42
G43, G44 (2) (1) (2) (1) (1) (2) (1) (1) (2) (2) (1) (1) (1) (1) (1) (1)
G49
(2) (1) (2) (2) (2) (1) (1) (2) (2) (2) (2) (2) (2) (2) (2) (2)
G52
(1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (1) (1)
G53
(16) (1) (1) (16) (16) (1) (4) (1) (2) (1) (1) (1) (1) (1) (1) (17)
G54~G59
(2) (1) (2) (2) (2) (1) (4) (1) (2) (1) (1) (1) (1) (1) (1) (2)
G54.1
(2) (1) (2) (2) (1) (2) (1) (1) (2) (2) (2) (2) (2) (2) (2) (1)
G60
0310-1-2
2004-5-18 3 - 42 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 3 Preparation fnction
G61, (1) (4) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (1) (1)
G64
(2) (2) (2) (2) (2) (2) (2) (2) (1) (2) (2) (2) (2) (2) (2) (2)
G65
G66, (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) 3
G67
G68, (14) (1) (14) (14) (14) (14) (1) (14) (2) (14) (14) (14) (14) (14) (14) (14)
G69,
G168
(11) (1) (11) (11) (11) (11) (1) (1) (2) (11) (11) (11) (11) (11) (11) (3)
G73~G89
G90, (1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (1) (1)
G91
(2) (1) (2) (2) (2) (2) (1) (2) (2) (1) (2) (2) (2) (2) (2) (2)
G92
(1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (1) (1)
G94
G98, (1) (1) (1) (1) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (1) (1)
G99
(2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (1) (2) (2) (2) (2) (2)
G100
(2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (2)
G120
G121~ (2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (2) (2) (3) (2) (2) (2)
G129
0310-1.tbl
2004-5-18 3 - 43 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
Chapter 3 Preparation fnction 32A/R2A/20A/S2B
(2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (2) (2) (2) (3) (2) (2)
G131, G132
(2) (1) (2) (2) (2) (2) (1) (2) (2) (2) (2) (2) (2) (2) (3) (2)
G133, G134
3 (2) (1) (2) (2) (2) (2) (1) (1) (2) (2) (2) (2) (2) (2) (2) (3)
G173, G183
G177~G182 (2) (1) (2) (2) (2) (2) (1) (1) (2) (2) (2) (2) (2) (2) (2) (3)
G185~G189
0311-1.tbl
2004-5-18 3 - 44 eTCOMNCPR3-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
CHAPTER 4
PREPARATION FUNCTION 4
(TOOL OFFSET FUNCTION)
G41 Dn ;
Command format
G42
G41 and G42 command an offset mode, while G40 commands a cancel of the offset
mode.
2. Symbols in figure
Programmed path
Tool center path
Auxiliary line
Linear line
Circular line
Tool dia offset amount
Tool dia offset angle
Circular tangent
Cross point
Single block stop point
4.1.3 Start-up
When a block which satisfies all the following conditions is executed in the cancel
mode, the system enters the offset mode. The control in this operation is called the
start-up.
4
4.1.3.1 Inside cutting
Linear-Linear
Linear-Arc
Linear - Linear
Arc - Linear
Linear - Arc
Arc - Arc
Linear - linear
4
Linear -Arc
It will be processed in the same procedure as above in case of Arc-Linear and Arc-Arc.
Linear - linear
Arc - Linear
Linear - Arc
Arc - Arc
Linear -Linear
4 Arc - Linear
Linear - Arc
Arc - Arc
2004-5-18 4 - 10 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
As above figure shows, the cross point of the arcs is present if the offset value is
small, but it may be disappear if the offset value becomes large.
In this case, alarm occurs in the preceding block, and the machine stops.
2004-5-18 4 - 11 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
a) G40 is commanded.
b) The movement command other than circular arc (G02 or G03) is given on the
X-Y plane.
(Note 1) In the case of a circular arc command, an alarm is generated.
4
(Note 2) In case of the linear interpolation XZ or YZ axes command, an
alram is generated.
Arc - Linear
2004-5-18 4 - 12 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
Type 1:Linear-Linear
Type 1:Arc-Linear
Type 2:Arc-Linear
Type 2:Linear-Linear
2004-5-18 4 - 13 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
Type 1:Linear-Linear
Type 1:Arc-Linear
Type 2:Linear-Linear
Type 2:Arc-Linear
2004-5-18 4 - 14 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
Linear - Linear
4
Arc - Linear
2004-5-18 4 - 15 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
G code
4
Conditions of execution
G41 G42
Perform Perform
G42 G41
When the offset direction is changed, the "inside" and "outside" cuttings are not
discriminated. But whether there is a cross point or not discriminates those cuttings.
The offset amount described hereafter has a positive value.
2004-5-18 4 - 16 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
Linear - Linear
4
Linear - Arc
Arc - Linear
Arc - Arc
2004-5-18 4 - 17 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
Linear - Linear
4
Linear - Arc
Arc - Linear
2004-5-18 4 - 18 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
Arc - Arc
2004-5-18 4 - 19 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
Linear - Linear
Block commanded
G42
4
Linear - Arc
Block commanded
G42
Arc - Linear
Block commanded
G42
Arc - Arc
Block commanded
G42
2004-5-18 4 - 20 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
2004-5-18 4 - 21 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
(4) Machining of inner wall of circular arc smaller than the used tool radius
Since cutting is not available, the operation stops at the end point of the previous
block and an alarm is generated.
2004-5-18 4 - 22 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
When the movement amount around the corner is small as shown in the figure 4
below and the following conditions are satisfied, the movement is ignored.
2004-5-18 4 - 23 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
This function is not available if the following block is a full circular arc.
2004-5-18 4 - 24 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
(Note 1) The block with the movement amount zero will result in the
same as above.
(Note 2) Even if the X/Y movement command is not given at the start-
up, the start-up motion begins at the time the X or Y
movement command is executed.
2004-5-18 4 - 25 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
3.Alarm-generating command
G28 : Return to reference point
G29 : Return from reference point
G30 : Return to 2nd, 3rd and 4th reference point
G36 ~ G39 : Coordinate calculation
G60 : Single direction positioning
G66 : Macro
G73 ~ G89, G173 ~ G189 : Canned cycle
M200, M201 : Tool breakage detection
M120 : TOUCH signal check
G120 : Positioning to the measuring point
G121 ~ G128 : Automatic measurement
G131, G132 : Measurement feed
G133, G134 : Changeover of tap twisting direction
M203 : Tool breakage detection judgement
M206 : Thermal watch condition judgement
M207 : Thermal measurement motion
M410, M411 : Index of the pallet
2004-5-18 4 - 26 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
When moving the tool by manual operation after it stopped at the block end point
P2, the tool moves from P2' to P3, then follows the corrected offset path after P3.
2004-5-18 4 - 27 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
Deceleration stroke
Actual feedrate = Commanded feedrate ×
100
(Note 1)
When the value of Rc/Rp becomes smaller than the OVERRIDE LMT IN
INSIDE ARC set by the parameter 1, multiply that parameter value
instead of Rc/Rp.
2004-5-18 4 - 28 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 4 Preparation finction(tool offset function)
4
Command format G43 Hn ;
(Note 1)
The tool length offset can be cancelled by commanding G49 or
specifying zero for the tool length offset number.
(Note 2)
The tool length offset is cancelled by M06 (tool change) or
G100 (non-stop ATC).
(Note 3)
If the Z-axis command is not given to the block of "G43H_;" or
"G44H_;", it isregarded that the Z-axis command is given to the
current position and Z axismoves by the offset amount specified by the
H code.
In the same way, if the Z-axis command is not given to the block of
"G49;", it is regarded that the Z-axis command is given to the current
position and Z axis moves by the offset amount specified by the final H
code.
2004-5-18 4 - 29 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
Chapter 4 Preparation finction(tool offset function) 32A/R2A/20A/S2B
(Note 4)
If the Z-axis command of the reference point return (G28) or the 2nd,
3rd,4th reference point return (G30) is given, the tool moves while the
tool length offset is applied to the intermediate point and the tool
returns to the reference point by cancelling the tool length offset
tentatively.
The Z-axis movement afterwards is executed with the tool length
offset.
If the incremental mode is selected at this time, the tool movement is
regarded to start from the reference point.
(Note 5)
When G53Z_; is commanded during tool length offset, tool length offset
The tool length fine offset value is placed on the tool list screen.
2004-5-18 4 - 30 eTCOMNCPR4-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
CHAPTER 5
PREPARATION FUNCTION
(CANNED CYCLE)
5
5. Canned cycle
For repetitive machining, a series of paths that is usually specified in a few blocks
can be specified in one block.
G80 Cancel ~ ~ ~ ~
G177 End mill tap cutting feed CCW cutting feed stop
cycle
Motion 1
Initial point
5 Motion 2 Motion 6
R point
Motion 3 Motion 5
Z point
Motion 4
The system stops upon completion of the motion 1, 2 or 6 in the single block
operation.
(Note) Temporary stop range in tapping cycle (G74, G77, G78, G84,
G177, G178, ).
(1)During the motion 1, 2 or 6 in the tapping cycle, a temporary stop is available.
G73 , G74
G76 ~ G78
(3) Drilling mode G80 ~ G87 5
G89
G173 Refer to table 5-1(P5-2)
G177 , G178
G181 ~ G183
G185 , G186
G189
Z=0
R
R
R point Z R point
Z point Z point
Initial point
R point R point
5
Z point Z point
(Note 1)
G98 and G99 are modal commands. G98 is effective when the power is
turned ON.
(Note 2)
If there is no Z-axis movement even if the tool length offset mode is
selected, the initial point is memorized without offset.
(Note 3)
The Z-axis machine coordinate value becomes the initial point when
the canned cycle cancel mode changes to the canned cycle mode.
Command format
X, Y : Drilling positon. 5
The tool motion to the drilling position is done at a rapid feed.
Z : Bottom position
When the incremental mode is selected, the distance from
the R point to the bottom of hole is specified.
R : R point position.
When the incremental mode is selected, the distance from
the point before the canned cycle becomes effective to the
R point is specified.
P : Dwelling time.
(The unit is the same as specified by G04.)
F : Cutting feedrate.
S : Spindle speed.
When drilling at an equal interval is repeated in the same canned cycle, use the
address K and specify the repeat number.
(example)
5
Final machining position
Current position
R point
Return point 5
Q
d
Z point
dwelling for P sec
rapid feed
cutting feed
Return point
2004-5-18 5 - 10 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Return point
R point
Spindle stop
5
Z point
rapid feed
Dwelling for P sec cutting feed
Spindle orientation shift (rapid feed)
spindle CCW
If the minus value is commanded for the shift amount Q, the algebraic mark (-) is
ignored.
The shift direction is selected from +X, -X, +Y and -Y set by the parameter 1 in
advance.
The shift direction can be selected only from the above four. Therefore, the tool
should be mounted so that the tool nose faces in one of the specified direction
when the spindle orientation executes.
2004-5-18 5 - 11 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
I_
Command format G77 X_Y_Z_R_ Q_S_;
J_
Return point
Q
5
d
Q
d
Z point
rapid feed
cutting feed
spindle CW
spindle CCW
If the minus value is commanded for the cutting amount Q, the algebraic mark (-) is
ignored.
When a temporary stop is applied on the way from the R point to the Z point or the
R point, the tool stops after returning to the R point.
If the address S exceeds the max, spindle speed in tapping, an alarm is generated.
2004-5-18 5 - 12 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Return point
Q
5
d
Q
d
Z point
rapid feed
cutting feed
spindle CW
spindle CCW
If the minus value is commanded for the cutting amount Q, the algebraic mark (-) is
ignored.
When a temporary stop is applied on the way from the R point to the Z point or the
R point, the tool stops after returning to the R point.
If the address S exceeds the max, spindle speed in tapping, an alarm is generated.
2004-5-18 5 - 13 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
G77 I_
Command format
X_Y_Z_R_Q_ S_L_;
G78 J_
The address L commands the spindle speed during the return motion.
When the address L is omitted, the spindle speeds at cutting and return motion
become identical.
The address L, once commanded, is regarded as modal in the canned cycle mode.
If the address L command value is larger than the max, spindle speed in tapping, an
5 alarm is generated and the tool stops at the R point.
When the address L command value is smaller than the address S command value,
the spindle rotates according to the address S command value.
G81
Command format
X_Y_Z_R_P_ F_ ;
G82
Return point
R point
rapid feed
Z point cutting feed
dwelling for P sec
2004-5-18 5 - 14 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Feed speed at start and end of drilling cycle (G81 or G82) is variable.
G81
Command format
X_Y_Z_R_W_V_F_E_L_;
G82
Return point
R point
Feed speed E W
Feed speed F
Feed speed L V
Z point
rapid feed
cutting feed
2004-5-18 5 - 15 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Return point
R point
5 d
Q
d
Z point
dwelling for P sec
rapid feed
cutting feed
If the minus value is commanded for the cutting amount Q, the algebraic mark (-) is
ignored.
2004-5-18 5 - 16 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Return point
Z point
rapid feed
cutting feed
spindle CW
spindle CCW
When a temporary stop is applied on the way from the R point to the Z point or the
R point, the tool stops after returning to the R point.
If the address S exceeds the max, spindle speed in tapping, an alarm is generated.
2004-5-18 5 - 17 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
G85
Command format X_Y_Z_R_P_F_;
G89
Return point
R point
5
G85
Command format X_Y_Z_R_ F_E_
G89 ;
Return point
R point
rapid feed
Z point cutting feed
2004-5-18 5 - 18 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Return point
R point
5
rapid feed
Z point cutting feed
dwelling for P sec Spindle stop spindle CW
2004-5-18 5 - 19 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Command format
G86 X_Y_Z_R_ W_V_F_E_L_ ;
5
Spindle rotates CW
while moving to point "R"
Return point
R point
Feed speed E W
Spindle returns to return point
and then rotates CW.
Feed speed F
Feed speed L V
Z point
Spindle stop
rapid feed
cutting feed
spindle CW
2004-5-18 5 - 20 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
spindle orientation
Z point
5
dwelling for P sec rapid feed
cutting feed
R point shift (rapid feed)
spindle CW
spindle CCW
single block stop point
If the minus value is commanded for the shift amount Q, the algebraic mark (-) is
ignored.
The shift direction is selected from +X, -X, +Y and -Y set by the parameter 1 in
advance.
The shift direction can be selected only from the above four. Therefore, the tool
should be mounted so that the tool nose faces in one of the specified direction
when the spindle orientation executes.
2004-5-18 5 - 21 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
R point
5 d
Q
d
Z point
rapid feed
cutting feed
2004-5-18 5 - 22 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Command format
I_
G177 X _ Y _ Z _ R _ S_ L _ Q _E _ ;
J_
Return point
R point
Feed speed E Q
Spindle speed S
Thread pitch I
or number of
threads J
Z point
rapid feed
cutting feed
spindle CW
spindle CCW
2004-5-18 5 - 23 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Return point
R point
Feed speed E Q
Spindle speed S
Thread pitch I
or number of
threads J
Z point
rapid feed
cutting feed
spindle CW
spindle CCW
2004-5-18 5 - 24 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
G181
Command format X_Y_Z_R_I_J_W_V_F_E_L_ ;
G182
Return point
R point
Feed speed E W
Feed speed F
Feed speed L V
I point
rapid feed
J point
Feed speed E W
Feed speed F
Feed speed L V
Z point
rapid feed
cutting feed
2004-5-18 5 - 25 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
R point
5
Q
Z point
dwelling for P sec
rapid feed
cutting feed
2004-5-18 5 - 26 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
G185
Command format
X_Y_Z_R_I_J_F_E_ ;
G189
R point
I point
J point
Z point
rapid feed
cutting feed
2004-5-18 5 - 27 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Return point
Spindle returns to return point
and then rotates CW.
R point
Feed speed E W
Feed speed F
Feed speed L V
I point
rapid feed
J point
Feed speed E W
Feed speed F
Feed speed L V
Z point
Spindle stop
rapid feed
cutting feed
spindle CW
2004-5-18 5 - 28 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Return point
5
R point
.
.
.
V
Z point
dwelling for P sec
rapid feed
cutting feed
If a negative value is entered for the cutting amount V and W, the algebraic symbol
(-) is ignored.
2004-5-18 5 - 29 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Return point
R point
W
5
d
.
.
.
V
Z point
dwelling for P sec
rapid feed
cutting feed
If a negative value is entered for the cutting amount V and W, the algebraic
symbol (-) is ignored.
2004-5-18 5 - 30 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
I_
Command format
G77 X_Y_Z_R_ J_ W_V_S_ ;
Return point
spindle
stop
R point
W
5
d
2nd
cutting
feed d
3rd
cutting
feed d
.
.
.
V
Z point
rapid feed
cutting feed
spindle CW
spindle CCW
2004-5-18 5 - 31 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Command format I_
G78 X_Y_Z_R _ W_V_S_ ;
J_
Return point
spindle
stop
R point
5
W
2nd
cutting
feed d
3rd
cutting
feed d
.
.
.
V
Z point
rapid feed
cutting feed
spindle CW
spindle CCW
. The relief amount d is set by the parameter 1.
. If a negative value is entered for the cutting amount V and W, the algebraic symbol
(-) is ignored.
. When a temporary stop is applied on the way from the R point to the Z point or the
R point, the tool stops after returning to the R point.
. A thread pitch or number of threads should be specified.
. Set the data on a thread pitch following the address I, and the data on a number of
threads following the address J.
. If the address S exceeds the max, spindle speed in tapping, an alarm is generated.
2004-5-18 5 - 32 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
R point
W
5
d
.
.
.
V
Z point
rapid feed
cutting feed
The relief amount d is set by the parameter 1.
If a negative value is entered for the cutting amount V and W, the algebraic symbol
(-) is ignored.
2004-5-18 5 - 33 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
R point
W
5
d
.
.
.
V
Z point
dwelling for P sec
rapid feed
cutting feed
If a negative value is entered for the cutting amount V and W, the algebraic symbol
(-) is ignored.
(7) For G73, G83, G173 and G183 fixed cycles, the cutting feed after the second time
will be as below.
Cutting feed depth = Coefficient × 1st cutting feed (W)
2004-5-18 5 - 34 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Time of cutting 2 3 4 5 6 7 8 9 10
Coefficient 0.825 0.675 0.525 0.425 0.35 0.3 0.225 0.175 0.15
11 12 13 14
0.1 0.1 0.075 0.075
Coefficient of 14th cutting is applied to 15th cutting and after.
When the cutting feed has become smaller than the V value (minimum cutting feed),
the V value is applied for cutting.
(8) For G77 and G78 fixed cycles, the cutting feed after the second time will be as
below.
Cutting feed depth = Coefficient × 1st cutting feed (W)
Time of cutting 2 3 4 5 6 7 8 9 10
Coefficient 0.85 0.65 0.55 0.4 0.35 0.3 0.2 0.2 0.15
11 12 13 14
5
0.1 0.1 0.05 0.05
Coefficient of 14th cutting is applied to 15th cutting and after.
When the cutting feed has become smaller than the V value (minimum cutting feed),
the V value is applied for cutting.
(Note 1) When switching between reducing step feed and fixed step
feed, use the W and Q commands.
(Note 2) When the W and Q commands are specified to the same
block, the W command has a priority.
(Note 3) When the W or Q command is not given, or 0 is given, cutting
is carried out once.
(Note 4) When the V command is not given, or 0 is given, V=0.001
(metric) or V=0.0001(inch) is used.
(Note 1) The canned cycle is cancelled not only by G80 but also by
G00-G03. The tool change command G100 and M06 can
cancel the canned cycle after the tool change motion.
(Note 2) When the axis move command is given in the same block as
G80, the axis movement starts after the canned cycle is
cancelled.
2004-5-18 5 - 35 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
(2) When the M code is commanded in the same block as the canned cycle, the M
code is executed at the same time as the initial X/Y positioning or after that.
When the repetition is specified by K code, the M code is executed only at the
first time and not executed any longer.
(3) When M00 or M01 is commanded in the same block as the canned cycle, the
spindle and coolant stop after the X/Y positioning and automatic resetting is not
available.
If resetting is necessary, command it in the manual operation mode or the MDI
operation mode.
5
(4) When G00 to G03 are commanded in the same block as that of the canned cycle,
the motion will be as below.
G00 G81 X_ Y_ Z_ R_ P_ F_ ;
In this case, the modal for G00 is updated and the canned cycle by G81 is executed.
G81 G00 X_ Y_ Z_ R_ P_ F_ ;
In this case, X, Y, and Z axes move in accordance with G00 and the canned cycle is
not executed.
(5) M200, M201, and M120 cannot be commanded in the same block as that of the
canned cycle.
2004-5-18 5 - 36 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
(3)
ATC position
(2) (4)
5
Z origin position
(1) (5)
Single block stop point
2004-5-18 5 - 37 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Operations
(1) Tool moves to the Z-axis point "R" while performing 0-degree spindle
orientation.
(2) Tool moves to theZ-axis ATC origin while X,Y,A and B axes move to
commanded value.
When "T" is commanded, the tool moves to Z-axis ATC origin and magazine
swivels.
(3) Arm swivels to change tool.
Tool change motion differs depending on setting on [MAGAZINE TOOL]
screen.
Refer to the "Tool Change Motion" for detailes.
(4) Tool moves to the Z-axis point "R".
Operation, if specified by spindle command, occurs simultaneously.
(5) Tool moves to Z-axis commanded position.
5 Caution
. When performing cycle operation, tool moves in cutting mode
between operations (1)and (2), operations (4) and (5).
. When [RESET] key or [STOP SWITCH] key is pressed between
operations (2) and (4) , machine stops after motion (4) is completed.
For operation (3) (X, Y, A, and B axes movement), machine stops
immediately.
. Machine does not stop if single block occurs between operations (1)
and (4).
. All data other than G100 can be omitted. However, code "T" must
be commanded once by operator before G100 is commanded.
. Tool offset is canceled when G100 is commanded. Further, tool
length compensation is canceled from operation (2).
. When tool offset (G41 or G42) and X and Y axes movement are
commanded to block G100, tool offset begins when X and Y axes
movement (2) commences.
. Start-up is performed in format 1, regardless of parameters.
When tool offset is commanded to block G100, tool offset becomes
valid from operation (4) .
. When G100 is commanded while tool length compensation (G49) is
canceled, operation (1) is performed subject to [ATC REFERENCE
TOOL LENGTH] selection for user parameter.
. When tool offset is not commanded to block G100, operations (4)
are performed subject to [ATC REFERENCE TOOL LENGTH] selection
for user parameter.
. Alarm appears when code M other than spindle command is
commanded to block G100.
Alarm appears when axis A or B is commanded while optional A
and B axes are not in use.
When point "R" command position (4) is lower than Z axis
command position (5), tool moves to Z-axis commanded position,
and operation (5) is not performed.
2004-5-18 5 - 38 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Tool change motion differs depending on tool type set on [MAGAZINE TOOL]
screen.
When pot is already at upper limit before tool change motion commences, sequence
starts from (2).
When ((4) arm swivels) changing from large tool to large tool, arm swivels at low
speed.
When ((4) arm swivels) changing from standard tool to standard tool, arm swivels at
high speed.
2004-5-18 5 - 39 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
5 For operation (2), empty pot is indexed appropriately for large tool and standard
tool.
Operation (9) is performed for the TC-31A only. However, it may also be performed for
the TC-22A when “next tool preparation” is performed.
Arm swivels ((4) or (8)) at low speed when large tool is to be changed, and at high
speed when standard tool is to be changed.
Notes
1) If empty pot for large tool is not available when change from large
tool to standard tool is attempted, [*NO EMPTY POT] alarm appears.
2) If empty pot for standard tool is not available when change from
standard tool to large tool is attempted, [*NO EMPTY POT] alarm
appears.
2004-5-18 5 - 40 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
The next tool preparation sequence differs depending on the type of tool set on the
magazine tool screen.
Note 1) When the next tool is changed from a large tool to a standard
tool and there is no empty pot for a large tool, the [NO EMPTY POT]
error occurs.
Note 2) When the next tool is changed from a standard tool to a large
tool and there is no empty pot for a standard tool, the [NO EMPTY POT]
error occurs.
2004-5-18 5 - 41 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
(3)
ATC position
(2) (4)
Z origin position
5
(1) (5)
Single block stop point
2004-5-18 5 - 42 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Operations
(1) Tool moves to the Z-axis point and spindle orientation are executed at the same
time.
(2) Movement to the ATC origin position.
When "X, Y, A or B" is commanded in the same block, the motions are done at
the same time.
(3) The magazine indexes the tool as commanded by the address "T".
(4) Movement to the Z-axis origin position.
(5) Movement to the commanded position when Z-axis is commanded.
When the spindle command (M3 group) is given, the motion is done at the same
time.
. When performing cycle operation, tool moves in cutting mode between
operations (1) and (2)and operations (4) and (5).
Caution
. All data other than G100 can be omitted. However, code "T" must be commanded
once by operator before G100 is commanded.
. The tool length offset and the tool dia offset are canceled when G100 is
commanded.
. When tool offset (G41 or G42) and X and Y axes movement are commanded to
block G100, tool offset begins when X and Y axes movement (2) commences.
Start-up is performed in format 1, regardless of parameters.
. When tool offset is commanded to block G100, tool offset becomes valid from
operation (5).
. Alarm appears when code M other than spindle command is commanded to block
G100.
. Alarm appears when axis A or B is commanded while optional A and B axes are
not in use.
2004-5-18 5 - 43 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
(3) (4)
ATC
position X origin X ATC
position position
(4)
R point
(6) (5)
2004-5-18 5 - 44 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Operations
(1) Tool moves to the Z-axis point "R" while performing 0-degree spindle
orientation. When "T" is commanded, magazine swivels.
(2) Tool movement to theZ-axis ATC origin, to the X axis origin point and to Y axis
ATC position, A, B axes movement to the the commanded value and also maga
zine cover opening occur simultaneously.
(5) Tool movement to the X axis orgin point and Z axis point "R" and magazine
5
cover closing occurs stimultaneously.
Caution
When performing cycle operation, tool moves in cutting mode between operations
(1)and (6). And tool moves in position check mode.
For XY positioning at operation (2) and (3) ( from X:origin Y: ATC position to X
axis positioning (ATC position)) ,tool moves in cutting mode when Y axis positions
at the ATC position before X axis does.
When [RESET] key or [STOP SWITCH] key is pressed at operations (2) , machine
stops after Z axis movement to ATC origin point.
For X, Y, A, and B axes movement, machine stops immediately.
When [RESET] key or [STOP SWITCH] key is pressed between operations (3) and
(5) , machine stops after motion (5) is completed.
For the operation (2), A, and B axes movement, machine stops immediately.
Machine does not stop if single block occurs between operations (1) and (6).
For operation (5), machine goes to the next opeation after closing the magazine
cover without checking if the magazine cover is closed.
All data other than G100 can be omitted. However, code "T" must be commanded
once by operator before G100 is commanded.
2004-5-18 5 - 45 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
When tool offset (G41 or G42) and X and Y axes movement are commanded to block
G100, tool offset begins when X and Y axes movement (6) commences.
Start-up is performed in format 1, regardless of parameters.
When tool offset is commanded to block G100, tool offset becomes valid from
operation (5) .
5
Alarm appears when code M other than spindle command is commanded to block
G100.
Alarm appears when axis A or B is commanded while optional A and B axes are not
in use.
When point "R" command position (5) is lower than Z axis command position (7),
tool moves to Z-axis commanded position, and operation (7) is not performed.
2004-5-18 5 - 46 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
Tool change from standard tool to standard tool, and large tool to large tool.
When pot is already at upper limit before tool change motion commences, sequence
starts from (2).
When ((4) arm swivels) changing from large tool to large tool, arm swivels at low
speed.
5
When ((4) arm swivels) changing from standard tool to standard tool, arm swivels at
high speed.
When pot is already at upper or lower limit before tool change motion commences,
sequence starts from (3) or (4), respectively.
For operation (2), empty pot is indexed appropriately for large tool and standard
tool.
Arm swivels ((4) or (8)) at low speed when large tool is to be changed, and at high
speed when standard tool is to be changed.
Notes
1) If empty pot for large tool is not available when change from large tool to
standard tool is attempted, [*NO EMPTY POT] alarm appears.
2) If empty pot for standard tool is not available when change from standard tool to
large tool is attempted, [*NO EMPTY POT] alarm appears.
2004-5-18 5 - 47 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
The next tool preparation sequence differs depending on the type of tool
set on the magazine tool screen.
Note 1) When the next tool is changed from a large tool to a stan
dard tool and there is no empty pot for a large tool, the [NO EMPTY POT]
error occurs.
Note 2) When the next tool is changed from a standard tool to a
large tool and there is no empty pot for a standard tool, the [NO EMPTY
POT] error occurs.
2004-5-18 5 - 48 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
(2)
Z ATC
position
(3)
R point
(1)
2004-5-18 5 - 49 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
Operations
1)The tool moves to Z ATC position (50 mm above “R” point or Z origin) while
performing 0-degree spindle orientation.
When the tool specified by “T” is indexed in the magazine, the pot lowers. It starts
lowering when the Z-axis has passed the position set for
[POT LOWERING START POS.] (user parameter).
2)When the tool specified by “T” is not indexed in the magazine, the magazine swivels
and then the pot lowers.
When the specified tool is indexed in the magazine and the pot is at the lower limit,
the arm swivels and then the pot rises.
X, Y, A, and B axes also move to the specified positions.
See the ATC section for details of ATC sequence.
3)The tool moves to the specified Z-axis position.
Precautions
. The pot, magazine, and arm do not stop even when the [RST] key or the [STOP]
button is pressed during operations 1) to 3) above. The X, Y, Z, A, and B axes stop
immediately.
. All data other than G100 can be omitted. However, a T code must be used at least
once before G100 is used.
. When G100 is used, tool diameter compensation is canceled. Tool length
compensation is also canceled in operation 3).
. When the tool diameter compensation (G41 or G42) and XY axes movement
commands are used for the G100 block, tool diameter compensation begins in format
1 when X and Y axes movement 2) commences, regardless of the current parameters.
. The tool length compensation command is used for the G100 block, tool length
compensation become valid from operation 3).
. The Z-axis moves as described below during operation 1).
(1) When R point is specified for G100 block
The Z-axis moves to the position where the tool tip is “R point + 50 mm” in
accordance with the tool length compensation.
The larger tool compensation value before or after change is applied.
When tool length compensation is not applied, the setting for
[ATC REFERENCE TOOL LENGTH] (user parameter) is used.
(2) When R point is not specified for G100 block
The tool rises to the Z origin, regardless of the tool length.
2004-5-18 5 - 50 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 5 Preparation function(canned cycle)
. When the Z-axis movement and tool length compensation commands are not used
for the G100 block, operation 3) is performed in accordance with the setting for
[ATC REFERENCE TOOL LENGTH] (user parameter).
· An alarm occurs when an M code other than a spindle command is used for the
G100 block.
An alarm occurs when the A- or B-axis command is used although the optional A-
or B-axis is not installed.
· The target position the pot lowers to is determined by the distance between
[ATC RETURN HEIGHT] and [POT LOWERING START POSITION]
(user parameters).
ATC
Next tool preparation is performed after the pot has risen in the ATC sequence.
When ATC is not performed, only next tool preparation is performed.
When the next tool is already indexed, next tool preparation is not performed.
1) Magazine swivels
Next tool preparation ends when the above sequence is completed.
2004-5-18 5 - 51 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
Chapter 5 Preparation function(canned cycle) 32A/R2A/20A/S2B
2004-5-18 5 - 52 eTCOMNCPR5-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 6 Preparation function(coordinate calculation)
CHAPTER 6
PREPARATION FUNCTION
(COORDINATE CALCULATION)
Parameter
Function G code
I J K P Q
Linear(angle) G37
Linear(X,Y) G38
Grid G39
(Note) Coordinate values are calculated from the start point in the
CCW direction.
6 reference point.
CHAPTER 7
MACRO
e.g.1 Tool breakage detection is performed once when machine program has been
executed ten times.
e.g.2 Program that performs arc cutting by designating center, radius, and angle.
X: CENTER X Y: CENTER Y R: RADIUS Z: CUT POS Z
W: STOP BEFORE WORK U: CUT START ANGLE
V: CUT END ANGLE F: FEEDRATE
Main program
(Note2) Using brackets [ ] when designating the variable number allows you
to use the value stored in the variable or to use a formula.
[Example] #100 = #[100+10]
This formula specifies that the value stored in variable
#110 is written to #100.
(Note3) When #1 = 9, #9 = 20, and #20 = 30,
#5 = # [# [#1]] is equal to #5 = 30.
(Note4) A variable can be used instead of designating a numerical value.
[Example] #3=#2+10;
G01X#3Y10;
This formula specifies the X coordinate as the value
stored in variable 2 with 10 added to it. (If #2 is 40, X#3
is 50.) When a variable is used as address data as
shown in example 4, however, the values below the
significant digits used as address data are rounded off.
Note that an alarm will occur if the value rounded off
to the nearest significant digit exceeds the maximum
address command value.
(Ex.)Assume that the G00X#1; command is used for a
machine with a significant digit setting of 1/1000.
When #1 is 12.345678, the command format will be
7 G00X12.346.
(Note5) Variable cannot be quoted in adress N.
[Example] N#20 cannot be used.
e.g.2 Calculation
Common variables can be read from and written to any programs between any
levels.
#0 Constantly NULL This variable is constantly kept NULL; thus no value can
be entered.
#1 to #26 Local variable These variables can be used for each macro level.
When power is turned off, these variables are cleared to be
blank.
Substitute the variable for these range bellow.
-1.0 by 1099 to -1.0 by 10-99 , 0, 1.0 by 10-99 to 1.0 by 1099.
#100 to #199 Common variable These variables can be used among variables macro 7
programs.
When power is turned off, these variables are cleared to be
blank.
Substitute the variable for these range bellow.
-1.0 by 1099 to -1.0 by 10-99 , 0, 1.0 by 10-99 to1.0 by 1099.
Caution: Not display all of the significant figures, when the
number in a range.
Display number is rounded number.
Therefore, not always same the number on display and the
correct conference of the variable.
Refer to the "Macro display and setting".
#100→ _
7 EDIT
END
MODE
F0 F1 F2 F3 F4
Number display
Variable for #100 to #199, display the number, only variable is in a range bellow.
The display changes to [***********], if not in a range.
Meter:-999999.999 to 999999.999
(Integer: six figures, Decimal: three figures)
Inch:-99999.9999 to 99999.9999
(Integer: five figures, Decimal: four figures)
Not display all of the significant figures, when the number in a range.
Display number is rounded number.
Therefore, not always same the number on display and the correct conference of
the variable.
[Example of use]
A signal is output from the program to external output port 103.
· Assign #1100 to port N103 using the user parameter (external output signal).
NO. 103® _
92.OILPMP 97.POSSW 102. #1102
93.BATALM 98.POSSW 103. #1103
94.XPOSSW 99.POSSW 104. #1104
95.YPOSSW 100. #1100 105. #1105
96.ZPOSSW 101. #1101 106. #1106
NEXT MENU
EDIT
END
MODE
F0 F1 F2 F3 F4
· A signal is output to port 103 when the command is used in the program below. 7
.
.
#1100 = 1;
.
.
. . .
. . .
(G54.1P48) #7941 ~ #7946 R/W
3. Tool data
The tool length and tool dia. is read and written.
TL OFFSET #11001 ~ #11099 R/W
FINE OFFSET #10001 ~ #10099 R/W
TL Ø COMP #13001 ~ #13099 R/W
4. Alarm indication
#3000 = n (ALARM MESSAGE)
Alarm number 9000 + n (n: 0 ~200) occurs, and the alarm message in the brackets
(the first 20 characters, reset by the [RESET] key) is displayed.
Only alphanumerical characters are used in the brackets and registered in the alarm
log.
[Example of use]
When the following block is executed:
#3000 = 6 (ABCD);
”9006 *ABCD” alarm occurs.
6. Time
Time 1 #3001 R/W This timer counts the operation time in
increments of 10 msec.
The timer is reset to zero when the counted
time reaches 42949672.96 seconds (approx.
497 days) or when power is turned on.
After resetting to zero, it starts counting.
Time 2 #3002 R/W This timer counts the time when the start
LED is lit (STL) in increments of 10 msec.
The timer is reset to zero when the counted
time reaches 42949672.96 seconds (approx.
497 days).
The value is stored even when the power is
turned off.
7. Operation control
Operation #3003 R/W MFIN
control 0: WAIT
2: NOT WAIT
#3003
·”0" is set when power is turned on.
·”0" is set when the [RESET] button is pressed or M30 is used.
·When MFIN is set to [NOT WAIT], the program proceeds to the next block without
waiting for MFIN. In addition, MFIN is not confirmed to be OFF before the M
signal is output.
·When MFIN is set to [NOT WAIT], the next M signal is output after the time set
for [EXT SIGNAL OUTPUT TIME (MFIN OFF)] (user parameter - switch 1) has
elapsed.
#3004
·”0" is set when power is turned on.
·”0" is set when the [RESET] button is pressed or M30 is used. 7
·When [SPINDLE OVERRIDE] is set to [INVALID], override is fixed at 100%,
regardless of the position of the [OVERRIDE] switch on the operation panel.
·Spindle override and rapid feed override are also fixed at 100%.
8. Modal information
The called modal information can be read.
Variable No. G Code
#4001 G00~G03,G102,G103,G202,G203
#4002 G17
#4003 G90,G91
#4004 G22,G23
#4005 G94
#4006 Inch 20, Metric 21
#4007 G40,G41,G42
#4008 G43,G44,G49
#4009 G73~G89,G177~G189
#4010 G98,G99
#4012 G66,G67
#4014 G54~G59
#4015 G61,G64
7 #4016 G68,G69,G168
#4107 D code
#4109 F code
#4111 H code
#4113 M code
#4114 Sequence number
#4113
· M code returns the M number executed last.
#4114
· Sequence number returns the N number executed last, instead of the
number of the block currently being executed.
N90 #100 = 0;
N100 #100 = #4114:
When the above is used, 100 is set for #100.
#4115
· Program number returns the sub program number if the sub program is
being executed.
2004-5-18 7 - 10 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 7 Macro
9. Current position
Coordinate Tool Read while
No. Contents
system offset traveling
#5001~ End point Workpiece coordinate Included Possible
#5006 coordinate system
“Not possible” is listed in the “Read while traveling” column for “Current position”,
“Tool length offset”, and “Servo deviation”. This means that the value is not
guaranteed because the value is set when “interpretation” is performed.
In the program below, the macro command is executed in the block during
interpretation while the axis travel block is being executed, so the position during
travel is read, instead of the position traveled to in the previous block.
7
X-10.;
X-10.;
X-10.;
#100=#5021;
[Supplementary explanation]
· Numerical values are entered for i, j, and k of #i, #j, and #k (e.g. #10),
indicating they are macro variables.
· Instead of #j and #k, a constant can also be used for the right side of the
equation.
2004-5-18 7 - 11 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
Chapter 7 Macro 32A/R2A/20A/S2B
Addition Addition
Subtraction
Logical OR
Exclusive OR
Multiplication Multiplication
Division
AND
Function Sine
Cosine
Tangent
Reverse tangent
Square root
Absolute value
BCD to BIN conversion
BIN to BCD conversion
7 Rounding off
Rounding down to nearest
whole number
Rounding off to nearest whole
number
2004-5-18 7 - 12 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 7 Macro
2004-5-18 7 - 13 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
Chapter 7 Macro 32A/R2A/20A/S2B
An alarm will occur when the sequence number “n” is not within the range 1 to 9999
or there is no corresponding sequence number.
The sequence number can also be designated by a formula.
[Example]
N1 GOTO 3;
N2 GOTO #10;
N3 ;
The sequence number can be skipped by GOTO only within the same program.
When GOTO is designated, a search is started toward the end of the program, and
the first sequence number found is enabled.
When the search reaches the end of the program, it starts again from the top of the
program.
When the condition formula is satisfied, the program is branched to the sequence
number “n”.
When not satisfied, the next block is executed.
The following condition formulas are available:
#i EQ #j #i is EQ #j
#i NE #j #i is not equal to #j
#i GT #j #i is greater than #j
#i LT #j #i is less than #j
#i GE #j #i is #j or more
#i LE #j #i is #j or less
(Note 1) Use square brackets for condition formula.
(Note 2) The range of numerical values that can be used in the
conditional expression is -2147483647 to 2147483647.
If a value not within this range is used, an alarm will
occur.
2004-5-18 7 - 14 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 7 Macro
[Example]
:
:
(1) IF[#100 EQ 50] GOTO 123;
:
:
(2) IF[#101 GT 102] GOTO 123;
:
:
(3) GOTO 124;
:
:
(4) N123;
:
:
(5) N124;
:
:
At (1) above,
7
If variable #100 is 50, the program skips to (4), where the sequence number is
123.
If it is not 50, the program proceeds to the next block (2).
At (2) above
If #101 is larger than 102 (#101 > 102), the program skips to (4), where the
sequence number is 123.
If #101 is less than 102 (#101 £ 102), the program proceeds to the next block
(3).
At (3) above, the program unconditionally skips to (5) via the GOTO statement.
Command format
2004-5-18 7 - 15 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
Chapter 7 Macro 32A/R2A/20A/S2B
END m; 0603.doc
Note1 DOm to ENDm must correspond one to one in the WHILE statement.
If not, an alarm will occur.
:
WHILE [#100 LT 10]DO 1;
:
:
7 WHILE [#101 EQ 50]DO 1;
:
:
END 1;
:
Identifier “m” can be used multiple times as long as the above condition is met.
:
WHILE [#100 LT 10]DO 1;
:
:
END 1;
:
:
WHILE [#101 EQ 50]DO 1;
:
:
END 1;
:
2004-5-18 7 - 16 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 7 Macro
:
WHILE [#100 LT 10]DO 1;
:
:
WHILE [#101 EQ 50]DO 2;
:
:
END 1;
:
:
END 2;
:
.
.
.
.
WHILE [ ”100 LT. 10 ] DO 1;
.
.
.
WHILE [ ”101
.
LT 20 ]DO 2;
.
.
WHILE [ ”102
.
.
LT 30 ]DO 3; 7
.
.
.
WHILE [ ”103 LT 40 ]DO 4;
.
.
.
.
END 4;
. 4-fold 3-fold 2-fold 1-fold
.
.
.
END 3;
.
.
.
.
END 2; .
.
.
.
END 1;
.
.
.
.
2004-5-18 7 - 17 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
Chapter 7 Macro 32A/R2A/20A/S2B
WHILE [#101 EQ 0] DO 1;
:
:
IF[#101 EQ 10]GOTO 123;
:
:
END 1;
:
:
N123
A macro program call (G65, G66) can be executed in MEM mode but cannot be
executed in MDI mode.
The called macro program is returned to the call source by executing M99. When
M02 or M30 (end of program) is executed, the macro program ends without
returning to the calling source. (Memory operation ends.)
G65 G65
M99 M02
Return End
0604.doc
In addition, one macro program can call another macro program using G65 and G66.
This parent/child relationship is possible for up to four generations. (This state is
described by the phrase “the depth of nesting for macro program is up to 4-fold”.
This is called a “multiple nesting call”.)
2004-5-18 7 - 18 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 7 Macro
A macro program call function enables the designated value to be transferred from
the call source program to the call destination program using arguments. (See 7.5.3
for details on arguments.)
M98 (sub program call) (see chapter 10 for details) is a function similar to a macro
program call (G65, G66). The difference between these functions is explained in
section 7.5.3.
[Example2]
G65 P200L2;
and
G65 P200;
G65 P200;
This format specifies that a program between Nos. 200 and 299 is called twice.
2004-5-18 7 - 19 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
Chapter 7 Macro 32A/R2A/20A/S2B
Use G66 to register a modal call and G67 to cancel registration. When a modal call is
registered, the macro program is executed after each axis movement.
[Example1]
7 G66 P10: (1) Register call for program number 10.
G01X10.0Y10.0; (2) Call program number 10 after execution of ‚.
G01X1.0Y1.0; (3) Call program number 10 after execution of ƒ
G67; (4) Cancel registration.
G01X10.0Y10.0; (5) Does not call any program.
G01X1.0Y1.0; (6) Does not call any program.
Program number 10 is called once after (2) is executed. Program number 10 is also
called once after (3) is executed.
Programs are not called after (5) and (6) are executed.
2004-5-18 7 - 20 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 7 Macro
2004-5-18 7 - 21 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
Chapter 7 Macro 32A/R2A/20A/S2B
The table below shows the relationship between addresses with an argument
designated and variables in macro.
Argument designation
A #1
B #2
C #3
D #7
E #8
F #9
G -
H #11
I #4
J #5
K #6
L -
M #13
7 N -
O -
P -
Q #17
R #18
S #19
T #20
U #21
V #22
W #23
X #24
Y #25
Z #26
2004-5-18 7 - 22 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 7 Macro
1. Arguments can be designated for G65, but cannot be designated for M98.
2. Local variables are available for G65 depending on the depth of nesting,
but are not available for M98.
3. Calling depth of nesting for G65 is up to 4-fold.
When combined with that for M98, up to 8-fold are possible.
2004-5-18 7 - 23 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
Chapter 7 Macro 32A/R2A/20A/S2B
#1 #1 #1 #1 #1
. . . . .
. . . . .
#4 #4 3.0 #4 5.0 #4 7.0 #4 9.0
#5 #5 4.0 #5 6.0 #5 8.0 #5 10.0
. . . . .
. . . . .
#9 #9 #9 #9 #9
#11 #11 #11 #11 #11
#13 #13 #13 #13 #13
#17 #17 #17 #17 #17
. . . . .
. . . . .
#26 #26 #26 #26 #26
Common variables : Commonly read and written from any macro level.
#100 ~ #199
#500 ~ #599
2004-5-18 7 - 24 eTCOMNCPR7-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
CHAPTER 8
8.1 Cautions
8.2 Setting
8.3 Z-axis Thermal Displacement Offset
8
8.4 Tool Breakage Detection
8.5 Automatic Tool Length Measurement
8.1 Cautions
We thank you very much for your purchase of Z-axis Measurement System
(hereinafter "the product"). The following sections describe the features, parts
configuration, precautions on use and compatibility between data bank and
machining data of the product and important points in your studying this manual.
Precaution
M406 signal is used for air blow. This signal cannot be used for other purposes.
The tool length measurement device is used fastened on the sub-table. This
decreases available surface area of the table. In installing workpieces and jigs,
exercise due care not to strike the tool length measurement device. Take the same
care in removing these.
Make sure of the Z-axis position. Inaccurate positioning may cause collision with
the tool length measurement device, workpieces and jigs.
After use, remove chips and other debris depositing inside the cover. Particularly
be sure to thoroughly remove cutting oil and the like adhering to the contact area.
Feature
This product precisely detects the Z-axis position of the tool tip. This function
permits three functions: Z-axis thermal displacement offset, tool breakage detection
and automatic tool length measurement. The tool length detector is used for
detection. The following are the brief description of each function.
Parts Configuration
The product includes the following parts. Check for the numbers. If anything is
missing, please contact us at the store where you bought the product or a nearby
branch of our company.
Instruction manual : 1 copy
Tool length measurement device : 1 unit
Relay plate : 1 pc
M10 bolt : 2 pcs
Flat washer : 2 pcs
M5 nut : 2 pcs
Electric wire : 1 pc
Reference tool : 1 pc
Technical Terms
In this manual alarm messages, parameters and operation indications are written in
capitals. In explaining key operation key names are written in capitals as well and
enclosed in [ ] as shown below.
Example for indicating key operation
"Press [RST] key." Since "reset" is the key name, it is enclosed in [ ].
8.2 Setting
There are a number of parameters not included in the Parameter List. The following
explain such parameters.
Procedures
1. Install the tool length measurement device. For the method, refer to page.
8
2. Install the provided reference tool in the tool holder. For the method, refer to
page.
3. Install 2 in the magazine.
4. Register the reference tool in the tool menu and on the magazine screen.
Check that the tool length value is correctly input.
5. Detaching the tool now on the spindle, attach the reference tool thereon.
Press [Z. RTN] key.
6. Adjust position in manual operation. Adjust Z-axis in the increment of 0.001
mm.
X- and Y-axes: Move the reference tool tip to the center of the tool
length measurement device contact face.
Z-axis: Upon completion of X- and Y-axis positioning, adjust Z-
axis as follows.
Z-axis positioning Display the I/O screen (slave). Descend the spindle
until its tip contacts the contact face. Further descend
the spindle until the numeral on the screen changes
from "0" to "1."
INPUT 4 00000000 00000000
7. Press [POS] key. Note down the machine coordinates indicated on the
screen.
8. Raise the z axis. Set the value so that the tool length of the reference tool is
subtracted from the value noted on the parameter.
With this the setting of measurement device installation position is
completed.
EVERY COMMAND
This specifies a series of measurement motion to be performed each time the
command is issued.
WATCHING
With this parameter, measurement motion is not performed each time the command
is issued, because frequent measurement is not necessary when elongation due to
heat on Z-axis is constant. Based on displacement measured, the subsequent
measurement motion is canceled. The premise for WATCHING is that environment
of the machine remains unchanged. When room temperature is radically fluctuating
and when work replacement time is not constant, WATCHING does not correctly
operate. In that case set the thermal measurement motion conditions to EVERY
COMMAND.
In setting these, although the initial set values are used as a rule, values must be
changed in some cases depending on the type of works to be machined and work
replacement time.
Parameters for watching are valid for works of the same type. When the type of
. work is changed, change parameters as well.
Caution
Do not turn machine power off until all setting is completed. Turning power off
before this causes thermal measurement data on the PRODUCTION MONITOR
screen to be lost.
.
Measurement of measuring tool length
. Use the automatic tool length measurement function.
To eliminate the effect of thermal displacement during setting, begin
measurement 1 h or more after power is turned off.
For the method for automatic tool length measurement, refer to Chapter 6.
Do not measure measuring tool length after executing thermal displacement
offset. 8
Programming
Place the command before machining which requires accuracy.
If the tool is left installed on the spindle for over 2 or 3 min under heat generating
in the spindle, heat conducting via the spindle elongates the tool, consequently
deteriorating accuracy. Therefore, write the program such that the reference tool
and the cutting tool requiring accuracy are not installed on the spindle.
Measuring height
Adjust insomuch as possible the measuring height to that at which practical
machining is carried out. For the method, refer to page.
Machining environment
Maintain room temperature as constant as possible.
Maintain air current in the factory as constant as possible.
Do not add coolant during machining. Otherwise coolant temperature changes,
affecting tool elongation.
When machining has to be stopped for over 20 or 30 min, cut coolant off. If the
coolant motor is kept turning without circulating coolant, coolant temperature
abnormally increases.
Firmly fasten jigs so that works do not chatter or deflect. In jigs with the motor,
heat develops in the motor, causing thermal expansion to the jigs. This may
deteriorate accuracy in some cases.
8.3.3 Command
This section describes the commanding method and valid conditions for
commanding. An example program is presented as well.
Effective conditions
The command is valid after M206 is excuted in the memory operation mode until the
next operation is perfoemed or the next command is executed.
Reset
Program completion (including program completion during the execution of the
schedule program)
Setting the memory operation program
M206 and M207 cannot be commanded in the MDI mode.
Command format
Command format
Note:
When the Z axis measurement system is not provided, a [NO Z-AX
MEASUREMENT] error will occur.
When M207 is commanded without M206 being commanded, a [Z
MESRMENT
COMD ER] error will occur.
8
When the NC is TC-31A, TC-32A, TC-R2A.
When the pallet not selected by the parameter is commanded, it is
determined that the thermal measurement is not performed.
When [MEASURING DEVICE] is set to [NO] for the target pallet, a [NO
MEASURING DEVICE] error will occur.
When the pallet is not indexed, a [PALLET POS ERROR] will occur.
DWELL.
Measurement motion.
DWELL.
Spindle orientation.
Measurement motion.
Position compensation.
2004-5-18 8 - 10 eTCOMNCPR8-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
· When the service life of the tool set for thermal measurement has expired and the
tool is replaced, a thermal measurement is performed for the replacement tool.
With power turned off, the position offset amount due to thermal displacement is
reset.
· When memory operation is started with signal output 406 remaining on, alarm
*M406 IS ON occurs.
F0 F1 F2 F3 F4
2004-5-18 8 - 11 eTCOMNCPR8-1
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
Explanation
PRT POS COMP .......... Indicates how much the offset has been achieved until
Z-axis is in the current position.
This screen indicates offset of • |0.061.
PRST NO.OF CMND ....... Represents the number of commands issued by now.
This screen indicates that the command is the third.
MSR FRQ ............... Represents the number of measurements taken.
TL OFST NO. ........... Represents the tool length offset number used for
measurement.
DISPMT AMT ............ Represents displacement measured.
TOTL DISPMT ........... Represents total displacement.
* Measurement data are displayed from here.
Caution:
Turning power off causes all data to be lost.
F0 F1 F2 F3 F4
2004-5-18 8 - 12 eTCOMNCPR8-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
. Move the cursor to [THRM MSR DT], and press the [1] and [E. STA] keys. The
thermal measurement data is output.
. When using the metric system or the imperial system, MSMTNM or MSMTNI is
added to the file name respectively.
Data format.
. A line consists of 35 bytes. Each item is sectioned in a fixed length.
Example setting
The following example shows a case where a cycle time in the program is short when
periodical measurement is wanted.
ITEM Setting 8
THERMAL MEASUREMENT MOTION COND 1 (WATCHING)
Z-AXISMACHINIGACCURACY 0.999
THERMAL WATCH DISPLACMT AMNT 0.999
NUMBER OF THERMAL WATCHING 1
NO.OF THERMAL WATCHING CANCEL 5
INTIAL SET NO.OF THERMAL MSMT 1
2004-5-18 8 - 13 eTCOMNCPR8-1
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
Alarm occurrence
. *TRM DISPMT AMT OVR occurs at the beginning of machining after turning
power on.
The cause is considered unstable displacement at the beginning of machining.
Increase INITIAL SET NO. OF THERMAL MSMT.
*TRM DISPMT AMT OVR occurs not only at the beginning of machining after
turning power on, but also at other occasions.
. Increase NUMBER OF THERMAL WATCHING and decrease THERMAL
WATCH DISPLACMT AMNT.
With larger NUMBER OF THERMAL WATCHING, measurement begins only
after displacement stabilizes better than otherwise. This is because past
measurement data are referred to the number of times equal to the number of
thermal watching settings.
THERMAL WATCH DISPLACMT AMNT provides a criterion by which it is
judged whether or not measurement can be canceled. With smaller THERMAL
WATCH DISPLACMT AMNT, measurement is canceled only after thermal
displacement stabilizes better than otherwise.
Should *TRM DISPMT AMT OVR occurs even after these operations, set
THERMAL MEASUREMENT MOTION COND. to EVERY COMMAND.
2004-5-18 8 - 14 eTCOMNCPR8-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
( )Indicats MSR.FRQ
2004-5-18 8 - 15 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
(1) INITIAL SET NO. OF THER•~MAL MSMT is 10. Measurements are taken
unconditionally until 10 commands are issued. Watching frequency is
initially set to 1. For the meaning of watching frequency, refer to the section
describing parameters.
8 updated.
If the resulting value of subtraction is within THERMAL WATCH
DISPLACMT AMNT, since the NUMBER OF THERMAL WATCHING is 2,
subtract total displacement A obtained three measurements before from total
displacement A obtained a measurement before.
The resulting value is checked if it is within THERMAL WATCH
DISPLACMT AMNT.
If it is within, since the difference between two successive displacements A
and another A is within THERMAL WATCH DISPLACMT AMNT, thermal
displacement is judged stabler than before, consequently setting watching
frequency to 2.
Thus, cancellation is executed once in every two measurements from the
subsequent measurement onwards. This process can be summarized as
follows.
Judgment is made to see if watching frequency can be made twice larger than
the current setting. If judged possible, the watching frequency is updated
and cancellation takes place at that frequency. Based on in this judgment is
the difference between total displacement A at the current measurement and
total displacement A obtained (watching frequency•~2) measurements
before, which is checked if it is within THERMAL DISPLACMT AMNT and
if it remains so at all measurements taken the number of times equal to the
NUMBER OF THERMAL WATCHING.
2004-5-18 8 - 16 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
(3) Since watching frequency is 2, judgment is made to see if the frequency can
be made 4 (2×2). At the 18th command specified conditions are met, making
it possible to update watching frequency to 4.
(4) Since watching frequency is 4, judgment is made to see if the frequency can
be made 8 (4×2). At the 30th command specified conditions are met, making
it possible to update watching frequency to 8.
(5) Since watching frequency is 8, judgment is made to see if the frequency can
be made 16 (8×2). At the 54th command specified conditions are met, making
it possible to update watchingfrequency. However, since NO. OF
THERMAL WATCHING CANCEL is 10, the watching frequency is set to 10.
(6) Since watching frequency is 10, judgment is made to see if the frequency can
be made 20 (10×2). Since the NO. OF THERMAL WATCHING CANCEL is
10, it is impossible to have 20 for watching frequency. Measured
displacement registers -0.011 at the 84th command. This value falls between
Z-axis MACHINING ACCURACY and THERMAL WATCH DISPLACMT
AMNT, which suggests that thermal displacement begins to lose stability.
Hence, the watching frequency should be updated to 5 (10÷2).
(7) Since watching frequency is 5, judgment is made to see if the frequency can
be made 10 (5×2). At the 104th command specified conditions are met,
making it possible to update watching frequency to 10.
8
(8) Displacement registers 0.021 at the 124th command. Since this value exceeds
the Z-axis machining accuracy, alarm *TRM DISPMT AMT OVR occurs, stop
ping the machine.
2004-5-18 8 - 17 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
Flowchart
Start
Program end?
No
Measurement Yes
command?
No
Operation hold time Yes
Execute a machining data >
Thermal watching
stop time?
Initializethermal
measurement conditions
8 No
End
2004-5-18 8 - 18 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
Flowchart
Measurement
result (displacement) Yes
>
THERMAL WATCH
DISPLACMT AMNT
No
Judging pointer
Yes
Watching frequency
Current no. of commands issued
1
No
Judgment to be made at the Yes
frequency equal to NUMBER OF
THERMAL WATHING
completed
Measurement result
No Yes
(displacement)
>
Z-axis MACHINING
ACCURACY
From judgment pointer
Total thermal displacement in Yes
the section of 2 watching frequency No
<=
THERMAL WATCH
DISPLACMT AMNT Watching frequency
Watching frequency/2
8
When watching frequency/2
No is less than 1, assume it as 1.
When the value is not an
Watching frequency Watching frequency integer, discard decimals.
updating unallowable updating allowable
Judging pointer
No 2* watching frequency
Watching frequency is clamped within
the number of thermal watching cancel.
Watching frequency -1
2004-5-18 8 - 19 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
2004-5-18 8 - 20 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
This section describes an example for the Z- axis thermal displacement offset
subprogram.
Spindle rotation
DWELL.
Measurement motion.
8
Push in the Z axis direction (to turn the detectin signal ON)
2004-5-18 8 - 21 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
Supplementaryexplanation
If [RST] key is pressed after alarm *TOOL BROKEN ERROR occurs, the service life
setting of the broken tool is reset to zero (0).
In machines provided with the Z-axis measurement system, when signal output 406
is on, memory operation cannot be started. If memory operation is started
nevertheless, alarm *M406 IS ON occurs.
2004-5-18 8 - 22 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
8.5.1 Command
Commandingmethod
Automatic measurement of tool length: command this on the screen.
First display the MDI operation screen in the MDI operation mode.
F0 F1 F2 F3 F4
2004-5-18 8 - 23 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
F0 F1 F2 F3 F4
Setting method
· Tool
A single tool or more than one tools can be measured. Set the pot number for the
tool(s) to be measured.
Ex:
When the setting is "1": The tool in pot 1 is measured.
8 When the setting is "1/10": Tools in pot from 1 to 10 are measured successively
in the order that the pot number increases.
When the setting is "2/1": Tools in pot from 2 to 1 are measured successively
in the order that the pot number increases. Since
this case begins with "2," measurement ends with "1."
Measurements are taken of those tools only which are registered in magazines.
When measuring more than one tools, the measuring position is all the same.
· Measuring position
Reference
Once these values are set, they remain on the screen even after operation is
completed. To clear the screen, press [DELETE].
2004-5-18 8 - 24 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 8 Z axis measurement sysytem
8.5.2 Operation
This section explains a series of operations for automatic measurement of tool
length. The following show operation indications to appear on the screen and the
description of the operations indicated.
Returns the Z axis to its home position.
Spindle orientation.
Spindle orientation.
Spindle orientation.
2004-5-18 8 - 25 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
Chapter 8 Z axis measurement sysytem 32A/R2A/20A/S2B
Supplementary explanation
2004-5-18 8 - 26 eTCOMNCPR8-2
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 9 Origin measurement
CHAPTER 9
ORIGIN MEASUREMENT
Origin measurement
Origin measuring functions
1. G121 -- X and Y coordinates of a corner
+Z
+Y
+X
+Z
+Y
+X
+Z
9
+Y
+X
+Z
+Y
+X
+Z
+Y
+X
+Z
+Y
+X
+Z
+Y
+X
9
+Z
+Y
+X
Item Description
PROBE OFFSET VALUE 1 Sets the difference between the stylus tip ball center and the spindle center
when the detection signal is turned on while the touch probe is attached to
PROBE OFFSET VALUE 2 the spindle.
X component and Y component of the difference are prob offset 1 and 2
respectively.
To set the difference, carry out 6.PROBE OFFSET(G121/G129 ) of automatic
centering.
PROBE OFFSET VALUE 3 Sets the difference of the center of the circle obtained by the three-point
measurement(G124,G125) and the actual circle center.
PROBE OFFSET VALUE 4
X component and Y component of the difference are probe offset 3 and 4
respectively.
To set the difference, carry out 7.PROBE OFFSET(G124/G125) of automatic
centering.
Item Description
(1:TYPE2)
1) It is checked that the detection signal is off.
9
2) The probe moves in the specified axis direction at the speed preset to
MEASURING SPEED 2.
3) When the detection signal has turned on, the axis stops traveling.
4) The probe moves forward for the RETURN DISTANCE AFT MEASURNG.
5) It is checked that the detection signal is off.
Item Description
Safety rate
Setting range:1 5000 mm/min
0.1 196.8 inch/min
MEASURINGSPEED2 Sets the second measuring speed for MEASURING MOTION(TYPE1) and the
measuring speed for MEASURING MOTION(TYPE2).
STOPDISTANCE Sets the distance between the probe end face at the MSRNG measurement
BEFORE start point and the estimated workpiece surface. When measuring has been
skipped for the values preset to STOP DISTANCE BEFORE MSRING and
MEASURING TRAVEL LMT DISTANCE , SENSOR SIGNAL OFF alarm will
occur.
Setting range:0.000~99.999mm
0.0000~9.9999inch
Item Description
MEASURINGTRAVELLMT Sets the amount of overtravel when the measuring skip has exceeded the
DISTANCE estimated value(program command value).
Setting range:0.000~99.999mm
0.0000~9.9999inch
MEASUREMENT When the difference between the measured value and the estimated value
TOLERANCE 1 (program command value) has exceeded the preset value, MEASD VAL
ERR LRG(1) will occur. When 0 is set, the value error check is not carried
out.
Setting range:0.000~99.999 mm
0.0000~9.9999 inch
MEASUREMENT If the difference between the current measurement result and the previous
TOLERANCE 2 measurement result exceeds the setting range, MEASD VAL ERR LRG(2)
occurs. However, the difference is not checked in the following cases:
*Zero (0) is set.
*1st origin measurement is performed after the power is turned on (1st
measurement for each of measurement results 1 to 4).
*No previous measurement result exists.
*Current G code differs from the previous G code.
Setting range:0.000~99.999mm
0.0000~9.9999inch
MEASURNG Sets the amount that the measuring probe retracts where it has contacted
RETURN DISTANCE AFT the non measuring object during automatic measurement.
9
*RETURN DISTANCE AFT MEASURNG = Lb (mm)
*SKIP FEED TIME CONSTANT 1 = t (msec)
*MEASURING SPEED 2 = F2 (mm/min)
Setting range:0.000~99.999mm
0.0000~9.9999inch
(Note)
·The setting values of MEASURING SPEED, RETURN DISTANCE AFT
MEASURNG and so on differ according to the probe mounted. Consult the probe
maker and set the values.
·During origin measurement,the speed that the probe moves to the measurement
start point or returns from the measured point conforms to the modal of G00 and
G01.
G00... Rapid traverse rate
G01... F command value
G02/G03/G102/G103/G202/G203... IN ARC MODE alarm will occur
·Perform origin measurement with the tool length offset function ON or the probe
may be damaged.
·Check that the chips are not stuck to the measuring probe tip and the surface of
the workpiece to be measured. We shall not bear responsibility for the decreased
measurement accuracy due to the above cause.
·The mode cannot be changed during origin measurement.
If mode selection is attempted, DURING ORIGIN MEASURNG alarm will occur.
·To prevent the probe from being damaged, press the [SINGL] key for the first
origin measurement and check the condition every single operation.
+Z
+Y
+X
+Z
+Y
+X
Note 1)
When either “I” or “J” is not commanded , when “I” is zero (o) , or
when “J” is zero (0), an alarm occurs. 9
Note 2)
When "K" or "L" is commanded, the tilt angle (the angle used for
coordinate rotation) is calculated should the work piece become tilted.
An [ZERO MESR ADRS ERR] error will occur when both "K" and "L" are
commanded or zero (0) is commanded.
Note 3)
Before executing G121/ G129, execute PROBE OFFSET VALUE (G121/
G129) of CENTER ALIGNMENT and set the offset value to PROBE
OFFSET VALUE 1 and PROBE OFFSET VALUE 2 of parameter 7.
Measurment pattern
1. The spindle is oriented. The probe moves to the first measurement start point of
the X and Y axes.
2. The probe moves to the Z axis measurement height.
3. The first measurement is carried out (Position "J").
4. Measured by position "L" when "L" is commanded
5. The probe moves to the Z axis return point.
6. The spindle is oriented. The probe moves to the second measurement start
point of the X and Y axes.
7. The probe moves to the Z axis measurement height.
8. The second measurement is carried out.
9. Measured by position "K" when "K" is commanded
10. The probe moves to the Z axis return point.
I and J symbols, spindle orientation, and direction of the measuring skip movement.
+Y
1ST
J +X
I
1ST ... spindle 0° , in the +X direction
2ND
2ND... spindle 0° , in the +Y direction
9
2ND
+Y
I
+X
J
1ST
1ST ... spindle 0° , in the +X direction
2ND ... spindle 180° , in the -Y direction
+Y
1ST
+X
J
2004-5-18 9 - 10 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 9 Origin measurement
2ND
+Y
I
J
+X
1ST
Measurment pattern
1. The spindle is oriented. The probe moves to the first measurement start point of
the X and Y axes.
2. The probe moves to the Z axis measurement height.
3. The first measurement is carried out (Position "J").
4. Measured by position "L" when "L" is commanded
5. The spindle is oriented. The probe moves to the second measurement start point
of the X and Y axes.
6. The second measurement is carried out.
7. Measured by position "K" when "K" is commanded
8. The probe moves to the Z axis return point.
1ST +Y
9
2ND +X
+Y
2ND +X
2004-5-18 9 - 11 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
Chapter 9 Origin measurement 32A/R2A/20A/S2B
1ST +Y
2ND
J
I +X
+Y
I
2ND J +X
1ST ... spindle 0° , in the +X direction
1ST
2ND... spindle 0° , in the +Y direction
9.3.2 Parallel
groove G122 X_ Y_ I_(J_) D_ Z_ R_ Q_
Command format
boss G123 X_ Y_ I_(J_) D_ Z_ R_ Q_
+Z
+Y
9 +X
+Z
+Y
+X
2004-5-18 9 - 12 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 9 Origin measurement
Groove
Measurment pattern
1. Spindle orientation 0 .
The probe moves to the first measurement start point of the X and Y axes.
2. The probe moves to the Z axis measurement height.
3. The first measurement is carried out .
4. Spindle orientation 18 0. The probe moves to the second measurement start
point of the X and Y axes.
5. The second measurement is carried out.
6. The probe moves to the Z axis return point.
a) When I is commanded
+Y
I
+X
2nd 1st
b)When J is commanded
+Y
+X
9
1st
2nd
2004-5-18 9 - 13 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
Chapter 9 Origin measurement 32A/R2A/20A/S2B
Boss
Measurment pattern
1. Spindle orientation 180 . The probe moves to the first measurement start point of
the X and Y axes.
2. The probe moves to the Z axis measurement height.
3. The first measurement is carried out.
4. The probe moves to the Z axis return point.
5. Spindle orientation 0 . The probe moves to the second measurement start point
of the X and Y axes.
6. The probe moves to the Z axis measurement height.
7. The second measurement is carried out.
8.The probe moves to the Z axis return point.
a) When I is commanded
+Y
+X
2nd 1st
b) When J is commanded
9 +Y
1st
+X
2nd
2004-5-18 9 - 14 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 9 Origin measurement
9.3.3 Circle
The circle center is calculated by measuring three points.
hole G124 X_ Y_ I_ D_Z_ R_Q_
Command format
boss G125 X_ Y_ I_ D_ Z_ R_Q_
+Z
+Y
+X
+Z
+Y 9
+X
2004-5-18 9 - 15 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
Chapter 9 Origin measurement 32A/R2A/20A/S2B
Measurment pattern
1ST
2ND 3RD
9
Boss Three-point measurement
1. Spindle orientation 180 . The probe moves to the first measurement start point
of the X and Y axes.
2. The probe moves to the Z axis measurement height.
3. The first measurement is carried out (in the -Y direction ).
4. The probe moves to the Z axis return point.
5. Spindle orientation 180 . The probe moves to the second measurement start
point of the X and Y axes.
6. The probe moves to the Z axis measurement height.
7. The second measurement is carried out (in the direction of 120 from the first
point).
8. The probe moves to the Z axis return point.
9. Spindle orientation 180 . The probe moves to the third measurement start point
of the X and Y axes.
10. The probe moves to the Z axis measurement height.
11. The third measurement is carried out (in the direction of 240 from the first
point).
12. The probe moves to the Z axis return point.
2004-5-18 9 - 16 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 9 Origin measurement
1ST
3RD
2ND
3RD
2ND 1ST
4TH
2004-5-18 9 - 17 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
Chapter 9 Origin measurement 32A/R2A/20A/S2B
3RD
9
2ND 1ST
4TH
2004-5-18 9 - 18 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 9 Origin measurement
9.3.4 Z LEVEL
Measurment pattern
1. Spindle orientation 0 . The probe moves to the first measurement start point of
the X and Y axes.
2. The probe moves to the Z axis measurement height.
3. The first measurement is carried out (in the -Z direction ).
9
2004-5-18 9 - 19 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
Chapter 9 Origin measurement 32A/R2A/20A/S2B
measyrement
position
G120 Xa Yb Zc
When [G120 Xa, Yb, and Zc] is commanded, the probe moves to point P.
When the measurement data does not exist, NO MEASRUING DATA alarm will
occur.
F0 F1 F2 F3 F4
2004-5-18 9 - 20 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 9 Origin measurement
Press the [F2] key and the previous measurement results are displayed.
F0 F1 F2 F3 F4
e.g. Assume that the value measured by measurement No. 2 is (X, Y) = (-80,
-120) in the machine coordinate system. To assign this position to (-40,
-40) of the absolute coordinate system G55, command [G10, L99 P2 X-40
Y-40 Q2].
2004-5-18 9 - 21 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
Chapter 9 Origin measurement 32A/R2A/20A/S2B
machine
coordinate
-120 -80 system
-40
G55 -40
-40
-80
Restart
9 When G121 to G129 are commanded during restarting, RESTART ERROR will occur.
2004-5-18 9 - 22 eTCOMNCPR9-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 10 Subprogram function
CHAPTER 10
SUBPROGRAM FUNCTION
10
2004-5-18 10 - 1 eTCOMNCPR10-1
TC-31A/31AN/22A/S2A
Chapter 10 Subprogram function 32A/R2A/20A/S2B
M99; M99;
M99 ;
2004-5-18 10 - 2 eTCOMNCPR10-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 10 Subprogram function
When optional
block skip is off; When optional
block skip is on;
/N0100 M99;
N0200 M30;
If the programming is done as shown above, and if the optional block skip is OFF, the
control returns to the start of the main program and executes the program repeatedly up
to N0100.
If the optional block skip is turned ON, the N0100 block is omitted and control goes to
the next block.
2004-5-18 10 - 3 eTCOMNCPR10-1
TC-31A/31AN/22A/S2A
Chapter 10 Subprogram function 32A/R2A/20A/S2B
P : Sequence No.
M98 P_ ;
G01 Z_ ;
N0001 ;
M99 P0001 ;
N0001 ;
M99 P0001 ;
2004-5-18 10 - 4 eTCOMNCPR10-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 11 Feed function
CHAPTER 11
FEED FUNCTION
11
2004-5-18 11 - 1 eTCOMNCPR11-1
TC-31A/31AN/22A/S2A
Chapter 11 Feed function 32A/R2A/20A/S2B
11
2004-5-18 11 - 2 eTCOMNCPR11-1
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
CHAPTER 12
S,T,M FUNCTION
12. 1 S function
12. 2 T function
12. 3 M function
12
2005-06-07 12 - 1 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
12.1 S function
The S code is used for specifying the spindle speed.
The spindle speed is specified by the address S and a following within 5-digit
number.
(Note 1)
The S command is not cancelled by the NC reset function, but it
becomes zero when the power is turned ON.
(Note 2)
The S command should be always given before commanding the
spindle rotation (M03,M04)
(Note 3)
When the S command is in the same block as that of axis movement,
the S command becomes effective at the same time the axis
movement starts.
12.2 T function
When commanded, the magazine rotates to the corresponding pot.
(TC-31A,22A,32A,20A)
Three commanded forms are provided as below.
Commanded by tool No. after “T” (T1-T99), and the pot with the corresponding tool
attached is Indexed. (TC-31A,22A,32A,20A)
12 12.2.2 Commanding by pot No.(magazine No.)
Commanding by pot No.
Commanded the pot number (magazine number) using the two digit numerical values
after "T1", and the pot with the corresponding tool attached is indexed. (T101-T 1nn
,” nn” indicates the maximum numbers of the attached pots) (TC-31A,22A,32A,20A)
2005-06-07 12 - 2 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
12.3 M function
The M codes are used for commanding ON/OFF of various solenoids of the
machine.
It is commanded by address M and a following within 3-digit number.
When the M command is in the same block as that of the axis movement, the motion
is devided following three types.
M03 Spindle CW
simultaneous modal
M05* Spindle stop
The code with * is already set when the power is turned on.
2005-06-07 12 - 3 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
M403* M402 ON
M406 M406 ON
after
M409* M408 OFF (Oil hole Off)
simultaneous modal
M458 Coolant blow On (Coolant blow)
2005-06-07 12 - 4 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
The code with * is already set when the power is turned on.
12
2005-06-07 12 - 5 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
2005-06-07 12 - 6 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
The code with * is already set when the power is turned on. 12
2005-06-07 12 - 7 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
12
M468 Waiting for M468 signal ON
2005-06-07 12 - 8 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
The code with is already set when the power is turned on.
2005-06-07 12 - 9 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
· Using M401 command turns off the chip shower when the time set for [CHIP
SHOWER DRAIN TIME] (user parameter - switch 1) has elapsed.
ATC position
(2) (4)
R origin position
(1) (5)
Single block stop point
2005-06-07 12 - 10 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
T _ _ : Tool number.
T1 : Pot number
T9 : Group number
X, Y A,B Target value when moving the X , Y ,A, and Baxes at in rapid feed
simultaneously with tool change motion.
Z : The target value of movement‡D in rapid feed.
R : Return position before tool change motion
(operatedated with tool length compensation applied)
L : Specify the tool number, pot (magazine) number, and group number
after “L”. The pot with the corresponding tool attached is indexed by
operation (3) after ATC. (Next tool preparation)
Operations
(1)Tool moves to Z axis point "R" while performing O-degree spindle orientation.
(2)Tool moves to Z-axis ATC origin while X,Y,A,and Baxes move to commanded
value.
When "T"is commanded tool moves to Z-axis ATCorigin and magazine swivels.
(3)Arm swivels to change tool.
Tool change motion differs depending on setting on [MAGAZINE TOOL]screen.
See section on "Tool Change Motion"for details.
(4)Tool moves to Z-axis point"R".
(5)Tool moves to X-axis commanded position.
Caution
When performing cycle operation,tool moves in cutting mode
between operations (1) and (2) and operrations (4) and (5).
All data other than M06 can be omitted. However,code “T”must be commanded
once by operator before M06 is commanded.
· Tool offset is canceled when M06 is commanded. Further, tool length
compensation is canceled from operation (2).
· When tool offset (G41 or G42)and X and Y axes movement are commanded to
block M06, tool offset begins when X and Yaxes movement 2 commences.
12
Start-up is performed in format 1, regardless of parameters.
· When tool offset is commanded to block M06 ,tool offset becomes valid from
operation (4) .
· When M06 commanded is while tool length compensation (G49)is canceled,
operation (1),is performed subject to [ATC REFERRENCE] selection for user
parameter.
· Alarm appears when axis A or B is commanded while optional A and B axis are
not in use.
· When point "R” commanded position( 4 )is lower than Zaxis command position
(5), tool moves to Z-axis commanded position , and operation (5) is not performed.
2005-06-07 12 - 11 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
When changing from large tool to large tool, arm swivels at low speed.
When changing from standard tool to standard tool, arm swivels at high speed.
2005-06-07 12 - 12 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
Notes
1) If empty pot for large tool is not available when change from large
tool to standard tool is attempted.[*NO EMPTY POT] alarm appears.
2) If empty pot for large tool is not available when change from
standard tool to large tool is attempted.[*NO EMPTY POT] alarm
appears.
The next tool preparation sequence differs depending on the type of tool set on the
magazine tool screen.
Note 1) When the next tool is changed from a large tool to a standard tool and there
is no empty pot for a large tool, the [NO EMPTY POT] error occurs.
Note 2) When the next tool is changed from a standard tool to a large tool and there
is no empty pot for a standard tool, the [NO EMPTY POT] error occurs.
2005-06-07 12 - 13 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
(3)
ATC position
(2) (4)
Z origin position
(1) (5)
Single block stop point
12
2005-06-07 12 - 14 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
Operations
(1) Tool moves to the Z-axis point and spindle orientation are executed at the same
time.
(2) Movement to the ATC origin position.
When "X, Y, A or B" is commanded in the same block, the motions are done at
the same time.
(3) The magazine indexes the tool as commanded by the address "T".
(4) Movement to the Z-axis origin position.
(5) Movement to the commanded position when Z-axis is commanded.
When the spindle command (M3 group) is given, the motion is done at the same
time.
. When performing cycle operation, tool moves in cutting mode between operations
(1) and (2)and operations (4) and (5).
Caution
. All data other than M06 can be omitted. However, code "T" must be
commanded
once by operator before M06 is commanded.
. The tool length offset and the tool dia offset are canceled when M06
is commanded.
When tool offset (G41 or G42) and X and Y axes movement are
commanded to
block M06, tool offset begins when X and Y axes movement (2)
commences.
Start-up is performed in format 1, regardless of parameters.
. When tool offset is commanded to block M06, tool offset becomes
valid from operation (5).
. Alarm appears when the other code M is commanded to block M06.
. Alarm appears when axis A or B is commanded while optional A and
B axes are not in use.
12
2005-06-07 12 - 15 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
(3)(4)
ATC position
(2) (5)
R Point
(1) (7)
Single block stop point
X origin X ATC
position position
(2) (3)
(4)
(6) (5)
Y ATC
position
2005-06-07 12 - 16 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
Operations
(1) Tool moves to the Z-axis point "R" while performing 0-degree spindle
orientation. When "T" is commanded, magazine swivels.
(2) Tool movement to theZ-axis ATC origin, to the X axis origin point and to Y axis
ATC position, A, B axes movement to the the commanded value and also maga
zine cover opening occur simultaneously.
(3) Tool moves to theX-axis ATC position.
(4) Arm swivels to change tool.
Tool change motion differs depending on setting on [MAGAZINE TOOL]
screen. Refer to the "Tool Change Motion" for detailes.
(5) Tool movement to the X axis orgin point and Z axis point "R" and magazine
cover closing occurs stimultaneously.
(6) XY axes moves to the commanded value.
(7) Tool moves to Z-axis commanded position.
Caution
· When performing cycle operation, tool moves in cutting mode
between operations (1)and (6). And tool moves in position check
mode.
For XY positioning at operation (2) and (3) ( from X:origin Y: ATC to
X axis positioning (ATC position)) ,tool moves in cutting mode when Y
axis positions at the ATC position before X axis does.
· When [RESET] key or [STOP SWITCH] key is pressed at operations
(2), machine stops after Z axis movement to ATC origin point.
For X, Y, A, and B axes movement, machine stops immediately.
· When [RESET] key or [STOP SWITCH] key is pressed between
operations (3) and (5) , machine stops after motion (5) is completed.
For the operation (2), A, and B axes movement, machine stops
immediately.
· Machine does not stop if single block occurs between operations
(2) and (6) .
· For operation (5), machine goes to the next opeation after closing the
magazine cover witho6ut checking if the magazine cover is closed.
· Modes can not be switched between operation (1) and (6).
· All data other than M06 can be omitted. However, code "T" must be
commanded once by operator before M06 is commanded. 12
· Tool offset is canceled when M06 is commanded. Further, tool
length compensation is canceled from operation (2).
· When tool offset (G41 or G42) and X and Y axes movement are
commanded to block M06, tool offset begins when X and Y axes
movement (6) commences.
Start-up is performed in format 1, regardless of6 parameters.
· When tool offset is commanded to block M06, tool offset becomes
valid from operation (5) .
2005-06-07 12 - 17 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
12 When ((4) arm swivels) changing from large tool to large tool, arm swivels at low
speed.
When ((4) arm swivels) changing from standard tool to standard tool, arm swivels at
high speed.
2005-06-07 12 - 18 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
For operation (2), empty pot is indexed appropriately for large tool and standard
tool.
Arm swivels ((4) or (8)) at low speed when large tool is to be changed, and at high
speed when standard tool is to be changed.
Notes
1) If empty pot for large tool is not available when change from large
tool to standard tool is attempted, [*NO EMPTY POT] alarm appears.
2) If empty pot for standard tool is not available when change from
standard tool to large tool is attempted, [*NO EMPTY POT] alarm
appears.
Next tool preparation is performed after the arm has swiveled or the pot has risen after
the arm swivels in the ATC sequence.
When ATC is not performed, only next tool preparation is performed.
Next tool preparation is not performed when the next tool is already indexed.
The next tool preparation sequence differs depending on the type of tool set on the 12
magazine tool screen.
2005-06-07 12 - 19 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
Note 1) When the next tool is changed from a large tool to a standard tool and there
is no empty pot for a large tool, the [NO EMPTY POT] error occurs.
Note 2) When the next tool is changed from a standard tool to a large tool and there
is no empty pot for a standard tool, the [NO EMPTY POT] error occurs.
12
2005-06-07 12 - 20 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
(2)
Z ATC
position
(3)
R point
(1)
2005-06-07 12 - 21 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
Operations
(1) The tool moves to Z ATC position (50 mm above “R” point or Z origin) while
performing 0-degree spindle orientation.
When the tool specified by “T” is indexed in the magazine, the pot lowers.
It starts lowering when the Z-axis has passed the position set for
[POT LOWERING START POS.] (user parameter).
(2) When the tool specified by “T” is not indexed in the magazine, the magazine
swivels and then the pot lowers.
When the specified tool is indexed in the magazine and the pot is at the lower limit,
the arm swivels and then the pot rises.
X, Y, A, and B axes also move to the specified positions.
See the ATC section for details of ATC sequence.
(3) The tool moves to the specified Z-axis position.
Precautions
· The pot, magazine, and arm do not stop even when the [RST] key or the [STOP]
button is pressed during operations 1) to 3) above. The X, Y, Z, A, and B axes stop
immediately.
· All data other than M06 can be omitted. However, a T code must be used at least
once before M06 is used.
· When M06 is used, tool diameter compensation is canceled. Tool length
compensation is also canceled in operation 3).
· When the tool diameter compensation (G41 or G42) and XY axes movement
commands are used for the M06 block, tool diameter compensation begins in format
1 when X and Y axes movement 2) commences, regardless of the current parameters.
· The tool length compensation command is used for the M06 block, tool length
compensation become valid from operation 3).
· The Z-axis moves as described below during operation 1).
(1) When R point is specified for M06 block
The Z-axis moves to the position where the tool tip is “R point + 50 mm” in
accordance with the tool length compensation.
The larger tool compensation value before or after change is applied.
When tool length compensation is not applied, the setting for
[ATC REFERENCE TOOL LENGTH] (user parameter) is used.
(2) When R point is not specified for M06 block
12 The tool rises to the Z origin, regardless of the tool length.
· When the Z-axis movement and tool length compensation commands are not used
for the M06 block, operation 3) is performed in accordance with the setting for
[ATC REFERENCE TOOL LENGTH] (user parameter).
· An alarm occurs when an M code other than a spindle command is used for the
M06 block.
An alarm occurs when the A- or B-axis command is used although the optional A-
or B-axis is not installed.
· The target position the pot lowers to is determined by the distance between
[ATC RETURN HEIGHT] and [POT LOWERING START POSITION]
(user parameters).
2005-06-07 12 - 22 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
ATC
(1) Magazine swivels
(2) Pot lowers
(3) Arm swivels
(4) Pot rises
ATC ends when the above sequence is completed.
Operation (3) (arm swivels) is performed at high speed.
When the tool breakage detection command is specified for tools in the magazine,
detection is performed after operation (4) (pot rises).
2005-06-07 12 - 23 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
When the M241 command is given, 10% of the maximum time constant is adapted
when tapping.
When the M242 command is given, 20% of the maximum time constant is adapted
when tapping.
12 When the M250 command is given, 100% of the maximum time constant is adapted
when tapping.
2005-06-07 12 - 24 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
Optimum M code
Optimum M code
Optimum M code
Optimum M code
(Note 1)
When a tap time constant command taht will become shorter than the
optimum time constant is given, the 'TOO SMALL TIME CONSTANT'
alarm is generated and the tool moves using the maximum time
constant.
(Note 2)
In tapping high-speed return mode, the tool moves using the 12
maximum time constant. However, tool returns during stepping in the
same conditions as for advancing.
(Note 3)
In dry run mode, the tool moves using the maximum time constant.
2005-06-07 12 - 25 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
This command is valid when C is set to operate using the mashine paramater and
the clamp merchanism is set to [1:Type2]or[2:Type3].
An alarm will occur in other cases.
This command is valid when A is set to operate using the mashine paramater and
the clamp merchanism is set to [1:Type2]or[2:Type3].
An alarm will occur in other cases.
2005-06-07 12 - 26 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 12 S,T,M function
12
2005-06-07 12 - 27 eTCOMNCPR12
TC-31A/31AN/22A/S2A
Chapter 12 S,T,M function 32A/R2A/20A/S2B
12
2005-06-07 12 - 28 eTCOMNCPR12
TC-31A/31AN/22A/S2A
32A/R2A/20A/S2B Chapter 13 Option
CHAPTER 13
OPTION
13
2004-5-18 13 - 1 eTCOMNCPR13-1
TC-31A/31AN/22A/S2A
Chapter 13 Option 32A/R2A/20A/S2B
13
2004-5-18 13 - 2 eTCOMNCPR13-1
eTCOMNCPROKU
693308001
0706(1)
eTCOMNCPROKU