0% found this document useful (0 votes)
163 views

Brother TC s2d Programming Manualpdf

This document is a programming manual for several tapping center models including the TC-32B, 22B, S2C, 31B, 32BN, S2Cz, S2D, and R2B. It provides an introduction and overview of the manual's contents and structure. It explains how to use the manual, which includes general descriptions, alarms, operation procedures, screens, and illustrations. It also lists the table of contents for the chapters on program composition, coordinate commands, and preparation functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views

Brother TC s2d Programming Manualpdf

This document is a programming manual for several tapping center models including the TC-32B, 22B, S2C, 31B, 32BN, S2Cz, S2D, and R2B. It provides an introduction and overview of the manual's contents and structure. It explains how to use the manual, which includes general descriptions, alarms, operation procedures, screens, and illustrations. It also lists the table of contents for the chapters on program composition, coordinate commands, and preparation functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 56

TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Title

TC-32B - NC
TC-22B
TC-22B - NC
TC-S2C - NC
TC-31B
TC-31B - NC
TC-32B
TC-32BN-
N- NC
TC-S2Cz- NC
TC-S2D - NC
TC-R2B - NC
PROGRAMMING
MANUAL

Please
Please read this manual carefully b efore startin g operation .
Title TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

This manual describes the NC-Programming


NC-Programming of the TC-32B, 22B, S2C, 31B, 32BN, S2Cz, S2D
and R2B.
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.

The relation between the manuals is as follows.


- OPERATION MANUAL
This manual describes the operations of the machine.

- INSTALLATION MANUAL
This manual describes the installation of the machine.

- PROGRAMMING MANUAL
This manual describes the programming of the machine.

Keep this manual for future reference.


Please include this manual when reselling this product.
When this manual or labels are lost or damaged, please replace them (charged) from your nearest
agency.
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B 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.
dealer.
Title TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

HOW TO USE
USE THE MANUAL

This Instruction Manual consists of the following elements:


(1) General description Is an outline of the description given in the section.
(2)  Al arm Is a alert given against a danger which may cause serious
damage or death to human being or may damage the machine.
The hazards are explained in this order:
degree of danger,
subject of danger,
expected damage,
 preventive measure,
measure,
(3) Operation procedure Is a procedure of activating a function.
(4) Screen Is given to describe important points of a procedure given.

NOTE
NOTE:: This screen is only a representation
representation of t he information
displayed on the actual screen and therefore differs somewhat
from the actual screen
screen layout and screen fonts.
(5) Illustration Is a sketch, figure,
figure, view, etc. indicating dimensions,
dimensions, position or zone, given
in the points where it is necessary to provide complementary information to the text
description.

(2) Alarm (3) Operation procedure


(1) General description

1.3 Pr ec
ec au
au ti
ti on
on s o f f ir
ir st
st 1.3.1Before starting operation

Before starting operation careful to read bellow.

WARNING
(1)Turn off the main power breaker handle on
the control box door. Never touch the primary side
Dropping a heavy object onto
 power source or the terminal of the main power
your foot may fracture your foot  breaker, as these have high voltage
voltage applied.
 bones. (2)Put up a signboard which says' Under Maintenance
(3)Never allow people to approach the machine,
When lifting heavy objects,
 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

(5) Illustration (4) Screen


TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Contents

Chapter 1 Program Composi tion 1-1


1.1 Types and com pos ition of progr am ----------------------------------- 1-2
1.2 Compo si ti on of bl ock ------------------------------------------------------ 1-2
1.3 Compo si ti on of wo rd ------------------------------------------------------- 1-3
1.4 Numeri cal valu es --------------------------------------------------------- 1-3
1.5 Sequence number -------------------------------------------------------------- 1-4
1.6 Opti onal blo ck ski p ------------------------------------------------------------1-4
1.7 Control out /in funct ion-------------------------------------------------------- 1-4

Chapter 2 Coordin ate Command 2-1


2.1 Coordinate sys tem and coo rdinate valu e ------------------------------ 2-2
2.2 Machi ne zero poin t and machine coor dinate syst em --------------2-3
2.3 Working coo rdinate sys tem ------------------------------------------------- 2-3

Chapter 3 Preparation Functio n 3-1


3.1 Outli ne of G code --------------------------------------------------------------- 3-3
3.2 Posit io ni ng (G00) --------------------------------------------------------------- 3-7
3.3 Linear interpolation (G01) --------------------------------------------------- 3-8
3.3.1 Chamfering to desired angle and cornering C ---------------------------------------------3-9
3.4 Circ ular/heli cal int erpolati on (G02, G03)-------------------------------- 3-12
3.4.1 Circular interpolation-------------------------------------------------------------------------3-12
3.4.1.1 Circular interpolation--------------------------------------------------------------------3-12
3.4.1.2 XZ Circular interpolation ---------------------------------------------------------------3-13
3.4.1.3 YZ Circular interpolation ---------------------------------------------------------------3-14
3.4.2 Helical thread cutting interpolation---------------------------------------------------------3-18
3.4.3 Spiral interpolation (G02, G03) -------------------------------------------------------------3-19
3.4.4 Conical interpolation (G02, G03)-----------------------------------------------------------3-21
3.4.5 Tool dia offset procedure for spiral interpolation and conical interpolation
(G02, G03)-------------------------------------------------------------------------------------3-24
3.5 Cir cl e Cutti ng (G12, G13) ----------------------------------------------------3-25
3.6 Plane Select io n (G17, G18, G19)------------------------------------------- 3-26
3.7 Dwell (G04) ----------------------------------------------------------------------- 3-26
3.8 Exact st op check (G09, G61, G64) ----------------------------------------3-27
3.9 Programm able data input (G10) ------------------------------------------- 3-28
3.10 Soft li mi t ---------------------------------------------------------------------------3-30
3.10.1 Stroke -----------------------------------------------------------------------------------------3-30
3.10.2 Stroke limit -----------------------------------------------------------------------------------3-30
3.10.3 Programmable stroke limit (G22) ---------------------------------------------------------3-31
3.11 Return to the referenc e poi nt (G28) -------------------------------------- 3-31
3.12 Return fr om the referenc e poi nt (G29) ---------------------------------- 3-32
3.13 Return to the 2nd to 6th referenc e poi nt (G30) -----------------------3-32
3.14 Selection of machi ne coo rdinate sys tem (G53) ---------------------- 3-33
3.15 Selecti on of wor king coor din ate syst em (G54~G59) --------------- 3-33
3.16 Addi tio nal work ing coor dinate syst em selection (G54.1)---- 3-33
Contents TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

3.18 Progr ammable Mirro r Image (G50.1, G51.1) ---------------------------3-38


3.19 Rotati onal tr ansfo rmation funct ion (G68, G69)-----------------------3-40
3.20 Coordi nate rot ation usin g measured result s (G168) --------------- 3-42
3.21 Abso lut e comm and and inc remental comm and (G90, G91) -----3-42
3.22 Change of wor kpi ece coo rdinate sys tem (G92) ---------------------- 3-44
3.23 Skip fu ncti on (G31, G131, G132) ------------------------------------------3-46
3.24 Continuou s ski p funct ion (G31) ------------------------------------------- 3-46
3.25 Change of tap tw ist ing dir ecti on (G133,G134) ------------------------3-47
3.26 High speed peck dr illi ng cyc le (G173))----------------------------------3-47
3.27 Peck dril ling cyc le (G183) --------------------------------------------------- 3-49
3.28 Local coo rdinate system funct ion (G52)--------------------------------3-51
3.29 Single dir ection posi tio ning func tion (G60) --------------------------- 3-51
3.30 G co de pr iori ty ------------------------------------------------------------------ 3-52

Chapter 4 Preparation Functio n (tool off set fun ctio n) 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 Wear offset of tool diameter------------------------------------------------------------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 (θ < 90°)----------------------------------------------------------------4-6
4.1.4 Offset Mode ----------------------------------------------------------------------------------4-7
4.1.4.1 Inside cutting -----------------------------------------------------------------------------4-7
4.1.4.2 Outside cutting (90° ≤ θ < 180°)-------------------------------------------------------4-9
4.1.4.3 Outside cutting (θ < 90°)----------------------------------------------------------------4-10
4.1.4.4 Exceptional case -------------------------------------------------------------------------4-11
4.1.5 Offset Cancel ----------------------------------------------------------------------------------4-12
4.1.5.1 Inside cutting (180° ≤ θ) ----------------------------------------------------------------4-12
4.1.5.2 Outside cutting (90° ≤ θ < 180°)-------------------------------------------------------4-13
4.1.5.3 Outside cutting (θ < 90°)----------------------------------------------------------------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
4.1.8.1 When there is a cross point ------------------------------------------------------------4-17
4.1.8.2 When there is no cross point ----------------------------------------------------------4-18
4.1.8.3 When offset path becomes more than a circle----------------------------------------4-19
4.1.9 G code command for tool dia offset in offset mode --------------------------------------4-20
4.1.10 Notes on tool dia offset-----------------------------------------------------------------------4-21
4.1.11 Override function related to tool dia offset ------------------------------------------------4-27
4.1.11.1 Automatic corner override ------------------------------------------------------------4-27
4.1.11.2 Override of the inside circular cutting -----------------------------------------------4-28
4.2 Tool lengt h of fs et (G43, G44, G49)----- 4-29
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Contents

Chapter 5 Preparation Functio n (canned cycl e) ------------ 5-1


5.1 List of canned cyc le functi on --------------------------------------------- 5-2
5.2 Basic motions in canned cyc le --------------------------------------------5-3
5.3 General description of canned cyc le ----------------------------------- 5-4
5.3.1 Command related to canned cycle motions ----------------------------------------------5-4
5.3.2 Setting of data in absolute / incremental command -------------------------------------5-4
5.3.3 Types of return point (G98, G99) ---------------------------------------------------------5-5
5.3.4 Canned cycle motion conditions-----------------------------------------------------------5-5
5.3.5 Machining data of canned cycle -----------------------------------------------------------5-6
5.3.6 Repeat number of canned cycle------------------------------------------------------------5-7
5.4 Detail s of Canned Cycl e------------------------------------------------------5-8
5.4.1 High-speed peck drilling cycle (G73)-----------------------------------------------------5-8
5.4.2 Reverse tapping cycle (G74) ---------------------------------------------------------------5-9
5.4.3 Fine boring cycle (G76) --------------------------------------------------------------------5-10
5.4.4 Tapping cycle (G77) ------------------------------------------------------------------------5-11
5.4.5 Reverse tapping cycle (Synchro mode) (G78) -------------------------------------------5-12
5.4.6 Drilling cycle (G81 G82) -------------------------------------------------------------------5-13
5.4.7 Peck drilling cycle (G83) -------------------------------------------------------------------5-15
5.4.8 Tapping cycle (G84) ------------------------------------------------------------------------5-16
5.4.9 Boring cycle (G85, G89) -------------------------------------------------------------------5-17
5.4.10 Boring cycle (G86) --------------------------------------------------------------------------5-18
5.4.11 Back boring cycle (G87)--------------------------------------------------------------------5-19
5.4.12 End mill tap cycle (G177) ------------------------------------------------------------------5-20
5.4.13 End mill tap cycle (G178) ------------------------------------------------------------------5-21
5.4.14 Double drilling cycle (G181, G182) ------------------------------------------------------5-22
5.4.15 Double boring cycle (G185, G189) -------------------------------------------------------5-23
5.4.16 Double boring cycle (G186) ---------------------------------------------------------------5-24
5.4.17 Canned cycle of reducing step -------------------------------------------------------------5-25
5.4.18 Canned cycle cancel (G80)-----------------------------------------------------------------5-29
5.4.19 Notes on canned cycle ---------------------------------------------------------------------5-30
5.5 Canned cyc le for tool chang e (non-sto p ATC)(G100) -------------- 5-31

Chapter 6 Preparation Functio n (coord inate calculatio n) 6-1


6.1 List of coo rdinate calculatio n funct ion ---------------------------------- 6-2
6.2 Coordinate calculation parameter ----------------------------------------6-2
6.3 Details of coor din ate calcul ation func tio n ----------------------------- 6-3
6.3.1 Bolt hole circle-------------------------------------------------------------------------------6-3
6.3.2 Linear (Angle) -------------------------------------------------------------------------------6-3
6.3.3 Linear (X, Y)---------------------------------------------------------------------------------6-4
6.3.4 Grid -----------------------------------------------------------------------------------------6-5
6.4 Usage of coo rdinate calculation fun ction ------------------------------ 6-5
Contents TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

Chapt er 7 Macro ------------------------------------------------------- 7-1


7.1 What is a Macro ? ---------------------------------------------------------------7-2
7.2 Variable Func ti on ---------------------------------------------------------------7-3
7.2.1 Outline of variable function ----------------------------------------------------------------7-3
7.2.2 Expression of variable ----------------------------------------------------------------------7-3
7.2.3 Undefined variable --------------------------------------------------------------------------7-4
7.2.4 Types of variables ---------------------------------------------------------------------------7-5
7.2.5 Variable display and setting----------------------------------------------------------------7-6
7.2.6 System variable ------------------------------------------------------------------------------7-6
7.3 Calcul atio n Funct ion --------------------------------------------------------7-12
7.3.1 Calculation type -----------------------------------------------------------------------------7-12
7.3.2 Calculation order ----------------------------------------------------------------------------7-12
7.3.3 Precautions for calculation -----------------------------------------------------------------7-13
7.4 Contr ol Func ti on --------------------------------------------------------------7-14
7.4.1 GOTO statement (unconditional branch) ------------------------------------------------7-14
7.4.2 IF statement (conditional branch)---------------------------------------------------------7-14
7.4.3 WHILE statement (repetition)-------------------------------------------------------------7-15
7.4.4 Precautions for control function-----------------------------------------------------------7-16
7.5 Call Funct io n ------------------------------------------------------------------- 7-18
7.5.1 Simple call function ------------------------------------------------------------------------7-18
7.5.2 Modal call function -------------------------------------------------------------------------7-19
7.5.3 Macro call argument------------------------------------------------------------------------7-20
7.5.4 Difference between G65 and M98 --------------------------------------------------------7-22
7.5.5 Multiple nesting call ------------------------------------------------------------------------7-22
7.6 Extern al Outpu t Funct ion ----------------------------------------------------7-23
7.6.1 POPEN ---------------------------------------------------------------------------------------7-23
7.6.2 BPRNT ---------------------------------------------------------------------------------------7-23
7.6.3 DPRNT---------------------------------------------------------------------------------------7-24
7.6.4 PCLOS ---------------------------------------------------------------------------------------7-25
7.6.5 Precautions on external output command------------------------------------------------7-26

Chapter 8 Automatic wor k measurement --------------------- 8-1


8.1 Befo re automati c work measurement -----------------------------------8-4
8.2 Setting of data on automati c work measurement--------------------8-4
8.3 Operatio n of automati c work measurement ---------------------------8-8
8.3.1 Corner-----------------------------------------------------------------------------------------8-8
8.3.2 Parallel ----------------------------------------------------------------------------------------8-12
8.3.3 Circle------------------------------------------------------------------------------------------8-14
8.3.4 Z level-----------------------------------------------------------------------------------------8-18
8.3.5 Positioning to the measurement position -------------------------------------------------8-18
8.4 Handli ng of measured result s ---------------------------------------------- 8-19
8.4.1 Display of the measured results------------------------------------------------------------8-19
8.4.2 Reflection of measured results the workpiece coordinate system -------8-20
Chapter 2 Coordin ate Command TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

( This page is blank.)


TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Chapter 3 Preparation Function

CHAPTER 3 3

PREPARATION FUNCTION

3.1 Outline of G code


3.2 Positioning (G00)
3.3 Linear interpolation (G01)
3.4 Circular/helical thread cutting interpolation (G02,
G03)
3.5 Circle cutting (G12, G13)
3.6 Plane selection (G17, G18, G19)
3.7 Dwell (G04)
3.8 Exact stop check (G09, G61, G64)
3.9 Programmable data input (G10)
3.10 Soft limit
3.11 Return to the reference point (G28)
3.12 Return from the reference point (G29)
3.13 Return to the 2nd/3rd/4th reference point (G30)
3.14 Selection of machine coordinate system (G53)
3.15 Selection of working coordinate system (G54~G59)
3.16 Additional working coordinate system selection
(G54.1)
3.17 Scaling (G50, G51)
3.18 Programmable mirror image (G50.1, G51.1)
3.19 Coordinate rotation function (G68, G69)
3.20 Coordinate rotation using measured results (G168)
3.21 Absolute command and incremental command
(G90, G91)
3.22 Change of working coordinate system (G92)
3.23 Skip function (G31, G131, G132)
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

3.25 Change of tap twisting direction (G133, G134)


3.26 High speed peck drilling cycle (G173)
3.27 Peck drilling cycle (G183)
3.28 Local coordinate system function (G52)
3.29 Single direction positioning function (G60)
3.30 G code priority

3
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Chapter 3 Preparation Function

3.1 Outline of G code


Within 3-digit number following the address G determines the meaning of the command of the
 block concerned.

The G codes are divided into the following two types.


Type Meaning

Modal The G code is effective until another G code in the same group is commanded.

One-shot The G code is effective only at the block in which it is specified.

3
The G codes with * mark indicates the modal status when the power is turned ON.
(Note1) Details of coordinate calculation functions are described in " Chapter 6 ".
(Note2) Details of tool dia offset are described in " Chapter 4 ".
Group G cord Contents Modal

G00* Positioning

G01 Linear interpolation

G02 Circular/ helical interpolation (CW)

G03 Circular / helical interpolation (CCW)


Modal
G102 XZ Circular interpolation (CW)

G103 XZ Circular interpolation (CCW)

G202 YZ Circular interpolation (CW)

G203 YZ Circular interpolation (CCW)

G04 Dwell One-shot

G09 Exact stop check One-shot

G10 Programmable data input One-shot

G13 Circular cutting CCW One-shot

G17* XY plane selection

G18 ZX plane selection Modal

G19 YZ plane selection

G22* Programmable stroke limit on


Modal
G23 Programmable stroke limit cancel

G28 Return to the reference point

G29 Return from the reference point One-shot


nd rd th
G30 Return to the 2  /3 /4  reference point

G31 Skip function One-shot


TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Chapter 3 Preparation Function

(Note2)
The example below shows linear interpolation of linear axis and rotation axis.

When " G01 G91 Xα Yβ Zγ Bδ Ff;" is programmed:

L
Time taken for B-axis movement:1 Tb =
f
δ
Feed rate along B axis: Fb =
Tb

α
Feed rate along X axis Fx = · f 3
L

β
Feed rate along Y axis: Fy = · f
L

γ
Feed rate along Z axis: Fz = · f
L
2 2 2 2
(L= α  + β + γ + δ )

3.3.1 Chamfering to desired angle and cornering C


Chamfering to the desired angle or rounding can be performed between interpolation commands.

Chamfering

Command format G01 X_Y_, C_ ;

C: Distance from virtual corner to the chamfer start point and send point.
This can be commanded only for the selected plane surface.

Virtual Chamfer end point


corner 
intersection
Chamfer start point
c

eNCPR3.03.ai
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

(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 th e inserted block occurs.)
(3) Tool diameter offset applies to the configuration after corner chamfering is performed.
(4) 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".
3 Example.1: Liner cutting

(4)

C
(7)
(3)

(2)

C
(6)
(1)

(5)

eNCPR3.04.ai
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

(2)
(6)
C
(1)

(5)

eNCPR3.05.ai
When set the programmed path to (1.2.3.4.) and the block C as (2), operate to 1-5-6-7-4.
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Chapter 3 Preparation Function

Cornering

Command format G01 X_Y_, R_ ;

R : Radius of cornering
This can be commanded only for the selected plane surface.

3
Corner-R end point

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 offset applies to the configuration after cornering is performed.
(4) 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".

Example.1: Liner cutting

(7)
R
(4)

(3)
(6)

(2)
(5)
(1)

eNCPR3.07.ai
When set the programmed path to (1.2.3.4.) and the block R as (2), operate to 1-5-6-7-4.
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

3.4 Circular/Helical Interpolation (G02, G03)


3.4.1 Circular interpolation
Circular interpolation moves a tool along a circular arc from the current position to the end point at
the specified feed rate.

3.4.1.1 Circular interpolation


X-Y plane
G17G02 X_ Y_ I_ J_ F_;
Command format R_ 
G17G03 X_ Y_ I_ J_ F_;
3 R_ 
Z-X plane
G18G02 Z_ X_ K_ I_ F_;
R_ 
G18G03 Z_ X_ K_ I_ F_;
R_
 Y-Z plane
G19G02 Y_ Z_ J_ K_ F_;
R_ 
G19G03 Y_ Z_ J_ K_ F_;
R_

The commands are gives in the following format:


G 02 Clockwise (CW).
Rotation direction
G 03 Counterclockwise (CCW).

G90 mode X,Y,Z End point in the working coordinate system.


Distance from the start point to the end point
X
End in the X direction.
 point Distance from the start point to the end point
G91 mode Y
in the Y direction.
Distance from the start point to the end point
Z
in the Z direction.
Distance from the start point to the center of
I
arc in the X direction.
Distance between start point and arc Distance from the start point to the center of
J
center arc in the Y direction.
Distance from the start point to the center of
K
arc in the Z direction.
Arc radius R Arc radius
Feedrate in the tangential direction of circular
Feedrate F
arc.
Clockwise and counterclockwise are the rotation direction viewed from the positive direction to
the negative direction on the Z axis of the plus direction.
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

3.4.1.3 XZ Circular interpolation

G202 X_ Y_ I_ J F_;
Command format
G203 R_

The commands are given in the following format:


G202 Clockwise (CW).
Rotation direction
G203 Counterclockwise (CCW).

3 G90 mode X,Y End point in the working coordinate system.


End Distance from the start point to the end point in
X
 point the X direction.
G91 mode
Distance from the start point to the end point in
Y
the Y direction.
Distance from the start point to the center of arc
I
Distance between start point and arc in the X direction.
center Distance from the start point to the center of arc in
J
the Y direction.
Arc radius R Arc radius

Feedrate F Feedrate in the tangential direction of circular arc.

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 offset command
(G41, G42) or coordinate rotation command (G68, G168) is used, and the machine
stops operation.
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B 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;
G90G03XxYyIiJjFf;
3

Incremental comma
G91G03XxYyIiJjFf;

eNCPR3.08.ai
Instead 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 th an 180° and the other is more than 180°).
When commanding a circular arc of more than 180°, put the algebraic mark "-" before the value
for the radius.

(1)G02XxYyFf 
(2)G02XxYyFf 

eNCPR3.09.ai
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

eNCPR3.10.ai
Absolute command;
G03X-60. Y-10. I-50. J-20. F1000 ;
Incremental command;
G03X-30. Y30. I-50. J-20. F1000 ;

eNCPR3.11.ai
(1) G02X-70. Y-50. R25. F1000 ;
(2) G02X-70. Y-50. R-25. F1000 ;

(Note 1) When either I, J or K is omitted, it is regarded zero.


(Note 2) The circular arc, when its radius is zero, cannot be commanded.
(Note 3) When both X,Y and Z are omitted, the end point and the start point are
regarded identical, and:
i) 360°arc (full circle) is assumed to be commanded when the arc center
is programmed using the address I,J and K.
ii) When the address R is used, an alarm occurred.
(Note 4) The address R and "I, J and K" cannot be commanded simultaneously.
(Note 5) When the end point is not on the arc specified by start point and arc
radius, the tool moves as shown below.
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Chapter 3 Preparation Function

Transition of radius

3
eNCPR3.15.ai

eNCPR3.14.ai
(Note 6) If the ending radius is extremely 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.
(Note 8) If the tool radius compensation is applied to small circular
interpolation, the positional relation between start point and end point
of an arc may be reversed depending on the offset value or adjacent
commands, causing an arc to be a full circle. Check the tool path
beforehand in the dry run mode or using the drawing function.
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

Precautions for use of scaling function:


(Note 1) When scaling is invalid
Tool offset set for [Tool dia offset] and [Tool length offset] is not
subject to scaling.
Additional axes are not subject to scaling.
An alarm will occur when coordinate transformation (rotational
transformation, scaling, programmable mirror image) is performed
while the additional axis is selected by the plane selection command
(G17, 18, 19).
Scaling is not performed for travel amounts generated through manual
intervention.
The following are not subject to scaling in a canned cycle:
infeed amount "Q" and relief amount "d" of deep hole cycle (G83, G73,
3 G173, G183) XY-axes shift "Q" of fine balling (G76) and back balling
(G87).
However, an alarm will occur when the canned cycle is performed
while the Z-axis is set for scaling.
(Note 2) Traveling axes when performing scaling or programmable mirror image
When using the scaling or programmable mirror image function, the
axis not specified travels according to the specified axis or
coordinates.
As a result, the following may occur:
1. The machine is not operable because the lock signal check is input
for an axis not specified.
2. The Z-axis travels because the dry run offset is automatically
applied.
3. An alarm occurs because the specified axis cannot be used.
(Note 3) Cases when an alarm will occur
An alarm will occur when any reference position return related
command
(G28 to G30) is used during scaling.
An alarm will occur when any coordinate change command
(G10L2/20/98/99, G22 to G23, G52 to G59, G92, G92.1) (external
workpiece zero offset) is used during scaling.
An alarm will occur when single direction positioning (G60) set during
scaling.
An alarm will occur when any automatic workpiece measurement
command (G120 to G129) is used during scaling.
An alarm will occur when any of the following is performed during
scaling:
Tool change, XZ or YZ circular arc (G102/103, 202/203), circular cutting
spiral interpolation or conical interpolation
An alarm will occur when a canned cycle is performed while the Z-axis
is set for scaling.
An alarm will occur when command the dry run before start circuit
command that the amount of XY axes travel becomes 0 as during G17
modal by scaling.
An alarm will occur when the corner C or R command is used during
scaling.
An alarm will occur when scaling is specified in MDI operation.
(Note 4) Scaling is cancelled when M02 or M30 is used or operation is reset.

Program example of mirror image using scaling function


When a negative number is specified for the scaling factor, programmable mirror image is applied.
When a negative value is specified for the scaling factor and there is only one scaling axis, CW
and CCW of circular travel will be reversed.
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Chapter 3 Preparation Function

Program example of mirror image using scaling function

Y Sub program
O9000;
90 (7) (3) G00G90X60.Y60.;
G01X100.F100;
G01Y100.;
(6) (2) G03X60.Y60.I-30.J-30.;
(5) (4) (1) M99;
60
(8) Main program
50  N10 G00G90;
(9) (13)
40  N20 M98P9000;

(10)
(12)
(14)
 N30 G51X50.Y50.I-1000J1000;
 N40 M98P9000;
3
(11) (15)  N50 G51X50.Y50.I-1000J1000;
 N60 M98P9000;
10  N70 G51X50.Y50.I1000J-1000;
 N80 M98P9000;
X  N90 G50;
10 40 50 60 90

Do not use the first feed rate command for circular interpolation or helical screw cut interpolation
(G02, G03), after commanded by mirror image of scaling,
When use it, positioning error occurred between start point, end point and center point that cause
of distortion in the circular arc.

Mirror image is applied to scaling center coordinates and programmed path while the mirror image
(G51.1) is valid.
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

3.18 Programmable Mirror Image (G50.1, G51.1)


Mirror image is applied to the program commands for the axes specified in the program.

Mirror image

Command format G51.1X_Y_Z_;

Mirror image cancel

Command format  G50.1X_Y_Z_;

3
Mirror image setting can be applied simultaneously for the 1st to 3rd axes.

Set the mirror image axis. Omit this for axes about which a mirror image is not created.

Set the mirror image axis in workpiece coordinates.

Using G51.1 command is valid while setting a mirror image. It is regarded as an addition of
mirror axes or a change of the mirror axis coordinates.

Set the axis for canceling mirror image to cancel mirror image. Set the coordinates using
numerical values.

An alarm will occur when a mirror image is canceled for an axis where mirror image is not set.

Symmetric axis
Y (X=50)
(2) (1)
100

Symmetric axis
(Y=50)
60
50
40
(3) (4)

0 40 50 60 100

(1) Original program command


(2) When mirror axis is set for position X50.
(3) When mirror axis is set for position X50. Y50.
(4) When mirror axis is set for position Y50.
TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B Chapter 3 Preparation Function

Precautions for use of programmable mirror image:


(Note 1) When programmable mirror image is invalid
Tool length offset is not subject to mirror image setting compensation.
The spindle rotation direction does not change during mirror image
setting.
The thread cutting direction does not change during mirror image
setting.
Manual intervention allows the axis travel while ignoring the mirror
image setting.
However, when there is a manual interruption during mirror processing,
the axis travels according to the path (tool path) after mirror
processing.

(Note 2) Traveling axes when performing scaling or programmable mirror image


When using the scaling or programmable mirror image function, the
3
axis not specified travels according to the specified axis or
coordinates. As a result, the following may occur:
1. The machine is not operable because the lock signal check is input
for an axis not specified.
2. The Z-axis travels because the dry run offset is automatically
applied.
3. An alarm occurs because the specified axis cannot be used.

(Note 3) Cases when an alarm will occur


An alarm will occur when mirror image (G50.1 or G51.1) is used during
scaling or rotational transformation.
An alarm will occur when coordinate transformation (rotational
transformation, scaling, programmable mirror image) is performed
while the additional axis is selected by the plane selection function
(G17, 18, 19).
An alarm will occur when any reference position return related
command (G28 to G30) is used during mirror image setting.
An alarm will occur when any coordinate change command
(G10L2/20/98/99, G22 to G23, G52 to G59, G92 external workpiece zero
offset) is used during mirror image setting.
An alarm will occur when single direction positioning (G60) set during
scaling.
An alarm will occur when any automatic workpiece measurement
command (G120 to G129, etc.) is used during mirror image setting.
An alarm will occur when skip function (G31, 131, 132) set during
mirror image setting.
An alarm will occur when any of the following is performed during
mirror image setting:
Tool change, XY or YZ circular arc (G102/103, 202/203), circular cutting
spiral interpolation or conical interpolation.
An alarm will occur when a canned cycle is performed while the Z-axis
is set for mirror image.
An alarm will occur when mirror image is specified in MDI operation.

(Note 4) Mirror image is cancelled when M02 or M30 is used or operation is


reset.
(Note 5) Do not use the first feed rate command for circular interpolation or
helical screw cut interpolation (G02, G03).
When use it, positioning error occurred between start point, end point
and center point that cause of distortion in the circular arc.

Coordinates are calculated according to the following sequence: mirror,


scaling, and then rotational transformation. Accordingly, set these in
this order in a program. Set these in the reverse order to cancel
previous settings. An alarm will occur when the specified sequence is
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B
TC-32BQT/32BFT /22B/S2C/31B/32BN/S2Cz/
/32BN/S2Cz/S2D/R2B
S2D/R2B

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 dia offset.

3.30 G code priority


(1) Executed correctly.
(2) Error
3 (3) The last G command is effective.
(4) One-shot is executed and the modal is updated.
(5) One-shot is executed and the modal is updated, but an error occurs when circle arc is
commanded.
(6) Executed when the modal is G0 G0 or G01, but an error occurs when circle
circle arc
arc is commanded.
(7) G22 is executed when G22 is commanded and the modal for G0 group is updated. updated.
Both are executed when G23 is commanded.
(8) An error occurs when circular command is output.
(9) An error occurs while circular arc mode is selected.
(10) The one commanded after the block is executed.
When G80 group is executed, the modal for G00 group is updated.
When G0 group is executed, G80 group is canceled.
(11) An error
error occurs, but both are executed when commanded with G80.
(12) One shot execution, modal cancellation.
(13) Executed correctly except when
when the XZ or YZ
YZ arc
arc command
command is executed.
(14) An error
error occurs, but both are executed when commanded with G69.
(15) G00 group is executed. G80 is modal cancelled.
(16) One shot is executed and the modal is updated, but an error occurs whenwhen G54P is used.
(17) Both are executed when
when the G0 group
group and modal updated
updated are simultaneously with G80.G80.
An error occurs when used simultaneously with G54P.
(18) An error occurs when G54P is used.
(19) An error occurs when G102, G103, G202, G203 are used.
(20) Only effect for G17.
(21) An error
error occurs when G102~G203, without G17 of of XY
XY flat
flat selection.
(22) An error
error occurs when
when already
already set to the measurement rotation mode.
mode.
Only G17 is able to command for G168.
(23) An error occurs when Z axis
axis is mirror mode.
(24) An error occurs when changing for during the measurement.
measurement.
(25) G68 is effective. G168 is error.
(26) An error occurs when the plane surface that is not different than modal is selected.
TC-32BQT/32BFT/22B/S2C/31B
TC-32BQT/32BFT/ 22B/S2C/31B/32BN/S2Cz/
/32BN/S2Cz/S2D/R2B
S2D/R2B Chapter 3 Preparation Function

Command the same block (Modal-Modal)


   7
   7    0    0    1
   1    1    1 2 2 2 2 2 1 1 2 2 2 2 1 2 1 2 2 2 1 3 3 1 1 1 3
   G

   8
   9    1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 2 2 1 1 1 1 1 1 3
   G

   4
   9    1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 2 2 1 1 1 1 1 3
   G

   0
   9    1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 2 2 1 1 1 1 3
   G

   0
   8    0    0    1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 2 2 1 1 3 3
   G    1    1

   3
   7    0    0    1 2 2 2 2 2 1 1 2 2 2 2 1 2 1 2 2 2 1 3 3
   G    1    1

   9
   6    1 1 1 1 1 1 1 2 2 1 2 2 2 2 1 1 1 2 2 3 3
3
   G

   8   8
   6   6    9    2    2
   1    4    1    2    2    2 2 2 2 2 2 2 2 2 2 1 1 1 2 2 3 3
   G   G

   7
   6    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3
   G

   6
   6    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3
   G

   1
   6    1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 3
   G
   P
   4    1 1 1 1 1 1 1 1 1 1 2 2 2 2 3 3
   5
   G
   4
   5    1 1 1 1 1 1 1 1 1 1 2 2 2 2 3 3
   G
   1
 .
   1
   5    4    9
   1    2 2 2 2 2 2 2 2 2 2 3 3
   G
   1
 .
   0    4 4 2 2 2 2 2 2 2 2 2 2 3 3
   5
   G
   1
   5    2 2 2 2 2 2 2 2 2 2 3 3
   G

   0
   5    2 2 2 2 2 2 2 2 2 2 3 3
   G

   9
   4    1 8 1 1 2 2 1 1 3 3
   G

   3   4
   4   4    1 8 1 1 2 2 1 1 3 3
   G   G

   1   2
   4   4    1 1    6    6
   2    2    2 2 3 3
   G   G

   0
   4    1 1 1 1 2 2 3 3
   G

   3
   2    1 1 1 1 3 3
   G

   2
   2    7 7 2 2 3 3
   G

   8   9
   1   1    1    9    3 3
   G   G    1

   7
   1    1    1
   2    3 3
   G

   2   3
   G   G
   3 3

   0   1
   G   G
   3 3

   9    2    4    8


   1    3    1    4    4    6
   1    1    P
   7    2    3    0    9    0    1  .  .    4    1    6    7    1    9    3    0    0    4    8    7
   G
 ,  ,    1    G
   G  ,    2    2    4    G
 ,    G
 ,    4    5    5    0    1    5    4    6    6    6    G    7
 ,    6    7    8    9    9    9    1
   0    2    G    8    G    G    G    1    3    G    G    G    5    5
   G    5    G    G    G    8    G    G    G    G    G    G    G
   G    G    1    4    4    G    G    G    6
   G    G    G    G
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B
TC-32BQT/32BFT /22B/S2C/31B/32BN/S2Cz/
/32BN/S2Cz/S2D/R2B
S2D/R2B

Command the same block (Modal-One-shot)


  7
  7   2 1 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 3
  1
  G

  8 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1
  9
  G

  4 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1
  9
  G

  0 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1
  9
  G

  0 1 1 1 1 4 4 4 4 4 1 4 2 4 4 4 4 4 4 3
  8
  G

  3 2 1 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 3
  7
  G

3   9
  6
  G
1 1 1 1 1 1 1 1 1 1 1 2 1   1 1 1 1 1 1

  8
  8
  6   2 1 2 1 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2
  6
  1
  G
  G

  7 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
  6
  G

  6 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
  6
  G

  1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1
  6
  G
  P

  4   2 1 2 1 2 2 2 2 1 4 1 2 1 1 1 1 1 1 2
  5
  G

  4 1 1 1 1 1 1 1 1 1 4 1 2 1 1 1 1 1 1 1
  5
  G
  1
 .
  1   2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
  5
  G
  1
 .
  0   2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
  5
  G

  1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
  5
  G

  0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
  5
  G

  9 2 1 2 2 1 1 1 1 2 1 1 2 2 1 1 1 1 2 1
  4
  G

  3
  4 2 1 2 2 1 1 1 1 2 1 1 2 2 1 1 1 1 2 1
  4
  4
  G
  G

  0
  1
  2 2 1 2 2 2 2 2 2 2 1 2 2 2   2 2 2 2 2
  2
  4
  4
  G
  G

  0 2 1 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 2 2
  4
  G

  3 2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2
  2
  G

  2 2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2
  2
  G

  8
  9 2 1 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 2
  1
  1
  G
  G

  0   0   0   0


  7 2 1 2 2 2 2 2   2 1 1 2 2 2 2   2
  2   2   2   2
  1
  G

  0
  4 1 4 4 4 4 4 2 4 1 4 2 4 4 4 2 4 4
  1
  2
  3
  G
  G

  0
  4 1 4 4 4 4 4 4 4 1 4 2 4 4 4 4 4 4
  1
  0
  1
  G
  G

  0   0   1   1   3   3


  0   2   8   0   1   6   2   3   0   5   2   0   2   2   3   3   7
  4   9   1   1   2   3   3   3   5   5   6   6   9   1   1   1   1   1   1
  G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G
TC-32BQT/32BFT/22B/S2C/31B
TC-32BQT/32BFT/ 22B/S2C/31B/32BN/S2Cz/
/32BN/S2Cz/S2D/R2B
S2D/R2B Chapter 3 Preparation Function

Command the same block (One-shot -One-shot)


  3
  7   2 1 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 3
  1
  G

  3
  3   2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 3
  1
  G

  1
  3   2 1 2 2 2 2 3 2 2 1 2 2 2 2 2 2 3
  1
  G

  1
  2   2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 3
  1
  G

  0
  2   2 1 2 2 2 2 2 2 2 1 2 2 2 2 3
  1
  G

  0
  0   2 1 2 2 2 2 2 2 2 1 2 2 2 3
  1
  G

  2 2 1 2 2 2 2 2 2 2 1 2 2 3
  9
  G
3
  5 2 2 2 2 2 2 2 2 2 2 2 3
  6
  G

  0 2 1 2 2 2 2 2 1 2 1 3
  6
  G

  3 1 1 1 1 1 1 1 1 1 3
  5
  G

  2 2 1 2 2 2 2 2 2 3
  5
  G

  6 2 1 2 2 2 2 2 3
  3
  G

  1 2 1 2 2 2 2 3
  3
  G

  0 2 1 2 2 3 3
  3
  G

  8 2 1 2 2 3 3
  2
  G

  2 2 1 2 3
  1
  G

  0 2 1 3
  1
  G

  1 3
  9
  G

  3
  4
  G

  0   0   1   1   3   3


  0   2   8   0   1   6   2   3   0   5   2   0   2   2   3   3   7
  4   9   1   1   2   3   3   3   5   5   6   6   9   1   1   1   1   1   1
  G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G   G
Chapter 3 Preparation Function TC-32BQT/32BFT/22B/S2C/31B/32BN/S2Cz/S2D/R2B

Command during Modal


G0 G2 G17 G18 G22 G23 G40 G41 G43 G49 G50 G51 G50.1 G51.1 G54 G54.1 G61 G66 G67 G68 G69 G73 G80 G90 G94 G98 G177
G1 G3 G19 G42 G44 G168

G0,G1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 1 1 1 1 15
G2,G3 1 19 1 1 1 19 1 1 1 19 1 19 1 1 1 1 1 19 1 15 1 1 1 1 15
G17 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1
G18,G19 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 2
G22 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1
G23 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1
G40 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G41,G42 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 2 1 1 1 1 2
G43,G44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G49 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G50 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1
G51 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1
G50.1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G51.1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1

3 G54
G54.1
G61
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1 1
2
2
1 1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
G66 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G67 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G68,G168 1 1 1 25 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G69 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G73 1 1 1 2 1 1 1 2 1 1 1 1 1 23 1 1 1 1 1 1 1 1 1 1
G80 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G90 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 1 1 1 1 1
G98 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G177 1 1 1 2 1 1 1 2 1 1 1 1 1 23 1 1 1 1 1 1 1 1 1 1
G4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G9 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G10 1 1 1 1 1 1 1 1 1 1 1 24 1 24 1 1 1 1 1 1 1 1 1 1 1 1 1
G12 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1
G28 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G30 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G31 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 2 1 2 1 1 1 1 2
G36 1 2 1 2 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G52 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G53 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1
G60 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1
G65 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
G92 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G100 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1 1 12 1 1 1 1 12
G120 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G121 1 2 1 2 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1
G131 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 2 1 2 1 1 1 1 2
G133 1 1 1 2 1 1 1 2 1 1 1 1 1 23 1 1 1 1 1 1 1 1 1 1 1 1 1
G173 1 1 1 2 1 1 1 2 1 1 1 1 1 23 1 1 1 1 1 1 1 1 1 1 1 1 1
TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 4 Preparation function (Tool offset function)

CHAPTER 4
PREPARATION FUNCTION 4
TOOL OFFSET FUNCTION
4.1 Tool dia offset (G40, G41, G42)
4.2 Tool length offset (G43, G44, G49)
TC-32BQT/32BFT/22B/S2C/
Chapter 4 Preparation function (Tool offset function) 31B/32BN/S2Cz/S2D/R2B

4.1 Tool dia offset (G40, G41, G42)


4.1.1 Tool dia offset function
Programming is done according to the actual workpiece form, but this function enables the tool to
move along the path with an offset from actual workpiece form, which is equivalent to the used
tool radius.

G41
Command format Dn;
G42

G codes and D code used for tool dia offset


G40 : Tool dia offset cancel (Effective at power ON)
G41 : Left offset along tool path
G42 : Right offset along tool path
4 Tool dia offset mode is effective when either G41 or G42 is commanded.
This mode is canceled by G40.

eNCPR4.01.ai
Dn : Tool offset number (n=0~99)
The offset value of D0 is always zero.
The offset value is set on the tool data setting screen.

(Note) When a command without X and Y axis travel of more than three blocks
or a command with a travel value of zero (0) is given in tool dia offset mode,
excessive cutting or insufficient cutting may occur, respectively.

4.1.1.1 Wear offset of tool diameter


When G41and G42 are commanded in the program, the wear offset value of tool d iameter
corresponding to the commanded tool number is added to the tool diameter offset value.
The wear offset value of tool diameter is set on the tool list screen.
Offset value of tool diameter = Tool dia offset value + Wear offset value of tool diameter

(Note) Refer to “Operation Manual” for the tool list screen.


TC-32BQT/32BFT/22B/S2C/
Chapter 4 Preparation function (Tool offset function) 31B/32BN/S2Cz/S2D/R2B

(Note 1) When 179  <θ<180 , tool center path will be as follows;


˚ ˚

Linear -Linear

It will be processed in the same procedure as above in case of Arc - Linear, Linear - Arc and
Arc - Arc.

4.1.4.3 Outside cutting ( θ<90 ˚ )


4 Linear – Linear 

 Arc – Linear
TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 4 Preparation function (Tool offset function)

Linear - Arc

4
 Arc - Arc

4.1.4.4 Exceptional case


There is no cross point at inside cutting.

 Alarmed stop

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.
TC-32BQT/32BFT/22B/S2C/
Chapter 4 Preparation function (Tool offset function) 31B/32BN/S2Cz/S2D/R2B

4.1.5 Offset cancel


When the command satisfying all the conditions as shown below is executed in the offset mode,
the offset cancel mode becomes effective.
The tool motion in this status is called an offset cancel.

a) G40 is commanded.

Command format G40 ;

 b) The movement other than circular arc is commanded.


(Note 1) When a movement of circular arc is commanded, an error occurs.

4.1.5.1 Inside cutting (180 ˚ ≤ θ)


Linear - Linear

 Arc - Linear
TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 4 Preparation function (Tool offset function)

(8) Tool movement in case of tool dia offset value zero


a) Start-up
When G41 or G42 is commanded in the cancel mode, the offset mode becomes
effective but the start-up motion is not available as the offset value is zero.
When another offset number is specified and the offset value is not zero, the motion becomes
thesame as the case of changing the tool dia offset value as described in (2).

N1 X_Y_D1; (D1=0)
N2 X_;
N3 Y_D2; (D2≠0)
N4 X_Y_;

 b) During offset mode


If the offset value is changed to zero in the offset mode, the cancel mode is not available any
longer. The motion becomes the same as the case of changing the tool dia offset value as described
in (2).
Even if the offset number is changed again and the offset value is not zero, the motion becomes
the same as the case of changing the tool dia offset value as described in (2).

N1 X_Y_;
N2 X_D1; (D1=0)
N3 X_Y_;
N4 X_Y_D2 (D2≠0)
N5 X_;
TC-32BQT/32BFT/22B/S2C/
Chapter 4 Preparation function (Tool offset function) 31B/32BN/S2Cz/S2D/R2B

(9) Exceptional case or alarm-generating command


1.Command to produce the vertical vector
G10 : Programmable data input
G52 : Local coordinate system
G92 : Coordinate system setting
#3000: Alarm display
#3006: Message display & stop

When the above command is given, the tool moves to the point which is offset as much as the tool
dia as specified by the last X/Y movement command.

2.Forcible tool dia offset cancel


M06 : Tool change
G100 : Non-stop ATC
When the above command is given, G40 (tool dia offset cancel) becomes automatically effective
and the tool moves to the point which is offset as much as the tool dia as specified by the last X/Y
movement command.
4
3.Alarm-generating command
G17 ~ G19 : Plane selection
G28 : Return to reference point
G29 : Return from reference point
G30 : Return to 2nd ~ 6th reference point
G36 ~ G39 : Coordinate calculation
G60 : Single direction positioning
G66 : Macro
G73 ~ G89, G173 ~ G189 : Canned cycle
G120 : Positioning to the measuring point
G121 ~ G128 : Automatic measurement
G31, G131, G132 : Measurement feed
G133, G134 : Changeover of tap twisting direction
M410, M411 : Index of the pallet
G2, G3 : Circular arc with radius of start point or end point is 0.

(10) Input command in MDI operation


When inputting the tool dia offset command (G40, G41, G42) in the MDI operation, an alarm is
generated.

(11) Manual intervention


When moving the tool by manual operation in the offset mode and starting the memory operation
again, the corrected offset path starts from two blocks ahead.

04L68.ai
When moving the tool by manual operation after it stopped at the block end point P2, the tool
movs from P2' to P3, then follows the corrected offset path after P3.
TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 4 Preparation function (Tool offset function)

(12) Command after tool dia offset is canceled


An error will occur when G17 ~ G19 (Plane selection) are used while G40 is commanded
independently and offset value is still left. Before using the move command, cancel the offset
value by commanding move command into the block that includes G40 command or the block
after G40 is commanded.

4.1.11 Override function related to tool dia offset


4.1.11.1 Automatic corner override
When the blocks before and after the inner corner satisfy the following conditions,
an automatic override is applied to reduce the load on the tool.
1. Movement is commanded G01, G02 or G03. (Volute/without circular cone interpolation)
2. The offset mode is selected and the offset value is not zero.
3. The corner is inside and its angle is less than the AUTO.CORNER OVER RIDE ANGLE
set by the parameter 1.
4. The block does not contain G41, G42 and G40.
5. There is no change in the offset direction. 4
The parameter 1 has the following setting values.
1)AUTO.CORNER OVERRIDE LEN1
: Deceleration stroke at corner end point :Le
2)AUTO.CORNER OVERRIDE LEN1
: Deceleration stroke at corner start point :Ls
3)AUTO.CORNER OVERRIDE RATIO :Reduction ratio (%) :Y
4)AUTO.CORNER OVERRIDE ANGLE :Corner inside reference angle :θ

Corner inside reference angle θ

An override is applied to the thick lined area between a and b.

Actual feedrate = Commanded feedrate Deceleration


100
TC-32BQT/32BFT/22B/S2C/
31B/32
31B/32BN/S2
BN/S2Cz/
Cz/S2D
S2D/R2
/R2B
B Chapter 5 Preparation
Preparation func tion (canned cyc le)

5.2
5.2 Basic Motions
Motion s in Canned Cycle
ycl e
In general, the canned cycle is composed of the following six motions.

Motion 1 : Positioning (at rapid feed) to the drilling position (X/Y)


Motion 2 : Positioning to R point (at rapid feed)
Motion 3 : Hole machining (cutting feed)
Motion 4 : Machining at the bottom of hole
Motion 5 : Relief to R point (at rapid feed/cutting feed)
Motion 6 : Positioning to initial point (at rapid feed)

Motion 1
Initial point

Motion 2 Motion 6

5
R point

Motion 3 Motion 5

Z point
Motion 4

eNCPR5.01.ai

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


motion 1, 2 or 6 in the tapping
tapping cycle,
cycle, a temporary stop is available.
available.
(2) During the motions 3 through 5 in the tapping cycle, a temporary stop is forbidden.
If such a stop is forcibly done (by pressing the HOLD switch or changing to the manual
mode), the system
system stops upon completion
completion of the motion
motion 5.
If the RESET key is pressed during the motion 3 through 5, the system also stops after
completion of the motion 5.
TC-32BQT/32BFT/22B/S2C/
Chapter 5 Preparatio
Preparatio n func tio n (canned cyc le) 31B/32BN/
31B/32BN/S2C
S2Cz/S
z/S2D/
2D/R2B
R2B

5.3
5.3 General
eneral descripti
descri ption
on of canned cycl e
5.3.
5.3.1
1 Command related
related to canned cycl e mot ions
G90 Absolute command
(1) Data format
G91 Incremental command

G98 Initial point level return


(2) Return level
G99 R point level return

G73 , G74
G76 ~ G78
(3) Drilling mode G80 ~ G87
G89 Refer to table 5-1(P5-2)
G177 , G178
G181 ~ G182
G185 , G186
G189

5
5.3.
5.3.2
2 Setti
Setti ng of data in absolut e/incr
e/incr emental
emental comm and

 A bsol ut e comm and I ncr ement al comm and

Initial point Initial point

Z=0

R
R

R point Z R point

Z point Z point

eNCPR5.02.ai
TC-32BQT/32BFT/22B/S2C/
31B/32
31B/32BN/S2
BN/S2Cz/
Cz/S2D
S2D/R2
/R2B
B Chapter 5 Preparation
Preparation func tion (canned cyc le)

5.3.3
5.3.3 Types of return
retu rn point
po int (G98
(G98,, G99)
G99)
There are two types of return points - initial point level return (G98) and R point level return (G99)
- when the canned cycle motions are finished.

I ni
ni ti
ti al
al p oi nt
nt l ev
ev el r et
et u r n ( G 98) R p oi n t l ev el r et
et ur n ( G 99)

Initial point

R point R point

5
Z point Z point

eNCPR5.03.ai
(Note 1)
G98 and G99 are modal com mands. G98 is eff ective w hen the pow er is t urned ON.
(Note 2)
If there is no Z-axis
Z-axis movement even if th e tool length offset mode i s selected, the
initial point i s memorized
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.

5.3.
5.3.4
4 Canned
Canned cycl e moti on con dit ions
The canned cycle motions are available when the following commands are given.
(1) The drilling mode (G73, G74, G76~G78, G81~G87, G89, G177, G178, G181~G182,
G185, G186, G189) command blocks contain any of X, Y, Z, R, A, B or C.
(2) The blocks after the drilling mode command block through the canned cycle cancel block
contain any of X, Y, Z, R, A, B or C.
(Note)
If there is n o X, Y,
Y, Z, R, A, B or C in th e block duri ng th e canned cycle, and the
drilling data other than those are commanded, the drilling data only are memorized.
TC-32BQT/32BFT/22B/S2C/
Chapter 5 Preparatio
Preparatio n func tio n (canned cyc le) 31B/32BN/
31B/32BN/S2C
S2Cz/S
z/S2D/
2D/R2B
R2B

5.3.
5.3.5
5 Machin
Machin ing data of canned cycl e
Command format

G** X_Y_A_B_ Z_R_Q_P_F_S_ K_;

G code Position data Machining data Repeat number

G code :G73, G74, G76~G78, G81~G87, G89, G177, G178, G181~G182, G185, G186and
G189.
The G codes of the canned cycle are all modal.

X, Y, A, B :Drilling position.
The tool motion to the drilling position is done at a rapid feed.
An alarm appears if additional axis is commanded while optional additional axis is
not in use.

Z :Bottom position
When the incremental mode is selected, the distance from the R point to the bottom
5 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.

Q :Cutting amount, shift amount, distance to feeding speed changeover point.


(1) Each cutting amount commanded by G73 or G83.
(2) Each cutting amount commanded by G77 or G78.
(3) Each shift amount commanded by G76 or G87.
(4) The distance to the feeding change point by G177or G178.
(5) Orientation angle by G86, G186

P :Dwelling time. (The unit is the same as specified by G04.)

F :Cutting feedrate.

S :Spindle speed.

K :Repeat number of canned cycle.


TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 5 Preparation func tion (canned cyc le)

5.3.6 Repeat number of canned cyc le


When drilling at an equal interval is repeated in the same canned cycle, use th e address K and
specify the repeat number.

The command range of K is 0 - 9999.


K is effective only in th e specified block.
If K is not specified, the value of K is regarded 1.
When K0 is specified, drilling is not executed. Then the specified drilling data are memorized and
the X and Y command are given, these axes move accordingly.

The programming of "X_Y_" commands the initial drilling position in incremental mode (G91).
If the absolute command (G90) is given, drilling is repeated at the same position.

(Example)

Final machining position

First machining position

Current position

G81 X _ Y _ Z _ R _ K5F _ ; (in G91 mode)

eNCPR5.04.ai

G81 X _ Y _ Z _ R _ K5F _ ; (in G91 mode)


TC-32BQT/32BFT/22B/S2C/
Chapter 5 Preparatio n func tio n (canned cyc le) 31B/32BN/S2Cz/S2D/R2B

5.4 Details of canned cycle


5.4.1 High-sp eed peck drill ing cyc le (G73)

Command format G73 X _Y _ Z_ R_ P _ Q_ F _ ;

Return point
R point

5 Q

Z point
Dwelling for P sec
Rapid feed
Cutting feed

eNCPR5.05.ai
• The relief amount d is set by the parameter 1.
• If the minus value is commanded for the cutting amount Q, the algebraic mark (-) is ignored.
TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 5 Preparation func tion (canned cyc le)

5.4.2 Revers e tapping cyc le (G74)

Command format G74 X _Y _ Z _R _P _ F _S _ ;

Return point

R point
Rapid feed
Cutting feed 5
Spindle CW

Z point Spindle CCW

eNCPR5.06.ai
Spindle rotation stops at Z point.
After dwelling for P sec, spindle rotates CW.

• 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. tapping speed” in Machine parameter, an alarm is
generated.
TC-32BQT/32BFT/22B/S2C/
Chapter 5 Preparatio n func tio n (canned cyc le) 31B/32BN/S2Cz/S2D/R2B

5.4.19 Notes on canned cyc le


(1) When commanding the canned cycle (G73, G81 to G83, G85, G89, G181 to G182, G185,
G189) which does not control the spindle rotation, the spindle should be rotated in advance by the
M code.

(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.

(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.

5 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.
TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 5 Preparation func tion (canned cyc le)

5.5 Canned cycle for tool change (non-stop ATC)


(G100)
(1) When TC-32B/32BN

Command format G100 T _ X _ Y _ Z _ R _ A _ B _ L _ ;

(3) (4)
 ATC original
position X original X ATC
position position

(2) (5) (2) (3)

(4)
R point
(6) (5) 5

(1) (7) Y ATC


Single block position
stop point
XY axes direction

Z axis direction

eNCPR5.34.ai
T__ : Tool number. (1 to 99)
T1 _ _ : Pot number. (101 to 149)
T9 _ _ : Group number. (901 to 930)
A, B : Target value when moving A and B axes at in rapid feed simultaneously with tool
change motion.
X,Y : Target value of movement (6) in rapid feed.
Z : Target value of movement (7) in rapid feed.
R : Return position before tool change motion.
(Operated with tool length compensation applied)
When "R" is not commanded, operation is performed using [ATC
SYNCHRONOUS START POS] of USER PARAMETER 1 as "R" command value.
L : Specify the tool number, pot number, and group number after “L”.
The pot with the corresponding tool attached is indexed by
operation (4) after ATC. (Next tool preparation)
Operations
(1) Tool moves to the Z-axis point "R" while performing 0-degree spindle orientation.
When "T" is commanded, magazine swivels.
(2) Tool movements to the Z-axis ATC origin, to the X axis origin point and to Y axis ATC
 position, A, B axes movement to the commanded value and also magazine cover opening
occur simultaneously.
(3) Tool moves to the X-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 details.
(5) Tool movements to the X axis origin point and Z axis point "R" and magazine cover closing
occur simultaneously.
(6) XY axes moves to the commanded value.
TC-32BQT/32BFT/22B/S2C/
Chapter 5 Preparatio n func tio n (canned cyc le) 31B/32BN/S2Cz/S2D/R2B

Caution
• When performing c ycle operation, tool moves in cuttin g 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 pos itioning (ATC position)), tool moves in cuttin g mode when Y axis
positio ns at the ATC position b efore X axis does.

• When [RESET] key or [ STOP SWITCH] k ey is pressed at operatio ns (2),


machine stops after Z axis movement to ATC origin point .
For X, Y, A, and B axes movement, machin e stops i mmediately.

• When [RESET] key or [STOP SWITCH] k ey is pressed b etween 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 operation after closing the
magazine cover without checking i f th e magazine cover is cl osed.

• Mode cannot b e swit ched betw een operatio n (1) and (7).
5 •  Al l data oth er than G100 can be omit ted. How ever, c ode " 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 f rom operation (2).

• When tool off set (G41 or G42) and X and Y axes mo vement are commanded t o
bloc k G100, tool of fset begi ns w hen 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 off set becomes valid f rom
operation (5).

• When G100 is c ommanded wh ile too l lengt h com pensation (G49) is canceled,
operation (1) is perform ed sub ject to [ATC REFERENCE TOOL L ENGTH]
selection for user parameter.
When tool offset is not commanded to block G100, operations (5) are
perform ed subj ect to [ATC REFERENCE TOOL LENGTH] selection for user
parameter.

•  Al arm appears w hen c ode M other than spindle command i s c ommanded t o
bloc k G100.
 Al arm appears w hen ax is A or B is commanded while opt ional A and B axes
are not in use.

• When point " R" comm and position (5) is low er than Z axis command position
(7), tool moves to Z-axis commanded position, and operation (7) is not
performed.

Tool change motion


Tool change motion differs depending on tool type set on [ATC TOOL] screen.

· Tool change from standard tool to standard tool, and large tool to large tool.
The following sequence is performed:
(1) Pot raises.
(2) Magazine swivels.
(3) Pot lowers.
(4) Arm swivels.
TC-32BQT/32BFT/22B/S2C/
Chapter 5 Preparatio
Preparatio n func tio n (canned cyc le) 31B/32BN/
31B/32BN/S2C
S2Cz/S
z/S2D/
2D/R2B
R2B

When spindle tool is standard and next tool is large, empty pot is indexed for standard tool.
When spindle tool is large and next tool is standard, empty pot is indexed for large tool.

(Note
(Note 1) If empty pot for large tool is not available
available when next tool prepara
preparation
tion
fro m a large tool t o a standard to ol is perform ed, the [NO EMPTY
EMPTY POT]
POT]
alarm appears.
(Note
(Note 2) If empty pot for standard tool is not available
available when next tool
preparation
preparation from a standard
standard to ol to a large tool is performed, the [NO
[NO
EMPTY
EMPTY POT]
POT] al arm app ears.

5
TC-32BQT/32BFT/22B/S2C/
31B/32
31B/32BN/S2
BN/S2Cz/
Cz/S2D
S2D/R2
/R2B
B Chapter 6 Preparation
Preparation func tion (coordi nate calcul ation)

CHAPTER 6

PREPARATION FUNCTION
(COORDINATE CALCULATION)
6.1
6.1 List of coordin ate calculation
calculation function
6.2
6.2 Coordin ate calculatio n parameter
parameter 6
6.3
6.3 Details
Details of coo rdin ate calculatio n fun cti on
6.4
6.4 Usage
Usage of coor dinate calculatio n fun ctio n
TC-32BQT/32BFT/22B/S2C /
Chapter 6 Preparatio
Preparatio n func tion (coordi nate calcul ation) 31B/32BN/S
31B/32BN/S2Cz
2Cz/S2
/S2D/R
D/R2B
2B

6 Coordin
oor dina
ate calcu
calcula
latio
tionn functi
fun ction
on
This function is for calculating the poin t group coordinates in one block.
Point groups are such as on a linear line, on a grid and on a circular arc.
By combining such functions as the canned cycle etc., drilling at each point group is available by
one command.

6.1
6.1 List
Lis t of Coordi nate Calculatio n Function
Functi on
Table
Table 6-1
6-1 List of c oordinate calculation functi on
G code Name Functio n
Coordinate calculation of point group on
G36 Bolt hole circle
circular arc.
Coordinate calculation of point group on linear
G37 Linear (angle)
line by angle designation.
Coordinate calculation of point group of linear
G38 Linear (X,Y)
line by coordinate designation.
G39 Grid Coordinate calculation of point group on grid.

6.2
6.2 Coord inate
in ate Calc
Calcul
ulatio
ationn Parameter
Parameter
Command format G36
·
6 ·
.
X_Y_I_J_K_P_Q_ ;

G39

X,Y: Reference point of coordinate calculation


I,J,K,P,Q: Coordinate calculation parameter

(1) Reference point coordinate (X,Y)


This should be commanded by the working coordinate system.
When this is omitted, the current position becomes the reference point.

(2) Coordinate calculation parameter (I,J,K,P,Q)


This should be commanded in the same block as the G36~G39.
This parameter is effective only in the block, and automatically cleared after calculation is
finished.

Relation of each calculation function and parameter is as shown below.


Parameter
Function G code
I J K P Q

Bolt hole circle G36 ● ● ● ●


Linear(angle) G37

Linear(X,Y) G38
● ●

Grid G39 ● ● ● ● ●
● : Be sure to specify. Otherwise, alarm occurs.
: If the command
command is omitted, it is regarded
regarded as
as 1.
Brank : It is no need to enter any data. Any data will be ignored.
TC-32BQT/32BFT/22B/S2C/
31B/32
31B/32BN/S2
BN/S2Cz/
Cz/S2D
S2D/R2
/R2B
B Chapter 6 Preparation
Preparation func tion (coordi nate calcul ation)

6.3
6.3 Details
Details of Coordin
oor din ate Calcu
Calculation
lation Functi on
6.3.
6.3.1
1 Bolt hol e cir cle
While setting the commanded coordinate value as a circular center, the coordinate value equally
dividing a circular arc from a certain point is calculated.

Command format G36 X_ Y_ I_ J_ K_ P_ ;

X,Y : Coordinate of the circular arc center


I : Circular arc radius
J : Angle of the start point to the X axis
K: No. of machining (Max. 999)
P : No. of divisions (Max. 999.999)
(Ex.) G36 X0 Y0 I50 J30 K5 P6 ;

eNCPR6.05.ai
(Note) Coordinate values are calculated from the start point in the CCW direction.

6.3.2
6.3.2 Linear
Li near (angle)
(angl e)
With the reference point at the commanded coordinate, the coordinate values along the linear line
at the angle (θ°) formed by the X axis are calculated.

Command format G37 X_ Y_ I_ J_ K_ ;

X,Y: Coordinate of reference point


I : Interval between machning points
J : Angle intersecting the X axis
K : No. of machining (Max. 999)
TC-32BQT/32BFT/22B/S2C /
Chapter 6 Preparatio n func tion (coordi nate calcul ation) 31B/32BN/S2Cz/S2D/R2B

eNCPR6.01.ai
(Note 1) When K is omit ted, it is regarded as 1.
(Note 2) The reference poin t becomes the firs t machin ing poin t.

6.3.3 Linear (X, Y)


With the reference point at the commanded coordinate, the coordinate values added in the X and
6 Y directions respectively are calculated.

Command format G38 X_ Y_ I_ J_ K_ ;

X,Y : Coordinate of reference point


I : Interval on the X axis
J : Interval on the Y axis
K : No. of machining (Max. 999)
(Ex.) G38 X0 Y0 I20 J15 K4 ;

eNCPR6.02.ai
(Note 1) When K is omit ted, it is regarded as 1.
(Note 2) The reference poin t becomes the firs t machin ing poin t.
TC-32BQT/32BFT/22B/S2C/
31B/32BN/S2Cz/S2D/R2B Chapter 6 Preparation func tion (coordi nate calcul ation)

6.3.4 Grid
With the reference point at the commanded coordinate, the coordinate values of the grid
composed of points arranged at an even interval and parallel to both the X-axis and the vertical
axis are calculated.
By specifying an angle to the X axis, the total form can be inclined.

Command format G39 X_ Y_ I_ J_ K_ P_ Q_ ;

X,Y : Coordinate of reference point


I : Interval on the X axis
J : Interval on the Y axis
K : No. of machining point in the X direction (Max. 999)
P : No. of machining point in the Y direction (Max. 999)
Q : Angle intersecting the X axis

(Ex.) G39 X0 Y0 I20 J25 K4 P3 Q30 ;

eNCPR6.03.ai
(Note 1) The reference poin t becomes the firs t machin ing poin t.
(Note 2) The coor dinate is calulated in the X direct ion from the reference poin t .

6.4 Usage of Coordin ate Calculation Function

eNCPR6.04.ai
Chapter 7 Macro TC-32BQT/32BFT/22B/S2C/31B/
TC-32BQT/32BFT/ 22B/S2C/31B/32BN/S2Cz/
32BN/S2Cz/S2D/R2B
S2D/R2B

7.1 What is a Macro?


A “macro” has five main functions: variable function, calculation function, control function
(condition branch), call function (performs the same operation repeatedly) and external output
function. Using these macro functions
functions allows you to create
create original canned
canned cycles or more
flexible programs.
Details of these functions are explained in the following sections:
7.2 Variable function
7.3 Calculation function
7.4 Control function
7.5 Call function
7.6 External output function
Examples of how these functions are combined are shown below in example 1, and on the
following page in example 2 and example 3.
The program creation procedure will be explained in the subsequent sections.

e.g.1 Tool breakage detection is performed


performed once when machine program
program has been
executed ten times.

N01G90G0G54. . . . .;
N02;[WORKING PROGRAM]

N50#100=#100+1 ; (Count up)


N511IF[#100LT10] GOTO 55 ;
(Proceeds to N55 when contents of #100 are less than 10)
N53M200; (Tool breakage detection)
N54#100=0 ; (Counter reset)
N55M30 ;

7 e.g.2 Program that performs


performs arc cutting
cutting by designating
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

N01G90G54G0Z30. ;
N02G65P0042X-100. Y-100. R50. Z-3.
W2. UO. V30. F1000;

Macro program O0042

N01 G90G0X[#24+COS[#21]*#18]
 Y[#25+SIN[#21]*#18
 Y[#25+SIN[#21]*#18];
];
N02 Z#23;
N03 G1Z#26F#9;
N03 G3X[#24+COS[#22]*#18]
 Y[#25+SIN[#22]*#18
 Y[#25+SIN[#22]*#18 R#18;
N04 G0Z#23;
N05 M99;
TC-32BQT/32BFT/22B/S2C/31B
TC-32BQT/32BFT /22B/S2C/31B/32BN/S2Cz
/32BN/S2Cz/S2D/R2B
/S2D/R2B Chapter 7 Macro

eNCPR7.01.ai

e.g.3 Automatic workpiece measurement result is output to an external unit.

N01G90G54 …;
N02POPEN
7
N03DPRNT[#3011[80]#3012[60]]; (Current date and time are output)

・ Automatic workpiece
workpiece measuring
measuring program
program

N50DPRNT[X#3601[63]*#3602[63]*#3603[63]]; (Measurement result is output)


N51PCLOS
N52M30;

7.2 Variable Function


7.2.1 Outline of variable function
For normal programs, commands are given by directly designating a numerical value
(e.g. G90, X200). Using the macro’s variable function allows you to use the value
stored in the variable for G and X commands.
The value stored in the variable can be changed in PROGRAM
PROGRAM mode or in MDI mode.

7.2.2 Expression of variable


The variable number is designated after “#”.
[Example 1] #100
Using brackets [ ] when designating the variable number allows you to use the value stored in the
variable or to use a formula.

[Example 2] #100 = #[100+10]


This formula specifies that the value stored in variable #110 is
written to #100.

[Example 3] When #1 = 9, #9 = 20, and #20 = 30,


#5 = # [# [#1]] is equal to #5 = 30.
Chapter 7 Macro TC-32BQT/32BFT/22B/S2C/31B/
TC-32BQT/32BFT/ 22B/S2C/31B/32BN/S2Cz/
32BN/S2Cz/S2D/R2B
S2D/R2B

[Example 4] #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
used as address data are
are rounded off.
 Note that an alarm will occur if the value rounded off
off to the nearest significant
significant digit
exceeds the maximum address command value.
[Example] Assume that the G00X#1; command is used used for
for a machine with a
significant digit setting of 1/1000.
When #1 is 12.345678, the command format will be G00X12.346.
Variable cannot be quoted in address N.

[Example 5] N#20 cannot be used.


used.

[Example 6] G00X[#1+#2];
When designating the address data by a formula, put the square brackets before and
after the formula.

7.2.3 Undefined variable


When the value of the variable is not defined, it is called a “NULL” variable.
#0 is always a “NULL” variable. This can be read bu t cannot be written.

e.g.1 When #1 is <Blank>.


G01X#1Y100.

You might also like