Mitsubishi Meldas 300V - HDLT (Lathe) - Programming Manual
Mitsubishi Meldas 300V - HDLT (Lathe) - Programming Manual
MITSUBISHI CNC
/MELD/IS3OOWseries
PROGRAMMING MANUAL 320L-V/330L-V
i 320HL-V/330HL-V 1
MITSUBISHI ELECTRIC
INTRODUCTION
This manual has been prepared for the MELDAS 320L-V/330L-V/320HL-V/330HL-V systems which are software-
fixed configuration types of computerized numerical controllers (CNC) designed for executing high-performance
contouring control mainly with lathes.
This manual details the progr amming of the above systems and it should therefore be read prior to the use of these
systems.
This manual has been written on the assumption that all the system functions have been provided although not all
the functions may be featured when the CNC in question is supplied. For use,, therefore, check the table of
functions provided for each system on the following page and also consult the specifications manual issued by the
machine builder.
CONTENTS
1. CONTROL AXES ............................................................. 1
I
CONTEIWS.
8. DWELL ................................................................... 87
II
I
CONTENTS,
III
CONTENTS. -
IV
,,
TABLE OF FUNCTIONS FOR EACH SYSTEM (1)
v
—: Not provided O: Standard A: Option
Item No. Description 320L 330HL
9. MISCELLANEOUS FUNCTIONS ... ...
9.1 I MISCELLANEOUS FUNCTIONS (M2-DIGI’R3 I
!
1010
9.2 MISCELLANEOUS FUNCTIONS (MS-DIGITS) A A
9.3 SECONDARY MISCELLANEOUS FUNCTIONS
A A
(.WB/c 8-DIGITS)
10. SPINDLE FUNCTIONS ... ...
10.1 SPINDLE FUNCTIONS C32-DIGITS) o 0
10.2 I SPINDLE FUNCTIONS (S5-DIGITS ANALOG) A A
10.3 I SPINDLE FUNCTIONS (S8-DIGITS) I IA IA
10.4 SPINDLE FUNCTION (CONSTANT PERIPHERAL
A A
SPEED CONTROL) (G96, G97)
10.6 SPINDLE FUNCTION (MULTI-SPINDLE) A A
11. TOOL FUNCTIONS ... ...
11.1 TOOL FUNCTIONS (T4-DIGITS) o 0
11.2 ! TOOL FUNCTIONS (T8-DIGITS) I IAIA
12. TOOL OFFSET FUNCTIONS ... ...
12.1 TOOL OI?FSET No. of setx 20 0 –
No. of sets 40 A o
12.2 I TOOL LENGTH OFFSET I Iolo
12.3 ! TOOL NOSE WEAR COMPENSATION I 1010
12.4 I TOOL NOSE R COMPENSATION (G41, G42, G46, G40 I 1010
TOOL NOSE RADIUS COMPENSATION (G38 R G42)
A A
(FOR MILLING FUNCTIONS)
12.5 PROGRAMMED TOOL” COMPENSATION INPUT (G1O) A A
13. I PROGRAM SUPPORT FUNCTIONS I I ... I ,..
13.1 CANNED CYCLES FOR TURNING LONGITUDINAL
o 0
CUTTING CYCLE (G77)
THREAD CUTTING CYCLE (G78) o 0
I FACE TURNING CYCLE (G79)
. . I 1010
13,2 MULTIPLE REPETITIVE CANNED CYCLES FINISHING
A A
CYCLE (G70)
I LONGITUDINAL ROUGH TURNING CYCLE (G71) A A
I FACE ROUGH TURNING CYCLE [G72) I
STOCK REMOVAL IN ROUGH MACHINING CYCLE A A
(G73)
FACE CUT-OFF CYCLE (G74) A A
LONGITUDINAL CUT-OFF CYCLE (G75) A A
MULTIPLE REPETITIVE THREAD CU’ITING CYCLE
A A
(G76) I
VI
-: Not provided O: Standard A: Option
Item No. I Description I
13.3 I HOLE MACHINING CANNED CYCLE CANCEL (G80) I IAIAI
DEEP HOLE DRILLING CYCLE 1 (Z AXIS) (G83) A A
TAPPING CYCLE (Z AXIS) (G84) A A
BORING CYCLE (Z AXIS) (G85) A A
I DEEP HOLE DRILLING CYCLE 1 (X AXIS) (G87) I IAIAI
TAPPING CYCLE (X AXIS) (G88) A A
BORING CYCLE (X AXIS) (G89) A A
HOLE MACHINING CYCLE INITIAL POINT, A A
REFERENCE POINT LEVEL RETURN [G98, G99)
13.4 DEEP HOLE DRILLING CYCLE 2 A A
13.5 SUBPROGRAM CONTROL (M98, M99) o 0
13.6 I VARIABLE EXPONENTS (#n) A A
I
13.7 I USER MACROS (G65, G66, G66.1, G67) I IA]AI
13.8 I FACING TOOL REST MIRROR IMAGE (G68,
.-. G69) I IAIAI
13.9 CORNER CHAMFERING, CORNER ROUNDING I A A
(LINE-LINE)
13.10 CORNER CHAMFERING,
(ARC-LINE, ARC-ARC)
CORNER ROUNDING II
I I A
I A
I
13.11 LINEAR ANGLE COMMAND o 0
13.12 GEOMETRIC COMMAND I A A
,
13.13 I DATA SETTING [G1O, Gil) I IAIAI
14. I COORDINATE SYSTEM SE’ITING FUNCTIONS I I ... I ... I
14.4 BASIC MACHINE COORDINATE SYSTEM (G53) o 0
14.5 COORDINATE SYSTEM SETTING (G92) o 0
14.6 AUTOMATIC COORDINATE SYSTEM SETTING o 0
14.7 I AUTOMATIC REFERENCE POINT RETURN (G28, G29) I Iolol
14.8 I 2ND, 3RD. 4TH REFERENCE POINT RETURN (G30) I IAIAI
14.9 REFERENCE POINT CHECK (G27) o 0
14.10 WORK COORDINATE SYSTEMS SETTING AND o 0
\ OFFSET (G54 N G59) I t
14.11 LOCAL COORDINATE SYSTEM SETTING (G52) o 0
15. PROTECTION FUNCTIONS ... ...
15.1 I BARRIER CHECK ON/OFF (G22, G23) A A
16. I MEASUREMENT SUPPORT FUNCTIONS I I ... I ...
16.1 I SKIP PUNC’TION (G31) I A I A
VII
1. CONTROL AXES
1.1. COORDINATE WORD AND CONTROL AXIS
1. CONTROL AXES
1.1. CO ORDINATE WORD AND CONTROL AXIS
In the case of a lathq the axis parallel to the spindle is known as the Z axis and its forwarddirecti~ is the direction
in which the tool rest moves away from the headstock while the axis at right angles to the Z axis ]s the X axis and
its forward direction is the direction in which it moves away from the Z axis, as shown in the figure below.
Tailstock
!
Headstock
Since coordinates based on the right hand rule are used with a lathe, the forward direction of the Y axis in the
above figure which is at right angles to the X-Z plane is downward. It should be borne in mind that an arc on the
XZ plane is expresed as clockwise or counterclockwise as seen from the forwa~d direction of the Y axis. (Refer
to the section on circular interpolation.)
G52,
*
2nd reference point - -1-z
/“’”
G28 e Q ----
+x
K Q-”
Reference point
(+Y)
@
Relationship between coordinates
-1-
1. CONTROL AXES
1.2.COORDINATE SYSTEMS AND COORDINATE ZERO POINT
SYMBOLS
-4 : Reference point ‘
Upon completion of the reference point return, the parameters are referred to and automatically set for the basic
machine coordinate system and work coordinate systems (G54 — G59).
The basic machine coordinate system is set so that the first reference noint is at the uosition desimated bv. the
parameter from the basic machhe coordinate zero point (machine zer~ point). “
Camdnate
z, !ySem q@em Sjstem Syxem . x,
x* 1 (GM) 2 (G55) 5 (G58) 6( G59)z;
L <L
- -4*- >+:” ----+---- --- “-----$&r---- -7++--–- -
fy&&T - ‘3” -p---- , ~ ~ -~y---” -y#r--
~ #. ‘--
Y 1 atesystem
ccordinate i I I
stem I 1 !, I t
shiftedby 1.”1 I i xi (G52)
?I92) /
-1-x z,
I . *
1
1st reference poin
The local coordinate system (G52) is vaIid on the coordimte systems designated by the commands for the work
coordinate systems 1 through 6.
Using the G92 command, the basic machine coordinate system can be shifted and made the hypothetical machine
coordinate system. At the same timq work coordinate systems 1 through 6 are also shifted.
-2-
2. INPUT COMMAND UNITS
2.1. INPUT COMMAND UNITS
NOTE 1: Inch/metric conversion is performed in either of 2 ways: conversion from the parameter
scra (“initial inch”: valid only when the power is switched on) and conversion using the G
command (G20 or G21).
However, when a G command is used for the conversion, the conversion applies only to the
input command units and not to the input setting units.
Consequently, the tool offsel amounts and other compensation amounts as well as the
variable data should be preset to correspond to inches or millimeters.
2: The millimeter and inch systems cannot be used together.
-3–
2. INPUT COMMAND UNITS
2.3.COMMAND UNIT xl~
NO= The figures on the table’s top level of the MELDAS- 300 movement amounts apply to decimal
point input type 1 and those on the bottom leweI apply to decimal point input type 2.
For rotary axes, the type must be aligned with the command units when preparing the machining
programs. The parameters are changed by the machine parameter settings.
-4-
3. DATA FORMATS
3.1.TAPE CODES
3. DATA FORMATS
3.1. TAPE CODES
. ..
The tape command codes used for this MELDAS series are combinations of alphabet letters (A, B, C ... Z)j
numbers (O,1,2 ... 9) and signs (+, –, / ...). These alphabet letters, numbers and signs are referred to as characters.
Each character is represented by a combination of 8 holes which may, or may not, be present.
These combinations make up what is called codes.
This MELDAS series employs two types of tape cod= the EfA code (RS-244-A) and the 1S0 code (R-84-O).
NOTE 1: If a code not given in the tape code table in Fig. 1 is assigned during operation, an illegal
address error (P32) will result.
2 The following codes which exist with 1S0 but not with EIA can be designated by paramettm
[ (left square parenthesis)
~ (right square parenthesis)
(sharp sign)
* (asterisk)
= (equals sign)
. (tilon)
exclamation mark) = (queuing code) Valid only for
!$’ [dollar sign)= (code designating system number) 33CHL
}
Any codes which overlap with existing codes or codes which result in parity H
cannot be designated.
NOTE 3: EJ2VIS0 conversion is done automatically by the first EOB/LF code after NC resetting.
NOTE 4: For the sake of Convenience a semicolon@ has been used in the CNC display to indicate the
end of a block (EOB/LF) which separates one block from another. Do not use the semicolon
key, however, in actual programming but use the keys in the following table instead.
EOBiEOR keys and displays
** 00 ●0 90
-5-
3. DATA FORMATS
3.1.TAPE CODES
Example of HA code
. $*.:.* **:* @*
● *O ● 00
● m********* ● 94 .*.**.*. *.*
● O* ● O
*O* ● *
**
A.:. ● OQ ●
● ●
I
Tape name print-out tzxample
\
I Example of
1S0 code
J. C
~RGOOX- 85000
@e@*
Y-64000 (CUTTER:
:0 *
RETURN)p
L
::900”:*O** ●:O***********000 ●
** :*:*:* ***0 * ●
**0* O.*e *99* ● O******.*** ***********
● ●
‘g00$0$:0040000000
●
O.OOOO ●o@@**ooo*
**g ●**--* 00
● ●
● 00800
e
.0
MO** O* OO***O
0009000 * 9●
* ● ●
‘y““”””+~
1 :“”-””
%locm ;
L-& 2m
Initial block Last bIock
If a tape handler is not used, there is no need for the 2-meter dummy at both ends of the tape or for the head EOR
(%) code.
-6-
3. DATA FORMATS
3.1.T@E CODES
The EL4 or ISO code is automatically identified by the first EOB/LF code after NC resetting.
is
Codes (A) are stored on tape but an error results (except when they are used in the comment section) during
operation.
The (B) codes are non-working codes and are always ignored.
:::~~ There are no EI.A standard codes corresponding to the areas.
j;:;;::,;},:.:,
..,.
Fig. 1 Table of tape codes
–7-
3.DATA FORMATS
3.2.PROGRAM FORMATS
Word
F %
❑looo------o
L Alphabet (address)
Word” configuration
The alphabet letter at the head of the word is the address. It defines the meaniw of the numerical
information which folIows it.
“s;>=” can be commanded for a multiple number of spindle commands although this applies only to address
s.
For details of the types of words and the number of signiilcant digits of words used for this MELDAS series,
refer to Table 1 containing the format abbreviations.
(2) Blocks
A block is a collection of words. It includes the information which is required for the nuxnerkdly cantrolkd ‘
machine to execute specific operations. One block unit constitutes a complete cmumand. The end of each
block is marked with an EOB (end-of-block) code.
(3) Programs
A program is a collection of severaI blocks.
-8-
3. DATA FORMATS
3.2.PROGRAM FORMATS
Item Abbreviation
Program number 08 . ..
Sequence number N5
Preparato~ function G3iG21
Movement axis Input setting unit A 0.01 “, mm X+62 Z+62 ++62
Input setting unit B 0.001 “, mm x-t-53 z-t-53 ++53
Input setting unit C 0.0001 0, x+44 Z+44 ++44
mm
Movement Input setting unit A 0.01 0, mm 1+62 K+62
command, arc, Input setting unit B 0.001 0, mm 1+53 K+53
cutter radius
hput setting unit C 0.0001 0, 1+44 K+44
mm
Dwell Inpnt setting unit A 0.01 0, mm X+53 P8
Innut settirm unit B 0.001 “. mm X+53 P8
Input setting unit C 0.0001 0, X+53 P8
mm I
Feed function Input setting unit A 0,01 “, mm F62 @er-minute feed) F43 (per-revolution feed)
Input setting unit B 0.001 “, mm F53 (per-minute feed) F34 (per-revolution feed)
Input setting unit C 0.0001 0, F54 (per-minute feed) F25 (per-revolution feed)
1-
Tool offset T1/T2
Miscellaneous fim-iction M2fM8
Snindie function S21S5/S8 or SO = n (for 330HL svstem onlvl
Tool function T2/T8
2nd miscellaneous function A8/B8/c8
Subprogram P8H5L4
Canned cycle Input setting unit A 0.01 0, mm R+62Q62P8L4
Ikmut settimz unit B 0.001 0. mm R+53 053 P8 L4
I Input scttingunit C 0.00010, I R+44 Q44 P8 L4 I
-9-
3.DATA FORMATS
3.3.TAPE MEMORY FORMAT
*8 o 9 :.*H *O ● @
: @ @e 00
**
9*9*9*4090*
**:
e**9*0*,
Q
*0W+
:
90*009
*O
*~*00
* : *:O
8*9*9***
e m 90 *
* * 00 O*O* ●*
:99: @Q* 00 ** @ o O* @@ *
e * * *9
e * e
k
A
When a parity H error occurs, the tape stops following the alarm code.
-12-
3. DATA FORMATS
3.6.PARITY H/V
(2) Parity V
A parity V check is done during tape operation, tape input and sequence number search when the parity V
check function is turned on by the “parameter” page setting of the setting and display unit. It is not done
during memory operation.
A parity V error occurs in the following case when the number of codes from the first significant code to
the EOB ~) in the significant data section in the vertical direction of the tape is an odd number, that is, when
the number of characters in one block is odd.
When a parity V error is detected, the tape stops at the code following the EOB (J.
(Example 3)
IxMHLl
}
This block causes a parity V error.
rwsm2 1: Among the tape codes me both codes which are counted as characters for parity and codes
which are not counted as such. For details, refer to the tape code table in Fig. 1 of S@ion
3.1.
2: J%Iy space codes which may appear within the seztion from the initial EOB code to the
address code or “/” code are not counted for parity V check.
-13-
,,
3.DATA FORMATS
3.7.G CODE SYSTEM
NOTE 1: An alarm results when a G code not listed in the table is commanded. (“P34”: G-CODE
ERROR)
2: An alarm results when a G code not included in the optional specifications is commanded.
(Example) An alarm (“P50”: NO INCH/MM SPEC ) occurs when the inch command G
code (G20) is commanded although the inch/mm specifications have not been
provided.
TABLE OF G COMMANDS
F“
1 19121 1 213
GOO GOO GOO 01 Positioning G31 G31 G31 00 ISkip function
GO1 ~GOl ‘GO1 01 Linear interpolation G32 E G33 01 IThread cuttiruz
G02 I G02 I G02 I 01 Circular interpolation G34 G34 G34 01 Vriable lead thread
fclockwisel cutting
G41
*
07
07
Tool nose R
compensation cancel
Tool nose R
Data setting G41 G41
G1O \ G1O I G1O I 00
compensation left
Gll Gll iData setting mode
I Icancel G42 G42 G42 07 Tool nose R
I
compensation right
312.1 G12.1 G12.1 19 Milling mode ON
v v G43 G43 ‘G43 08 * 2nd spindle control
313.1 G13.1 G13.I 19 Milling mode OFF OFF
9
G14 r G14 ~ G14 18 Balance cut OFF G G44 GM 08 * 2nd spindle control
G15 G15 G15 18 Balance cut ON ON
1G17 ‘G17 = G17 02 Plane selection Xp- G46 G46 G46 07 Tool nose R
Yp compensation
(automatic selection
1G18 -G18 ‘G18 02 Plane selection Zp-
of direction) ON
Xp
z G92 G92 00 Coordinate system
Ez3E
1G19 ‘G19 ‘G19 02 Plane selection Yp-
settiqj spindle clamp
Ill
I I Izll ‘1
speed setting
~G20 w G20 - G70 06
G52 G52 G52 00 Local coordinate
1G21 ‘G21 ‘G71 06 system setting
G22 G22 G22 04 G53 G53 G53 00 Machine coordinate
G23 ~ G23 ~ G23 I 04 Carrier check OFF svstem selection
I
G27 G27 G27 00 Reference point G54 G54 G54 12 Work coordinate
return check system 1 selection
G23 G28 G28 00 Reference point G55 G55 G55 12 Work corodinate
return system 2 sekction
G29 Return from G56 G56 G56 12 Work coordinate
;reference r)oint I system 3 selection
G30
e
-14-
3. DATA FORMATS
3.7.(3CODES YSTEM
G CODE SYSTEM
Function Function
-&12&ilGr”up uzGzL.lGroup
1 2 3
G57 G57 G57 Work coordinate G83 G83 G83 09 Deep hole driig
I svstem 4 selection Cvcle 1 (z axis)
G58 G58 G58 12 Work coordinate G79 G83.2 G83.2 09 Deep hole drilling
system 5 selection cycle 2
G59 G59 G59 12 Work coordinate G84 G84 G84 09 Tapping cycle (Z
system 6 selection I I i Iaxis)
G61 G61 G61 13 Exact stop check G85 G85 G85 09 Boring @cle (Z axis)
, mode G87 G87 G87 09 Deep hole driig
G64 ~ G64 r G64 I H ICutting mode
II cycle (X axis)
G65
%-t%-R- ‘Macro call G88 G88 G88 09 Tapping cycle
(x axis)
F33=
G66 lMacro modal call A I
G66.1
G67
G68
w G89
G90
!S92
G89
G77
G78
G89
G20
G21
09
09
09
Boring cycle (X axis)
Lorlgitudinal turning
canned cycle
Thread cutting
canned cvcle
G69 G94 G79 G24 09 Face turning canned
cycle
1 1
G70 G70 ! G72 I 09 ~Ftishmg cycle ‘G96 ‘G96 ‘G96 17 Constant peripheral
speed control
G71 G71
I
G73 09 ‘Longitudinal turning
cvcle I
‘G97 ‘G97 “’G97 17 Constant peripheral
sueed
. control cancel
G72 G72 G74 09
t- b G98 - G94 p G94 05 Asynchronous feed
L
G73 G73 G75 09 ‘Stock removal in m G99 = G95 mG95 05 Synchronous feed
~rough machining — ‘G90 G90 03 Absolute value
cvcle command
G74 G74 G76 09 Face cut-off cvcle I — ‘G91 ‘G91 03 Incremental value
I G75 I G75 I G77 I 09 Ikmgitudimd cut-off I command
cycle — r G98 v G98 10 Hole machining cycle
==1
Multiple repetitive initial return
thread cutting cycle
HoIe machining cycle
I I cancel
I I I I j command I
NOTE: k The “v” mark denotes a G code which is selected within each group when the power is switched
on or when resetting that initializes the modal commands is executed.
2 The “m” mark denotes a G code for which a parameter can be selected as the initial status when
the power is switched on or when resetting that initializes the modal commands is executed.
–15–
4. BUFFER REGISTER
4.L INPUT BUFFER
4. BUFFER REGISTER
4.1. mlz-m ImFF13Rs
1) During automatic processing the contents of 1 block are normally preread so that program analysis
processing is conducted smoothly. However, during tool nose R compensation, a maximum of5 blocks
are pr~read for the intersection point calculation including interference check.
2) The specifications of the data in 1 block areas follows:
“ The data of 1 block are stored in this buffer.
“ Only the significant codes in the significant data section are read into the pre-read buffer.
“ When males are sandwiched in the control in or control out mode and the optional block skip
function is ON, the data extending from the “/” (slash) code up to the EOB code are not read into
the pm-read buffer.
“ The pre-read buffer contents are cleared with resetting.
“ When the single block function is ON during continuous operation, the pre-read buffer stores the
following block data and then stops operation.
..—.
-1
Analysis proctxxing
------ ..- —. —- ------ --. —-- --- .-— _____
i I
Max. 5 execution blocks I
I 1
Keyboard
n Memory —
i 1
Mode ~
switching ~
~
n.
Arithmetic
processing
~
~
I
1
.
EEF-+El-
I
~ Not& Data equivalent to 1 block are stored in 1 I
I pre-read buffer. I
I I
1------ ---—-—- ——---- -—--—— --- —-- ---- I
)
.- —----- ---- -—-- —-—--- - -------- ------ —.—..—--- --- - ---------- ---------- .—— - ,----
–16-
5. POSITION COMMANDS ‘‘
5.1.INCREMENTX.?XAB SOLUTE VALUE COMMANDS
5. POSITION COMMANDS
5.1. INCREMENTAL/ABS OLtJTE VALUE COMMANDS
There are2 methods of issuing tool movement amount commands: the incremental value method arid the absolute
value method.
The incremental value method applies for coordinates of a point which is to be moved and it issues a cummand
using the distance from the present point; on the other hand, the absolute value system issues a command using
the distance from the coordinate zero point. The following figure shows what happens when the tool is moved
from point PI to point P2.
X axis
1
Spindle
—. p2Z axis
The incremental and absolute commands for the X and Z axes are identified by addresses when control narameter
.
#6 is ON and by G codes (G90/G91) when it is OFF.
Similarly, even with additional mea (C or Y axis), they are differentiated by addresses, or G code. .
NOTE 1: With the 330HL system, P and R may also be used as the addressm for the additional axes.
Coordinate vahws can be omitted, in which ease they are treated as zero.
The absolute and incremental value commands can be differentiated for any axis by the G’90
and G91 commands.
Example When the C axis has been differentiated by G90/G91, (when incremental addresses
have not been set)
-17-
5. POSITION COMMANDS
5’.2. RADL4L/DIAMETRICAL COMMANDS
PI
,0
,8
// /
,/
Spindle u’ 1‘
P2 rl
—. . Z axis
NOTE 1: In the above examplq the tool moves from P1 to P2 in the minus direction of the X axis and
so when an incremental value is issued, the minus sign is given to the numerical value being
commanded.
2 In this manual, diametrical commands are used in descriptions of both the X and U axes for
the sake of convenience.
–18–
5. POSITION COMMANDS “
5.3.INCH/METRIC CONVERSION (G20, G21J
E
MM 0. – .Ooo – o. – .OoQ– o. – .Ooo – o. – .WO –
(milli- 99999. .999 99999. .999 60000. .999 99999. .999
meter)
0 – 999. .Oooo –
.9999
o – 99. .Ooo –
t--t--l
INCH 0. – .Oooo – 99999. .0 –.999 o. – .Oooo –
(inch) 9999. .9999 (359.) “ 2362. .9999 .999
o–99. .m
—
.993999
NOTE The top row gives the feed rate as a per-minute rate and the bottom row as a per-revolution rate.
-19-
5.POSITION COMMANDS
5.4.DECIMAL POINT INPUT
4) The dmimal point command is valid even for commands defining the variabie data used in
subprograms,
5) Decimal point commands for dwimal point invalid addresses are processed as integer data only and
everything below the deeimal point is ignored. Addresses which are invalid for the decimal point are
D, H, L, M, N, O, P, S and T. A1l variable commands, however, are treated as data with deeimal
points.
(4) Example of program
1) Example of program for decimal point valid address
–20-
5. POSITION COMMANDS ~
5.4.DECIMAL POINT INPUT
5.POSITION COMMANDS
5.4.DECIMAL POINT INPUT
e
Dwell at cut point
Invalid Secondary
Valid miscelkneous
function codes
Valid Valid Program tool offket
input
Valid x Valid Coordinate position
data
de&leration ranger- 1 Valid Dwell
VaIid MRC
Invalid Secondary
longitudinal/face I miscellaneous
escape amount
function codes
Cnvalid MRC shaping
Valid Program tool offset
division number
input
Valid cut-off Cyclq
Y Valid Coordinate position
return amount I data
Valid Cut-off cycle,
escape amount Invalid secondary
miscdlaneou.s
Valid Multiple repetitive function codes
thread cutting cycle,
Valid Program tool offset
finishirw allowance
input
Valid Multiple repetitive
z Valid Coordinate position
thread cutting cycleJ I data
turning cycle, taper
differenm Invalid Secondary
Valid miscellaneous
Hole machining
function codes
cyclefdeep hole ckil-
ling cycle (2), Valid Program tool offset
distance to reference input
point
Valid Program tool offset
input/Tool nose R
offset amount
(absolute)
-22-
,,
,,’
INTERPOLATION
6. FUNCTIONS
6.1.POSITIONING {RAPID TRAVERSE: Gi?Oj
6. lNTHtPOLATION FUNCTIONS
6.1. POSITIONING (RAPID TIU%VERSE: GOO)
...
(1) Function and objective
This cammand is accompanied by coordinate words. It positions the tool along a linear or non-linear path
from the present point as the start point to the end point which is specified by the coordinatfi wards.
(2) Command format
GOO Xx/Uu Zz/Ww ; The command addresses are valid for all additional axes.
Symbols x, u, z and w are coordinate values.
(3) Detaikl description
1) C)nce this command has been issued, the GOOmode is retained until it is changed by another G function
or until the GO1, G02, G03 or G33 command in the 01 group is issued. If the next command is GOO,
all that is required is simply that the coordinate words be specified.
2) In the GOOrnod~ the to;] ;S always accelerated at the start ‘point of the block and decelerated at the
end point. Execution proceeds to the next block after it has been ccmfirmed that the command pulse
of the present block is O and that the tracking error of the acc&ration/deceleration circuit is 0. The
in-position width is set by parameter.
3) Any G command (G83 – G89) in the 09 group is cancelkd (G80) by the GOOcommand.
4) Whether the tool moves along a linear or non-linear path is determined by parameter, but the
positioning time dots not change.
a. Linear path: This is the same as linear intqpolation (GO1), and the speed is limited by the rapid
traverse rate of each axis.
b. Non-Iinear path: The tool is positioned at the rapid traverse rate independently for each axis.
5] When no number following the G address, this is treated as GOO.
(4) Example of program
@ample)
f.--.---.--.m
;
*
1 1
I 4
1 I
! *1
&.-9--.v.- J
Tool rest :1
1
+x
II
t
(+ 1s0, +300)
\ I
I
I
.— .— - .—. —
—
Workpiece -l-z
Unit: mm
Chuck
\
-23-
,’
6. LVTERP OLAT.lC)NFUNCTIONS
6.L POSITIONING (RAPID TRAVERSEI WO)
NOTE 1: When the “GO non-interpolation” user parameter is OFF (not indicated in reverse vidm),
the path along which the tool is positioned is the shortest path connecting the start and end
Points. The positioning speed is automatically calculated so that the shortest distribution
~ime is obtai&d in ord& ~hat the commanded speeds for each axis do not exceed the rapid
traverse rate. . ..
When, for instant% the X-axis and Z-axis rapid traverse rates are both 9600 mm/min. the
tool will follow the”path in the figure below ;f the following is programmed:
GOOZ -300000 X400000 ;
(With an input setting unit of 0.001 mm)
End point
Actual X axis rate: 6400 mrn/min
f“
fx
‘x
\ z
1
l-—————3m—————
Start point
(Unih mm)
‘z”x’-
NOTE 2 When the “GO non-interpolation” user parameter is ON (indicated in reverse videol the tool
will move along the pat~ from the sta~ point to the end”point at the rapid travmse rate of
each axis.
When. for instance the X-axis and Zaxis rauid traverse rates are both 9600 mm/min,,, the
tool wiIl follow the-path in the figure below ~f the following is programmed:
GOOZ -300000 X400000;
(With an input setting unit of 0.001 mm)
I
End point Actual X axis rate 9600 mrnlmin
/-’”.
fx I
---
4 Start point
@nib mm)
“7
ActuaI Z axis rate 9600 mm/min
–24-
6. INTERPOLATION FUNCTIONS
6.2.LINEAR INTERPOLATION (Gill)
NOTE 3: The rapid traverse rate for each axis with the GOO command differs according to the
individual machine and so reference should be made to the machine specifications manual.
4 Rapid traverse (GOO)deceleration check
Upon completion of the rapid traverse (GOO), execute the next block after the deceleration
check time @d) has elapsed. The deceleration check time @d) is as follows, depending on the
acceleration/deceleration type.
Linear acceleration/Iinear deceleration ..... Td = Ts + u
Exponential acceleration/DC deceleration ..... Td = 2 x Ts + a
Exponential acceleration/exponential deceleration ..... Td = 2 x Ts -i- a
Where Ts is the acceleration time constant, a = O to 14 msec
. The time required for the deceleration check during rapid traverse is the longest among the rapid traverse
deceleration check times of each axis determined by the rapid traverse acceleration/dec&ration time constants
and by the rapid traverse acceleration/dcxeleration mode of the axes mmmanded simultanmusly.
X axis
..— - -— Zaxis
-25-
6.INTERP OLATIOiV FUNCTIONS
6.2.LINE~ INTERPOLATION (GUI}
X axis
( )
I t I
f ? e Z axis .
50.0
\ /
GO1 X50.O Z20.O F300 ;
Cutting in the sequence of Pl~Pz+Pq-P4 at 300 mndmin feed rate
PO~Pl, Pq+PO is for tool positioning
2’40
200
MO Unit: mm
L +x
+2
-26–
‘,
6. INTERPOLATION FUNCTIONS
6.3.CIRCULAR INTERPOLATION (G02, G03)
X/U ... Arc end point coordinates, X axis (absolute value of work coordinate system for ~ incremental
value from present position for U)
Z/W ... Arc end point coordinates, Z axis (absolute value of work coordinate system for z incremental
value from pr~t position for W)
1... Arc center, X axis (for I, radius command/incremental value of X coordinate at center as seen from
start point)
K ... Arc center, Z axis (for K, incremental value of Z coordinate at center as seen from start point)
F ... Feed rate
X axis
Center
i
End point
u/2
“x
\ .— . .— Z axis
P
l————
‘1
–27-
6. INTERPOLATION FUNCTIONS
6.3. CIRCULAR INTERPOLATION {G02, W3)
(3)
. . Detailed description
G02 (or G03) is retained until another G command (GOO,GO1 or G33) in the 01 group that changes its mode
is issued.
The direction of the arc rotation is differentiated by G02 and G03:
G02: Clockwise (CW) ...
G03: Counterclockwise (CCW)
I LnucK
C CW(G03)
1 I
(–a I I
1 I ----- .
----”-----”1 v ~
i $_
CW(G02) !
1
-i-z
I
.—. —
i—
-f-z
1 Work- I
J ri-z
J?f CVJ(G02) I
-----
- —---
piece
--—-
____ 1
\ II
I n- c CW(G03)
+x
LJ Tool rest
An arc which extends for more than one quadrant can be executed with a single block command. .
The folIowing information is needed for circular interpolation.
a. Rotation direction: Clockwise (G02) or counterclockwise (G03)?
b. Arc end point coordinates: Given by addresses ~ & U, W
c. Arc center coordinates Given by addresses I, K (incremental commands)
d. Peed ratw Given by address F
A urcmram error results when I. K or R is not commanded.
C&sideration must be given to the sign for I and K since I is the distance in the X-axis direction to the arc center
as seen from the start point and K is the distance in the Z-axis direction.
No T commands can be issued in the G2/G3 modal status.
A program error results (“P151”) if a T cammand is issued in the G2/G3 modal status.
-28-
6. INTERPOLATION FUNCTIONS
6.3.CIRCULAR INTERPOLATION {W2, G03)
Example of program
X axis
+ ..
50.0
Coordinate 120.0
zero point
. . Z axis
J
?
70.0 50.0
1-
-29-
6.INTERPOLATION FUNCTIONS
6.3.CIRCULAR INTERPOLATION (G02,W3)
NOTE 1: The terms “clockwise” (G02) and ‘counterclockwise” (G03) used for arc operations are
defined as a case where&a ri~ht-hand coordinate system. the ne~ative direction is viewed from
the position direction of the ;oordmate axis which-is at right ar@es to the plane in question.
2: When the end point is the same position as the start point, a 360 arc (full circle) is commanded
when the center is commanded using I and K. In this case, always designate the end point.
3: The following occurs when the start and end point radii do not match in an arc command
...
1) Program error “P70” results at the arc start point when error AR is greater than the “arc error”
parameter value.
.
[ G02Zf!0. K50. :
I f’+ /
Start &
point
/
Start
Center
End
1
\
H point radius
2) Spiral interpolation in the direction of the commanded endpoint results when error Al? is less than the
parameter value.
.
Spiral interpolation
G02ZW. K50. ;
i m’”,
Although the parameter setting range is from O to 0.100 mm (input units), the parameter values in the above
examples are assumed to be extremely high in order to facilitate understanding.
-30-
!,,
‘, ,,,,,
INTERPOLATION FUNCTIONS
6. ““
6.4.R-SPECIFIED CIRCULAR INTERPOLATION (G02,G03)
\
/~ ~ kc path when R sign is Gnus
/
\
-/ \
i
\
when R sign is plus
\
\
\
The following condition must be met with an R-specified arc interpolation command:
L/2xr~l
Where L is the line from the start noint to end Doint.
If an R specification and 1, K specification are ~iven at the same time in the same block, the arc command with
the R specification takes precedence.
In the case of a full-circle command (where the start and end points coincide), an R-specified arc command will
be completed immediately if it is issued and no operation will result. An I, K-specified arc command should
therefore be used in such a case.
(4) Examples of programs
(Example 1)
G03 Zzl XzI Rrl Ffl ; ... R-specified arc on ZX plane
(Example 2]
G02 Xxl Zzl Iil Kkl Rrl Ffl ; ... R-specified arc on X2 plane ...
(When the R specification and I, K specification are contained in the same block, the R specification has
priority in processing.) .’
-31-
6. INTERPOLATION FUNCTIONS
6.5.PLANE SELECTION GI 7,G18,G19
When the power is turned on or when the system is reset, the plane set by the control parameters (initial Z-X plane,
initial Y-Z plane) is selected. If neither of these has been set, the X-Y plane is selected.
1 J
L-
G03 G03 G03
J
G17 (I-J) plane 18 (K-I) plane G19 (J-K) plane
IFARAMETER ENTRY
Basic axes and parallel axes can be entered
Basic axis Parallel axis in the parameters. The same axis name can
I x Y be entered in duplication, but when it is
J Y assigned in duplication, the plane is
determined by (4) under plane selection
K z
system Section 6-5-2.
Fig. 1 IZxamplea of plane selection parameter entry It is not possible to set axes, which have not
been entered, as control axes.
-32-
6. INTERPOLATION FUNCTIONS
6.5. PLANE SELECTION Glz G18, G19
2) Plane selection is not performed with blocks in which the plane selection G code (G17, G18, G19) is
not assigned.
G182L Z_ ; ZX plane
Y_ Z_ ; ZX plane (no plane change)
3) When the axis addresses are omitted in the block containing the plane selection G codes (G17, G18,
G19), it is assumed that the axis addreswx of the 3 basic axes have been assigned.
G18 ; (ZX plane = G18XZ ;)
4) Whtm the basic axes or their paralIeI axes are duplicated and assigned in the same block as the plane
selection G code (G17, G18, G19), the pkme is determined in the order of basic axes, and then paraliel
axes.
G18XYZ; The ZX plane is selected. Thereforq the Y’ movement is unrelakd to the selected
plane.
NOTE 1: Where the initial X-Z plane in the control parameter is kept ON, the G18 plane is selected
when the power is turned on or when the system is reset.
-33-
6. INTERPOLATION FUNCTIONS
6.6. THREAD CUTTING
F/E F/E
StraigM thread Scrolled thread Continuous thread
Xaxisb
End
point
i
u/2
, start point
- ~ “1
z w
. . Z axis
-34-
6’.INTERPOLATION FUNCTIONS
6.6.THRE# CUTTING
x
!{ u/2 ~
Tapered thread section
a’
v
w
m
—;
When a K 45° lead is in &mis direction
When a >45° lead is in X-axis direction
When a = 45° lead can be in either Z or X-axis direction.
NOTE 1: It is not mxssible to assign a lead where the feed rate as converted into per-minute feed
exceds tie maximum cu~ting feed rate.
3) The constant peripheral sped control function should not be used for taper thread cutting commands
or scrolled thread cutting commands.
4) Thq spindle speed should be kept constant throughout from the rough cutting until the finishing.
5) If the feed hold function is employed during thread cutting to stop the feed, the thread ridges will lose
their shape. For this reason, fed hold does not function during thread cutting.
If the feed hold switch is pressed during thread cutting, block stop will result at the end point of the
block following the block in which thread cutting is completed (no longer G33 mode).
6) The converted cutting feed rate is compared with the cutting feed clamp rate when thrmd cutting starts,
and if it is found to exceed the clamp ratq an operation error will rewdt. (S= NOTE 1)
7) In order to protect the lead during thread cutting, a cutting feed rate which has been converted may
sometimes excewl the cutting feed clamp rate.
8) An illegal lead is normally produced at the start of the thread and at the end of the cutting because of
servo system delay and other such factors.
Therefor~ it is necessary to command a thread length which is determined by adding the illegal lead
lengths al and 6Z to the required thread length.
–35- “
6. INTERPOLATION FUNCTIONS
6.6.THREAD CUTTING
Z axis
40.0 ~ 50.0
I
-36-
6. INTERPOLATION FUNCTIONS
6.6. TliUU%4D CUTTING
X axis w
●
End
Ir point
Z axis
(3)
. . Detailed deserintion
1) The numlkr of ridges in the Iong axis direction is assigned as the number of ridges per inch.
2) The E code is also used to assign the precision lead length, and whether the ridge number or preeision
lead kmgth is to be designated w be selected by parameter setting. ~he “G33E precision” on the
parameter page is set OFF for ridge number designation).
3) The E command value should be set within the lead value range when the lead is converted.
4) See Section 6.6.1 on lead thread cutting for other details.
6. INTERPOLATION FUNCTIONS
6.6.THREAD CUTTING
. ..
X axis
. 20.0
Z axis
T
- 40.0 50.0
/
—. — -——. —.—.—— —. ——. —. —. —.— —.— .-— —.— —-—
~.
G2?3
e
“
-38-
6. INTERPOLATIONFUiVCTIbNS
6.6.
TKlRE4DCUK?ZNG
Non-leadaxis
‘t
-
i
i
“i
i
i
Leadd$
--i-– .—. +
i
t-
‘1
Leadspeed
1’
“F+4K F+3K F+2K F+K F“
-39-
6. INTERPOLATIONFUNCTIONS .
6=6.
mm cmNG
Note 1)
Input unit
A (0.01 mm) B (0.001mm) C (0.0001mmj
system
K (n*mm/rev)
4
Command
address F (mm/rev) E (mm/rev) F (mm/rev) E (mm/rev) F (mm/rev) E (mm/rev) m no. of
pitches
Minimum 1(=0.001) 1(= 0.0001) 1(= 0.0001) 1(=0.00001) 1(= 0.00001) 1(= 0.000001) Same as F or
command unit (1.= 1.000) (1,=1.0000) (1.= 1.0000) (1.= 1.00000) (1.= 1.00000) (1.= 1.000000) E
Command 0.001 0.00001 0.0001 0.00001 0.00001 0.000i)ol (with symbol)
range -9999.999 -9999.9999 -999.9999 -999499999 -99.99999 -99.999999 I
Input unit
qmem
A (0.001inch)
I
B (0.0001inch)
I C (0.00001inch)
I Am/c I
Command
address E (inch/rev)
I E (inch/rev)
I F (inch/rev)
I E (inch/rev)
I
F (inch/rev)
Minimum 1(= 0.00001) q =0.000001) 1(= 0.000QO1) 1(= 0.0000001) 1(= 0.0000001)
command unit (l.= 1.00000) (L= 1.000000) (1.=1.000000) (1.= 1.0000000) (1.= 1.0000000)
Command 0.00001 0.000001 0.000001 0+0000001 0.0000001 0.00000001 (with sy
range -999.99999 -99.999999 -99.9999$’9 -9.9999999 -9.9999999 -0.99999999
(n Other precautions
Same as for G33.
-40-
6. INTERPOLATIONFUNCTIONS
6.ZM..LING LiVTERPOLAITON
Y (Hypothetical axis)
I
Milling machining is executed when G12.1 is assigned. When G13.1 is assigned, milling will be canceled and normal
lathe cutting will be carried out.
Promun format
G12.l; MilIing mode ON
G13.l; MilIi.ng mode OFF (lathe cutting mode) -
The G codes required for miIling machining selection and condition setting are given below.
Machining mode
I
G16
G17 Gla G19 (x-z) G17 G19
(X-Y plane) (Z-X plane) (Y-Z plane) (Cylindrical (X-Y phme) (Y-Z plane)
plane)
+~
G46, G41, G42/4(1 G41, G42/G40
(Nose R compensation) (Tool compensation)
-41-
6. INTERPOLATIONFUNCTIONS
6.%MILLING INTERPOLATKNV
6.7.1
MILLING MODE SELECTION (G12.1)
(1) Select the lathe cutting mode (G13.1) or milling mode (G12.1) with the G12.1 or G13.1 code,
(2) This command is a modal, and the lathe cutting mode will be selected when the power is turned ON.
(3) When G12.1 is assigned, the following conditions must be satisfied. A program error will occur when not
satisfied.
1) Nose R compensation is canceled.
2) The constant peripheral speed is canceled.
(4) A program error will occur if the commanded axis during the milling mode has not been reference point
returned.
(5) The milling mode is valid only for system 1.
(6) The asynchronous mode F command will be forcibly canceled by G12.1. Do not designate the F value during
the milling mode.
Note: If the nose R compensation is canceled with the G@ independent command and therti is no movement
command, the nose R compensation cancel operation will be executed with the G12.1 block.
-42-
6. INTERPOLATION FUNCTIONS
6-ZMILLING RVTE.RPOLAITON
(1) The control axes for milling interpolation are the two orthogonal linear axes (X, Z axes) and the one rotary
axis. The rotary axis is selected with parameters.
(2) The command axes in milling interpolation are the three orthogonal linear axes. The axis names are assigned
as X, Z and hypothetical axis.
The hypothetical axis is the axis that is orthogonal with the X and Z axes, and in the interpolation command
is hypothetical. The hypothetical axis name is set to Y or to the control rotary axis selected in (1) with
parameters.
x
‘t
(3) The milling command axis X is not the direct interpolation of control axis X. This axis X will be handled as
the milling coordinate X axis used during the G12.1 command.
(4) Only radius values are used in the flm% coordinate system. (The radius and diameter command parameters
in t~e lathe cutting mode wdl be ignore~.
<Ex. 1>
X4 ‘
I
N1 GO X40:
N2 G12.l;
N3 G 1 X1O, Y1O, FM;
Hypothetical axis
Program1
-43-
6. INTERPOLATIONFUNCTIONS
6-ZMILLING INTERPOLATION
X = Mill_X
x Mill_X axis
Hypothetical
< axis
Hypothetical ,
axis
/ //
J3
x
I\
Hypothetical
axis Mill_X axis
Mill_X axis ~
Hypothetical
axis
Present vakxe
x 14.141
c 45.000
(5) Milling interpolation is also possible when one linear axis and one rotary axis is used for the commartd axes.
b this case, the linear axis must be the X axis. The rotary axis and hypothetical axis selection is as shown
above. Select the G17 plane during the milling mode.
(6) The hypothetical axis absohte irtcrernentd axes names during the milling mode is shown balow. Always
command the radius for these axis commands.
mill ax
Absolute axis name Incremental axis name
(Hypothetical axis parameter)
o Y v
1 Rotary axis name (C) Rotary axis incremental name (H)
(Hereafter, the hypothetical axis name will be referred to as Y and the rotary axis name as C.)
-44-
6. INTERR2L4TIONFUNCTIONS
6% MILLING INTERPOLAXiQN
(1) These plane selection G commands are medals, and the G17 plane is automatically selected as the initial value
when the milling mode is entered from the lathe cutting mode with the G12.1 command. When the G13.1
command is assigned to change to the lathe cutting mode from the milling mode, the plane selected before
the milling mode will be set.
(2) G16/G19 can be selected as the initial value with parameters for the plane selection d“wing the G1.2.l
command.
(3) The foIlowing three planes can be selected.
1) G16
-45-
6. INTERPOLATIONFUNCTIONS
6.ZMILLING INTERPOLATION
. X-Y plane
.
3) G19
v
A
4
I
k center
Y-Z plane
,,
,,’ !!,
,,
,!
,,,.,
6, INTEWOLATIONFVIVcTIONS ‘~
6.%MZLL.lNGlNIERPOLAIYOIV
x
TooI 4
-47-
6.INTERPOLATIONFUNCTIONS
6% MILLLVG INKERPOLA!XQN
(3) G16 (X-Z cylindrical plane) is actually the side of the cylinder.
The X axis is the distance from the work center, and the Y axis is the circle circumference that uses the
cylinder base radius defined when G16 is assigned.
(4) The Y axis zero point is the position where G12.1 is assigned.
(Example)
Y
)- r
Z
-4$-
6. lNTERRXATIQN FUNCTIi?Nt$
6% M..L~G INTERPOL4YXON
1 1
G19 YZ plane selection
F%
G40 Tool nose R compensation
cancel
-49-
.. ‘,
6. INTERPOLATIONFUNCTIONS
6.ZikflUINGIiVTERPOL/iTIi2N
If a G code that is invalid in the milling mode is commanded, a program error (P481) will occur.
Of the G codes, oxdy GO, Gl, G2, and G3 commands can be assigned to the Y axis. These commands are
called the milling interpolation commands.
1) Positioning
When GOOis assigned during the milling mode, positioning to the designated point in the selected plane
will be executed with rapid traverse.
I GO W_ YW_ ZM_ ;
I
2) Linear interpolation
When GO1 is assigned in the milling mode, linear interpolation to the designated point in the selected plane
will be executed with the rate designated with the F command.
‘u’ Compile
1
I Program format
,G 01 Y/V_ Z/W_X/U_P_ ;
6. INTERPQLATIOAT
FUNcTIoNS
6.ZMILLING INTERPOUT!TON
x
‘!
--——- —— ~ Program format
/
I z ~i: GO1 X/U_Y/V_!4/W_F_ ;
I
, t >
._-__ —_-&” z
(C)YG19 mode
x
,,
Program format
x
GOi Y/V_Z /W_X/U_F_ :
*Z
/ 7
-51-
6. INTERPOLATIONFUNCTIONS
6.XMILLING INTERPOLATION
3) Circular interpolation
If G02/G03 is assigned in the milling mode, circular interpolation in the selected plane will be executed with
the designated rate.
u’ Compile
I
I
Program format
G O 2/0 3 Y/V_2~W_J_K_F_ ;
Or
x
! Program format
G O 2/0 3 X/U_Y/V_I_J_F_;
1
I Or
G O 2/O 3 X/lJ_Y/V_R_F_ ;
-52-
6. INTEwoLATIoiv FUNCTIONS ‘“
6.%lklZLLllVG
i?NTERP0,Li4T101V
Program format
G O 2/0 3 Y/V_ Z/W_ J_K_F_ :
I
1’ Or
Y
G O 2/’0 3 Y/V_ Z/W~R_F_: .
(2) The movement commands in the milling mode are all assigned with the coordinate system determined by the
selected machining plane. Therefore, the rotary axis cannot be moved with a direct command in the milling
mode. When designating a specific work position and carrying out. the milling mode, execute positioning in
the lathe cutting mode f~st.
(Example)
(3) ~~:~gram error wi~ occur if an axis other than the X, Z and Y (rotary axis) is designated during the milling
-54-
,,
6.INTERPOLATIONFUNCTIONS
6.%MILLING RVTERPOLA7!’YON
6.7.7
FEED FUNCTION
(1) Cutting asynchronous feed
The feed can be set to 0.001mm/min with the F5.3 digit in the asynchronous mode (G94 command). The
setting range is 0.001 to 60000.000mm/min. If the effective feed exceeds the cutting feed clamp speed, the
clamping will be executed with the clamp speed.
Note 1: When selecting the lathe cutting mode - milling mode OFF with G12.1, the F command modal value
will be canceled. Therefore, the feed rate must be set with the F command after switching modes.
Note 2: The asynchronous mode will be forcibly entered with G12.1.
Note 3: When the milling mode is canceled with G13.1, the feed mode F command modal value will return
to the values before the G12.1 command.
6.7.8
PROGRAM AUXILIARY FUNCTIONS
The following program awdiary functions are valid during the milling mode.
(1) Linear angle command
(2) Variable command
(3) ‘Automatic corner rounding/ corner R
(4) Geometric function
(5) Hole machining cycle
(6] Subprogram function
(7) User macro
6.7.9
AUXILIARY FUNCTIONS
(1) The M commands and B commands can be assigned during milling.
(2) The S command during milling will command the rotary tool rotation speed instead of the spindle rotation
speed.
(3) A program error will occur if the T command is assigned in the milling mode. Therefore, always select the
tool before issuing G12.1.
6. INTERPOLATIONFUNCTIONS
6.%MILLING DVTERPO.L4TI’N
G13.1:
-56-
6. INTERPoLATIoN FUNCTIONS ““
6.%MILLWG INTERPOLA~ON
(2) The tool length offset is as shown in (1) so the form will not be compensated properly if the offset amount
differs from the actual amount.
(i) If the tooI length is smaller than the offset amount
/’(/
,.,,. / hA
“’’”ngcomman” I “+(
ActuaI form
1
.T:o, .moviment
--
, , 1
x
I /’ Milling command““A
Tool movement
I
-57-
‘1
‘,
6,INTERPOLATIONFUNCTIONS
6.ZMILLING IN7ERPOIL47X?N
Command format
1) Specify the tool nose R compensation after the milling mode is entered.
Cancel the tool nose R compensation when entering the lathe cutting mode.
2) Specify the tool command compensation No. before entering the milling mode (before com&m&g G12.1).
If the T command is assigned during the fling mode, a program error will occur.
3) The tool nose R compensation will be executed in the selected plane.
G17 plane ... XY axis
G19 plane
Yz axis
G16 plane }
-58-
6.I.ERPOIATION FUNCTIONS “
6-ZMILLING LVIERFOLATK7N
Pre-read buffer
Execution bIock
-59-
6. INTERPOLATIONFUNCTIONS
ti Z MILLING INll?RlWIu4T10N
4) Machining an outer wall (acute angle) (Type A or B can be selected by parameter.) [ e <90° ]
●
:Center
. of arc
s !
. ..-— —— —.-
To~l nose R center path
Tool nose R center path ;
r i ●
*
Programmed path \’ path
r \
.—. —
\
\
\
Start point
\ \
\
.\
Start point
\
Start point
.-. — .
(3) Tool nose R compensation starting operations
1) Machining an inner wall
Linear+ Cireldar
-60-
6. INTER.PQLATION
FUNCTIONS ““
6.ZMILLING J?NTERPOLAITON
2) Machining an outer wall (obtuse angle) (Type A or B can be selected by parameter.) [90° = @ < 180”]
Iinear. lirmarml
Ye Al Iinear + Ci.mdar(lype Al
s — .. s
—- ..-
,/ ~ = off~~~
~~o”~t TOO1 nose R centerpath /
,. Tool nose R center path
G41,’ G41z’
\
/ Programmed path \
/ f \
# /
/ \
/ \
Point of intersection
Point of intersection s
s ----- .-—
Tool nose R center path
\ Too, =05, R path
/ \
Programmed path \
G 4 1,/
/’ \
/ \
\
i
Startpoint’ Start point
Center of are Programmed path
---- -— —-. .
Tool nose R center path
I r
s
%, * @ Programmed path
\
\ pro~mmed path
\ \
\ \
\
___— -——- \
k
point of in~ersection Tool nose R center path \
‘\
-61-
,,,
6.IN’TERWLATI’NFUNCTION..
6.%MILLING INTERPOLATION
\ Linear
- circdau (90%se<18r\
e:
-——. —.-—
Tool nose R center path
/
s
%,
..4
.. \
●.”
.’ s Tool nose R center path .. \
,“ w“
#. Center of arc I
I
d #
/“”
Center of arc
/
Center of arc
e
t
Y
Pro~’mmed path ‘%
\“
\\ i$l J“ \
n \
\ : // \
\ \
\’ —-,/ \
Tool nose R center path r ~ / -real nose R center path ~, r
.
MM 0 \
s
Point of intersection Yd ,
SW
i’
almdar + armdar CXPse<ltlflq chd~ - cbda.r (cr<e<mq
I Center of arc
*
Programmed path i’ Programmed path
/]
--- r // *—N%
0“ ‘\ Tool nose R z \
center path “ Nr
\
.“” Point of intersection --. ”
.“’ . ..
8“ * --- +
Center of arc Center of arc Center of arc
-62-
6.INTERPOLATIONFUNCTIONS
6% MILLING INTERPOLAR?..N
Iinear
- Linear angle)
(obtuse linear
- Linear ande~
(obtuse ‘
Programmed path
—
~4 /“k” ~~ 4“”
\
1 \
& -*
Center of arc
i
E point of .. ...>+ <Too] nose R center path ‘:.5.::? -
Tool nose R center path
Center of arc
/
Programmed path
.*
,1
6. INTERPOLATIONFUNCTIONS
6.%lkfILL.ING
lNTERPOMITON
f \
4
~
Imaginarycircle
.—-O TOOI nose R center path
1.
.0”- x. “-- ~
/ Programmed path \.
L J
programmed path
A
-64-
.
,,’
6. INTERPOLATIONFUNCTIQNi
6% MILLING INTERPULATJUN
@ Programmed @
— path .—. —. —.—
r = offset amount,
path,
— — — — — - Tool nose R center path
-65-
6.INTERPOLATIONFUNCTIONS
6Z MILLING mmouTION
Center of arc
*
*
* I
1
: TooI nos~ R!
TOOInose R center path ; center
r\1’ : ~,. .path.
—--- —4
s .-
path
—.— .—
End point
~ Center of arc
-—.—— .--— —- *
i
:
,1 Tool nose R center path I Tool n&e
I
o
R center path
i A“””-”- )
Programmed path
path
%
G 4 0“>
End point’
End point
-66-
6.INTERPOLATION FUNCTIUNS
6-Z ikilLL.lNGLNZERPCMMTOIV
(7) Changing the compensation direction during tool nose radius compensation
The compensation direction can be changed by changing the compensation command in the compensation
mode without canceling the compensation fist. However, no change is possible in the compensation start
block and the following block.
Linear - r.imnr
\ .
Whenthere is no intersec-
tion duringthe changeof
G41 G41 G42 the compensationdirection
. . --------
/
,/
\
k
J..,iflear- circular
i
\ Programmed path
\
\
\
-67-
6. INTERPOLATIONFUNCTIONS
6.ZMILLING ME.U.P.OLATION
Cimular - Circuiar
G41
m
Center of arc
G41 G41 G42
Linear Ierllxn
G41
Tool nose center paths- ----
---—— ---*--
-----
G42 r
T
(8) GO block
If there k a GO command block, the intersection calculation will not be carried out in the previous block. The
tool comes to a vertical position at the end point, and the Go block will lose the compensation vector
temporarily. In this case, the compensation cancel operation will not be possible, and the tool will go directly
to the point without vectors, or the programmed command point. The compensation vector is created again
in the G1 block.
Y 1
I N1OGI2.1 ;
—- ----- ~ Nll G42 ;
r I NI.2G 1 YMO.F1OO ;
N13 / NI3X-1OO. ;
N 12 / N14G o Y-loo. ;
N14 I N17
-- N15GI XIOO. ;’
r x
N 16 N16 Yo. ;
~
N15 N17G40G o X200. :
I t
L —-- ———- . J
-68-
6.INTERPOLATIONFUNCTIONS
6.%ML!XJNG INTERPOLATK2N
1
The following blocks are without movement.
a.MO~ . . . . . . . . . . . . . . Mcommand
b. s12; . . . . . . . . . . Scomrnand
c. G04X500”; ” . . . . . . . . . . Dwell No movement
d. G1OPO1R5O; . . . . . . . . Offset amount setting
e. (G17) Z40 ; . . . . . . . . . Movement but not on offset plane
f. G90; . . . . . . . . . . . . . Gcode only J
g. G91X0; . . . . . . . . . . . Zero movement amount . . . . . . . . . . . . . Movement amount is zero.
MOO,MO1, M02 and M30 are pre-read prohibit M commands.
f %
N6 G91X1OO. Y200. ; N7 N8
N7 G04X P1OOO; ‘D=
OO”””-**U
Blockwithoutmovement
NfJ X200. ; -———* ——
N6 N8
BIock N7 is assigned;
When 4 or more bIocks without movement follow in succession or if there is a pre-read prohibit M
command, the offset vectors are created perpendicuhwly at the end point of the previous block.
-69-
6. INTERPOLATIONFUNCTIONS
6.Z HILLING I.RPOLATtO.N
r
/
( /
.(
N20
N1O //
N1OG 1 X_Y_; / NH N20G 1 X_Y_ ;
N11G40 ; N21G o x_Y_ ; {~ N21
Ii /
N12G o x_Y_: NI.2 N~G40 ;
r
N22
\ #-
% N2
\
\
\
\
.-- .-.-+
Centerof arc
This movementand feed
rate fallunder block N2,
I
(.
Stop point with single block
-70-
1, ‘:
‘,
6. INTERPOLATIONFUNCTIONS
6-ZMILLING INTERPOLATION
6.7.11
INTERFEIU3!JCE
CHECK
(1) Outline
A tool, whose nose radius has been compensated under the tool nose R compensation functions by the usual
2-block pre-read, may sometimes cut into the workpiece. This is known as interference, and interference
check is the function that prevents this from occurring.
There are three types of interference check, as indicated below, and each can be selected for use by
parameter.
(Example)
(G41)
N1 GI X50. Y-1OO. ;
N2 X70. Y-1OO. ;
N3 XlXl. YO;
Cu
\ d
-71-
6. INTERPULATIUJV
FUNCTIONS
6.%MILLING INTERPOLATION
With the above process, the vectors o, @, @’, and@ remain as valid vectors, and the path that eormects vectors
~, ~, @, and @’is executed as the interference avoidance path.
%
TOOI nose R center path
i, / Programmed path
\y/ r
\
N1 N3
Vectors intersect.
~
N2
-72-
,,
6. I.TER.PiZA.TIOiV
FU~CTIONS
6% MILLING INTERPQLATKJ,
\
( ----- —__ .+~-
-HA
z Tool nose R center path’
. .
L
Operation during interference avoidance
The folIowing operation will occur during the interference avoidance function.
Y
vv.
#’
Tool nose R center path,
Programmed path
1~
N3
w
NI
N2 ‘
//////// //
Nl”
/
TooI nose R center path when
// interference is avoided ,
———- __ -.—- ---
Linear movement TooI nose R center path without ~
interference check
Programmed path
////////////////
I
‘- ‘3
J/////////i’~ffff///
N1 I r Centarof arc
-73-
6.INTEWULu4TIOiVFUNCTIONS
6.%MILLING I?VIERPO.LATION
-—
N2
Programmed path
I /0
Programmed path
Solid line: i
interference avoidance path
Brokenlirw
nath withoutinterferencecheck J
-74-
,,
6. INTERPOLATIONl$U~CTIOiV$
6.ZMILLING llVTERPOLEITION
N1
-75-
6. INTERPOLATIONFUNCTIONS
6.ZMILLING INTERPOLAR’TON
N3
N1
N2
Angleof Mersectlon
‘\
4) When the program advance direction and the advance diiection after compensation are revarsed
In the following case, interference is still regarded as occurring even when there is actually no interference.
When grooves that are narrower than the tool nose R diameter or that have parallel or widening walls are
programmed
)
I~mgrammcd 1 stop
f
W
-76-
7.1. RA.PIV TRAVERSE RATE
7. FEED mcTroNs
7.1. RAPID TRAVERSE RATE
The rapid traverse rate can be set independently for each axis. The available sped ranges are fro-m
1 mm/min to 60,000 mm/min for input setting units of 1P and from 0.1 mm/min to 12,000 mmlmin for input
setting units of O.1#. The upper Iimit is subject to the restrictions imposed by the machine specifications.
Refer to the specifications manual of the machine for the rapid traverse rate settings.
Two paths are available during positionin~ the interpolation type where the area from the start point to the end
point is linearly interpolated or the non-interpolation type where movement proceeds at the maximum speed of
each axis. The type is selected by parameter. The positioning time is the same in each case.
Feed rate
G1 XIOO. ZIOO. F2(ll ; 200.0 mmlmin F200. or F200.000 givm the same rate.
G1 moo. Zloo. 3?123.4 ; 123,4 xnmfmin
G1 XUX1.ZJOO. F56.789 ; S6.789 mm/min
NOTE 1: A program error (W62”) results when there is no F command in the first cutting cmnmand
(GO1, G02, G03, G33) after the power has been switched on.
2: The maximum speed for both rapid traverse and cutting fed is 2362 inchhnin when a mtiric
system machine is used with inch cammands.
-77-
ill
7.FEED FUNCTIONS
7.3.SIfNCIYRONOIYS/AS K?VCHRONC$lJS FEED (G94,G95)
2) The effective sptxd (actwd movement speed of machine) under per-revolution feed conditions is given
in the following formula (Formula 1).
FC~~e:~ x OVR .... (Formula 1)
= Effective rate (mm/min, inch/rein)
F = Cmmmndcd feed rate (mm/rev, inch/rev)
N = Spindle speed (rPm)
OVR = Cutting fed override
When a multiple numbei of axes have been commanded at the same tim~ the effective rate FC in
formula 1 applies in the vector direction of the command.
NOTE 1; The effective rate (mm/min or inchhu.in), which is produced by converting the commanded
speed, the spindle speed and the cutting feed override into the per-minute speed, appears as
the FC on the monitor 1. page of the setting and display unit.
2 When the above effective rate exceeds the cutting feed clamp rat% it is clamped at that clamp
rate.
3: If the spindle speed is zero when synchronous feed is executed, operation alarm “105”
remdts.
4: During machine lock high-sped processing, the rate will be 60$(100mrdmin (or 2,362
inchlmin, (3),000 deg/min) regardless of the commanded speed and spindle speed. When
high-speed processing is not undertaken, the rate will be the same as for non-machine lock
conditions.
5: Under dry run conditions, asynchronous speed applies and movement results at th~
externally set rate (mm/min or inch/rein).
6: Whether asynchronous feed (G94) or synchronous feed (G95) is to ba established whm the
power is switched on or when M02 or M30 is executed can be selected by means of the
“initial synchronous feed” setting on the parameter 2. screen.
?,2
-78-
7.FEED FUNCTION%
7.4.FEED RATE DESIGNATION A_MD EFFECTS O-N CONTROL AXES
t
P *@MI end point)
x ,- --——- —
-z
P , (rOolstart z
point)
When only linear axes are to be controkl, it is sufficient to designate the cutting feed in the program. The feed
rate for each axis is such that the dedgnated rate is broken down into the components corresponding to the
movement amounts.
In the above examphx
7.FEED FUNCTIONS
7.4.J?03E..
RAZE DESIGNATION AND EFFECTS ION CO.KERO.. AXES
@tample) When the feed rate is designated as “f” and rotary axis (C)is to be controlled
(“f” units = o/rein)
. ..
P* (tooI end point)
Angular speed is “f”.
/
A
/
/
0 \ Linear sped is: T” r “ f/180 “
Rotation ,V
~Zj 1 c
center
‘:a “ ‘too’ statip”int)
In this casq in order to make the cutting feed @near feed) in the tool advance direction “fc”:
fc=fx ,+.
180
f=fcx
w-r
NOTE When the circular interpolation function is used and the tool is moved along the cireumfereme
of an arc by the linear control axis, the rate in the tool advance directicm, or in other words the
tangential direction, will be the feed rate designated in the program.
P*
‘m”””is’’” x i x
. ...
-80-
7. FEED FUNCTIONS
7.4..FEYZDRATE .DE.S1’.ATION AND .EFF-ECTSON CYYNTRQL AXES
@ample) When the fed rate is designated as “t” and the linear axes (X and Z) are to be controlled using the
circular interpolation function
In this cas~ the feed rate of the X and Z axes will change along with the tool movement. However,
the combined speed will always be maintained at the constant value “f”.
. ..
(3) When linear and rotary axm are to be controlhxl at the same time
The NC svstem Droceeds in cxactlv the same wav whether linear or rotary axes are to be eontrolkd.
When a r&ry &is is to be contr~llcd, the num&ical value assigned by the coordinate word (C, H) is the
angle and the numeric-al values assigned by the fed rate (J?) are all handled as linear speeds. In other words,
10 of the rotary axis is treated as being equivalent to 1 mm of the linear axis.
Consequently, when both linear and rotary axes are to be controlled simultaneously, the components for
each axis of the numerieal values assigned by F will be the same as for sedion (1) above (applying when linear
axes are to be controlled). However, although in this case both the size and direetion of the speed
components based on linear axis control do not vary, the direetion of the sped components based on rotary
axis control will change along with the tool movement (their size will not change). This means, as a result,
that the combined tool advance direction feed rate will vary along with the tool movement.”
@ample) When the fed rate is designated as “f” and linear (X) and rotary (C) axes are to be controlled
simultaneously
If the X-axis incremental command value is “x” and the C-axis incremental command value is “c”:
//
Arc,‘“T-7$ ai
Both size and direction vary for ft.
/r )’
/’
7.FEED FUNCTIONS
7.4.FE.D RAZE D.ESIGNATYON AND .EFFEC?%SON COIV%ROL AXES
X-axis feed rate (linear speed) ‘%” and C-axis fed rate (angular speed) “d’ are expressed as:
x .... (2)
fx=fx — .... (1) u =fxc
W -
. ..
Linear sped “fc” based on C-axis eontroI is expressed ax
Trx r
fc=wx .... (3)
180
If the smxd in the tool advance direetion at start ooint P, is “ft” and the eomwonent SJXXXIS
in the X-axis and ‘
Y-axis &eetioris are “ftx” and Wty,” reapeetively;then t&seem be expressed & “
ftx = -rsin ( Ad)x --&Ax .... (4)
I&l
ft={ ftxg+fty ’
x* 4-C*
f=ftx . . .. G’)
~.~e~
X2 -xoc.~sifl( ~e) ~ { )2
180 180
“ft” in formula (6) is the speed at the l?l point and thevzdue of @changes as the C axis rotatm, which means that
the value of “ft” will also change. Consequently, in order to keap the cutting fed “ft” as constant as possibl% th~
angle of rotation which is designated in one block must be redueed to as low as posdde and the extent of the
change in the@ value must be minimized.
7.5. THREAD CUTTING IJMDS
f With eontiriuous
t commands
t
-
TC Tc
With rapid traverse and manual feed, the following block is executed after the command pulse of tha present block
has become “O” and the tracking error of the acceleration/deceleration circuit has become “0.” However, with
cutting feed, the following block is executed as soon as the command pulse of the present block becomes “O”
although an external signal (error detect) can detect that the tracking error of the acceleration/deceleration circuit
has reached “0” and the folIowing block can be tmscuted. When the in-position check has been made valid
(selected by machine parameter) during the deceleration check, it is first confirmed that the tracking error of the
acceleration/deceleration circuit has reached “0/’ then it is checked that the position deviation is less than the
parameter setting, and finally the following block is executed. It depends on the machine as to whether the error
detect function can be activated by a switch or M function and so reference should be made to the instructions
issued by the machine builder.
NOTE Speed clamping is not applied to asynchronous feed and thread cutting.
-84-
FEEb FUNCTIONS
7.
7.8..EX4CT STOP CHECK (G09)
. ..
Next block
Previous block
I -J
Ts
~ Lc (in-position width]
Ts Ts
b“- 4
Fig. 3 Block join with cutting feed in-position check
In Fire. 2 and 3:
Ts =“Cutting feed aceeleratiorddeeeleration time constant
Lc = In-position width
As shown in Fig. 3, the in-position width “k” can be set into the “ZICZ’ servo parameter as the remaining
distance (shaded area in Fig. 3) of the previous block when the next block is started.
The setting unit for the “ZRZ” servo parameter is 0.001 mm or 0.0001 inch.
The in-position width is designed to reduce the roundness at the workpiece comms to below the constant value.
Lc
L Next block
Previous block
To eliminate corner roundnm, set the “ZRZ” servo parameter to zero and perform an in-position check or assign
the dwell command (G04) between blocks.
.
,,.
-85-
7.FEED FUNCTIONS
7.8.EXACT STOP CHECK <W9]
Previous block
TX Acceleration/deceleratiori time
Ts con5tant
Td: Deceleration check time -
. Td Td = Ts -t- (O – 14ms)
Previous block
Tw Acc&xation/dec.eIeration time
Ts constant
Td: Dei.xkation check time
Td . Td = 2XTS + (0–14ms)
Previous block
. 2XTS
Td Ts .
TX Acceleratiorddectderation time constant
Td: Deceleration check time
Td =2x Ts+(0–14ms)
The timti required for the deceleration check during cutting feed is the longest among the cutting feed dmelmatitm
check times of each axis determined by the cutting feml acceleratiorddmeleration time constants and by the cutting
feed accelerationldeceIeration mode of the mw ‘mmmanded simultaneously.
INOTE 1: To execute exact stop check in a canned cycle cutting block, insert command G09 into thti
canned cycIe subprogram.
-86-
8.1. PER-SECOND DWELL {G94/W4J
\ .—z
8. DWELL
The G04 command can delay the start of the next block.
..
8.1. PER-SECOND DWELL (G94JG04)
(1) Function and objective
Whea the dwell command is given in the per-minute feed mode (G94), the execution of the next block is
delayed for the designated time.
(2) Command format
G94 G04 X/U_ ; Or G94 G04 P- ;
Command unit: 0.001 see
Decimal point commands are invalid for address P and if such commands are assigned, everything following
the decimal point will be ignored.
(3) Detailed description
1) The table below lists the dwell time.
I Input setting unit I Command range based on address ! Command range based on address
2) When a cutting command is in the previous block, the dwell command starts calculating the dwell time
after the machine has decelerated an! stopped. When it is commanded in the same block as an M, S,
T or B command, the calculation starts simultaneously.
3) Dwell is valid even for machine lock but it can be completed immediately by the control parameter
(“machin@ lock high spwd”).
4) The per-second dwell can be established regardless of the G94 or G95 mode by means of the control
parameter (“G04 time fbmd”).
Previous block
cutting cmarnand ~
I
i Next block
I
I
Dwtdl command
J
I 4 *
I DwelI time
-87-
8. D WELL
&2. P.ER-REVOLIYTIQN D WELL lG95/W4J
Input setting unit Command range’based on address Command range based on address
Ku P
0.01/0.001 mm 0.001 – 99999.999 (rm) 1 – 99999999 (x 0.001 rev)
0.0001 inch 0.001 – 99999.999 (rev) 1 – 99999999 (x 0.001 rev)
2) When a cutting command is in the previous block, the dwell command starts controlling the dwell time
after the machine has completed its deceleration. If it is commanded in the same block as an M, S, T
or B command, the control is started simultanemsly,
3) DwelI is valid even for machine lock but it can be completed immediately by the control parameter
~machine lock high speed”).
4) Dwell also stops during spindle stop. It is resumed when the spindle starts to rotate again.
5) The per-second dwell can be fixed by means of the control parameter (“G04 time fixed”).
6) This function cannot be used unless a position detection eneoder has been mounted cm the spindle.
Previous block ~
cutting command I
I Next block
!
t
i
DW& command
I
i
I e
f Dwell 7
rotational
angle
, ,.
-88-’
!l,
,,,
MISCELLANEOUS FUNcfIQN$
9. “
9.L MISCELLAN.EO?YS FUNCTIONS {M2-LLK?lTsBCD)
9. MISCELLANEOUS FUNCTIONS
. ..
-89-
9.MISCELLANEOUS FUNCTIONS
9.2.MN$CELJL4_NE0U” FUNCTIONS {M8-DIGITS)
NOTE 1: Independent signals are also output rcapeetively for the MOO, MOI, M02 and M30
commands and these outputs are each resel by pressing the reset kq.
2 M02 or M30 ean be assigned by manual data input (MDI). At this timq eoxnmancis em be
issued simultaneously with other commands just as with the tape.
(4) Subprogram eallkompletion: M98, M99
These commands are used as the Teturn instructions from branch destination subprograms and branches to
subprograms.
M98 and M99 are processed inside the NC system and so M code signals and strobe signals are not output.
(5) NC internal processing with MOO/MOl/M02/M30 commands.
NC internal processing suspends pre-reading when the MOO, MO1, M02 or M30 command has been read.
Other tape rewinding operations and the initialization of medals by resetting differ according the machine
builder.
9.2.
These functions are assignwl with an 8digit (O– 99999999) number following the address M, and up to 4 groups
can be assigned in one block. However, the number of commands which em be assigned in one block depends on
the machine specifications.
@ample) GOOXi Mml Mmz Mm, Mm, ;
When five or more groups have been assigned in a block, the last four will be valid.
Parameters are used to sekxt whether BCD output or binary output is to apply for the M8-digit
commands.
The output si~ak are 8digit BCD code and start signgals or 32-bit binary data with sign and start
signals.
As with the M2-digit functions, the MOO,MO1, M02, M30, M98 and M99 cocks are rmerved for special
applications. Processing and completion sequenees are required for all M eomraands except for M98
and M99.
,,
II,,,
9. MISCELLANEOUS FUNCTIONS’
9.3.SECONDARY MISCELLANEOUS FUNCTIONS {A$l/B8/C8-
.DIGITSJ
NOTE When A has been assigned as the secondary miscellaneous function address, the following
commands cannot be used.
1) Linear tuq$e commands
2) Geometric commands
,,
10.SPINDLE FUNCTIONS
10.1.SPINDLE FUNCTIONS (S2-DIGITS.BCD)
-92”’-
10.SPINDLE FUNCTIONS
10.4.CONST~T PERIPHERAL SPEED CONTROL {G96,G97)
-93-
10.SPINDLEFUNCTIONS
10.6.
SPIIJDLE
FUNCIYON (MULTJ-SPI.LM
10.6.1 OUTLINE
IrI addition to the spindle (lst spindle), the multi-spindle function can be used.
The S command is used to designate the spindle speed, but the SO = xxxxx command is used for assigning the multi-
spindles. The S command can be assigned from any of the machiig program systems.
With the 2nd spindIe control function, cutting in synchronization with the 2nd spindle is possible.
3rd spindIe ~
(Rotary tooI 1)
c~~l
Tool rest
b-
2nd spindle
E
Spindle L
r-fl
Tool rest 2
+/ u
(Rota~ tool 2)
4th spindle
10.SPINDLEFUNCTIONS
10.6.
SPINDLEFUNCTION (MULTLSPINDLE)
ExamdelL,
Parameter
sname 1 2“ 3 4
G9T
S1 = 3500 ; 1st spindle 3500rpm command
S2 = 1500 ; 2nd spindle 1500rpm command
S3 = 2000 ; 3rd spindle 2000rpm command
S4 = 2500 ; 4th spindle 2500rpm command
The constant peripheral speed control is valid on.Iywith the Ist or 2nd spindle. The speed k constantly
set for the 3rd and 4th sphdle commands. -
System 1 program ~ System 2 program System 3 program System4 program System 5 program
$“3
Rx=l
G43
/ 2nd spindle
‘>
\
1st spindle Work- Work-
(main spindle) (Sub spindle),
piece 1 piece 2
E
Tool rest 2 ,
0
h
-97-
10,SPINDLEFUNCTIONS
10.6.
SPINDLEFUNCITQN (MULTI-SPINDLE)
4) The G43 and G44 commaud can be assigned from any system.
5) The control function switched after the G43 and G44 command is as follows.
@Per-rotation feed (synchronous feed)
The feed rate command in the G95 mode, will be the feed per rotation of the No.1 spindle in the G43
mode, and the 2nd spindle in the G44 mode.
@S command (S*****, SO = ** * **), constant peripheral speed con~ol
Note: The command for the 2nd spindle in the G43 mode, or the command for the 1st spindle in the
G44 mode can be assigned with the SO = ***** command. However, this will be a speed setting
in the G96 mode.
,,,
-98-
10.SPINDLEFUNCTIONS ‘“‘
10.6.
SPINDLEPUl?CTION(MULTI-SP~LE)
Speed
G43 : 1st spimle 2nd spindle
SIOOOr pm Orpm
s 2 =2000;
S2000rpm
I
G96S1OO;
S 100m/m i n
I
S2500rprn
. .. .. .. .. .. .. -----------
G44S200;
Note 1 S200m/m 1 n
s 1 =3000;
S3iWlr~m
/“
G97S4000 ; .,
S4000rpxn
I
Notw In the G44 command, the constant peripheral speed controI will switch to the 2nd spindle, so the 1st spindle
will remain the speed set in G44S200. The speed wi.11change to 3000rpm with S1 = 3000;.
-99-
11. TOOL FUNCTIONS
11.1.TOOL FUNCTIONS (T4-DIGITS)
Reference should be made to the instructions issued by the machine builder for the correspondence between thfi
actual tooIs and the tool numbers commanded in the program.
6-digit (or 7-digit) 13CD signals and start signals or binary data and start signals are output. The BCD or binary
output can be selected by parameter. Processing and completion sequences are required for all T commands.
-1oo-’
12. TOOL OFFSET FUNCTIONS “‘
12.1.TOOL OFFSET
T *****$?* *
-101-
,,’
12.TOOL OFFSET FUNCTIONS
12.1.TOOL OFFSET
f -1
N&::, yml,m; ~
Tool length offset and tool nose wear offset axe conducted simultaneously.
FfOTXk 1. The movement applying to offset with the T command execution is rapid traverse in a GOII
modal and cutting feed with other medals.
2. When performing offset with T command exeeution, the path is offset as a linmr movement
in an arc modal.
3. When performing offset with T command txecution, offset will not function until the arrival
of any G command except those listed below when the T command has been assigned in the
same block as the G commands listed below.
GM Dwd
G1O Program tool offset input/data setting
Glk Data setting mode camel
G65 User macro simple call
f-
G92 Coordinate system setting
(2) Offset with movement command
1>
offset
N2 ,/’-offs* ~()~t
- Programmed
machining path NITOlOl ;
?.r* N2 X1OO. 2200. ;
Tool length offset and tool nose wear offset are conducted simultaneously,
NOTE 1: When performing offket with a movement command, offset is applied if the offset amount is
lower than the “arc error” parameter when offset is performed for the first time with an arc
command. If the amount is higher, the “P70” (ARC ERROR) results. (This also applies
when the arc command and T command are in the same block for offsetting with T
,
command execution.)
12. TOOL OFFSET FUNCTIONS
12.2.TOOL LENGTH OFFSET
..-
This function offsets the tool length with respect to the programmed reference position. TMqosition may
generally be set to either the center position of the tool rest or the tool nose position of the reference tool.
<1) Center position of tool rest
-dir
Referenee position
(reference point)
X-axis tool length
offset amount
x
4
%axis tool length
offset amount 4 “
I
I I
- Referen~ tool
Reference . point
I
4)
Tool used for
\ machining
X-axis tool hmgth
offset amount +
m x
Z-axis tool length Ij
offset amount l.- 2
N2 Offset amount
“i,
(new) . ~~ TO1OO;
y
Offsel F12G1 X1O.O 2510.0 F1OO ;
samnnnt
w-- . ... \ I-43G1 X13.O 215.0 F20.O ;
I
\
(nTdl
,---, %mur;mmi=rl
...&. —--
machining path
—------- .
N4 T0200 ;
N5 G1 X13,0 220.0 F25.O ;
\ J
In this exampl% the tool length is offset with the tool number and offset is performed in the block with the
movement command.
-103-
,,
1,
,’:
12. TOOL OFFSET FUNCTIONS
12.2.TO(2L LENGTH (M?FSET
N1
TOOIoffset path
N1
M G1 XIO.O ZIO.O F1O ;
N2 TOlOO ;
Offset amount N3 G1 XIO.O 22!0.0 ;
NQTE 1: When G28, G29 or G30 is commanded, the machine moves to th position where the offset
was cancded and the offset amount is stored in the ruenmrv. This means that with the rmxt
movement comman d the machine will move to the offset &ition.
2 Even if the offset amount of the offset number currently selected by MD1 is changed during
automatic operation, the changed offset amount will not be valid unless a T command with
the same number is executed again.
3: The tool length offset and tool nose war offset amounts are cleared by resetting and by
emergency stop. They can be retained by parameters.
-104-
TOOL OFFSET FUNCTIONS
12.
12.3.TOOL NCWE WEAR OFFSET
K-axis tool
lose wear offset
imount I
h--’
Z.-axis tool nose wear offset amount
NI
Nl G1 XIO.O ZIO.O F1O ;
N2 TOIOO;
N3 G1 X10.O 220.0;
Ncrriz 1: When G28, G29 or G30 is eommandcd, the machine moves to the positicm wherfi tha offset
was eancekxl and the offset amount is stored in the memory. This means that with the next
movement command the machine wili move to the offset position.
2 Even if the offset amount of the offset number currently seleeted by MDI is changed during
automatic operation, the changed offset amount will not be valid urdeas a T command with
the same number is executed again.
3: The tool length offset and tool nose wear offset amounts are cleared by resetting and by ‘
emergeney stop. They em be retained by parameters.
-105-
,,
,,1 ‘,
12.4.1 OUTLINE
The tool nose is generally rounded and so a hypothetical tool nose point is treated as Lhe.tool nose for
programming purposes. When this is don% an error caused by the tool nose rounding arises during taper cutting
or circular cutting between the actually programmed shape and the cutting shape. Tool nose radius ccimpensation
is a function for automatically calculating and offsetting this error by setting the tool nose radius value.
The comxumd wales enable the offset direction to be fixed or automatically identified.
Actual m
Mac
NOTE 1: By means of the preset hypothetical tool nose point and movement commands in the
machining program, the G46 tool nose radius compensation function automatically
identifies the immpensation direction and provides nose radius offset.
2: G40 serves to cancel the tool nose radius compensation mode.
-106-
12.TOOL OFFSET FUNCTIONS
12.4.2120L NOSE RADIUS COMPENSATION (G4U.G41,G42.G46j
x axis
Automatic identification
t in G46 mode . ..
Left compensation
M mnpal- —
Sationfxlxl
in041 mde \
— Right wnnpensatior
Right compensation
fixed in G42 mode
Tool nose radius compensation prweads the data in the foilowing two movement command blocks (up to 5 blocks
when there are no movement commands) and controls the tool nose radius center path by the intersection point
eakmlation method so that it is offset from the programmed path by an amount equivalent to the nose radius.
( -’l
\
N1 block “1
I
FmfIE 3 In the above figur% “r” is the tool nose radius compensation amount (nose radius).
4: The tool nose radius compensation amount corresponds to the tool length number and it is
preset along with the tool nose point.
5: If there are 4 or more blocks without movement amounts among 5 continuous blocks,
overcutting or undercutting wiII result.
Blocks in which optional block skip is valid are ignored.
6: Tool nose radius eornpensation is also valid for canned cycles (G77 – G79) and for rough
turning cycles (G70, G71, G72, G73).
However, in the rough turning cycl~ the finishing shape with the nose radius compensation
applied will be turned with the compensation canceled and, upon completion of th~ turning,
operation will automatically return to the compensation mode.
-2 With thread cutting commands, compensation is temporarily carded 1 block before.
$: A tool nose radius compensation (G41 or G42) command em be assigned during tool nose
radius compensation (G46). There is no need to caned the G40 data compensation.
9 The compensation plan% movement axes and next advance direction vector follow the plane
selection command designated by G17, G18 or G19.
G17 ..... XY pkm~ & Y, I, J
G18 ...<. ZX plan% ~ ~ K, I
G19 ..... YZ plan% Y, &J, K
-107-
,, “ ~“
‘~~@~TOOnQs&or9~~D~a
*.
“..%%.—. ~“
Machini [ g shape with no Programmed path or machining
nose . R compensation shape with nose R compensation
.
/ 1
2) When the tool nose point has been aligned with the machining start position
-1
Machining completion position
. .
+x
Machining,
t G40 start position’
#
%0 Machining shape with no nose R compensation
#
# f- -,
, , ~e-,”.,
. / .-, ~ 0-%
\ ,4 \
t ,@ 1 k)
‘1.. A -1:-... --- 4 [“- >’ “G42 Or G46
<.>’.. “---~ %.. /
+\/*..Q “--- w. --- ~ 2
-108-
,1,“
,:, ,
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G4Q,G41,(342,
G46)
D@oir of Compensation
toolnose cll~~f
\ advance Tool nose pointa /
c:t
u R 1 ! w
Right Rf@t Left Left Rfghf I#ft .
T
Right Left Right Right
I 1X1 M II t~ft I U! I
fovmreat Movement
ector “0.+..
K3.31
nose
Ofnts
- 4)
i I / Y v \
~ J--@
M@ ~ft W@ Wht
I
\ Right Left : RightRight Left Left
r .~’
~0~ 1: An “X” mark in the table indicates that the compensation direction is not determined fmm the movememtvmtor
(ted nose points). . .
2: The” # “ mark denotes a movementvector in the 45 direction. @e other movement vectom are baaed on this.)
3: The “ ~“ mark denotes a movement vmtor with a range larger than 45 Qand smaller thatr 1350 me other
movement vectors are based on this.)
I&le W~thtool nose point 3, movement vector in the Zsxis (-) dimctiort [with * movement vector)
t “’’’’’’’’’’’’”A
‘mis
I A
-109-
‘,
. .
There are two ways of starting the compensation operation: type A and type B.
The type can be sekcted or de-selected by the control parameter (tool nose compensation type B).
This type is used in common with the compensation cancel type.
In tha following explanatory figur~ “S’ denotes the single block stop point.
-110-
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
Linear~linear Linear4circular
..
Point of intersection
Point of intersection
s —--- ----- S
Tool nose R center path
j,l r
.
/
G 4 1// Programmed path
/’
/
-111-’
—
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION {G@ G41,G42,G46)
3) Machining an outer wall (obtuse angle) ~pe A or B can be selected by parameter) [0 <90 O]
Linear-wircular (type A)
..
f center }
s —-—— —.—— .—e : of arc
: Tcmlno&R
. centerpath
●
Tool nose R center path ●
\
Programmed path r \ path
.—. —
\
\ \
\
\
Start point
Start point
\
\
start point
Start point
NOTE 1. Where is no axis movement eomm~d in the same block, compensation is performed
perpendicularly to the next block direction.
-112-
TOOL 12. OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION {G40,G41.G42.G46j
path
k,
\
\
\ Porgrammed path
\
\ I
->~ -——— .—— -
Point of intersection Tool nose R center path.
‘\
Linear+=circukar (90 o SO< 180 “) Linear4circular (O0<0< W,O)
-——- — —— --
/ Tool nose R center path
s
%,
0 Programmed path
~ ~-- . ..”
. ..
#’- ,’
r
s
.-— — ----
-.. . \
.“ Tool nose R center path .-
.
Centw=of arc j
i’ J
Center of arc
x’
Circukr~Iinear (90” = d< 1800, . . Circular+ linear (O0<0<900,
Center of arc
●
I
Y
Pmq&med path
\
\ / \
\ :e
\
\ : Ii \
\ \
\ “ ‘-- // \
\\r r
/ Yr
/
of arc
Tool nose R +“ Tool nose R\~
center path s center path Y& ,
Point of intersection SW
-113-
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION iG40.0’41.
G42.G46)
\
Circular~circular (90 0=0< 180 O) Circular~circular (OoC @<90 O)
Center of arc
● . ..
Programmed path x 1! Programmed path
ii
--- r -—. =
‘\ 0- \
/“ \r
-e ~ ‘Tool nose R center path \
.’
----
.“’“ Point of intersection .-. ”
●“ +
Center of arc Cent&f arc Center of arc
r Programmed path
o
Programnu%l path
/“”
// /“
intersection -~ -
~ section i
Center of arc
Center of arc
-114-
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
P~int of intersection
_ _ -Tool nose R center path
e Center of arc...
0
//--
s b’
. ?.
,*’ }
/0 4 I
/ \ *
\ .’ /1
t’ \ ,“ /
:“ center of arc /’
Prograr&md path ~ . “’t -.. =.0 ,/
P e. ---*
1’
.. . .:.%--
u
k Point ‘1%--- ~T;ol pose R
of inter-~, center path
section
~---~
r
1 ~
Imaginmy circle
.—. -.
\. To& nose R center path
./---
‘/ Programmed pti>. ~. : =d point of arc
__— ———-
Programmed path
A /-
-115-
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION {G40.ml. G42. G46j
Linear~linear Circular-1inear
[
End point s
Centef of arc
L
2) Machining an outer wall (obtuse angle) (type A or B can be selected by parameter)
s —-—— —— . . . s
Tool nose R center path
/’ r“ = tool nose R radius Tool nose R
G40,/
/
/
/ /’
/ /
End point
.4;Ys::::~:F
/
/
/
/ e
/
/’
:
:
;;
‘1
\
End point Programmed path
End point Center of ’&c
-116-
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION tG40,G41.G42.G46J
Center . ..
s-—-—
—..———. ~ of arc
1
/
F
rl
Tool nose R center path ~ Tool n<se R
~ center path
Programmed path
Programmed path
—.— .—
&d point
Ehd point
--–—--—–––
,/ Tool nose R center path
Programmed path
path
G 4 O\\\
Enl point
-117-
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
The compensation direction can be changed by changing the compensation command in the
compensation mode without the compensation having to be frost canceled. However, no change is
possible in the compensation start block and the following block.
Lkmar~linear
~“ Programmed path
G41
---------
G41
-
G42
\
/r
/
/
/
‘x
Linear-4circular
-118-
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSAITON (G40,G41,G42,G46)
Circular-+eircular
. ..
Tool nose R center path
Center of arc
/ <
0
/
G41
\“ /
Linear return
G42’ -“\“- /
.-. -, -. 0“
I Seztion left uncut
-119-
.
. ..
.—.— .— .
GOI (G411
1
G41
command
“/
/’ \.
5
“El
Y
~ igh’t)
./”
1
GO1(G02) 1
/fYJY1/////
/
/ 1“
/
/ GO1
/ (G42)
-120-’
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
1-
s
s
0
/ “A z 0
/ \ 0
/ 0
0 \ /
,0
/
N5 N6 N7 N8 ‘
- t- -
(G41) i
N5 GO1 U+30. W-f-60. ;
N6 G28 U –40. W +50. : ~ T-porarily no compensation vectors at
intermediate point
N7 u-m. W+30. ; (Reference point when there is no intermediate
N8 U+40. W+70. : point)
1
NOTE 1. The offset vectors do not change with the coordinate system setting (G92) command.
G33 . . Point of
Tool nose R
,’ ,~ ///////1///
-——. . .’0 ———— —..
Programmed path
-121-
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G@, ml, G42,G46)
N2
//.
\
\\N3
N1 IJ60, W30. TO1O1: Ii
\
W! G41 ; e Block without N1/’
movement
N3 u –50. W20. ; x II ‘k. N4
/’ --.
N4 u –20. W50. ; 1 A
1 -%
When 4 or more blocks without movement follow in sucaxion, the offset vectors will not be cn%ted.
-122-
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATIO.N {G40,G41,G42,G46J
N1 TO1O1: N3-N6
N2 G41 U60. W30. ; . ..
N3 G4 X1OOO;
N4
~6
N7
F1OO;
JN5 s 500 ;
M3;
U –50.
IW20. ;
,
Block without
movement
N8 U –20. W50. :
d
-. . . . . . . . . .
z) when command IS assigned III the compensation mode
When 4 or more blocks without movement follow in succession in the compensation modq the
intersection point veetors will be created as usual.
)
N6 U200. Wloo. ; N? N8
Block without
N7 G04X P1OOO; .....-...’.. movaat
N8 W200. ; ----------
N6
is executed here.
When 4 or more blocks without movement follow in succession, the offsel vectors are mated
perpendicularly at the end point of the previous block.
Nll
N 6 u200. Wloo. ;
N 7 G4 XiOOO;
N8 F1oo; N6
Block without
N9 S500;
movement
N10 M4 ;
1
NH W1OO. ;
In this casq a cut results.
.123.
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION {G40,G41,G42,G46)
L
N 6 U200 W1OO. ;
N7 G40 Go4P1OOO;
N 8 U50. W1OO. ;
N1 (G41) GIZ_;
Tool nose R center path
N2G40XaZb I iKk;
G41
N1
Programmed path
L J
In this eas~ care is required since the intersection point must be sought even when the command
vector is inrxxmet, as in the figure below, regardless of the compensation direction.
/ \
(a, b)
. .
-124-
12. TOOL OFFSET FUNCTIONS
12.4. TOOL NOSE RADIUS COMPENSATION (G4Q G41, G42, G46)
When the intersection uoint calculation and offset vectors cannot be sought, perpendicular vectors are
created in the block b~fore G40.
\
(
. ..
x
L z
—.— .—.
G41
(i,
—
e -. --- -----
k)
. —-
r
‘-‘“—” — Hypothetical tool nose
R center path
,
2) Care should be taken with the G40 command after an arc command since there is a danger of a section
being left uncut when the arc mxeds 3600 due to the contents of I, J and K.
~..
+- r ~, Section left uncut
A
0’ \\/
/
\ ,.
//
~-
\
\ N2
\
\
\
\
Tool nose R center pa~l~ ~
This movement and feed rate \
fail under block N2.
. .
Stop point with single block
-125 -
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40, WI, G42, G46)
NIIO (G40)
N120
N 130 1
x N140 N 150
>
~100 G41 U1OO. W1OO. K 15O.TO1O1;
x (G40)
L
N3
* 1
NI G41 K150. TO1O1 ;
z
N2 .N2 Uloo. Wloo. ;
N3 W150. ;
DI N
I t
-126-
12. TOOL OFFSET FUNCTIOiVS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
. ..
i
---— —-
(G18 G41”)
Nltm N100 G41 Goow150. I 50. ;
—
(N120)
0 NIIO G02 W1OO,I 50. ;
N120 GOO X–150. ;
x t
l_- Z
— Programrn&l path ~ K type vector
Tool nose R center path @ Intersection point calculation
------ Path for intersection point ealculation~pe ‘@or
N3 N4
-127 -
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION {G4#’,
G41,G42,G46]
1) In G41 mode
Direetion produced by rotating the direction eomrnanded by I, K through 900 to the left from the
forward direetion of the Y axis (axis 3) as seen from the zero point
@ample 1) With K1OU. @ample 2) With K -100.
(O, -1(KI IK direction)
Offset vector direetion
4
l-l
2) In G42 mode
Direction produced by rotating the direction commanded by I, K through 900 to the right from the
forward direction of the Y axis (axis 3) as seen from the zero point
(Example 1) With K1OO. (&le 2) With K -100.
(0, 100 IK direetion) Offset vector direction
>
l-’
<J
x NI G28 XOZO;
N2 G41 TO1O1 F1OOO;
!
kz N 3 GOI U1OO. W1OO. ;
(1, K] N4 G42 W1OO.i–100. K1OO.
N4
N3 TO1O2 ;
N 5 U–1OO. WIOO. ;
N2
N5 N6 G40;
Ill
\v
N7 M02;
%
-123 -
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
<I%ample 1>
.--— --—- -.
(G41 TO1O1)
TI
)
x NIOO N1OO G41 W150. K 50. ;
NI1O N11o U–1OO. WKN. ;
L z i.
Vector (A) is the offset amount entered in tool offset number modal 1 in the N1OObIock.
/ -1
~Example “2>
_ .-
----
(G41 TO1O1)
@ T2
T1 1
N200 G41 W150. K50. TO1O2 ;
x N200
N21o u –100. W 100. ;
N21o
z t
\L
J
Veetor (B) is the offset amount entered in tool offset number modal 2 in the N200 block.
(6) Checkpoints
1) Issue the ~ K type veetor in a linear mode (GO, Gl). If it is issued in an arc mode at the start of
compensation, program error “P151” (G2, 3 CMP. ERR ) will result.
Au IK designation in an arc mode functions as an arc center designation in the offset mode.
2) When the~ K type vector has been designated, it is not deleted (avoidance of interference) men if there
is interference. Consequently, overcutting may arise in such a case.
lx
IL z
N1
N 2
N3
G28
G41
W1OO. ;
XOZO;
TO1O1 F1OOO;
-129-
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
1) Refer to the following table for the offset methods based on the presence andlor absence of the G41
and G42 commands and I, K (J) command.
..
G41/G42 I, K (J) Offset method
No No Intersection po int calculation typ e vector
No Yes Intersection point calculation typ e vector
Yes No Intersection po int calculation typ e vector
Yes Yes I, K type vector
No insertion block
-130-!
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46j
Ii
x /1
L z (.%
LU50. W30.
[
~-
-131-
12.TOOL. OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (GW, G41,G42,G46J
lute OFF.
✼
\
\ l\
~ Interrupt
-132-
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION ~G40,G41,G42,G46)
Besides being used to designate the offset amounts for tool nose radius compensation, the T codes are
also used to designate the offset amounts for tool position offset.
(2) Changing the offset amounts
Offset amounts are normally changed when a different tool has been seleeted in the compensation
caned mode. Howwer, when an amount is changed in the compensation modej the vectors at the end
point of the block are calculated using the offset amount designated in that block. .
(3) Errors during tool nose R compensation
1) #m error results when any of the following mmmands are programmed during tool nose R
compensation.
G17, 18, 19 ~Pl12° when a plane differing from that applying during the compensation has bem
commanded)
G31 (“P608”)
G74, 75,76 (“P155”)
G81–G89 (“P155”)
2) A error (“P158”) results when a tool nose point other than 1 through 8 has been designated in theG46
mode.
3) An error (“P156”) results when the offset direetion is not determined by the movement veetor of the
initial cutting command even when the tool nose R compensation operation has started in the G46
mode and 5 blocks have been pro-read.
4) ti error (“P151”) results when an arc command is issued in the first or last block of the tool nose R
compensation.
5) A program error (“P157”) results when the offset direction is reversoil in the G46 mods
A parameter can be set to move the tool in the same compensation direction. (Chtrol parameter #37
“G46 revered error avoidance”)
6) A program error (“P152”) results during tool nose R compensation when the intersection point is not
determined with single block skip in the interference block processing.
7) A program error results when there is an error in one of the prtmmd blocks during tool nose R
compensation.
8) A program error (“P153”) results when interference arises under no interference avoidance conditions
during tool nose R compensation.
9) A program error ~P150”) results when a tool nose R compensation command is issued even though
the tool nose R compensation specification has not been provided.
. .
!’
-133 -
12. TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42. G46)
-134-
. .
N1
interferen~ check
~4
+!.
●
Programmed path
{
/,
///// .-’/ //O-/- ~.~/// /
N1 r Center of arc
In the ease of the figure below, the groove wilI be left uncut.
-135-
12.TOOL OFFSET FUNCTIONS
12.4.TOOL NOSE RADIUS COMPENSATION (G40,G41,G42,G46)
N1
-136 -
TOOL. OFFSET FUNCTIONS
12.
12.4.TOOL NOSE RADIUS COMPENSATION (G4Q,G41,G42,G46)
k
program error “P153° will Oc- N2
cur at the N1 end point when the
vector intersecting angle is more
than 90 “. N4 .
N3
N1
N2
-1.37 -
12.TOOL OFFSET FUNCTIONS
12.5.PROGRAMMED TOOL OFFSET INP~ tGlOJ
4) When the program advance direction and the advance direction after compensation are reversed ,
liI the following ease, interferer is still regarded as occurring even when there is actually no
interference.
When grooves which are narrower than the tool nose R diameter or which have para.llel or
widening walls are programmed
t Y
mags===~
2) Tool length offset input (L1O)
G1O L1O P7 L@q) (W) R(c)Q;
Hypothetical tool nose point
Tool nose R t.mmpensation amount
(incremental)
Tool nose R compensation amount
(absolute)
;K Z-axis offset amount (inerernental)
Zkixis offset amount (absolute)
X-axis offset amount (incremental)
X-axis offset amount (absolute)
Offset number
-138-
12. TOOL OFFSET FUNCTIONS
12.5.PROGRAMMED TOOL OFFSET INPUT {GlOj
4) When there is no L command with tool length offset input (L1O) or tool nose wear offset input (L1l)
Tool length offset input command: P = 10000 + offset number
TOOIno~e wear offw-t input: P = offset number
(3) Detailed dexription
1) The following table shows the offset numbers and the setting ranges of the hypothetical tool nose
points.
Add- Signifieanee of Setting range
rem address L2 L1O Lll
O fiternal work When L ~mmand is
offset presenfi 1 — Max. When L command
1: G54 work offset “ number of offset sets is/is not presenfi
P Offset number 2 G55 work offset 1 – Max. number of
3: G56 work offset When L command is offset sets
4: G57 work offset not present:
5: G58 work offset 10001 – 1000O +
6: G59 work offset Max. number of of-
fset sets
Hypothetical .
Q o–9
tool nose point
NOTE The maximum number of offset sets for P (offset number) with tool offset input (L1O or Lll) is
20 under the standard specifkations and up to a total of 80 with the addition of options.
2) The setting range for the offset amount is given below.
Program error “P35” oeeurs for any value not Iisted in the table after command unit eonversion.
With an incremental value command, the setting range for the offset amount is the sum of the present
setting and command value.
Input Tool length offset amount Tool wear offsel amount
unit Metric system Inch system Metric system Inch system
* 999999.99 & 99999.999 2999999.99 k 99999.999
IS-A (mm (inch)
(mm) (inch)
* 99999.999 & 9999.9999 & 99999.999 * 9999.9999
IS-B mm (inch) (mm) (inch)
* 9999.9999 k 999.99999 * 9999.9999 *999.99999
IS-C mm) (inch)
mm (inch)
-139-
12. TOOL OFFSET FUNCTIONS
12.5.PROGRAMMED TOOL OFFSET INPUT (GlO]
5) offset input can be performed similarly for the third axis but even when the C axis has been designated
as the third axis, address C is treated as an incremental command value of the tool nose rad~us in the
L1O or Lll command.
6) If an ilkqyd L number or P number is commanded, program error “P172” or “P170” will result,
respectively. . ..
7) Program error “P170” occurs when the P command is omitted.
8) Program error “P35” results when the offset amount exceeds the setting range.
9) & Z and U, W are input together in a single block but when an address that commands the same offset
input ~ U or ~ W) is commanded, the address which is input last is valid.
10) Offset will be input if even one address following G1O L(2/10/11) P- is commanded. Program error
“P33” results when not even a single command has been assigned.
13ample G1O L1O P3 Z50. ;
m.putasperlef
11) Decimal points are valid for offiet amounts.
12) Program error “P171” occurs when this command is input even though the corresponding specifica-
tions have not been provided.
13) G40 – G42 are ignored when they have been coinmanded in the same block as G1O.
14) Do not command G1O in the same block as canned cycles and subprogram cdl commands.
This will cause malfunctioning and program errors.
15) When a T command hasbeen issued in the same block as G1O with Tmove (machine offset operation)
as zero, the offset will be accomplished in the following block. (Basic specifications parametedmachine
parameter 1.)
. .
-140-’
13.PROGRAM SUPPORT FUNCTIONS
13.1.CAN..ED CYCLES FOR TURNING
G code Function
G77 Longitudinal turning cycle
G78 Thread cutting cycle
G79 Face turning cycle
,.
-141-
13.PROGRAM SUPPORT FUNCTIONS
13.1.C~NED CYCLES FOR TURNING
‘s&
z w
f’:”
x
Z axis
+
[
-—z axis
. .
I
-142-
13.PI?OGRAM SUPPORT FUNCTIONS
13.1.CANNED CYCLES FOR TURNING
/
Depending on the U, W and R signs, the following shapes are created,
w
F w
I{
4
4 1
u ~ 1 u ~
T
x 2
.— . R
2 I ‘> -— . J ‘
R
x X
z z
L~ 1 l.-
(x x
1- 2
t-
Z
- —- 2
L R
U
u 3
1
z
1 / 4
Program error “P191” (TAPER LENG ERR) results with shapes (2) and (3) unless the following condition is
satisfied.
lu/21Zlrl
-143-
13. PROGRAM SUPPORT FUNCTIONS
13.L CANNED CYCLES FOR TURNING
X axis
---. — -———.
x axis 4 (R)
J
?
(R] Rapid traverse
(F} Thrmd cutting
-— Zaxis
I
R: Taper depth (radial designation, incremental valuq sign required)
b
units from O to 12.7L.
0
& Chamfering angle of thread ‘
The parameter can be set in 1° units
from O to 89°.
a
L /
With a single block, the tool stops at the end points of operations the 1, 3 and 4.
-144 -
13.PROGRAM SUPPORT FUNCTIONS
13.1.CANNED CYCLES FOR TURNING
When the feed hold function is applied during a thread cutting eyclq automatic operation will stop if no thread
is then being cut. If thread cutting is proceeding, operation stops at the next movement completion position
(completion of operation 3) of the thread cutting.
The dry run valid/invalid status does not change during thread cutting. . ..
Depending on the U, W and R signs, the following shapes are created.
w I
w I
F
F
4
I‘< ;
1
u
u
1
T 3
.—
2-
R
x
x .. ,.~
z z
1- L-
x x
2
z t-
L
2 R
.— -
u
z
. I:
u
T 3
4
w
1
:
Program error “P191° &APER LENG ERR) results with shapes (2) and (3) unless the following condition is
satisfied.
lu/2]=lrl
-145-
13. PROGRAM SUPPORT FUNCTIONS
13.1.CANNED CYCLES FOR TURNING
ixis
L/
)-
1 (R)
(R): Rapid traverse
4 (R)
~ (1?) Cutting feed
,:1
z w
1 I I
-—
J
)--- - - Zaxis
l-%
~ (RI Rapid traverse
2 (F) Cutting feed
. -— Zaxis
With a single block, the tool stops at the end points of operations 1, 2, 3 and 4.
-146 -
PROGRAM
13. SUPPORT FUNCTIONS
13.1.CANNED CYCLES FOR TURNING
r
R
l(R)
+’
,{\:i : ,[ /’ 2(F) ‘=
4(R)
I
3(F)
x
z w 1
z
Program error “P191” (TAPER LENG ERR) results with shapes (2) and (3) unless the following condition is
satisfied.
lwl~lrl
-147-
13.PROGRAM SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CANNED CYCLES
G code Function
G70 Finishing cycle
G71 Longitudinal rough turning cycle (finished shape Multiple repetitive
chamfering) canned cycles I
G72 Face rough turning eycle (finished shape chamfering)
G73 Stock removal in rough machining cycle
G74 Face cut-off cycle Multiple repetitive
G75 Longitudinal cut-off cycle canned rjckx II
G76 Multiple repetitive thread cutting cycle
(1)
. . If, with any of the above functions for the multiple repetitive canned cycks I (G70 – G73), the finished
shape program has not been entered in the mem&y, the function cannot be w&L
(2) The program formats are as follows.
G70 & P_ Q_ ;
G71 U_ R_ ;
G71 L P_ Q_ U. W. F_ S_ T_ ~
G72 W_ R_ ;
G72 & P_ Q_ U_ W.- F. S. T_ ;
G73 U_ W. R_ ;
G73 A_ P_ Q_ U_ W_ F_ S_ T_;
G74 R_ ;
G74 X(U)_ Z(W)_ P_ Q_ R_ F_;
(Same for G75)
G76 P_R_;
G76 X(U).-Z(W )- P-Q-R-F-;
(3) The ~ P and Q cmmmands of the multiple repetitive canned eycks I are described below.
1) When the A command is not present, P and Q in the program now being executed are ealkxl.
When the A command is present and the P command is not present, the head block of the program
designated by the A ecmuuand is treated as the P command.
2) When the Q command is not present, operation continues until the M99 command is located.
When both the Q and M99 commands are not present, operation tmntinues until the final block in the
finished shape program.
(4) ‘llvo pre-read blocks or more are required when creating a ftished shape program.
.—
.
-14s -
13.PROGRAM SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CANNED CYCLES
—
1
1 d” Cut amount
Ud: Cut amount “d” (cut amount without P, Q commands) (modal) ... Variable parameter valid
Rtx Retract amount “e” (modal) ... Variable parameter valid
AZ Finished shape program number @ogram being executed when omitted)
Pp: Finished shape start sequence number (program head when omitted)
Qq: Finished shape end sequence number (up to end of program when omitted)
Up to M99 command when M99 comes first even if Q command is present
Uu X-axis direction fiishing allowance (diametrical or radial designation)
Ww: Zaxis direction finishing allowance
Ffi Cutting feed rate
Ss: Spindle speed
TE Tool command
The F, S and T commands in the finished shape program are ignored and the value in the rough
turning cycle command or previous value is yalid.
NOTE 1: A “variable parameter” is a parameter which can use a parameter setting without the issue of
a program command or a parameter which is that parameter rewritten by the program
command.
NOTE 2: The U mmmand applies to the finishing allowance when it is in the same block as the A, P
and Q commands.
-149-
13.PROGRAM’ SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CANNED CYCLES
r-
d
No Z-axis movement
(c) When finished shape X axis depth is smaller than cut amount d
....................-..
t
El__-lld
............................................................J.....
Note: In the following shape, a program error will not occur. Rough turning cycle will be executed to
the 1st block X coordinates, and the finishing amount will follow the assigned shape.
4 (R)
)~
3(F)
~
y
1 (R/F)
Based on shape program
cammand
2(F)
R Rapid traverse
F: Cutting feed
-150-
PROGRAM SUPPORT FUNCTIONS
13.
13.2.MULTIPLE REPETITIVE CANNED CYCLES
.
(3) cut amount
The cut amount is designated by “d.” However, it is possible to change the cut amount with each cutting pass
by setting the cut change amount (Ad) using a parameter.
Program error “P204” (C-FORMAT ERR) results whtm “d” is less than “Ad.”
1 d+Ad
1st cutting pass d+Ad
2 d
2nd cutting pass d
3 d–Ad
3rd cutting pass d–Ad
4 d+Ad
“i’: ;1 ‘.
4th cutting pass d+Ad 1 J d,
: {d-Ad,
I
I
d, d–Ad, d+ Ad are
1( repeated (
( >
Temporary c.ancelation ~‘
\“
\
\ Shape with tool nose
\ i
R compensation applied { G71A_u_w_”.. ;
‘) f Command point
~/ I I
I I
i
L .- . i
-\ I
[ 4
-151-
13.PR0GRAi14SUPPORT FUNCTIONS
13.2.
MULTIPLE REPET- i2MNNEDCYCLES
(5) Others
1) After the cutting, the remainder is made the cut amount. However, if this amount is less than the value
set by parameter, finishing rough turning is executed and the workpiece is not cut.
2) Finishing allowance dinxtion
The finishing allowance direction is determined by the shape as follows. A+B-C apply for the
finishing program.
z
I
BQ 913
111
U(–)w(–)
U(–)w(–)
AO ‘c co 6A
-152-
PROGRAM SUPPORT FUNCTIONS
13.
13.2.
MULTl??LEREPElT7?lZE
G4NNED CYCLES
Cn I 1[ — A.-4– --...—..–>
uycm commana pomr
.-. .
42 l\
E 1 Finishing
allowance
w -1
- /
Wd: Cut amount “d” (cut amount without P, Q commands) (modal) ... Variable parameter vatid
Re Retract amount “e” (modal) ... Variable parameter valid
h Finished shape program number (program being txeeuted when omitted)
Pp: Finished shape start sequence number @rogram head when omitted)
Qq: Finished shape end sequenee number (up to end of program when omitted)
Up to M99 command when M99 comes first even if Q command is present
UU X-axis direetion finishing allowance (diametrical or radial designation)
Ww: Z-axis direction finishing allowance
Ffi Cutting feed rate
Ss Spindle sped
Tt: Tool command
The F, S and T commands in the finished shape program are ignored and the value in the rough
turning cycle cmmnand or previous value is valid.
NOTE A “variable parameter” is a parameter which ean use a parameter setting without the issue
of a program command or a parameter which is that parameter rewritten by the program
command.
NOTE The W command applies to the finishing allowance when it is in the same block as the & P
and Q commands.
-153 -
/
/7s
No X-axis
k
movement
LE- Movement
awav from
X &is
E
(c) When finished shape Z axis depth is smaller than cut amount d
,d:
●S
,,
-
E
Note: In the following shape, a program error wfil not occur. Rough turning cycle will be executed to
the Ist block Z coordinates, and the finishing amount will follow the assigned shape.
— —
Ist block Z coordinate ~
—
-i
-154-
PROGRAM SUPPORT FUNCTIONS
23.
13.2.
MULTIPLE REPET~WE C4.NNEDCYCLES
1 4 (R)
R: Rapid traverse
F: Cutting feed
v
2(F)
3(F)
L
-155-
13.PROGRAM SUPPORT FUNCTIONS
13.2.
MULTIFLE REPETL!?J?E
CANNED CYCLES
(5) Others
1) After the cutting the remainder is made the eut amount. Howmwr, if this amount is less than the value
set by parameter, this cycle is not executed.
2) Finishing alIowance direction
1 e finishinz allowance direction is determined bv the shane as follows.
A BX B A
o
co
c
I z
co Oc
HI U(–)w(-)
m U(–)w(+)
o o
A B B .4
-156-
PROGRAM
13. SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CXNNED CYCLES
i +u/2
UT
A u/2
-1
-H-’
,
Ui: X-axis direction cutting allowance i Cutting
● allowances when P, Q commands are not
present
Wk: Z-axis direction cutting allowance k * Modal dat~ variable parameters are valid
Rd: Number of divisions d1 o Sign is ignored
o Radial designation applies to the cutting allowance.
Aa: Finished shape program number (program being emmted when omitted)
Pp: Finished shape start sequence number (program head when omitted)
Qq Finished shape end sequence number (up to end of program when omitted)
Up to M99 command when M99 comes first even if Qq command is present
Uu X-axis direction finishing allowance u ● Finishing ahowance whe~P, Q mmmands are present
Ww: Z-axis direction fiiishing allowanm w} * Sign is ignored.
Diametrical/radial designation changm in amordance
with the parameters.
The shift direction is determined by the shape. For
details, reference should be made to the “finishing
allowan~ direction” for G71.
Cutting feed rate (F function)
1
The F, S and T commands in the finished shape program are
Spindle speed (S function) ignored and the value in the rough turning cycle command or
Tool selection ~ function) previous value is valid.
NOTE 1: A “variable parameter” is a parameter which can use a parameter setting without the issue
of a program command or a parameter which is that parameter rewritten by the program
command.
NOTE 2: With a single block, operation stops” at the end point of each block.
-157 -
13.PR OGRA.M SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CANNED CYCLES
A
\ J
-158-
13.PROGRAM SUPPORT FUNCTIONS
13.2.MULTIPLE REPET1TIW3 CANNED CYCLES
ODeration
x
80.
--(
50. z
(6) Others
1) Cutting direction
The shift direction for the cutting is determined by the shape in the finishing program, as shown in the table below.
I
I 2 3 4
Draw-
ing
=-%,
s
%,
S,S
JE E
Initial + +
“-” direction
X axis I
Overall
-1- +
Z axis “-” direction I
X-axis +
“ -t-” direction
cutting I
&axis . +
cutting “+” direction
-159-’
13.PROGRAM SUPPORT FUNCTIONS
13.2.MULTPLE REPETITIVE C~NED CYCLES
(2) 1 cycle configuration
The tool moves at rapid traverse for operations (l), (2), (5) and (6) in the cycle and at the cutting feed based
on the F designation for operations (3) and {4).
>
(-i)
\
a“ ‘ Ad for 1st
cutting pass
1
2nd
cutting pass
k
Ad~~
nth cutting pass
~~ Ad~fi
T Finishing allowance d
(cutting redts for “m”
number of passes)
-160-
13. PROGRAM SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CANNED CYCLES
(
Nloo G70 P200 Q300 ;~OO ..” ;
N11O $
N300 ““” ;
\
N 120
$
N200
\ Finished shape program
N300 I
N31O
i
If the lWM cyc~e is executed in either Example 1 or Example 2, the N11O block is executed next.
.
-161-’
13.PROGRAM SUPPORT FUNCTIONS
13.2.
MULTIPLE lWPETfl~ CANNED CYCLES
G74X/(U)~Z(w)~Pi Qk Rd
——— Ff— ;
z w J (start
. Operation (9) as well as operation (12)
@ point)
immediately before the final cycle are
f I s executed with the remainder amount.
I& Return amount (no X/U, P commands) (modal) ... Variable parameter valid
X/ux: B point X coordinate (absolute/incremental value)
Zfwx B point Z coordinate (absolutc#incremental value)
Pi: Tool shift amount (radial designation, incremental vahq sign not required)
Qk: Cut amount (radial designation, incremental valuq sign not required)
Rd Escape at the bottom of the cut
Ff: Feed rate
(1) Single block stop
Operation stops at each block from (1) through (12).
(2) Others
1) “e” can also be sti by parameter. (It is rewritten by the Program command.)
2) When X/U and P ar~ &rdtted or when the valu~ o~ “x” &d-”i” are zero, operation will apply to the
Z axis only.
3) A case where the X/U or Z/W command is not,preaent is trmted as the assignment of a parameter
setting command (G74 Re). If 12e as weIl as the X/U or Z/W command is not present, no processing
results.
4) When the value of cut amount “k” is higher than hole depth “w:’ the command is executed with “k”
equal to %.”
5) A program error results in the following cases. (P204 C-FORMAT ERR)
a) When “i” is zero or P has not been commanded even though X/U has been commanded
b) When tool shift amount “i” is greater than the “x” movement amount
c) When the escape amount “d” is greater than the shift amount “i”
d) When the return amount “e” is greater than the cut amount “k”
-162-
13.PROGRAM SUPPORT FUNCTIONS
13.2.
MULTDLE REPEZlllVECANNED CYCLES
G75W(U)X
. ,_ Z/(w)z
.,— Pi— Ok
-——Rd Ff. :.
i
~
------- - [
B
c
-i
RG Return amount (no XJU, P commands) (modaI) ... Variable parameter valid
XfUx: B point X coordinate (absolute@xemental value)
Z/Wz B point Z coordinate (absolutdincremental value)
Pi: Cut amount (radial designation, incremental valuq sign not required)
Qk: Tool shitl amount (radial designation, incremental valuq sign not required)
Rd: Escape at the bottom of the cut
Ffi Feed rate
(1) Single block stop
Operation stops at each block from (1) through (12).
(2) Others
1) %.” can also be set by parameter. (.R is rewritten by the program command.)
2) When VW and Q are omitted or when the values of “z” and “k” are zero, operation (groove cutting)
will apply to the X axis only.
3) A case where both the X/U and 2YW commands are not present is treated as the assignment of a
parameter setting command (G75 Re). If Re as w’ellas the X/U and 27W commands is not present, no
processing results.
4) When the vrdue of cut amount “i” is higher than hole depth “u/2J’ the command is executed with “i”
equal to “u/2.”
5) A program emor results in the following cases. (P204 C-FORMAT ERR)
a) When “k” is zero or Q has not been commanded men though WW has been commanded
b) When tool shift amount “k” is greater than the “z” movement amount
c) When the escape amount “d” is greater than the shift amount “k”
d) When the return amount “e” is greater than the cut amount ‘(i”
-163-
13. PROGRAM
SUPPORT FUNCTIONS
13.2.
MULTIPLE REPEIYIWl?iMNiVEDCYCLES
NOTE 1: The two above G76 commands cannot be placed in the same block.
The data commanded by P, Q and R are automatically identified aumrding to the presence
or absence of the X/U and Z/W axis addresses.
-NOTE 2: Parameter settings can be used for the above “~” “r,” “a:’ “Ad rein” and “d” modal data
but these parameter settings are rewritten by the program commands.
NOTE 3: The chamfering amount designation is valid even for thread cutting cycles.
NOTE 4 Program error “P204” (C-FORMAT ERR) results in the following cases.
a) When “a” is outside the rating
b) When both the X and Z mmmands have not been issued or when the start and end point
coordinates are the same for either the X or Z command.
c) When the thread height is greater than the movement of the X axis at the thread bottom
NOTE 5: The checkpoints for the thread cutting command (G33) and thread cutting cycle (G78)
should be observed.
-164-
13.PROGRAM SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIW? CANNED CYCLES
X ‘&is II ..-
Y ‘-T-r--t-- -—-===-t- I ‘“
I 24. () I 4(? (1 I
,
13.PROGRAM SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CANNED CYCLES
\ \
N1OO G71P200 Q500 U ——
W “-- : N 100 G71A1OO T.J_W_””- ; \
N200 N200 ~
1
d
N300 N300
N400 Finished shape program N400
100
N500 Nloxloo. 250. ;
N600
N20 {
:. .
Operation moves to the N600 block upon Operation moves to the N2Ml block upon
m-mpktion of the cycle. completion of the cycle.
-166-
13. PROGRAM SUPPORT FUNCTIONS
13.2.MULTIPLE REPETITIVE CANNED CYCLES
(12) The next block applying upon completion of the G70 command is the next block of the command block.
K
$
. ..
Nloo ““”... :
pJ~(jo ., .... .
N300 “..”””;
N400 “..””. :
N500 --- ;
\
N1ooOG7OP2OO Q500 ; (or G70A100 ;)
NI1OO.””-. :
{
\ J
<13) It is possible to apply a manual interrupt while a multiple repetitive canned cycle command’ (G70 – G76)
is being executed. However, upon completion of the interrupt, the tool must first be returned to the position
where the interrupt was applied and then the multiple repetitive canned cycle must be rcatarted.
If it is restarted without the tool having been returned, all subsequent movements will deviate by an amount
equivalent to the manual interrupt amount.
(14) Multiple repetitive canned cycle commands are unmodal commands and so they must be issued every time
thq are requirtxl.
(15) Program error “P203” (COIJF. ERR) results with the G71 and G72 commands even when, because of tool
nose R compensation, there is no further movement of the Z axis in the second block or the Z axis has moved
in the opposite direction.
(16) The settings of the common variables in the G70 to G73 ftished shape program are ignored, and the settings
before the rough turning cycle will become valid.
(1V If there is a circukir command in the fust movement block of the ftished shape program, the program error
“P201 PROG.EllR (MRC)” will occur.
-167-’
13.P.ROGRAM SUPPORT FUNCTIONS
13.3.HOLE MACHINING CANNED CYCLES lG80 – G89)
Hole
Hole machining Operation at hole
G code ruachin- I&turn operation Application
start bottom
ing axis
G80 – — — — Cancel
Cutting feed, Deep hole drilling
G83 z Dwell Rapid traverse
intermittent feed cycle
Dwell, spindle
G84 z cutting feed Cutting fed Tapping cycle
reverse rotation
G85 z cutting fed Dwell Cutting feed Boring cycle
Cutting fed, Deep hole drilling
G87 x Dwell Rapid traverse
intermittent feed cycle
Dwell, spindle
G88 x cutting feed Cutting feed Tapping cycle
reverse rotation
G89 x Cutting fed Dwell Cutting fed Boring cycle
A canned cycle mode is canceled when the G80 or any G command in the 01 group is issued. The various data
will also be- cleared simultaneously to zero.
(2) Command format
1) Face hole machining
] G~~x/Lc/H
~
z/w_R_Q_P_F
1301eposition-
ing data L
K_;
~Number
Hole machining data
of repetitions
~
G&DZ/w_C /H_X/U_R_Q_p_F Kw. ;
1-1301eposition-
1- ing data L Number of repetitions
Hole machining data
Hole machining mode (G87, G88, G89)
3) camel
G80 ;
-168-
13.PROGRAM SUPPORT FUNCTIONS
13.3.HOLE MACHINING CANNED CYCLES {G80 – G/J9)
Address Significance
Selection of hole machining cycle sequence
G
(G80, G83, G84, G85, G87, G88, G89)
X/u (22-W)*, cm Designation of hole position initial point
(absolute/incremental value)
ZIW (X/Uy Designation of hole bottom position
(absolutdincremental value from reference point)
Ikignation of reference point position
R
(incremental value from initial po int) (sign ignored)
Designation of cut amount for each cutting pass with
Q G83 (G87} always incremental valuq radial value (sign
ignored)
Designation of dwell time at hole bottom point; relation-
P ship between time and designated value is same as for
G04 designation
F Designation of fed rate for cutting feed
Designation of number of repetitions, O — 9999
K
{standard = 1’I
-169-
—
OGRAM SUPPORT
13. PI? FUNCTIONS
13.3.HOLE MACHINING CANNED CYCLES (G80 — G89]
“\
?
24 c
/ 1+,
+x
Rotary tool for Z
-170-
13.PROGRAM SUPPORT FUNCTIONS
13.3.HOLE MACHINING CANNED CYCLES (G80 – G89)
(4) Operations
There are 7 actual operations which are each described in turn below.
F \ Operation 1: This denotes theposition-
ing (by rapid traverse) of
the tool to the X (Z) and
operation 1 Operation 2~ C axis initial point.
Initial point
Operation 2 This is output provided
that the M code for C axis
Operation 3 Operation 7 clamping is issued.
R point Operation 3 The tool is positioned as
far as the R point by rapid
traverse. .
Operation 4 Operation 6
Operation 4 Hole mach~ing is
conducted by cutting
~1, Operation 5 fed.
L Operation 5: This operation takes place
at the hole bottom
position and it differs ac-
cording to the canned
cycle mode. Possible ac-
tions include spindle
reverse rotation (M&l),
spindle forward rotation
(M03) and dwell.
Operation 6 The tool is retracted as far
as the R point.
Operation % The tool is returned as far
as the initial point at the
rapid traveme rate.
(Operations 6 and 7 may be a singIe operation depending on the canned cycle ruode.)
Whether the canned cycle is to be completed at operation 6 “or 7 can be selected by the following G commands.
G98 .... Initial hwel return
G99 .,.. R point level return
These G commands are modal. Onq for instanq G98 is designated, the G98 mode will remain valid until the
G99 command is issued. The G98 mode is established in the initialized state when the NC unit is rmdy to operate.
. .
-171-
13.PROGRAM SUPPORT FUNCTIONS
13.3.HOLE MACHINING CANNED CYCLES (G80 – G89)
-172-
13.PROGRAM SUPPORT FUNCTIONS
13.3.HOLE MACHINING CANNED CYCLES {G80 — G$9)
(
Referenee point
Reference point (MB)-
0’
H z point @ k Z poin@
— .
See (1) in Seetion 13.3.1 for details on Ma. M13. 0?) and (IV.
Whi~e’G84 (G88) is being executed, theovernde &&~el sta&~ is established and 100% override is automatically
applied. Dry run is also ignored.
When feed hold is applied while G84 (G88) is being rxecuted, the rdum operation is first completed and then
block stop results.
The in-tapping signal is output in a G84 (G88) modal operation.
The tool stops at the reference point before moving on and the rotary tool forward rotation signal is output.
The rotation of the rotary tool is reversed at the hole bottom and tap return is performed.
Before the rotary tool reverse (M&l) or forward rotation (M03) signal is output, the earmed cycle subprograms
should be edited if the rotary tool stop (NK)5) command is required..4-
-173-
13.PR 0GRAh4 SUPPORT FUNCTIONS
13.3.HOLE MACHINING CANNED CYCLES ~G80 – G89]
7/5,t
~$,$
G98 mode G99 mode --
. See (1) in Section 13.3.1 for details on Ma, M& (P) and (P)’.
. The tool returns to the reference point at a cutting feed rate which is double the designated feed rate
command. However, it does not aced the maximum cutting feed rate.
-174-
13. PR OGR”AM SUPPORT FUNCTIONS
13.3.HOLE MACHLNING C~NED CYCLES {G80 – G89]
5) The hole machining canned cycles are also canceled by any G code in the 01 group except G80. If it
is commanded in the same block as the canned cycl~ the canned cycle wfll be ignored.
= 01 group cod% n = hole machining canned cycle code
(a) Gm G~aX (z). C_ Z (x)._, & Q_ P_ K_a
-1--1 Memorized .-.
II ~ Ignored
IZmcuted
\R_ Q_ P_ K.,
Memorized
~~giii
Emmules:
. G01G83 XIOO. C30. 2250.R–10. Q1O. P1 F1OO. :
G&$GOl X1OO.C30. Z50. R–10. Q1O. P1 F1OO. ;
In both cases, GO1 X1OO.C30. Z50. F1OO. is exemted.
6) When a miscellaneous command is issued in the same block as the canned cycle command, it is output
at the same time as the initial positioning.
However, if the C-axis clamping M code which has been set by parameler (machine parameter basic
2—16 clmp_ M) is commanded in the same block, the M code will be output after positioning
(operation 2).
After the holes have been machined, the tool returns to the return point (initial point in G98 modq
referenee point in G99 mode). Then the C-axis unclamping M code (clamp M + 1) is output and dwell
is performed for the duration of time set by the parameter (machine parameter basic 2—11 clmp_ D).
When the number of cutting passes has been designated, the above control is exercised for the initial
pass only ezcept for the C-axis clamping M code. In the case of the C-axis clamping/unclamping M
commands, operation is modal and the code is output with each cutting pass until the operation is
canceled by the canned cycle cancel command.
7) When a tool length offset command ~ function) is issued in a hole machining canned cycle modq
execution will follow the tool kngth offset function.
8) When a hole machining canned cycle command is issued during tool nose R campensatioq program
error “P155” (J?-CYC ERR(CC)) results.
9) Operation is fixed to initial point level return with the G code system 1. It is not possible to change the
return level using G98/G99. It should be borne in mind that if G98 or G99 is commanded, a different
function will be extxxted.
-175 -i
13.PROGRAM SUPPORT FUNCTIONS
13.4.DEEP HOLE DRILLING CYCLE 2 tG83.2j
Addrtm Significance
WIZJUIX Incremental value from hole machining start point/coordinates of hole bottom
(with sign)
R Incremental value (no sign) from present position up to hole machining start
I point, always radial value with incremental value
1 Cut amount of first cutting pass (no sign), always radial value with incremental
l--
I
K
A
value.
Cut amount of second and subsequent cutting passes (no sign), always radial
value with incremental value.
Drill stop safety distance for second and subsequent cutting passes (no sign]
always radial value with incremental value.
I
Dwell time at cut point (no sign, decimal point invalid)
DwelI time at return point (no sign, decimal point invalid)
Cutting fed rate
Gperation
-176-
OGRAM SUPPORT FUNCTIONS
13. PI/
13.4.DEEP HOLE DRLLLING CYCLE 2 CG83.2j
(3) Example of program (when deep hole drilling cycle 2 is used as a modal command)
G28 XZ ;
GO XO. ZO. ; ...(1) . ..
G83.2 Zl10. R20. 130. K20. A5. Q1OOO
J500 F300. ; ...(2)
Xloo. ; ...(3)
X50. ; ...(4)
M02 ;
tieration
x
I
i
I
I
I
I
Hole
~--yo ~; ;0
z. ll&@ “chin?
-177-
1,
(4)
., Detailed description
1) When th~drill stop safety distance (address “A”) command is not given, the preparato~ “G83 return
amount” parameter setting is used.
2) The deep hole drilling cycle 2 is a modal command and so it will remain valid until a command in the
same modal group or the cancel command (G80) is issued. . ..
3) If the command either for the cut amount (addres “1”) of the first cutting pass or the cut amount
(address “K”) for the second and subsequent passes is not present (including a command value of
zero), the value of the command which is present will be used and the operation will be executed with
both I and K equal to the command value.
If both commands are not present, hole machining is conducted once as far as the hole bottom.
4) When the axis address of the hole machining axes has been commanded a multiple number of times in
a block, the address commanded last is valid.
5) The hole machining canned cycle 2 is also canceled. by. any G code
-------in the 01 group except G80. If it is
commanded in the same block as the canned cycle, the canned cycle will be ignored. .
m= 01 group cod% n = hole machining canned cycle code
R_ I- K. & Q- J-,’F.~
Memorized
Ignored
Executed
Ignored
=amp]=
. G01G83.2 250. R-10. 18. K1O. A3. Q1OOO3500 F1OO. ;
G83.2G01 Z50. R-10. 18. K1O, A3. Q1OOOJ500 FIOO. ;
In both cas~ GO1 2?50. F1OO. is ezecutcd.
6) When a miscellaneous command is issued in the same block as the deq hole drilling cyc~e2 command,
it is output at the same time as the initial positioning.
7) When a tool length offset command (T function) is issued in the deep hole drilling cycle 2 &odq
execution will follow the tool length offset function.
8) If the basic axis, additional axis or R data are in the block during the deep hole drilling cycle 2 mod%
hole machining is performed; if the data are not present, no holes are machined.
Even if the X-axis data are present, no hoks will be machined if the dwell (G04) time command is
present in the block.
9) Command the hole machining data (~ I, K, Q, J) in the block (iicluding the basic axis, additional axis
or R data) in which the hole machining operation is conducted.
Even if they are cmnrnanded in a block with no hole machining operation, the modal data will not be
updated.
10) A program error redts with the following comfiands.
(a) When both the X hole machining axis (command address X or U) and the Z hole machining axis
(command address Z or W) have been commanded (“P33” FORMAT ERROR)
(b) When any axis mcept X or Z (any command address except X, U, Z and W) has been commanded
(“P33” FORMAT ERROR)
11) When the fed hold button is pressed while the deep hole drilling cycle 2 is being ezecuted, feed hold
results at that point, and when automatic operation is restarted, the remainder is emxutcd.
12) When an interrupt based on manual operation is performed during the feed hold (manual absolute
switch ON), the operation in the deep hole drilling cycle 2 modal is shifted from the automatic
operation restart by an amount equivalent to the movement caused by the interrupt.
13) With single block operation, block stop results upon completion of the deep hole drilling cycle 2
command.
-178-
13.PROGRAM SUPPORT FUNCTIONS
13.5.SUBPROGUM CONTROL (M98, M99)
FKFM513 (Level 1)
+
(Level 2)
Nesting depth
(Level 3) (f-eve] 8)
The table below shows the functions which can be executed by adding and combining the tape storing and editing
functions, subprogram control functions and canned cycle functions.
. .
N07X2 1: “O” denotes a function which can be used and “X” a function which cannot be used.
NOTE 2 Variabl= cannot be transferrwl with the M98 command but variable commands in
subprograms can be used provided that the variable command option is available.
-179-
13.PROGRAM SUPPORT FUNCTIONS
13.5.SUBPROGM CONTROL [M98, M99)
.............................
M99 ; Subprogram return command
% (EOR) Entry completion code (% with ISO code and EOR with EIA code)
The above program is entered by editing operations at the setting and display unit. For further details, refer to the
section on program editing in the Control Instructions.
Only those_&bprograms n~mbers ranging from 1 through 99999999 designated by the optional specifications can
be used. When there are no program numbers on the tapq they are entered as the setting number for “program
input.” Up to 8 nesting levels can be used for calling programs from subprograms, and program error “P230”
results if this number is exceaded.
No distinction between main programs and subprograms is made since they are entered in the sequence in which
they were read. This means that main programs and subprograms should not be given the same numbers. (If they
arq error “EII” appears during entry.)
.................... .
*
. I
Subprogram A
“’99 ;
%
Y J
,’
OAAAA
....................
.
;
;
1 Subprogram B
M“99 ;
%
.
7
J
1
Oclclcn ;
.................... ;
.
Subprogram C
M“99 ;
%
.
9
NOTE 1: Main programs can be entered during memo~, tape or MDI operation but subprograms
must be entered in the memory.
NOTE 2: Besides the M98 command, subprogram nesting is subject to the following commandx
. G&l Macro call
“ G&i Modal call
. G66.1: Modal Cd
- G code call
. Miscelkmeous function call (M, S, T, elc.)
“ MDI interrupt
o Macro interrupt
NOTE 3: Subprogram nesting is not subject to the following commands which can be called even
beyond the 8th nesting leved.
“ Canned cycles
“ Pattern cycles
. .
-181-1
13.PROGRAM SUPPORT FUNCTIONS
13.5.SUBPROGRAM CONTROL {M98, M99)
M98P1 ; M9$P10~
For nesting, the M98 and M99 commands should always be,paired off on a 1:1 basis (1)’ for (l), (2)’ for (2), etc.
Modal information can be rewritten according to the execution sequence without distinction between main
programs and subprograms. This means that after calling a subprogram, attention must be paid to the modal data
status when programming.
-182-
PROGRAM
13. SUPPORT FUNCTIONS
13.5.SUBPROGRAM CONTROL {M98, M99]
E,
NlCO_
M98H 3 :
M98 P 123::
N!330_:
) NWl_ :
N3_: N4W_ ;
~: <‘ ,)
) M99P1(X): -
M99 : ~ Search
N2m ; Subprogram 2
Mb9 ;
1
%
03 ;
N200 ;
. Subprogram 3
. 1
M99 ;
% .J
NOTEk 1: When the 02 N200 block is searched with the memory search function, the modal data from
02 through N200 are updated.
NOTEI 2: The same sequence number can be used with different subprograms.
NOTTl 3: When the subprogram is to be repeatedly used, it wiIl be repeatedly executed for II times
provided that M98 Pp, --- Ll, ---
; is programmed.
(5)
., Other cautions -
1) Program error “P232” results when the designat&l program number (P) is not located.
2) Single block stop does not occur with the M98P_ ; M99 ; block. If any address except 0, N, P, ,L or
His used, single block stop can be executed. (With X1OO.M98 P1OO;, operation branches to O1OOafter
X1OO.is executed.)
3) When M99 is commanded by the main program, operation returns to the head. (This is same for MDI.)
4) Operation can branch from tape or BTR operation to a subprogram by M98P_ but the sequence
number of the return destination cannot be designated with M99P_ ;. (P_ is ignored.)
5) Bear in mind that the search operation will take time when the sequence number is designated by
M99P_ ;.
-183-
13.PROGRAM SUPPORT FUNCTIONS
13.6.VARIABLE COMMANDS
NOTE 2: Functions cannot be used unless the user macro specifications are available.
NOTE 1: All common variables are retained even when the power is switched off.
NOTE 2: The common variabks for the 330HL system are divided into the following two types.
Common variables 1: 500–549, variabkx which can be used in common through all
systems
Common variables 2:100-149, variables which can be used in common in the programs
of the system
-184-
13. PROGRAM SUPPORT FUNCTIONS
13.6.I?ARL4-BLECOMMANDS
c. VanabIe quotations
Variables can be used for all addresses except O, N and / (slash).
1) When the variable value is used directly:
x#l ................................. VaIue of #1 is used as the X vzdue. . ..
2) When the complement of the variable value is used:
X42 ................................ Value with the #’2 sign changed is used as the X value.
3) When defining variabkw
“#3=#5 .......................... Variable #3 uses the equivalent value of variable #5,
#1 = 1000 ....................... Variable #1 uses the equivalent value 1000 (which is treated as 1000.),
4) When defiiing the variable arithmetic formula%
#l = * + #2 -100 ...... The value of the arithmetic result of #3 + #2 -100. is used as the #1
value.
x [#l + #3 -i- 1000] ......... The value of the arithmetic result of #l + #3 + 1000. is used as the X
value.
NOTE 1: A variable cannot be defkmd in the same block as an address. It must be defined in a semrate
.
block.
Irlwrrect CQrrect
x#l=#3+ loo; +#1=#3+ loo ;
Xif$l;
NOTE 3: There are no restrictions on the numb&of characters and number of variables for variable
definition.
NOTE 5: The variable definitions are valid from the moment that the variables are actually defined.
#l= loo” 9 ...................................... #l = 100
#1 = m #2 = #l+200 ; ............ #l = 200, #2=400
#3=#l+3Kl “> ....................... ......... #=500
NOTE 6 Variable quotations are always regarded as having a decimal point at the end.
when #loo = 10,
then X#100; is treated as X1O.
-185-
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
o Macro program
..... . ,
●
M99:
Macro programs use variables, arithmetic instructions and control instructions to create subprograms which
function to provide special-purpose control.
These special-purpose control functions (macro programs) are called by the macro call instructions exactly when
required from the main program.
Detailed description
1) When the G66 or G66.1 command is entered, the specified user macro subprogram will be called’ after
each block has been executed or after the movement command in the block with the movement
commands has been executed until the G67 (cancel) czmunand is entered.
2) The G66 (G66.1) and G67 commands must be paired in the same program.
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
-GE
To main program
f \
Format ; G65 P L— ‘<argument> ;
L No. of repetitions
.L Program no.
\ J
Wheu the <argument> must be transferred as a local variable to a user macro subprogram, the actual value
should be designated after the address.
Regrwdless of the address, a sign and decimal point can be used in the argument. There are 2 ways in which
arguments are designated.
a. Argument dcdgnation I
Format: A_ B. C_ ... X- Y. Z_
Detailed description
1) Arguments can be designated using any address except G, L, N, O and P.
2) IZo%pt for I, J and K, there is no nwd for designation in alphabetical order.
3) I, J &d K must be designated in alphabetical order,
I- J_ K- ... Correct
3- I_ K. ... Incorrect
4) Addresses which do not need to be designated can be omitted.
5) The following table shows the correspondence between the addresses which can be designated by
argument designation I and the variable numbers in the user macro main body.
-187-
13. PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
Address and variable number correspondence Call instructions and usable address
Argument designation I Variable in macro G65, G66 G66.1
address ....
A #l o 0
B #2 o 0
c 4!3 o 0
D #7 o 0
E #8 o 0
F w o 0
G #lo x -X*
H #11 o 0
I * o 0
J * o 0
K % o o“
L #12 x x*
M #13 o 0
N #14 x X*
o #15 ~ x x
P #16 x x*
Q #17 o 0
R #18 o 0
s #19 o 0
T #20 o 0
L1 4!21 o 0
v ,j#22 o 0
w #23 o 0
x #24 o 0
Y #25 o o“
z #26 o 0
0: Can be used.
~. Cannot be US~.
*: Can be used while G66.1 emn.mand is modal.
-188-
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
b. Argument designation II
Format: A_ B_ C_ I_ 3. K_ I_ J_ K. ...
Detailed description
1) In addition to addresses A B and C, up to 10 groups of arguments with 1, J, K serving ~ 1 group can
be designated. K1O (#%3) of the tenth group, however, is ignored.
2) When ~he same address is duplicated, desi~ate the addresses in the speeified order.
3) Addresses which do not need to be designated can be omitted.
4) The following table shows the correspondence between the addresses which ean be designated by
argument designation II and the variable numbers in the user macro main body.
NOTE 1: The numbers 1 through 10 accompanying L J and K denote the sequen= of the ~m.ma’nd~
groups and they are not required for the actual instructions.
c. Using arguments designations I and II together
If addressea eorreaponding to the same variable are commanded when both types
.- 1 and II are used to
desi~ate argumen~~ the iatter address is valid.
(Example 1)
In the above examplq the last 17.7 argument is valid when both arguments D3.3 and 17.7 are commanded
for the #7 variable.
-189-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
Main program
!
G68PP1L!1 ca,r~ment>; To subprogram
-><=C
.
:* To main program
~
G67:
To subprogram
(
When the block with a movement command is commanded between G66 and G67, the movement command is fiist
executed and then the dmignated user macro subprogram is tzwcuted. The number of times the subprogram is
executedis /?1 times with each ml].
The <argument > is the same as for a simple call.
t
Format : G66P_ L_ <argument > ; )
“k :;::? . ~
\ J
Detailed description
1) When the G66 command is entenxl, the specified user macro subprogram will be called aftqr the
movement immmand in the block with the movement commands has been ~ecuted until the the G67
(caned) cammand is entered.
2) The G66 and G67 ccmmmnds must be paired in the same program.
A program error will result when G67 is issued without the G66 command.
. .
-190-
13. PROGRAM SUPPORT FUNCTIONS
13.7. USER MACRO SPECIFICATIONS
Format ; G66. 1 P L
Lr;i:::’y . ‘-
Detailed description
1) In the G66.1 modq everything except the O, N and G codes in the various command blocks which are
read are handled as the argument without being executed. Any G code designated last or any N code
commanded after anything exeept O and N will function as the argument.
2) The same applies as when G65P_ is assigned at the head of a block for all significant blocks in the
G66.1 mode.
(Example 1)
N1OO GO1 G90 X1OO.2200. F400 R1OOO;
in the G66.1 PIOOO; mode is the same ars.
N1OOG65 P1OOOGO1 G90 XIOO. Z2Q0. F400 R1OOO;
NOTE 1: The c-all is performed even in the G66.1 command block in the G66.1 mode and the
correspondence between the argument address and the variable number is the same as for
G65 (simple cdl).
3) The range of the G and N command values which can be used anmv as variables in the G66.1 mode
is subjeet to the restrictions applying to values as normal NC command values.
4) O, sequence numbers N and modaI G codes are updated as modal information.
I Format : GXX
~
cargument> ;
G code for macro call I
Detailed description
1) The above instruction functions in the same way as the instructions below, and parameters are set for
each G code to determine the correspondence with the instructions.
a: M98PAAAA ;
b. G65PAAAAA <argument> ;
c. G66PAAAAA <argument> ;
d. G66SPAAAAA c argument> ;
When the parameters corresponding to c and d above are set, issue the cancel command (G67) either in the user
macro or after the caI1 code has been commanded so as to cancel the modal call.
-191-’
I
13.PI?OGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
2) The correspondence between the “XX” which conducts the macro call and the program number
PAAAA of the macro to be called is set by parameter.
3) Up to 10 G codes from GOOto G255 can be used with this instruction. (Those G codes, such as GOO,
GO1 and G02, which have already been clearly defined for specific applications under EL4 standards
..
cannot be used.)
4) These commands cannot be issued during a user macro subprogram which has been calkd by a G
codri
(5) Miscellaneous command macro cdl (for M, S, T, B code macro call)
The user macro subprogram of the specified program number can be called merely by issuing an M (or S,
T, 33)code. (Only entered codes appIy for M but all S, T and B codes apply.)
I
Format : Mm ; (or Ss;, Tt ;, Bb ;)
. M code for macro call (or S, T, B code)
Detailed description
1) Th{above instruction functions in the same way as the instructions below, and pmamti~s are set for.
each M code to determine the correspondence with the instructions. (Same for S, T and B codes)
a M98P AAAA ;
M98, Mm are not output
b. G65PAAA.A Mm ; }
c. G66PAAAA Mm; -
d. G66.lPAAAA Mm ;
When the parameters corresponding to c and d above are set, issue the cancel command (G67)
either in the user macro or after the call mde has been commanded so as to cancel the modal cd,
2) The correspondence between the “Mm” which conducts the macro call and the program number
P&l&i of the macro to be called is set by parameler. Up to 10 M codes from MOOto M95 can be
entered.
Any code except the codes basically required by the machine and the MO, Ml, M2, M30 and M96–
M99 males can be entered.
3) As with M98, the display appears on the CRT screeu of the setting and display unit but the M codes
and MF are not output.
4) Even if the midlammus command entered above is issued during a user macro subprogram called by
the M cad% macro cdl will not result and it will be handkxl as an ordina~ miscellaneous command,
5) All S, T and B codes call the subprograms in thepreacribed program numbers of the corresponding S,
T and B functions.
(6)
. . Differences betwwm M98 and G65 commands
1) The argument em be designated for G65 but not for M98.
2) The sequence number can be designated for M98 but not for G65, G66 and G66.L
3) M98 executes a subprogram after all the commands excqt M, P, H and L in the M98 block have been
exeeuted, but G65 branches to the subprogram without any further operation.
4) When any address except O, N, P, H or L is included in the M98 block, single block stop results. This
is not the case with G65.
5) The level of the M98 local variables is f~ed but it can be varied in accordance with the nesting depth
for G65. (#1, for instancq has the same significance either before or after M98 but a different
significance in each ease with G65.)
6) The M98 nesting depth extends up to 8 levels in combination with G65, G66 and G66.1. The G65
nesting depth extends up to only 4 levels in combination with G66 and G66.1.
-192-
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
NCYIE 1: When a G65, G66, G66.1 G code macro call or ruiscdlaaeous command macro call is
conducted, this is regarded as nesting level 1 and the level of the local variables is also
incremented by one.
NOTE 2 The designated user macro subprogram is called every time the movement command is
executed with modal call A. However, when the G66 command has been duplicated, the next
user macro subprogram is called every time an axis is moved even with movement commands
in the macro.
User macro subprograms are called in sequence from the subprogram comm&ded last,
(13mrnple 1)
Main ‘program
User macro orxzration
G66Pp,
Zzl
G66Ppg
ZZ2
G67 ;
ZZ3 :
After 23 executio
G67 ; (pI cancel)
ZZ4 :\
ZZ5 ;:
. .
-193-’
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
13.7.3 VARIABLES
Both the variable specifications and user macro specifications are required for the variabks which are used with
the user macros.
The offset amounts of the local, common and system variables among the variables for this MELDAS NC system
are retained awn when the unit’s power is switched off.
(1) Use of multiple variables
When the user macro specifications apply, variable numbers carI be turned into variables (multiple use
of variables) or replaced by <formulae>. Only one of the four basic arithmetic rule (+, -, x, + )
operations can be conducted with <formulae>.
-194-
13. PROGRAM S UPPQRT FUNCTIONS
13.7. USER MACRO SPEC.lFICATl’ONS
3) Conditional expressions
e Vacant> and O are not equivalent for EQ and NE only. (#O is <vacant >.)
. .
-195-’
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
Call
cmmmand
G65
G66
G66.1
Argument
address
Local
variable
number
n G65
I 010
G66
o
o
call
command
I
G66.1
0
0
1
!
Argument
address
Q
R
s
I
I
!
LQcal
variable
number
#17
#18
#19
o 0 D 9$7 010 ! I
I T #-20
0 0 E ?$%
o 0 F #9
x X* G #lo
o 0 H #11
o 0 I #l o 0 Y
o 0 J * o 0 z 44?6
I 010
X*
K #6 I
x L #12 ?4!28
o 0 M #13 #29
. #30
#31
#32
“X” in the above table denotes an argument address which cannot be used. However, provided that the G66.1
mode has been established, an argument address denoted by the asterisk can be added for use.
“-” denotes that a corresponding address is not available.
-196-’
13.PROGRAM S UPPOR.? FUNCTIONS
13.7.USER MACRO SPECIFICATIO_iVS
1) Local variables in subprograms ean be defined by means of the <argument> designation during
macro call. (bed variables ean be used freely in those subprograms.)
To subprogram *S=*401O;
G91colx [*19* cosf*lll
C6SP9900A60. SIOO. F800; 1 Y[*19*S 1?J[*1]]F*9:
M02: M99;
2) Lmal variables am be used independently on each of the macro calls levels (4 levels).
Local variables are also provided independently for the main program (macro lsvel O).
&guments cannot be used for the level O local variables.
Main (hwel 0) 01 (macro kxel 1) 010 (macro lewel 2) 0100 (macro level 3)
#l=o,l #2=o.2 #3=o.3;
\ \ (
G&i P1ALB2. C3.; G&iP1OA1O,
B20.C&J.; G65PI03A1LX).
Bm. ;
! { < \
\
Mm, M99 ; M99; M93:
L I
.
Local variables (o) J.meal variables (1) Local variables (2) Lacal variables (3)
*1 0.100 A(#l) 1. 000 A(*l) 10. 000 A(*1)1OO.OOO
*2 0.200
3(*2) 2. 000 B<*2) 20. 000 3“’(* 2)200.000
*3 0.300
C (*3)3.000 C(*3) 306 000 c (#3)
.
D (*7) D (#7)
/ / )
Z(a 26) Z (#26) Z (*26)
) ) ) )
*32 *32 *32 *32
The statuses of the local variables appear on the setting and display unit.
For details, refer to the Operating Instructions as well as to the sections covering the operation of the setting and
display unit and the local variables.
-197-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
r
system No. of
Interfaee input signal
variable points
#1032 32 Register R72, R73
#1033 32 Register R74, R75
#lo34 32 Register R76, R77
#lo35 32 Reg&ter R78, R79
-198-
,1 ‘jl’~
. .
NOTE 1: l%e last values of the system variables. #1100 through #1135 sent are retained as 1 or O.
(I’hey are not cleared even with resetting.)
NOTE 2 The following applies when any number except 1 or Ois substituted into #1100 through #1131.
< Vacant> is treated as O.
Any number except O and <vacant> is trmted as 1.
Any value less than O.00000001 is indefinite.
-199-
13. PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
--il--
--11---
-it--
!-Eel
] i
t‘“d””
--+-
*.
I I* 1
Macro
instruc-
tions
-1”1-
--lt-
ECt -H-
l=
L----- .
-H-
. .
-200-:
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATION’S
Tool data can be read and values substituted using the variable numbers.
Either the numbers in the #10000 order or #20C41order can be used.
The last 3 digits of the variable numbers cmrespond to the tool offset number:
The tool offset data are configured as data with a decimal point in the same way as for other variables.
Consequently, this decimal point must be commanded when data below the decimaI point is to be entered.
NOTE In this exampl~ no consideration is given to the delay k the skip sensor signal.
4$5001 is th; X~axis start point pos~tion and #50G1- is the X-&is skip tiordinates, and
indicated is the position at which the skip signal is input while G31 is being executed.
-201-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
IWITIZ The number of axes which e-an be controlled differs according to the NC specifications.
The last digit in the variable number corresponds to the control axis number.
.@xample 1)
F41 GZ8 XO 20: +x).
i42 ?z5’221-- 20. S5223--2O .:
N3 COO G54 XO 20:
_.--@a-“
Nloo *si=.$221+.52
*5222 =*5222 +* S202;
+
i—_—-______-—---J---
W2 {GS5)
____J
&
r ———A ---- —-—- ---- -—-—
*5241=*5241+*5201:
-202-
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
( J
NKIO stops
with NC <Operator message>
! akrm \ CALLWWMMWiR #TEL#330 70 J
NOTE 1: Warm number O is not displayed and any number exceeding 9999 cannot be indicated.
NOTE 2 The charaetms following the fiit alphabet letter in the right member is treated as the alarm
message. Therefor~ a number earmot be designated as the first character of an alarm
message. It is recommended that the alarm messages be enclosed in round parentheses.
. .
-203-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
The integrating run time returns to zero in about 2.44x 1011 seconds (approximately 7.7 years).
:30111
=0 :
To subprogram
\ (allowable time) MILE[#3001LI$201Ml :
G65P9010T msec:
k a !
\ E/m :
hf% :
LQcd variable
Local variable Allowable time portiom DO1-END1 is
‘ T#20 — repeated and when allowable time is
Entered in local variable #20 reached, operations jumps to M99.
(9) Suppression of siugle block stop and miscellaneous function fiiish signal waiting
By substituting the valu~ below in variable number 3003, it is possible to suppress single block stop in the
subsequent blocks or to advanco to the next block without waiting for the miscellaneous function (M, S, T,
El) finish (FIN) signal.
..
-204-
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
NOTE k The functions are valid when the above bits are O and invalid when they are 1.
(11) Message display & stop
By using variable number 3006, the message display is stopped after the previous block has been
executed and, if the message display data have been commanded, then the ecmmponding message will
be indicated.
Command format
I
%3006=1 (TAKl? FIVE) ;
L Message
NOTFL 1. The message should not be longer than 31 characters and it should be enclosed within round
( ) parentheses.
NOTE. 2. The 1 in #3006 = 1 is freed.
(12) Mirror image
By reading variable number 3007, it is possl%le to ascertain the status of mirror image at a particular
point in time for each axis.
The axes correspond to the bits of #3007. When the bits are O,it means that the mirror image function
is not valid; when they are 1, it means that it is yalid.
#3007
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Q
nth axis 3 2 1
-205-;
13.PI?OGRAM SUPPORT FUNCTIONS
13.7 USER MACRO SPECIFICATIONS
Variable number
1 Function
Preread block Execution block
#4001 ?$4201 Interpolation mode GOO: O, GO1 :1,
G02 :2, G03 :3, G33 :33
I #4002
#4003
#wo4
I #4202
#4203
#4204
Plane selection: G17: 17, G18: 18, G19: 19
Absolute/incremental: G90: 90, G91: 91
Barrier check G22: 22, G23: 23
#4005 #4205 Fed designation: G94: 94, G95: 95
#4006 #4206 Inch/metric G20: 20, G21 :21
#oo7 #4207 Tool nose R compensation: G40: 40, G41 :41,
G42 :42
#4008 #4208 2nd spindle control G43 :43, G44 :44
#4009 #4209 Canned cycle: G80: 80, G73–79: 73–79,
G81–G89 : 81–89
I +%4010 I #4210 Return level: G98: 98, G99: 99
@xampIe)
G28 XO 20 ;
GOOX150. 2200 ;
G65 P300 G02 W-30. K-15. F1OOO;
M02 ;
0300
#1 =#4001; ~ Group (I1 G modal @e-read) #1=2.0
#2= #4201; -+ Group 01 G modal (now being executed) #2=0.0
G#l W#24 ;
M99 ;
%
-206-
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIF1CATIONS
Feed rate F
(Asynchronous)
#4110 I #4310
I 10
#4120 #4320 I Tool function T
End point
coordinate ski.
coordinate servo
of block Machine Work
;;m&iately (Work deviation
coordinate coordinate
coordinate) amount
Axis no. (Program)
NOTFx : The number of axes which can be controlled differs according to the NC specifications.
The last digit of the variable number corresponds to the control axis number.
-207-
13.PROGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
b-’
J
coordinates]
I
1 8
\
1
Ql w work
_ coordinate”
Work coordinates]
~achine
cr~ I
M
\
system
Machine
coordinate
system
Read
command
b
Skip coordinates &
Gaug~ etc.
coordinates] d’
J
4) The tool nose position where the tool offset and other such factors are not considered is indicated as the
end point position. The tool referenee point position with consideration given to tool offset is indicated
for ~he m;chine coordinates, work co&dinat& and skip coordinates. -
Skip sigmd
i
~ \
The position of the skip signal input eoordinatea is the positi- * For “ 0 ,“ check sto~
on in the work coordinate system. The coordinates in variable and then proated
numbers #5061 through #S063 memorize the moments when to read.
the skip input signal during movement wasinput and so they O For “o,” Teading is
can be read at any subsequent time. Forfurther details, refer- possible during
ence should be made to the seet ion on the skip function. movement.
-208-
13. PI?OGRAM SUPPORT FUNCTIONS
13.7.USER MACRO SPECIFICATIONS
~!!’!!z:!z;:ch
[Common variablm]
#500 –12345. 678 A234567
#501 5670.000 KYOR 1
#502 -156,500 TO OL2’5
. .
‘,
13.PROGRAM SUPPORT FUNCTIONS
13.7 USER MACRO SPECIFICATIONS
NOTE 1: A value without a decimal point is basically treated as a value with a decimal point at the end
(1 = 1.000).
ISIO~ 2: Offset amounts from #10001 and work coordinate system offset values from 4!5201 are
handkd as data with a decimal point. Consequently, data with a decimal point will be
produced even when data without a decimal point have bem defined in the variable numbers.
(Example)
Common variables
after execution
*1OI =1000 : #Iol I000.000
*1 OOO1 =$ $101 : *102 1000.000
#lo2 =$ $10001:
NOTE 3: The c formula> after a function must be enclosed in the square parentheses.
-210-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
!,
l“
.,
-212-’
13.PROGRAM SUPpOR T FUNCTIONS
13.7USER MACRO SPECIFICATIONS
-213-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
-214-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
-215-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
“n” of GOTQ n must alw~ys be in the same program. Alarm “P231” wilI result if it is not. A formula or variable
can be used instead of #i, #j and “n.”
h the block with sequence number “n” which will be executed after a GOTO n cummand, the sequence number
must always be at the head of the block. Otherwisq alarm %231” will result.
If “/” is at the head of the block and Nn follows, control can be branched to the sequence number.
Il::%:t’’’’!i
Iii
#22=$t 20-*3:
“23”;1”’4’
NIOO
*1=*1+1:
X*22 2*23:
I I
I I To
head
.,
NOTE When the sequence number of the branch d&tination is iearched, the search is conducted up to
the end of the program (% code) from the block following IF ... ; and if it is not found, it is
conducted up to the block before IT .... ;. Thereforq branch searches in the opposite direction
to the program flow will take longer to execute compared with branch searches in the forward
direction.
-216-
“ ‘,,!,,
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
(2) Iteration
Format: WHILE [conditional expression] DOm ; (m= 1, 2, 3 ..., 127)
!
ENDm;
While the conditional expression is established, the bIocks from the fol~owing block to ENDm are repeatedly
tmxmted: when it is not established. execution moves to the block after ENDm. DOm mav mme before WHILE.
WHILE [conditional expression] D’Om and ENDm must be ustxl as a pair. If WHILE [c&ditional expression] is
omitted, these blocks will be repeatedy ad infinitum. The repeating identification numbers range from 1 through
127 (DOl, D02, D03, .... D0127). Up to 27 nesting levels can be used.
~ Same identifier number can be used any @ Any number may be used for the WHILE-DOm
number of times. identifier number.
WHILE-DO I ; m’-
4
Possible ~ WHILE~DO 3 ; ~
t 1 I
u END 1 ; LEND 1
---L. 3 “ .--J
Possible I
r WHILE-D02 : q
if I
WHILE-DO 1 : I
~END2
----- : -.. J
Possible f
r WHILE-D(3I : q
t 1 I
‘u END1 : ~ENDI
---A- “ . --- i
~ Up to 27 nesting lwels for WHILE-DOm. @ The number of WHILE-DOm nesting levels can-
“m” is any number horn 1 to 127 for the not exceed 27.
rdng depth.
— WHILE-DO 1 : —-”-- DO1 — WHILE-DO 1 : +—-
1
WHILE-DC)2 ; -- J
WHILE-DO !2 - ---- DO2 I
, t
. . 1
●
WHILE-DO 3 ;
I ++1I--Not
: . -- f-i -
------ 1 11
DO’2 7
I
~WHILE--DO 28 :~-
1 ~ ,!
111 11;
pos-
s~%le
‘pi” m ---.- II
. LE!!22L.J. -+.+- +.
. !1,
.
END 3 : +’p-k
u“ EN”D2 “: ::’--- . ‘ : - ; ; ~‘
END2 ; II
-- &.l-
t I
END 1 ; -- -4 I
END1 ; - -. L
Not@ With nesting, “m” which has b-n used
once cannot be used.
-217-
13.PROGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
~ Two WHILE-DOm’s must not overlap. @ Branching externally is possible from the WHILE–
DOm range.
Not possible
~:~ .Posle[ti”
L*Nn
@ ~o~anehing is possible inside =E– ~ S~bprograms ean be called by M98, G65 or G66
. between ~E—DOm’s.
[WHILE-DO 1 :[ Main program Subprogram
lF+GOTOn Not I
possible , IF-GOTOn ; ! .WHZLE-DO
I.
I WlilLE-DOO
2:
r WFIILE-DO 1 ; ‘-1 LEND1 ; Possible
Tot I ~ -------J C65
~1 ~o~dp
nssibl 1 *L? 35
~WHIL3?-1)01 q
I END2:
[[ Nn
I ENDI :
! I ‘Fin: I \
1 i M02: M99:
lEf.4Dl: II ~E-Nf: : {
b- .-------d
@ Calls ean be initiated by G65 or G66 @ A program error results with M99 unless WHILE
between WHILE-DOm’s and commands and END are paired within the subprograms
can be issutxl again from 1. Up to 27 nest- @cluding macro subprograms),
ing levels are possible for the main program
and subprograms.
., Main program Subprogram
Main program Subprogram (100)
‘1
WHILE-DO 1: I :1
WHILE-DO \ I WHILE
: ~jTo-_ M99 -DO i :
Possible Ploo;
Ploo:l \ \ \
\ \ P - M99:
END1 : I E!iD1 : I1
M02:
5 5 i.
M02 M99:
DOn ENDn constitutes
illegal usage.
-218-
13. Pl?OGRAM S’UPPOR T FUNCTIONS ‘“
13.7USER MACRO SPECIFICATIONS
1 1
BPRNT DPRNT . ........ Data output command
I I
[
PC LOS “....,..-.. Close cmnmand
-219-
13.PI?OGRAM SUPPORT FUNCTIONS
13.7USER MACRO SPECIFICATIONS
. .
-220-’1
,!
13.7.8 CHECKPOINTS
(1] When the user macro commands are employed, it is possible to use the M, S, T and other NC control
commands together with the arithmetic, decision, branching and other macro commands for preparing the
machining programs. When the former commands are made into NC executable statements and the latter
commands into macro statements, the macro statement processing should be accomplished “as quickly as
possible in order to minimize the machining timq because such processing is not directly related to machine
control.
As a result, the parameter (“macro single” on the parameter page) can be decided upon and the macro
statements can be procesxxl in parallel with the execution of the NC executable statement.
(I’he parameter can be set OFF during normal machining to process a~lthe macro statements together or set
ON during a prom-am check to execute the macro statements block by block. This enables the setting to be
made in a-m~da&e with the inteuded objective in mind.)
-1
Example of program
[
N1 G91~28X0 20:
N2 G92x0 20:
N3 Coox- loo. z- loo,:
low of processing
. ..
Program analysis N1. N2 +&*&
1 %
1; 1 N4 N.5 ;
a
Macro statement 1 , I
processing I t 1
I ; ~~ ;N 1 N6 I T47
8 I
NC statement ~=t mmnand ~ 1; t
processing I N1 !N2j N3 : N6
Executing
{
Macro single ON
Program analysis
,NI, N2 ,N3 N4 N5 N6 N7
t I I I ,
!1 I I
Macro statement l! 1 1N4 1 &N5 ~ t
processing , , , I
I I t “:1
I N2 a ~N3 ~ . N4 h 1 I NT
NC statement Nextcommand ! 4
1 1“1 I
processing I N1 lN2t N3 I N6
Executing 1
, I
. .
-222-
PROGRAM SUPPORT FUNCTIONS
13.
13.8.FACING TOOL REST MIRROR IMAGE {G68.G69J
When the G68 command is issued, the subsequent programmed coordinate systems are shifted to the facing tool
rest side and the movement direction of the X axis is made the opposite of that commanded by the program. When
the G69 command is issued, the,subsequent programmed coordinate systems are returned to the reference tool rest
side.
x I
.A,
1 I Reference tool rest
Programmed path
Parameter
for distance
)-——— between too~
rests (radial
valuq X axis
only)
l--w
. .
PROGR.M4 SUPPORT FUNCTIONS
13.
13.8.
FACING TOOL REST MRROR .IM4Gl?
{G6&G69j
rest
— z
! 1 ~
II Facing tool rest
The value obtained from the tool rest interval parameter is added to the fiist X axis command movement after the
facing tool rest mirror image turns on. In the above operation emmple, the movement WM changefrom @ tO @’
in the program [1] block.
The value obtained from the tool rest interval parameter will be deleted from the fwst X axis command movement
after the facing tool rest mirror image cancel. In the abotie’operation example, the movement will change from@)
to @’ in the program [2] block.
-224-
13, PROGRAM SUPPORT’FUNCTIONS
13.8.
FACING TOOL REST JfIRllOR
liW4GE{G@,G69]
J
T020~ Selection of facing tool rest Machining by facing tool rest
GOOU–10. WO. ; ..... [1]’ . ..... (B)
GO1 X20. Z-80. F200 ;
X30. ;
–-i@
c1 \
1- —1
x Reference tool rest
I @
—
-R-------+E== —- *Z
II
LP
u Facing tool rest
The incremental value command, after the facing tool rest mirror image is turned ON, will move the X axis
movement direction the amount of the program command in reverse, regardless of the tool rest interval parameter.
In the [1]’ block where the 3-1 program [1] block has been changed to an incremental value cmmnand, the tool
will move + 10, the reverse of -10. In the operation exmpple, this will be the movement ~ - ~.
This is the same for the incremental command after the facing tool reset mirror image cancel. If the [2]’ block
where the 3-1 program [2] block has been changed to an incremental value command, the tool will move —10. In
the operation example, this will be the movement 0- a.
-225-
13.PROGR4M SUPPORT FUNCTIONS
13.8.
FACING TOOL REST MIRROR WGE (G68,G69j
:>q i
-—-—
.—
Workpiece u-- ---<. -
I Z tool length
:,k
# Parameter for
?,;
~
or
I distance between tool
.—. z ;2 rests (radial valuq X
<,
,:
$ $!
... axis only)
Work zero point
z tool length [j
X tool Iengt
Tool length
reference point9 Facing tool rest
E
Work zero point Workfheecenter Work rlim cent= tvorktire c@er
TOC4kn@h refemnee rOOlrestrefereru. points Referencetool mt referencepoiof work fsce cater
point
Distancebetwwn 1001 Disfencebetweenrefsrem points of
rests both tool rests (mdisfvalue)
WO* offset work rm’opoint workSero point
- tool Ieagttlreftmmc4poinl of refer- - tool
lengthrefererm point of refer-
mJe tool msl mm twl rest
I Tool Ieugth rod lengthreferencepint - tool nose rOOltenglhreferencepoinl - tool nose Foollength referemxpoint -t@ nose
position positkm )osition
Outfinediagrams
Tool length _ ]
m- Tool length
M
-226-
,’
The previous page outline drawings apply when the machine parameter (basic spmifications parameter) “mirrA”
is O. lf it is 1, the value is set with the tool of the facing tooI rest in the same direction as the tool of the reference
tool rest. At this tire% the tool Iength reference point is the tool length reference point of the reference tool rest.
When “mirrA” is 1, the sign for the X-axis tool length wear amount for the facing tool is rmersed and the tool
nose point is set to the opposite side (for instanc~ 2 + 3). When tooi length measurement is-executed with
“mirrA” at O, the data will be accepted with “mirrA” as O.
(Setting examples)
mirrA = O mirrA = 1
x z x z
Work offset -120. -110. -120. -110.
TOO1length of reference tool rest 80. 35. $0. 35.
Tool wear amount of referenm tool rest -20. -5. -20. -5.
Tool nose POint of reference tool rest 3 3
Tool length of facing tool rest 150. 40. 120. 40.
TOO1wear amount of facing tool rest 20. -5. -20. -5.
Tool nose POint of facing tool rest 2 3
Distance between tool rests o 0
2) Tool length wear offset amount
The tool length wear offset amount is the distanm from the current tool nose to the original tool nose.
The original tool nose is that value applying when the tool length offsel amount was set.
3) Tool nose point with tool nose R compensation
The tool nose point with tool nose R compensation is as follows. It is the same for both the referenrx
and facing too-l rests.
Tool wear offset amount and tool nose R tool nose point
!I 26 I
x I 7.05
I
Wear ‘ 1
amount i 3 8 /!J
~p —----
Reference tool
z
T —--.
.= Reference tool
I Wear
amount’
~
I
Wear tool
Facing tooI rest side
-227-
13. PROGRAMSUPPORT FUNCTIONS
13.9.
CORNER CH4ik@E~NG, CORNER ROUNDING FUNC170N I
N1OOG(M X – 2-, C– ; Chamfering is performed at the point where NUN and N2C4)
N200 GO1 X – 2- ;~ intersect .
}
~gt hn h up to chamfering starting point or end point from
imaginary comer
(3) 13mmp1e of program
1) GO1W1OO.,C1O. F1OO ;
2) U280. Wloo. ;
X axis —
(a
Imaginary comer
intersection point / 140
Chamfering
Chamfering start point end point
I ‘7@e
1- *
m. o 100.0
1) The start point of the block following the comer chamfering serves as the imaginary comer intersection
point.
2) When the comma in “,C>’ is not present, it is handkd as a C command.
3) When both C— and R— are commanded in the same block, the latter command is valid.
4) Tool offset is calculated for the shape which has already been subjected to comer chamfering.
5) Program error “P382” results when the block following the command with comer chamfering does n’ot
contain a linear command.
6) Program error “P383” results when the movement amount in the block commanding comer
chamfering is less than the chamfering amount.
7) Program error “P384” results when the movement amount m the block following the block
commanding corner chamfering is kss than the chamfering amount.
8) Two blocks must be pre-read for intersection calculation when the corner rounding function I is assigned.
-22a-
23.PROGW SUPPORT FUNCTIONS
13.9.
CORNER C~lUUNG, CORNER ROUNDING FUNCTKW I
N1OOGOl X– Z-, R– ; Rounding is performed at the point where N1OO and N200
N200 GO1 X– Z- ;~ intersect.
}
I . Arc radius of comer rounding
(3) Example of program
X axis 4
Comer rounding
end point
I
Comer rounding start point 140
0 J’
* Z axis
< >
100.0 103.0
1) The start point of the block folIowing the corner rounding serves as the imaginary comer intersection
point.
2) When the comma in “,R’> is not present, it is handled as an R command.
3) When both C— and R— are commanded in thcl same block the latter command is valid.
4) Tool offset is calculated for the shape which has alr=dy been subjected to comer rounding.
5) Program error “P382” results when the block following the command with corner rounding does not
contain a linear command.
6) Program error “P383” results when the movement amount in the block commanding comer rounding
is less than the R value.
7) Program error “P384” results when the movement amount in the block following the block
commanding comer rounding is less than the R value.
8) Two bIocks must be pre-read for contact point calculation when corner RI is assigned.
-229-
PROGRAM SUPPORT FUNCTIONS
13.
13.10.
CORNER CMFERING, ROUNDING FUNCTTON L?
x
Irriagina~ comer intersection
point
.. 50
(3) Program examples
1) Line — arc
N1 G28 XZ ;
N2 GOOU25. W1OO. ;
N3 GO1 U50. W-50. , C20. F1OO ;
N4 G02 U-50. W-50. IO K-50. ;
.
.
,,!’
-230-
13. PROGW SUPPORT FUNCTIONS
13.10.
CORNER CHAikfl?ER?NG,
ROUNDING FUNCT?ON 11
2) Arc – arc
x
Absolute value commands
. ..
IW G28 XZ ; 2~Q.- ●
N2 GOOX20. Z140. ;
N3 G02 X1OO.260.1100. KO , C20. F1OO ;
N4 X60. ZO 180. K-60. ;
1) Both the corner chamfering and corner rounding I and II options are required in order to use this
function.
Program error P381 results when the function is assigned without an option.
2) The start point of the block following the comer chamfering serves as the imaginary comer intersection
point.
3) When the cumma in “,C” is not present, it is handled as a C command.
4) When both “,C-” and “,R-” are commanded in the same block, the latter command is valid.
5) Tool offset is calculated for the shape which has already been subjected to comer chamfering.
6) Program error “P385” results when the command in comer chamfering or the following block contains
a positioning command or thread cutting command.
7) Program error “P382” results when the block following the command with comer chamfering contains
any command except a group 01 command or any other command.
8) Program error “P383” results when the movement amount in the block commanding comer
chamfering is less than the chamfering amount.
9) Program error “P384” results when the movement amount in the block following the block
commanding comer chamfering is less than the chamfering amount.
10) Radial command values apply for comer chamfering even with diametrical commands.
11) Two blocks must be pre-read for intersection calculation when corner rounding 11 is assigned.
-231-
, “;“
Comer rounding is accomplished by commanding “,R-” in the first block for 2 blocks including a
continuous arc.
(2) Command format
1) Line — arc
N1G28XZ; A -z
N2 GOOX60. Z1OO. ;
N3 GO1 X160. Z50. , RIO. F1OO ; I 50. 10U.
N1G23XZ;
N2 G(MIU30. W1OO.;
N3 GO1 U50. W-50. , R1O. F1OO ;
N4 G02 U–SO. W-50., IO K-50. ;
.
.
. .
-232-
13. PROGRAM SUPPORT FUNCTIONS
13.10.
CORNER CIZ4MFERLNG,ROUNDING FUNCTION I.’.
2) Arc – arc
160.~
NI G28 X% ;
N2 GOOX60. ZIOO. ;
N3 G02 X160. 230. R50. , R1O. F1OO ;
N4 X60. Hl R50. ;
. N4
.
60.”
I.ncrementtd value commands
A-1 z
N1 G28 X2 ; 50 4 104.
“N2 GOOU30. W1OO. ;
N3 G02 U50. W-50. 150. KO , R1O. F1OO ;
N4 U-50. W-SO. 10 K-50. ;
.
@
1) Both the comer chamfering and comer roundigg I and II options are required in order to use this
function.
Program error P381 results when the function is assigned without an option.
2) The start point of the block following the comer rounding serves as the imaginary corner intersection
point.
3) When the comma in “,R’ is not present, it is handled as an R command.
4) When both “,C-” aad “,R-” are commanded in the same block, the latter command is valid.
5) Tool offset is calculated for the shape which has already been subjected to corner rounding.
6) Program error “P385” results when the command in comer rounding or the following block contains
a positioning command or thrmd cutting command.
7) Program error “P382” results when the block following the command with comer rounding contains
any command except a group 01 command or any other command.
8) Program error “P383” results when the movement amount in the block commanding comer rouqding
is leas than the R value.
9) Program error “P384” results when the movement amount in the block following the block
commanding comer rounding is less than the R vaIue.
10) Radial command values apply for comer rounding even with diametrical commands.
11) Two blocks must be pre-read for contact point calculation when the corner rounding function II is
assigned.
l’, ‘1
N1 G28 X2:
N2 GOO X40. 2120. ;
n ‘“-”
N3 G03 X140. Z70. K-50. ,R20. F1OO ; ‘_TA
/
/ I
140,
40.
t I I ‘z
20. 70. 120.
With an incremental value cammand and manual absolute switch OFF
N1 G28 XZ:
N 2 GOO U20. W120. ;
N 3 G03 U50. W-50. K-50. , R20. F 100 ;
N4 GO1 U-50. W-50. ; ~, ~ 2&ixis interrupt
I
[
I ~ X-axis interrupt
I
., 1
I
140.- I
N4
40.” I
is not applied
* -z
20. 70. 120.
/
(2) With a single block during corner chamfering or rounding, the tool stops after corner chamfering or
rounding is executtxl.
-234-
13. PROGRAM SUPPORT FUNCTIONS
13.11.
LINEAR ANGLE COM~
The end point coordinates are calculated automaticdy by commanding the linear angle and. one of the end
point coordinate axes.
N1 GO1 Aal Zzl (XxI) ; This designates the angle and the X or Z axis coordinates.
N2 GO1 A–az Zzl (XxI) ;
1) The angle is from the + direction of the horizontal axis on the selected plane. The counter-clockwise
(CCW) direction is considered to be + and the clockwise direction (CW) -.
2) Either of the axes on the selected plane is curmuanded for the end point.
3) The angle is ignored when the angle and the coordinates of both nxes are commanded.
4) When only the angle has been commanded, this is treated as a geometric command.
5) The angle of either the start point (al) or end point (az) may be used.
6) The function cannot be used when address A is used for the axis name or as the sexmd miscellantxms
function.
7) This function is valid only for the GO1 command; it is not valid for other interpolation or positioning
commands.
-.
,,
-235-
.23. PROGRAkf SUPPilRT
IW?CTIONS
13.12.
GEOhZE17UCCOMM4ND
When it is difficult to determine the point at which the two straight lines intersect with a continuous linear
interpolation command, the end point of the first straight line will be automatically calculated and the
movement command will be controlkxl provided that the slope of the first straight line as well as the end
point coordinates and slope of the second straight line are commanded.
N1 GO1 Aal (A-a2] Ffl ; This designates the angle and feed rate,
N2 XX2~ A-a2 (Aa3) Ff2 ; This designates the next block end point coordinates, angle and fed rate.
L-
?
z
N1
1) Program error “P396” results when the geometric command is not on the selected plane.
2) The slope is expressed as the angle that is formed with the horizontal axis -I- direction on the selected
plane. The counterclockwise (CCW) direction is considered to be + and the clockwise direction (CW)
-.
3) Slope “a” ranges from - 360.000 = a S +360.000.
4) The slope of the line can be commanded on the start or end point side. The start or end point side of
the commanded slope is identified automatically inside the NC system.
5) The end point coordinates of the second block should be commanded with absolute valuea. When
incremental values are used, program error “P393” will result.
6) The feed rate ean be commanded for each block.
7) When the angle where the two straight lines intersect is kss than 1 program error “P392” will result.
8) Program error “P3%’ results when the pIane is selected in the first block and second block.
9) This function is ignored when address A is used for the axis name or as the second miscekmeows
function.
10) Single b~ock stop is possible at the end point of the first block.
11) Program error “PMM” r~u]~s when the first and second blocks do not contain the GO1 or G33
command.
12) Two blocks must be pre-lead for intersection calculation when the geometric IA is assigned.
-236-
,,
‘: !,’
‘!,
(4]
. . Relationshi~ with other functions
1) Com~r chamfering or comer rounding can be commanded after the angle
cmnrnand in the first block.
(13amp1e 1) ....
N1 Aal, Ccl ;
N2Xxz~Aa, ; N2
c1
C$
(X,.21)
(X*,2,)
\
N2
(Ikample 2)
N1 Aal, Rrl ;
N2Xxz~Aaz; ?
(X, $2,)
N1 Xxz ~, Ccl ;
N2
N2 Aal ;
N3Xx3~Aaz;
c,
(x*# z:)
cl
(X*,2, )
3) The geome$ric command LA can be issued after the linear angle command.
f
(.Example 4)
(x,, z,) N1
at
,<
(x,, Z,)
-237-
‘,
The parameters set from the setting and display unit can be changed in the machining pro.~ams.
The data format used for the data setting is the same as for the parameter tape.
(2) Format
/ #
Fd = Head data Head data F&d F&d
-238-
13. PROGRAM SUPPORT FUNCTIONS
13.13.
DATA SE17ZNG (G1O,Gil)
1) The data setting function operation is required in order to use this function. Program error “P420”
results when it is commanded without this function present.
2) Program error “P421” results with an illegal parameter number (major classification number, axis
number or data number).
The same error occurs when the setting data (bit-typq byte-typ% word-type or 2 word-type data) have
exceeded the data range.
3) When a program error has occurred in the data setting mod% first remedy the error and then proowd
again with the data setting.
4) H is not possible to use the B binary-type data command address with the data setting. Use the D
byte-type data command address instead.
5) Program error “P421” results if in the data setting format the major classification number, data
number and setting data for axis-common parameters or the major classification number, -axis number,
data number and setting data for axis-independent parameters are not commanded.
6) Program error “P421” results when any G command except Gll and any address except P, ~ N, H,
D, S and L are commanded in the data setting mode.
7) Program error “P421” results when a data setting command is issued during a canned cycle modal or
tool nose R compensation modal.
8) When there are two or more identical addresses in the same block, the last address is valid.
9) Program error “P421” occurs when there are two or more different types of setting data in the same
block.
G1O L50 ;
P1 N1128 L2000 ; G71 minimum cut (inte~olation unit) (1 mm/O.5p = 2000)
Gll ;
G50 L50 ;
P1 N1084 H51 ; Setting to decimal point type 2
G;l ;
(5) Checkpoints
1) The data format for the data setting is the same as for the parameter tape.
Far details, refer to the data setting N number correspondence table in Appendix 6.
2) ‘l%eparameters which can be set by data setting are restricted to user parameters, machine parameters,
machine error compensation and PLC parameters.
3) The Gll ; (data setting mode cancel) command must be issued after the data setting.
The data are stored in the EEROM by the Gll co”mmand, and so if the Gll command is not assigned,
some data will not be valid after the power is mvitched off.
4) Assign the data setting commands for backlash compensation and machine error compensation on the
zero point.
1) The table below lists the addreases used in the data formats and their significance.
-240 -
13. PROGR.4J4SUPPORT FUNCTIONS
13.13.
DATA SETE?NG {GIQ,Gllj
2) The corresmndence between the P numbers and parameter data major classiciations are listed in the
table below.
Major
classiilcation Type of parameter Axis data Remarks
(P number)
1 Axis-common parameters ~
2 Axis-independent parameters o
Machine error compensation
3 o
E information
14 Machine error compensation amount
PLC constant
t+- PLC timer
17 PLC counter I
Bit selection parameter
1 A batch output is executed
PLC axis control parameter o only when the PLC axis
control oDtion is used.
Not used
Axis-common parameters (additional
I 13
area)
Axis-independent parameters
L (additional area)
o
-241-i
PROGRAM SUPPORT FUNCTIONS
13.
13.13.
DATA SJYi71iVG
{GlO,
Gil)
3) The general data ranges determined by the data type are shown in the table below.
H Bit {fifi{:E{:&J:~&R
Bit
D Byte -128 – +255
s Word -32768 – + 65535
L 2 words —199999998 - -f-199999998
1
NOTE The data ranges enabling the parameter settings differs accxmding to each individual
parameter.
Thereforq when preparing the input tape, check the data ranges under the “setting ranges
(units)” in the correspondence table for the data setting N numbers in Appendix 6 and enter
the proper value.
4) Units
The units displayed in the correspondence table for the N numbers are the least input increments of the
parameter data.
For the interpolation unit% output units and speed units, refer to the following tables and set the
proper data vake.
1) Interpolation units
Interpolation unit = input unit x 1/2
The input unit can be selected by parameter for each axis from among the following types.
. .
-242-
13.PROGRAM SUPPORT FUNCTIONS
13.13.
DATA SEll_lNG(G1O,Gil)
2) Output units
The output unit can be selected by parameter for each axis from among the following types. ‘
..
3) Speed units
The speed unit em be selected by parameter for each axis from among the following typet+.
The parameter data in tables 1 through 3 are set with the follo ~ingparameters.
a. Axis-common parameters
Data format
. .
13. PROGRAMSUPPORT FUNCTIONS
13.13.
DATA SETTING (GIO,
Gil)
Programs
@3xample] Setting to the incremental value radial designation
PI N384 HOI ; or PI N384 H1 ;
~a.mple] Setting the 2nd miscellaneous function code (M2name) to B . ..
P 1 N386 D66 ; c~ASE SPEC PARAM] M. PARAM 1.2/5
ASCI I ‘B”=42H #
[ =66 1 1 Mfig 3 13
2 Mbin o 14
3 Sfin 1 15
4 Shin -1 16
.5 Tfig 1 17
6 Thin O 18
7 M2fig 1 19
8 MM 020
~9 M2name B 21
10 skip 150 22 mires 12345.678
11 extdcc 30023
12 tapovr 10024
1#( ■)DATA( )
BASE ~ AXIS ~ZP-RTNI SERVO~ MENU
-244-
,;,
!,
-245-
13.PROGRAM SUPPORT FUNCTIONS
13.13.
DATA SETTING (GIO,Gil)
e. PLC constant
Data format
13
P5 N8 LIOO; 14
15 .
H
18
I
21
1: 22
1; 23
12 24
# ( WATA ( )
MC-ERR I MACRO [ SPINDLE
f. PLC timer
Data format
. . # O -# 15: 10ms
H6 -# 95:100ms
X96 - M 03: 100ms INC.
#( •)~ATJ+ ( )
MC-ERR I MACRO 1 SPINDLE ~ P L C 1 MENU ,
-246-
13. PROGRAM SUPPORT FUNCTIONS
13.13.
DATA SETIING (Gl~ Gil)
g. PLC counter
Data format
#( ❑)DATA[ )
MCERR [ MACRO I SPINDLE MENU
10
00000000
00000000
00000000
00000000
19 00000000
20 00000000
21 00000000
22 00000000
31 00000000
32 00000000
33 00000000
34 00000000
11 0000000023 00000000 35 00000000
12 0000000024 00000000 36 00000000
76543210
*( ■)DATA( )
Mc-Erm lMA~O ,] SPr~LE MEtW ~
-247-
!,
Program example
[Example] Setting FFFF into the 4th axis encoder motor type (#25 MTY). ~
P9 A4 N96 S65535 ;
::
30
31
32
-248-
13. PROGW SUPPORT FUNCTIONS
13.13.
DATA SM!TTNG (G1O,Gil)
Program example
@3xample] Turn the dog-less absolute position detection abolute position set ON.
. P13 N3 H31 ;
-249-
13. PROGRAMSUPPORT FUNCTIONS
13.13.
DATA SETl?NiG(GIO,
GIIJ
Program example
[Example] Set the Z axis dog-less absolute position detection zero point to 999.909.
P14 A 2 N20 L999909 ; ~’
. .
-250-
,,
Tailstock
!
Headstock
Since coordinates based on the right hand rule are used with a lathe, the forward direction of the Y axis in the
above figure which is at right angles to the X-Z plane is downward. It should be borne in mind that an arc on the
X2 plane is expressed as clockwise or counterclockwise as seen from the forward direction of the Y axis. (Refer
to the section on circular interpolation.)
(“& – G59)
=
2nd reference point +2
. /“’”
~28 @
-+x
A
Reference point
(+Y)
@
Relationship between coordinates
-251-
14. COORDINATE SYSTEM SETTING FUNCTIONS
14.2. BASIC MACHINE, WORK AND LOCAL COORDINATE SYSTEMS
G92 / I
(G 54)
+x
I Work ccmrdinate
● 0
<
(G 53)
Ik$aslcmacnme +??
.-
coordinate system )
I
The local coordinate systems (G52) are valid on the coordinate systems designated by work coordinate systems 1
through 6.
When G522M2ZZ2, is set in the G59 work coordinate system selection, the G59 work coordinate system will
shift to the G52 (G59) point in the figure. The other work coordinates (G54 to G58) will not be affected
by this.
The automatic coordinate system (G92) is valid on all work piece coordinate systems from 1 to 6.
When G92XXIZZ1; is set at A point in the G54 work coordinate system, the G54 work coordinate system
will shift to the G92 (G54) point in the diagram. The other work coordinate systems (G55 to G59) will also
shift at this time.
. .
-252-
.
14. COORDINATE S Y’ TEM SETTING’ FUNCTIONS
14.3.MACHINE ZERO POINT AND 2ND REFERENCE pOINT (ZERO
POINT]
Basic machine
coordinate system Machine zero point
z
Local coordinate system
(G52)
x
7 P
Workcoordinatesystems (G54 – G59)
z
. .
-253-’
14.COORDINATE S YS TEikiSETTING FUNCTIONS
14.4.AUTOMATIC COORDINATE SYSTEM SETTING
Z*
#
xx Local coordinate system (G52)
Detailed description
(1) The coordinate systems created by this function areas follows
1) Basic machine coordinate system
2) Work coordinate systems (G54 – G59)
The local coordinate system (G52) is canceled.
(2) The parameters set in the NC system all provide the distance from the zero point of the basic machine
coordinate system. Tlwreforq it is decided at which position in the basic machine coordinate system the first
reference point should be set and then the zero point positions of the work coordinate systems are set.
(3) When the automatic coordinate system se$ting fonction is executed, the following functions are canceled:
work coordinate system shift based on G92, local coordinate system setting based on G52, work coordinate
system shift based on origin setting and work coordinate system shift based on manual interrapt.
(4) When a parameter has been used to select the dog-type of first manual reference point return or automatic
reference point return after the power has been switched on, the dog-type reference point return will be
execntcxl for the second and subsequent manual reference point returns or automatic reference point returns.
-254-
COORDINATE
14; S YSTEik?SETTING FUNCTIONS
14.5.MACHINE COORDINATE S YSTE.M SELECTION (G53]
1) When the power is switched on, the basic machine coordinate system is automatically set as referenced
to the reference (zero) point return position, which is determined by the automatic or manual reference
(zero) point return.
2) The basic machine coordinate system is not changed by the G92 ammand.
3) The G53 command is valid only in the block in which it has bem designated.
4) In the incremental value command mode (U, W, /3 ), the G53 command Provides movement with the
incremental value in the coordinate system being selected.
5) The first reference point coordinates denote the distance from the basic machine coordinal : system
zero point to the reference (zero) point return position.
6) The G53 command will move at rapid traverse.
(–500, 500)
Reference (zero) point return position
–z q-$+jxi+j (#l)
. “1
-255-’
14.COORDINATE SYSTEM SETTING FUNCTIONS
14.6COORDINATE SYSTEM SETTING (G92]
1) After the commanded axes have been positioned by GO, they are returned respectively itt.rapid traverse
to the first reference (zero) rmint when G~ is commanded.
2) By commanding G2~ the &ws are first positioned independently at high speed to the G28 or G30
intermediate point and then positioned by GO at the commanded position.
I
\
(Y. z. a,) \ G30 /’ I
‘--G&o’”i
XZfm3iate
Start point lint
1) G28 Xxl Zzl aal ; (where a = additional axis) (Automatic reference point return)
2) G292Ctz ~ a% ; (where a = additional axis) (Start position return)
In this cas~ XI, ZI and al are the coordinates of the G28 or G30 intermediate point.
-257-
14.CO ORDIiVA TE SYSTEM SETTING FUNCTIONS
14.7.REFERENCE {ZERO] POINT RETURN (G28,G29)
5) Program error “P430” results when G29 is executed when automatic reference (zero) point return
(G~) is not performed after the,power has been switched on.
6) The intermediate point coordinates (xl, Zl, al) of the positioning point are assigned by
absolute/incremental value mmmands.
7) G29 is valid for either G28 or G30 but the commanded axes arepositioned after a return has been made
to the latest intermediate point.
8) The tool offket will be temporarily canceled during reference point return unless it is already canceled,
and the intermediate point will be the offset position.
9) The intermediate point can also be ignored by parameter sating.
10) Control from the intermediate point to the reference (zero) point is i~ored for reference (zero) point
return in the machine lock mode. The next block is executed when the commanded axis arrives as far
as the intermediate point.
11) Mirror image is valid from the start point to the intermediate point during reference (zero) point return
in the mirror image mode and the tool will move in the opposite direction to that of the command.
However, mirror image is ignortxl from the intermediate point to the referen= (zero) point and the tool
will move to the reference (zero) point.
R,
Reference (zero) point position (#1)
}
1st operation after power
has been switched on. ./ GOX.X$ZZ$ :
> I
,/
2nd and subsequent
operations [ (x,, z,)
,
Intermediate point
#/
GOXx~ Zz, ;
Y
Return s~art position
1st operation after power
_ has been switched on
2nd and subsequent
Rapid traverse rate I
f
Reference (zero) point
Near-point dog position (#1)
-258-
14. COORDINATE SYSTEM SETTING FUNCTIONS
14.Z REFERENCE (ZERO) POINT RETURN (G28,G29)
(G O) XX, Zz, ;
\
‘
G28, G30 intermediate point (xl, ~)
GO XX* Zzz ;
\ (x*, 2,)
.
‘~rom point A to referenee (zero) point)
i
(l?rom mint B
~o 2nd ~eference Reference(zero)point
(zero) point pc5ition(#1)
Newintermediate
G29 Xx, Z& . Presentpasition R 1A point
(From point t
to point D) A
\
,... +--”
~ c? 2id reference (Zf3’0) @IIt
position (#2)
COORDINATE SYSTEM SEITING3TJ..CTIONS
14.
14.8.
2ND REFERENCE (ZERO)POINT RETURN (G30J
d/v
.?
.’”/
G30P 2 ,,</
G~ a.. G28,G~
...- ./
. ..- ..;
.. . . .. “/
... .“./
‘h
Start point . .._ .. “..’ (x 1, Yi, Z1 a J
/ Intermediate point
G30 /’
/
/
/ G30P 3
/
/
G30P 4
OH’ /\+
G29
+ 3rd reference point
4th reference point
-260-
14. COORDINATE S YS T.EM SETTING FUNCTIONS
14.8.2ND REFERENCE (ZERO] POINT RETURN (G30)
(zero) point
G29XX2ZZ2:
R#2
(x,, Zz)
+x
2nd reference (zero) point
4) With reference (zero) point return on a plane during compensation, the tool moves without tool nose
radius compensation (zero compensation) from the intermediate point as far as the reference (zero)
point. With a subsequent G29 command, the tool moves without tool nose R compensation from the
reference (zero) point to the intermediate point and it moves with such compensation until the G29
command from the intermediate point.
-z R*z
(X,. zlf, (
\
< \
\ +x
G29XX, ZZ, ; \ \ /
(x,; Z,)
. .
5) The tool length offset amount for the axis involved is cancehxl temporarily after the seeond reference
(zero) point ;etum.
6) With second reference (zero) point return in the machine lock status, control from the intermediate
point to the reference (zero) point will be ignored. When the designated axis reaches as far as the
intermediate point, the next block will be executed.
7) With second reference (zero) point return in the mirror image mod% mirror image will be valid from
the start point to the intermediate point and the tool will move in the opposite direction to that of the
command. However, mirror image is ignored from the intermediate point to the reference (zero) point
and the tool moves to the reference (zero) point.
-261-
14.COORDINATE SYSTEM SETTING FUNCTIONS
14.9.REFERENCE POINT CHECK {G27J
&
–z ..
—-.
P
/
/’
/
reference (zero) point
<“
X-axis mirror \
image —\
\
G3CIPZXXIZZI:
\
No mirror image
~:;;-’is
PI: 1st reference point check
P2 2nd referenee point check
1) If the P command has been omitted, the first reference point will be checked.
2) The number of axes whose reference’points can be chec~ed simultaneously depends orI the number of
axes which can be controlled simultaneously.
3) An alarm results if the final command point is not the reference point.
-262-
14.COORDINATE SYSTEM SETTING FUNCTIONS
14.10.WORK COORDINATE SYSTEM SETTING A-ND OFFSET
{G54 – G59)
1) With any of the G54 through G59 mmmands, the tool radius offset amounts for the commanded axes
will not be canceled wen if work coordinate system seleetion is commanded.
2) The G54 work coordinate system is seleeted when the power is switched on.
3) Commands G54 through G59 are modal commands (group 12).
4) The coordinate system wiIl move with G92 in a work coordinate system.
5) The offset setting in a work coordinate system denotes the distance from the zero point of the basic
machine coordb~te system.
I 4
1st referenee point
-263-
14.COORDINATE S YS TEikfSETTING FUNCTIONS
14.10.WORK COORDINATE SYSTEM SETTXNG ANl) OFFSET
(G54 – G59)
6) The offset settings of work coordinate systems ean be changed any number of times. (They em also be
changed by G1O L2 ppl Xxl 221.)
7) A new work coordinate system 1 is set by issuing the G92 command in the G54 (work coordinate
system 1) mode. At the same tirnq the other work coordinate systems 2 through 6 (G55 — G59) will
move in parallel and new work coordinate systems 2 through 6 will be set. . ..
8) h imaginary machine coordinate system is formed at the position which dwiates from the new
workpiece reference (zero) point by an amount equivalent to the work coordinate system offset
-z
Basicmachinecoordiite
systemmm point
-z _ .––– Inragrnarymachineuxmliiwdesysteu
- - ‘c#;~t, ~ti l)- OISw
–Z(GS4) ____
- -Old work 1 (GM) coordinate~stcm
___ _w_l _ _ - - -Old work 2 (G55) comdiite tystesn
-x
Afterthe power has been awitchect on, the imaginary machine coordinate system is matched with the basic
machine coordinate system by the first automatic (G28) or manual mfemnce [zero) point return.
I
9) By setting the imaginaxy basic machine coordinate syst% the new work coordinate system will be set
at a position which dcwiates from that imaginary basic machine coordinate system by an amount
equivalent to the work coordinate system offset amount.
10) When the fwst automatic (G2i3) or manual referenee (zero) point return is completed after the power
has been switched on, the basic machine coordinate system and work coordinate systems are set
automatically in accordance with the parameter settings:
G;:yposition
~z
-264-
14. COORDINATE SYSTEM SETTING FUNCTIONS
14.10.WORK COORDINATE SYSTEM SETTING AND OFFSET
{G54 – G59)
When the first reference point coordinate is zero, the basic machine coordinate system zero point and reference
(zero) point return posit~n (#1) will coincide.
@ample 2)
QlG28~OZO; . ..
@G54X-t-5OO Z –500 : @
@GOl w–5ooF 100 ;
@u+500;
@w+500 ;
(G55)
@u-5oo ;
@GooG55xo z o ;
@GOl Z –500 F200 ;
(@ X-l-m Zo:
@G28xOz0 ; (G55) (G.W
(Example 3) When work coordinate system G54 has shifted (i-500, -500) in example 2
$ is ass~$lt~ 3 through 10 in example 2 have been entered in subprogram 01111.)
.
2) GOOG53 X; 20 ; .... (Not required when there is no basic machine coordinate system offset.)
3) G54 X-I-500Z-500 ; .... Amount by which work coordinate system deviates
4) G92 XO Zil ; .... New work coordinate system is set.
5) M98 Pllll ;
(D
-z Present position
Old G55 coordinat: ~~$~
.- —-— - Old G54 coordinate
-Z (G55) ;~S4’) New G54 coordinate
New G55 coordinate \
system –Z (G55”)
+x
(G55) (~x~~ )
+X(”G~”)‘ ‘
+x
NOT13 The work coordinate system will shift each time steps 3 through 5 are repeated. The reference
point return (G28) command should therefore be issued upon completion of the program.
-265-;
14.COORDINATE S YS TEikfSETTING FUNCTIONS
14.11.LOCAL COORDINATE SYSTEM SETTING (G52j
The local coordinate systems can be set independently on the G54 – G59 work coordinate systems
using the G52 command so that the commanded position serves as the programmed zero point.
The G52 command can also be used instead of the G92 command to change the deviation between the
zero point in the machining program and the machining workpiece zero point.
.
(2) Command format
1) The G52 command is valid until a new G52 command is issued and the tool does not move. This
command comes in handy for employing another coordinate system without changing the zero point
positions of the work coordinate systems (G54 = G59).
2) The Iocd coordinate system offset will be cleared after the power is turned on.
3) The local coordinate system is canceled by (G54 – G59) G52 XO 20 ;.
4) Coordinate commands in the absolute value mode cause the tool to move to the local coordinate
system position.
5) The local coordinate system offset will not be cleared with Reset 1.
6) The local coordinate system offset will be cleared with Reset 2, Reset and Rewind.
f- -i
I
1 Incmnental value G52U_W_ ;
I
I Ln
I
I AbaoIute value LmcaIcoordinate
I systems
I Absolute value
I /1
G52X_Z _ :
-(@___________ ---- _Work coordinate system
~’Wn(n= l-6)
Referenee point
R ~ ~R~ ~~%%~~?~% ;)
/
temal work coordinate syalem oft%
*.@ z= ~C input, CRT setting)
Machine coordinate system
L M
J
-266-
PROTECTION
15. FUNCTIONS
15.1.CHUCK BARRIERSITAILSTOCK BARRIERS
X axis
4
//i // ///////////’//////////////’/////’,
Pi
PI
\\\\ ~..3P P2
P3
I
P4
\ P5
P6
.— Z axis
I
\\\\\ \
\
I
PI, P2, P3: Chuck barriers
P4, P5, P6: TaiIstock barriers
P7, P8 Stored stroke limits
P8 I
///y///// ////////////////////// / / /
-267-
15.PI?OTECTION FUNCTIONS
15.1.CHUCK BARRIERSITNLSTOCK BARRIERS
P1
P4
i P2
P!5
P3
P6
.— . .—
+)
I <
Type 1
For both the chuck and taiktock barriers, 3 points can be input as parameters and these are set with the machine
coordinates.
Points Pl, P2 and P3 represent the chuck barrier~ points P4, I?5 and P6 represent the tailstock barriers.
The barrier area is symmetrical to the Z axis and when the barrier point P— X-axis coordinates have a minus
value, the sign is turned into a plus and the coordinates are checked.
The absolute vahws of the X-axis coordinates for each barrier point must be set as follows:
. .
-268-
—
15. PROTECTION FUNCTIONS
15.1. CHUCK BARRIERS/TMLSTOCK BARRIERS
15.1.2 RESTR1CTIO NS
(1) The following points must be borne in m“nd since there is only 1 check point from the tool for the chuck
barriershilstock barriers.
When, in the examples given below, the tool nose width offset amount is set and the tool is moved in the
direction of the arrow in the figure in order to conduct the check at the imaginary tool nose”point, the tool
will automatically stop at the barrier limit because the check point is in range (a) of I?xample 1. However,
in Example 2, there is a danger that the tool and chuck will collide in range (a) since the check point is in
range @).
-——-
—
(Example 1) (Example 2)
—.
I
~b
-—
---—
----
—- 1
.
@
i
b“
—.-——
-—
-----‘––-
I
T
@
+?
I
In order to avoid collision, the tool can be stopped at the barrier limit when barrier points PI, P2 and P3 are set
so that the check point is in range (c), as shown in I?xarnple 3.
(13xample 3)
u
PI
-— --
Q
P3 ti~
_&____
I
P2
-— .
T {
i -71
1>
I I
. .
(2) When the tool enters inside the barrier area and the alarm is given, the NC system is first reset to reltzise the
alarm and then the tool can be moved in the opposite direction to that in which it was moving before.
(3) There is no barrier area for an axis without the reference point return function. Consequently, there is no
barrier alarm for such an axis.
(4) When the barriers have been made valid after the tool has entered the barrier area during cancellation, an
alarm occurs as soon as any attempt is made by the tool to move.
In a case like this, first release the alarm by resetting the NC system and issue the G23 wmmand so that the
tool will avoid the area or change the barrier point settings.
-269-
16. ikiEASUREli4ENT
SUPPORT FUNCTIONS
16.1.SKIPFUNCTION (G31J
-270-
16. MEASUREMENT SUPPORT FUNCTIONS
16S.S’ FUNCTION (G31)
I
i--’
&. 2) When the next block is an one axis movement command with absolute value
t
G31 Z 1000 F 100 ;
GOI XIOOO: I
k
1 Movement when =temal
External signal entered
~,signal is not entered
x
t 4 --- -1
z
-1--
Ex. 3) When the next block is a two axes movement command with absolute value
J-
‘m.~ Z
___ ~’ Movement when external signal is not entered
4
5
GOO X–1OO. ;
G31 X–200. I?60 ; Skip command
# 101= #5061 Skip signal input coordinate values (workpiece coordinate system) are
readout to #101.
\
-271-
JL?M!XJRMIENTSUPPORT FUNCTIONS
16.
16.1.
SKIPFUNCTION (G31)
F F
=—X (Tp+tl) & &xt:
60
\
h.0. Coasting amount (mm) 3, 6?
F: G31 skip speed(mm/min.)
T P: Position loop time constant (see) = (position loop gain)-~
t~ : Response delay time (SW) = (time taken from the detection to the arrival of the skip signal at the NC via
Pc)
t,: Response error time (0.001 see)
When G31 is used for calculation, the value calculated from the section indicated by al in the above equation can
be compensated, however, 8Zresults in calculation error.
Time (Sj
t,kt, Tp
The relationship between the coasting amount and speed whei Tp is 30 msec and tl is 5 msec is shown in the
following figure.
TP=O.03
o.oso - t, =0. cos
0.040-
. .
o.w -
cmsting
amount
6
(m) O.o!m
.
0.010-
0 10203040ti 70
Feedrate F (mm/m%)
Relationship between coasting arno~nt and feed rate (mample)
-272-
16. M?MSURHWENT SUPPORT FUNCTIONS
16.1. SKIP FUNCTION (G31)
i-l
Readouterror G o
@)_l
-273-
M“SUREkfENT SUPPORT FUNCTIONS
16.
16S.SKIPFUNCTION (G31)
s
G31 X1OO.F1OO ; Skip command
G04 ; Machine stop cheek
#lol = #5061 Skip signal input eoordirmte readout
#lo2 = #llo*#lll/60 ; Coasting based on response delay time “
#lo5 = #lol#lo2 ; Skip signal input coordinates
5
I
G31 X1OO.F1OO ; Skip command
G04 ; Machine stop check
#lol = #5061 Skip signal input coordinate readout
#lo2 = #llo*#lll/60 ; Coasting based on response delay time
#lo3 = #llo*#l12/60 ; Coasting based on position loop time constant
#lo5 = #101402+103; Skip signal input coordinates
f
. .
-274-’
APPENDIX 1.LISTOF FUNCTION CODES
NO’ITk 1. The. black (x) and white asterisks (A) indicate that the corresponding eodepattem can beset
by parameter.
NOTl% 2. Codes represented by white asterisks except those for appropriate functions and codes not
listed in the above table are stored on tape, but an error will result during operation if they
are not comments.
NO= 3. This denotes characters (including blanks) which are stored inside the CNC system and
which correspond to the command codes. “@” is not displayed.
-275-
APPENDIX 2.LISTOF COMIL4ND VALUES AND SETZINGRANGES
-276-
APPENDIX 3.CIRCUIAR CUTTING RADIUS ERROR
A Command coordinate
= B: Tracking coordinate
\
R. Command radius (mm)
AR: Radius error (mm)
A8 Angle error (rad)
F. Cutting feed rate (m/min)
LRJ=I
The AR radius error and angle error A@are calculated from the following formula.
NOTE 1. When the AR radius error applying with circular cutting dom not come within the allowable
valu~ proceed to reduce the cutting feed rate F, set Ts to a lower value or rmiew the
program.
NOTE 2, In the steady statq AR is constant. However, it is not constant with command start and stop
transitions. Under command start and stop conditions, therefore. the trackinz coordinate
should be as shown in the figure be~ow. -
Start/stop
. .
,
coordinate coordinate
-277-
APPENDIX 4.STANDARD C4NNED CYCLE SUBPROGRAMS
G31z4%F #3;
IF [ROUNDc ABS [$2– [ 4!/10 * ?411I ] ] GT #8 ] GOTO1 :
IF [ROUND
[ 4$10 * gll ] EQ W ] GOTO1 ;
##9 = !!#10-#2/ill+#i9 ;
#3003 = #l ;
N2;
M99:
W i 3901 =126 ;
G.1 :
1F[AIL3[#2]GTO] GOTO1O;
:14=1;
Nlo #13=#3–#5 ;
DO1;
#lo=o;
till =34;
D02 ;
#lo = #lo+i’4
IF IABS[?/lO] GE IABS[#l]]] GOTO1;
GOI X $11 ;
coo x t!6 :
ill = #4–#6 ;
END2 ;
NI GO1Xt41-#10-!-#11 ;
GOOY ti5 ;
GOOX–#1 ; . .
IF [ #14 1 GOTO3 ;
:12 = #12+j3:
lFIABs[ #121 LT[ABs [#211] GOT02;
414=1;
#i3 = tt2-ti12+ii13 ;
N2 GOOY $13 :
END1 ;
N3 GOOY –#2=$5 ;
M99;
-278-
—
. ..
G.1 :
1FCABS[81]GTOI COTO1O;
414=1;
Nlo #13 =,44–$5 ;
DO1;
#lo=o;
$11 =$3:
D02;
410 = #lo -+ $3 ;
lF[.ABS[#lO] GE [ABS[#2]]]GOT0 1;
GOI Y $11 ;
GOOY #6 ;
411 = ii3-{6 :
ND 2;
Ill GO11’ #2 –$10+#11 :
Goo x #5 ;
coo Y- #2 ;
IF [ 3141 GOTO3 ;
#12 = f12+#4 ;
lFIABS[ #i12]LT [ABSiill J] GOT02;
#14 = 1;
#13 = #1–il12-i-i13 ;
N2 GOOX #!13 ;
ENI 1 ;
IJ3 coo x– #1–% ;
1199 ;
. .
-279-
APPENDIX 4. STANDARD CANNED CYCLE SUBPROGRAMS
G.1 : . ..
jj~2=~;
il13 = $9;
IF[r!BS [$13] GE[ABSCl!8]]I GOTO1:
$16=1:
113 =#8 ;
N1 811 = $13 ;
iFINsc#ll lLT[Ms[$4 -#5113 GOT02:
:11 = M-%;
814=1;
N2 #17 = X11;
$18 = ROl14D[ [ #4-#11 -#5 1 * $7 ] ;
IF I [ $18 NIR #l] GEO 1 GOTOIO:
:18 = -#18 ;
Nlo :19 = #18 :
*1O = ROUND
[ ;!ill+$5 ] * !!7 ]
IF [ [ $10 10R #l] GEO 1 GOTO20;
$10 = -$10
N20 GODX it10 ;
#20 = %10
001;
%15= ROUND
[ #10 * #3/?ll ] :
Goo Y #2 -!-#3-!?4-#15+:11 ;
G33 X#l–if10-#18 Y -#3+#15 :
GOOY –#f2+%4-#11 ;
IF [#14 GT 01 GOT03:
lF [#16 GT 01 GOT07;
t/12 = $12+1 ;
*13 = ROUND
f. #9 * SQRT[ *12 ] ] ;
IF [ ABS[ #13-#11 1 GE [ AM [ M ] I ] GOTO8;
#16=l;
N7 fl13 = $11-18:
N8 #11 = ff13:
JFr ABs[411J LT[ABs[ #4-#5111 GoTo9: “’
ill = M-$5:
#14=l;
N9 f10 = ROUND
[ E #17–#11 ] * i17] :
lF [ [ $10 XOR#l] GE O ] COTO6 ;
310 = – #lo;
N6 :10 = $10+#20 ;
GOOY –41+$l10+i18 ;
IF t #14 LT O I GOTO11:
$!18=0;
-280:
APPENDLY 4. STANDARD CANNED CYCLE SUBPROGRAMS
GOTOM ;
WI t18 = #19–iIO+WO ;
NI~ ENDI ;
X3 IF[~IKi [#6] L’TI]GOT05; ..
#14=o;
#13=o;
oo~;
IF [ :14 GTO] GOTO5 ;
fl13 = tJ13+#6 ;
lFIABS[ 8132 LT[ABS[M]]]GOT04 ;
$13=%;
$14=1;
N4 GOOX :10- #l ;
GOOY #2 +~3-:4+4’13-$15 +fIll ;
C33 x #l -:10 Y -$3+*15 ;
GOOY-j2-!-f!4-:13-gll ;
2ND 2:
N5 GOOX -ill ;
K99;
G.1 ;
JF [[#l EQ 0], OR 1$2 EQ O] JGOTO1;
#3003 = % OR 1 ; Single block stop inhibit
Y:2+H ; Movement with G(M command
Cl XtlY-$7 ;
y-$~ ;
#30i)3 = $5 ; Single block stop inhibit relmse
GO1–:1 :
N1 i{99 :
G.1 ;
. .
w[til EQO] OR [#2 EQo]l G0T01:
:3003 = :5 OR 1 ; Single block stop inhibit
Y!J2+$i7; Movement with GO(.Icommand
G33 ~~15 Y~ll F$9 E#10 :
xi13 Y*I2 ; Thread cutting
GOY-$2–$i–$11–i12 ;
:3003 = :5 ; Single block stop inhibit release
1-315-:13 ;
!/1 M99 ;
-231-’
APPENDK 4. STANDARD CANNED CYCLE SUBPROGRAMS
G.1 ;
]F [[#l EQOI OR Vi2EQOl}G0T01; ..
G.1 ;
IF [ +30 j GOTO2 ;
M #24;
#29 = #11 #f28 = O ;
z#2;
#2 = $/45 ;3003 = #8 OR I :
DOI;
#28 = #28 -#n #26=-#28 –#29 ;
2 $26;
●
lF[MS[fi28 ]GE[ABS[$3j]]GOT0 1;
G1 z #29 ;
GOz 428 ;
429 = i#H+ii14 ;
END1 ;
N1 GI Z #3 –426 ;
G4P #4;
ii3003 = 18 ;
GOZ–#3–#2 ;
IF [ #24 EQ #O ] GOTO2
M //24+1 ;
G4Pi21;
N2 M99;
-282-’
APPENDIX 4. STANDARD CANNED CYCLE SUBPROGRAMS
tt
~; (0831 ) Deephole drilling cycleA
. ..
G.1 ;
IF [ #30 ] GOTO2 ;
M #24 ;
429 = O i/28 = fll ;
2 #2;
42 = ##5 $3003 = #8 OR1;
001;
{29 = //29+:11 ;
lFIABS[ #29] GE[ABS[#3]]l GOT0 1;
G1 Z 428 ;
GOZ–ild ;
i28 = $11+314 ;
END1 ;
M U Z i/3 -#29+ #28 ;
G4P $4;
:3003 = $8 ;
GO2i-i3-ii2 ;
IF [ #24 EQ $0 ] GOTO2 ;
H //24+1 ;
G4 P #21 ;
N2 M99 ;
N1OO;
lF [/!301 GOTO3 ; Canned cycle invalid chink
;3003 =Hl OR 1; Single block stop inhibit
*29=+12 428=0 ; . . Initial cutting amount setting
Retung amount (= total cutting amount)
initialization
GO 2.%2;
IF [#12NEftOIGOTO1 ; I*O?
IF [411EQ:OI GOTO2 ; (I= ) K =0?+ Final cutting
IF [AM [~281 GE [ABS [~31 j 1 GOTO2 ; Cutting end (hole machining)? + Final cutting
-283-’
APPENDLX 4. STANDARD CANNED CYCLE SUBPROGRAMS
Del; (Loop 1)
i28=#28-#11 $26=-$28–$29 ; Next block rclurn amount setting
Fed amount calculation
GO2X26+%2; Fed
IF [.4BS[~28] GE [ABS[$3] ] ] GOTO2: Cutting end? -D Final cutting
G1 7Ji29; Cutting
G4 PM ; Dwell
GOI%
Z8-*2 : Return
G4 P:13 ; Dwell
13NII1: (Loop 1 end)
M2Cl Z33-iR6 : Final cutting
G4 P~4 : Dwell
t3003=#8 ; Single block stop valid
GO2-$3-:2: Return
N3 i[99 ; %
G.1 ;
lF [ :30 ] GOTO2 ;
M $24 ;
232;
i2 = M5 #3003 = 48 OR1 ~3004 = :9 OR3 ;
Glz f3;
G4P ti4;
\f4 ;
#3900 = I :
G1 z-#3 ;
i!3004 = $9 ;
M3;
f13003= :8 :
IF [ i2.4 FYji10] GOTO1 :
k! :24+1 ;
G4 P i21 ;
NI CO2–;2 :
N2 1{99 ;
-284-
APPEA?D.IX4. STANDARD C24NIVEDCYCLE SUBPROGRAMS
G 85
~89 (0850’} Boring cycle
..
G.1 ;
IF [ i130 1 COTO 2:
!4 #24 ;
2$2;
f~ = $$5 #3003= :8 OR1:
G12 :3;
G4P :4:
:3003 = 28 ;
Z–$3 F ~23 ;
F 322 ;
]F [ :24 EQ 40 ] GOTO1 ;
1( 424+1;
G4 P MI ;
?JI GO2– $2 :
N2 1!99 ;
.,
-285-!
APPENDLY 5. LIST OF VXR.JMBLENUMBERS {1)
Variable
Description Read Write
number (#)
o Vacant o x
1–32 Local variables
Argument designation I
# 1 2 3 4 5 6 ~ 8 9 10 11 2 13 14-26 27-32
~m~t * D c I J ‘o o
K D E F G H L M N–Z
address
Argument designation II
# 1 2 3 4 5 6 7 8 9 10 – 27 28 29 30 31 32
m~@ ~ B c 11 J1 K1 [2 J2 K2 13-K8 19 J9 K9 110 Jlo
addrms i
g -~ ~;; s: : :
: W ~:; s:: 0 ‘
9
N0TE2 The variables corresponding to the optional specifications can be used only when those
specifications have been provided.
-2$6-i
LIST OF VARL4BLE NUMBERS (2)
Variable
Description Read Write
number ($
4001-4320 Modal information
Modal Modal
lPre-,eadl~~cutionl I information [Prti-readl~~cutionl
information
o x
G codes M codes 4113 4313
4001- 4201 – N codes 4114 4314
4021 4221
0 codes 4115 4315
F code 4109 4309 S codes 4119 4319
T codes 4120 4320
NOT.JZ The variables corresponding to the optional specifications can be used only when those
specifications have been provided.
-287-
APPEND-H 6. CORRESPONDENCE TMLES OF DATA SEllYNG N NUMBERS
I!IOTIZ 2 13inary parameters should be converted into byte-type data and assigned with decimal
data following address D.
Ehm.mple 1: Binary data
01010101, = 55~ = 85~ .....85 is assigned.
IZmmple 2: ASCII code
<’M, = OIOO1lOIB = 4D~ = 77~ .....77 is assigned.
(“B” stands for binary, “H’ for hexadecimal and “D” for d~mai fomat+)
,’
. .
-288-
APPE.NDLY 6. CORRESPONDENCE TMLES OF DATA SETTING N NUMBERS
t%l. AXIS-CWii$fONP~ETH?S (M4CHINEJ
160 160+64n Orientation 1st Word 0-359 De: 0-500 (ins) for M O-1 (integer)
deceleration point magnetic sensor The 1st and 2nd
spindle data can be set
162 162+64n Orientation 2nd Word 0- 3.s9 Deg O-40 (deg) for as the G code macro
. . parameters.
deceleration point magnetic sensor
The correspondence
164 164+ 64n Tap-less position loop Word 1-20000 0.01 radls between “n” and the N
gain numbers is given
below.
166 166+6% In-position range Word 1-20000 0.01 deg 0-39 (deg) for (n) (h! number)
magnetic sensor o .....160-222
1 .....224-286
168 168+64 Orientation speed Word 0-1000 rpm
172 172+ 64n Position shift Word 0-4095 Pulse 1536-2.560 for
magnetic sensor
-289-
APPENDIX 6. CORRESPONDENCE TMLES OF DATA SETTING N NUMBERS
6.1.AXIS-COMMON P~ETERS (.CkUNE)
P number 1 (Machine)
N numbe N number
Cmntents Data type setting Iimge (unit) Remarks
321JL 330HL
1-
178 178 Not used Byte
E
182 182 Not used Byte
L 192
control 2
E
194 194+ 64n Zero speed Word 0-1000 rpm
-290-
APPENDLX 6. CORRESPONDENCE TMLES OF DATA SEIWNG N NUMBERS
6.1.AXIS-COMMON P~E?ERs (M4CHINE)
P number 1 (Machine)
N numbs
320L
N number
330HL
Contents Data typ setting range
I (unit)
I Remarks
01 gear ratio
210 21O-I-641t (gear teeth number at Word 1-32767
spindle side)
10 gear ratio
212 212i-64n (gear teeth number at Word 1-32767
spindle side)
11 gear ratio
214 214+64n (yar teeth number at Word 1-32767
spindle side)
00 gear ratio
216 216+ 64n (gear teeth number at Word 1-32767
spindle side)
01 gear ratio
218 218 +64 (gear teeth number at Word 1- 3276+
spindle side)
I
10 gear ratio
220 220 +&In (gear teeth number at Word 1-32767
spindle side)
11 gear ratio
222 222+6A (gear teeth number at Word 1-32767
spindle side) I I I
300 + 128n
2 words 0-99999
I rpm
-291-
APPENDLY 6. CORRESPONDENCE TMLES OF DATA SETTING N NUMBERS
6.1.AX13=COiMWOiVl?541t4METERS
(M4CH’N.E)
P number 1 (Machine)
N numbs N number
k
Data tgpe Sdrlg (unit)
320L 330Hi.,
lange
I
272 336 Not used 2 words
k
(gear stage 2)
R= 312 376
Not used
Not used
Not used
2 words
2 words
2 words
1+ 316
320
324
380
Refer to
P No.11
800
Not used
Estemal deceleration
speed
2 words
2 words
1-120000
1-99999999
(8 digits]
-292-
APPENDIX 6. CORRESPONDENCE TBLES OF DATA SETIY.NG N NUMBERS
6.1.AXIS-COMMON P~ETERS (M4CHINE)
P number 1 (Machine)
i number N number
Contents Data type setting range (unit) Rmaarks
320L mm
256 Refer to G3L3 skip speed 2 words 0-120000
P No.11
384 824 Machine bit 8-digit bit O Incremental axis radial designation
parameters designation bit 1: M call macro valid
Binary (Leading zeroes bit 2 S call macro valid
cannot be bit 3 T call macro valid
or omitted.) bit 4 B call macro valid
Oor 1 for each bit S: Offset number Tl digit
bit :]bit bit 6: Shape/wear offset number separation
bit T Machine constant input unit (inch)
dO Bit “d”-OFF
or
[)dl: Bit “d”-ON
(d: O-7)
38s 825 Machine bit 8-digit bit O Status trigger system valid
parametem designation bit ‘L Interrupt type 2 valid
Bina~ (Leading zeroes bit 2 Replacement M code valid
cannot be bit 3: Pitch error incremental system
or omitted.) bit 4: M2 format label L
Oor 1 for each bit 5 M2 format label O
bit [:bit bit 6
bit % Simulation stand
.“” -
~:;;!;]
:-
-293-
APPENDLX 6. CORRESPONDENCE T@LE$ OF DATA SETTING N NUMBERS
6.1.AUS-COMkiONP~ETERS (ki!ACHINE)
P number 1 (Machine)
i number N number
Contents Data P settingrange (unit) Remarks
320L 330HL
386 Refer to Secondary miscel- Btna~ AjBor C
P No.11 laneous function name (ASCII)
O M98 type
387 812 S macro call type B@ o-3 K G6S type
2 G66 type
3: G66.1 type
Number of M
Refer to
390 commands which can Byte 1-4
P No.11
be assigned in 1 block
Number of S
Refer to
392 commands which can Byte 1
P No.11 be assigned in 1 block
Number of T
Refer to
394 commands which can Byte 1-3
P No.11
be assigned in 1 block
Number of B
Refer to
396 commands which can Byte 1-4
P No.11
be assigned in 1 block
o: 1/1
398 404-1-128n Encoder gear ratio Byte o-3 ., 1:1/2
2 1/4
3 1/8
-294-
APPEA?DIX 6. CORRESPONDENCE TMLES OF DATA SE27”NG N NUMBERS
61.AXIS-COMMON P~EIEYW (M4CHIA?E)
P number 1 (Machine)
N number N number
mm., 330HL, Contents 3ata typeI Settingrange I (Unit) I Re-
bit O Signal O
Refer to
399 G31.1 skip condition Byte o-2 bit 1: Signal 1
P No.11
bit 2 Simal 2
400 Refer to
G31.2 skip condition Byte 0-2 (See above)
I
P No.11
401 Refer to
P No.11 G31.3 skip condition Byte 0-2 (See above)
Refer to
402 G31.4 skip condition Byte 0-2 (See above)
I
P No.Il
Refer to
403 G4 skip condition Byte 0-2 (See above)
I
P No.11
I 404
I 832 Sequence parameter 1 Word
I 416
I
844 Sequence parameter 7 Word
Word
I 424
I 8.52 Sequence parameter 11 Word
-295-
APPEMXX 6. CORRESPONDENCE T~LES OF DATA SE?TING N NUMBERS
6.1.AXIS-COMMON P~ETHW @iACklINE)
P number 1 (Machine)
430 Word
1
&L Bit “d’’-OFF
or bit 5 No handle accelerationldeceleration
Jl: Bit ‘dH-ON bit 6 No G30 soft limit
(d: O-7) bit ?
bit &
Machine bit bit 1:
443 829 (See above)
parameters bit 2
bit 3
1
-296-
APPENDLY 6. CORRESPONDENCE TmLES OF DATA SETTING N NUMBERS
6.1.AXE-COMikf’NE4RAhZEll?RS
(M.4CHlNE)
P number 1 (Machine)
448
I Refer to
P No.11
Synchronous tap accel.
eration/decelerat ion
time constant
Word 4-1800
I
msec
I
2 words 0-99999999
460
I Not used 2 words
2 words
2 words
2 words
2 words
w 2 words
2 words
2 words
. .
E 2 words
I
-297-
APPEh?DIX 6. C@UWSPONDENCE TMLES OF DATA SETTING N NUMBERS
6.1.
AXE-COMMON P~ETERS (kUiCH~E)
P number 1 (User)
1 number N number
setting mn~ (unit) Remarks
contents Data type
320L mmn.
-298-
APPE.NDR 6. CORRESPONDENCE T&LES Of’ DATA SETTING N NUMBERS
6.1.Ak?S-COMMONP~ETliRS (M4CHINEJ
P number 1 (User)
O No output
828 + 32n 1132+32n CR output Byte o-1 . 1: output
O No output
829+ 32n l133+32n Title feed output Byte o-1 1: output
-299-
APPENDLY 6. CURRESPONDENCE T~LES OF DATA SEWING N NUMBERS
6.1.AXXS-COMMON P~EllXS @MCHINE)
P number 1 (User)
II
839-1-32n 1143-t-32n EIA $ code
&ll+32n 1145-1-32n Feed control flag Byte 0-3 0 Neither IX?, nor
DC4 output
k DC2 only output
2 DC4 only output
3 Both DC2 and IlC4
output
-300-
APPEiVDLY 6. CORRESPONDENCE T~LES OF DATA SETTING N NUMBERS
til. AXKJ-COMMO.NP~ETERS (kL4ClZliVE)
P number 1 (User)
7=
980 Not used 2 words
I
992
996
*
1004 Not used 2 words
I
1008
1012
=+-=
1016 Not used 2 words
*
1020” Not used 2 words
1032
=+-F
1036
1040
.
--t
1044
1048
+ =--i-=
Maximum allowable
Refer to Interpola-
10.52 P No.11 value for arc radius 2 words 0-220 tion unit
difference
10.S6
I Not used
I
2 words
-301-
APPENDLY 6. CORRESPONDENCE T~.LES OF DATA SETTING NUMBERS
6.1.AXIS-COMMON P~ETERS (XL4CH1NE)
; i:::3
(d: 0-7)
b it O:Initial G18
108s 1297 Control bit parameter (See (See above) b it h Initial G19
2 above) bit 2 Dwell command time
bit 3
bit 4: TooI nose compensation start fcancel typt
B
bit 5: Interference avoidance
bit 6 Hole machining reds Z fiiediG83i87 high
. . speed
bit 2 Turning canned cycle G66.1 type
b it O: Initial G96
1086 1298 c ontrol bit parameter (See (See above) bit 1: Initial G95
3 above) b it 2: Initial G90
b it 3:
b it 4: Machine lock high speed
b it 5: Reference point/intermediate point
ignored
bit 6: Macro single block
b it ? AbsoIute/incremental axis name change
-302-
APPENDLY 6. CORRESPONDENCE TBLES OF DATA SETEING N NUMBERS
6.1.AXZS-COMMON P~EIERS (M4ClZNE]
P number 1 (User)
bit O
1088 1300 Control bit parameter (See (See above) bit 1:
5 above) bit 2 Program restart automatic return
bit 3: GOOdry run
bit 4: Wear offset amount input, absolute
value
bit 5 Wear offset amount input, incremental
value
bit 6 Interrupt amount resetting
bit 7: G46 reversal error avoidance
1094 1283 Data input device Byte 0-4 Selection of <0> * <4> entered in “1/O
selection device parameters”
-303-
APPE.NDLX 6. CORRESPONDENCE T~LES OF DATA SETTING iv NUMBERS
til. AZIXCOMMON P~EIEIU (M4CHINE)
P number 1 (User)
w
Remarka
1097
I+
1100 horizontal parallel azis BinaW ASCII
P No.11
I1 name
Byte
1111 1288 Macro print device
selection I
0-4
I Selection of e 0>-<4> entered in “VO
-304-
APPENDLY 6. CORRESPONDENCE TBLES OF DATA SETTING N NUMBERS
61. [email protected]~ETE~ @L4CHINE)
P number 1 (User)
1number N number
Contents Data type setting range (unit) Remarka
3211L 330HL
O Port Oselected (CNS12)
Computer link port
1114 1290 Byte 0-”2 1: Port 1 selected (CNS32)
selection
2 Port 2 selected (CNS31)
-305-
APPEND.H 6. CORRESPONDENCE TDLES OF DATA SEWING N NUMBERS
6.1.AX?S-COMM”.N P~EIERS (M4C’’INE)
P number 1 (User)
N number N number
Contents Data type setting lange (unit) Remarka
320L 33013L
. .
-306-
APPENDIX 6. CORRESPONDENCE TDLES OF DATA SEWING N NUMBERS
6.1.AXIS-COMMON P~ETERS (M.4CHINEJ
P number 11 (Machine)
I
I (unit) Remarks
1 I
Interpola-
4 lFacing tool rest distance 2 words 1-99999999 x 2 tion unit
2 words 1-120000
I I
16 pm SKipspwi 2 words 1-120000
20 G31.3Skip speed
I
Byte 1-4
%yte –1-1
Byte 1
Byte 11-3 I
Byte –1-l
Bina~ A, Bor C
(ASCII)
-307-
APPEi’?DIX 6. CORRESPONDENCE TDLES OF DATA SEK?ZVG N NUMBERS
61. A.XXS-COMM”N P~ETERS (AL4CH.NE)
P number 11 (Machine)
N number
330HL
Contents Data type setting Ian& (unit) Remarks
1- No. of axis
F
override
50 4-1800 msec
I
52 Hole machining cycle C axis 2 words 0-99999999
clamp M
L
64
I 68 Not used
I 2 words
-308-
APPENDIX 6. CORRESPONDENCE TBLES OF DATA SEllWG N NUMBERS
iii. ~S-COiWkfON P~ETERS @i!21CH~E]
P number 11 (User)
-309-
APPE.NDLX 6. C@?R.ESPOA?DEiVCETBLES OF DATA SE71YNGN NUMBERS
&l. AXL$-COMMON P~E7WlS @i?AcHw)
P number 11 (User)
Wnumber
Contents Data * setting range (unit) Remarks
33(EIL
Plane selection
298 Basic horizontal axis name Blnaxy ASCII
G17
Plane selection
299 HorizontallparalIel azis 1 Binary ASCII
name G17
Plane selection
300 Horizontal/parallel azis 2 Binary ASCII
name G17
Plane selection
301 Basic vertical azis name Binary ASCII
G17
Plane se~ection
302 Vertical/paralIel azis 1 Blna~ ASCII
name G17
Plane selection
303 Vertical/paralleI azis 2 Binary ASCII
name G17
Plane selection
304 Basic height axis name Binary ASCII
G17
Plane selection
305 Height/parallel azis 1 13ina~ ASCII
name G17
PIane seIection
306 Height/parallel azis 2 Bha~ ASCII
name G17
-310-
APPEN..LY 6. CORRESPONDENCE T~LES OF DATA SE?TING N NUMBERS
6.2.A.XRWNDEPENDENTP~ETERS (-CHINE)
Vnumber N number
Contents Data type setting range (unit) Remarks
ml, 330HL
Refer to
o 0 Rapid traverse rate 2 words 1-120000 speed unit
table
Refer to
Reference point return ~ words ~ - ~20000
4 4 speed unit
rapid traverse rate
table
Refer to
8 8 Clamp speed 2 words 1-120000 speed unit
table
E::=I
(d: O-7)
-311-
APPENDIX 6. CORRESPONDENCE TBLES OF DATA SETTING N NUMBERS
6.2.AXIS-INDEPENDENT P~ETERS (iW4CHINE)
P number 2 (Machine)
Vnumbe
320L
Contents Data type setting range (unit) Remarks
kdigit ‘ bit 0
41 41 ksk control flag 2 designation bit 1: Inch output
Binary (f.sading zeroes bit 2 Z%ro point direction (–)
cannot be bit 3: Servo off error correction
or omitted.) bit 4: Rotary axis
Oor 1 for each bit 5: Counterclockwise
bit bit bit 6:
bit % Control axis removable
dO: Blt “d”-Oti
Or
dk Bh “d’’-ON
(d: O-7)
Linear acceleration/
44 44 deceleration rapid Word -5000 ms
traverze time constant
Linear acceleration/
46 46 deceleration cutting Word -5000 ms
feed time constant
eed
Creep speed (zero
58 58 Word -60000 peed
point return)
nit table
-312-
APPENDLY 6. CORRESPONDENCE TMLES OF DATA SETI’ING N NUMBERS
ti2. A.X?S-INDEPENDENT
P~E’llU?S @i%CH.E)
P number 2 (Machine)
N numbs Vnumbe
Contents )ata type setting
range (unit) Remarks
320L 330HL I
-313 -
—.
P number 2 (Machine)
N number N number
320L mm’m cmltcnts Data ~ settingrange (unit) Remarks
-314-
APPENDLX 6. CORRESPONDENCE Z4BLES W DATA SETTING N NUMBERS
6.2 A-XZILINDEPEh?DENTP~EZEIW (MACHINE)
P number 2 (Machine)
numbex N number
Contents Data type setting range (unit) Remarks
320L 33(JHL
-315-
APPENDIX 6. CORRESPONDENCE T@LES OF DATA SETTING N iVUMBE~
i52.AXIS-INDEPENDE~ P~EZERS (3L4CHINEJ
P number 2 (User)
~ number N number
320L 33(E’IL
(kmtents Data type settingrange (unit) Remarks
Unidirectional Interpola-
2.56 2.56 positioning shift 2 words o-t 99999999x2 tion unit
amount
260 260 User stroke end upper 2 words o-% 99999999x2 Interpola-
limit tion unit
B::::o bit7:
(do-7)
E::::$ bity
(d: O-7)
300 300
-316-
APPENDiX 6. CORRESPONDENCE TM.LES OF DATA SETTING N NUMBERS
6.3.iW4CHINE ERROR COMPENSATION INFORM4TTON
P number 3
N number N number
contents
Data settingrange Remarks
T
32(X. 330HL
Compensation basic
320L 256x (O- numbers on the machine error
1 1 Word O- (_f%i no. compensation screen.
axis number
(axis No.
–1) -l- (o-
(Sys.tesn-1)
2 2 Compensation
direction axis number
6 6 Compensation
I I
magnification
7
I 7 Division interval 2
words
0-99999999
P number 4
N number N number
Contents Data type setting range (unit) Remarks
320L 3?(EIL
-317-
APPENDLY 6. CURRESPONDENCE T&LES OF DATA
ti5. PLC CONiST~
6.5. PLC
P number 5
F=
N number N number Data * setting range (unit) Remarks
Contents
320L 330HL I
P number 6
. .
-318-
APPENDIX 6. CORRESPONDENCE T~LES OF DATA SETTING N NUMBERS
6% PLC cmnvZ7m
6.7 I?LCCOUNTER
P number 7
Y number N number
Contents Data type setting rao& (unit) Remarks
3XJL 330HL
$ number N number
Contents Data type setting mnfy (unit) Remarks
320L 3301’D...
E:::3
(d: O-7)
.,
-319-
APPENDIX 6. CORRESPONDENCE T~LES OF DATA SE7TLVG N NUMBERS
6.9.PLCAXIS’ CONTROL PARAMETERS
I
Rapid traverse mmtmin
o 2 words 1-60000 (0.1 incfr/
rein)
8-digit bit O
Axis control flag 1 Binary [designation bit Y
‘(1.xading zeros bit 2
or cannot be bit 3:
omitted.) bit 4:
bit Oor 1 for each bit 5:
~bit 1 bit 6:
/ bit T
)
no: Blt “n” OFF
f8-digit o:
17 Axk control flag 2 Binary ~designation 1:
(Leading zeros 2 Zero point direction
or cannot be 3 Servo off error correction ,
omitted.) 4 Rotary axis
bit Oor 1 for each s Ccw
1“
blt 6:
‘L
/
1
nO fM “n” OFF
l$y~y
:- .
i CardNo.!MS No.I
Card No. 1-3
Azis No. 1 - 6
-320-
APPEN..LY 6. CORRESPONDENCE TMLES OF DATA SEWING N NUMBERS
6.9.PLCAXZS COM!RUL P~E~RS
22 Word
24 Word
26 Word
30 Word
32 Word
mmlmin
34 G28 approach speed Word 1-60000 (0.1 incfd
rein)
46 Word
48 Gear ratio 1 Word 1-30 Refer to Note 1 when the setting range given on
the left is exceeded.
50 Gear ratio 2 Word 1-30 Refer to Note 1 when the setting range given on
the left is exceeded.
.
52 Position loop gain Word 1-100 rad/sec
-321-
APPENDLX 6. CORRESPONDENCE T~LES OF DATA SETTING N NUMBERS
6.9.PLCAXXS CO~OL P~EZERS
72 Current limit (+) side Word 1-1364 Motor name Max. current Scale
HA 40,43 22A 62.0
74 Current limit (-) side Word -1- –1364 80,83 40 34.1
100 60 22,7
200 80 17.0
300 120 11.3
78 Lost motion offset gain Word 0-64 70 Set 0-100 (%) with HEX
(Hexadecimal)
-322-
APPENDLY 6. CORRESPONDENCE TmLES OF DATA SE73WVGN JVUMBERS
(i9.
PLCA.X7SCONTROL P~EnjRs
(O:semi-closed, 1: closed)
.“” bit 5:
((k
bit 6 Position feedback polarity
E;;;]
positive, k negative)
bit Z Absolute position detection function
.“”
:-
84 RNG 1-1OOO
Position detector ~ RNG
Encoder 30#0 pfr 12
OSJ35K-6-8-1O8 5000ph 20
0AER5K-IX-3-8-108
OSI%K-13T-3-9.S2-O
OAER.5K-lX-EI’-3-9.S2-O
OAER2SK.IX. 3.8.108 25003pfr 100
Linearscaleinductsyn PITXIU
Scale rmotution (v)
‘Wins =
-323-
APPENDIX 6. CORRESPONDENCE T~LES OF DATA SEIT’NG N NUM..ERS
6.9.PLC AXIS’ CONTROL P~ETERS
nter-
mposition judgement
94
alue
word 3-32767 ,olation
nit
L
80
83 ;1
100 2
200 3
300 4
“Normally o“
I PID Speed 100P delay compensation
O:Does not opernte
,
E Operates
IND When using inductsyn + A/D converter
n
n DIR Set
-324-
APPENDIX 6. CORRESPONDENCE OF DATA SE77WVGN NUMBERS
ti9. PLCAXXS CtWTROL P~Enms
~m
112 Reference point position 2 words 0- *99999999
(l&oinch)
116 Soft limit area (upper limit) 2 words O--* 99999999X2 Interpola.
tion unit
120 Soft limit area (lower limit) 2 words O-A 99999999X2 lnte~la-
tion unit
-325
APPENDLY 6. CORRESPONDENCE T~LES OF DATA SElllVG N .NVXIBERS
t510.AXXS-COMMON P~ETER ADDIIWIWiL AREA
I
2 Not used
8-digit bit 0
3 Machinebit parameters designation bit 1:
(Leading zeros bit Z
or cannot be bit 3 Absolute position initial set
omitted.) bit k
bit Oor 1 for each bit 5:
[ bit bit 6
bit z
nO:Bit “n”-OFl
Or
[ nl: Bit “n”+
ON,
(n:o-7)
-326-
,,
P number 14 (Machine)
I i
H=--F-
7 Not used Byte
1
-32’7-
,,,,,,,,,,
APPEii!DIX 6. CORRESPONDENCE TMLES OF DATA SETTING N NUiWBE~
6.11.AXE-INDEPENDENT P~ETER ADD~ONXL AREA
-328-
APPENDIX 7. SUPPLEMENTARY DETAILS ON INCOMPLETE
THREAD AREAS ARISING D URIiVG THREAD CtJTTING
-
F
82 61
— ———— ——-— ———.— —,
~ Command dirmtion
6, : Approach distance
62 :’ Area where thread is incomplete during chamfering
1) Approach distan~ [dl]
When Ts is not equal to zero:
-— tl .— t]
Tp: e TP –Ts’ e TP
al =+tl” ~ (Ts~TP- ) (mm)
TP– Ts
‘Where F :Thread cutting speed (mmhn.in)
T S :A~]erationld~eration time ~~stant (s=)
T p :Position loop time constant (see)
t 1 :Time taken until pitch error reaches allowable accuracy “a” (w)
If “p” is the pitch and “AP>’ is the pitch error, then allowable accuracy “a” will be
tl tl
.— .—
1
a= (Tpe TP –Tse Ts )
TP– Ts
.
APPENDIX 7. SUPPLEMENTARY DETAILS ON INCOMPLETE
THREAD AREAS ARISING DURING THREAD CUTTING
tl
.—
ae = TP
Since the calculation of approach distance al is a complicated prowxlurq 61 is normally determined from the chart
on the next page. This chart is used as foliows.
1) Find the position on the P axis scale represented by the thread grade and pitch ~~ and follow the
perpendicular (1) drawn upward to find the point where it intersects with the curve of ac-
celeration/deceleration time constant ~s].
2) Follow horizontal line (2) and find where it intersects with the thread cutting speed ~].
3) Follow perpendicular (3) and find approach distance [61]on the scale at the point where it intersects
with the & axis.
I
I P
P
NOTE 1. The chart on the next page applies when the position loop time ecmstant Tp is 3Gns.
.,
..-
:330-’
APPENDIX 7. SUPPLEMENTARY DETAILS UN INCOMPLETE
THREAD AREAS ARISING DURING THREAD CUTTING
L4 m ii
-331-
APPENDIX 7. SUPPLEMENTAL Y DETAILS ON INCOMPLETE
THREAD AREAS ARISING DURING THREAD CUTTING
. .-
Where F : Thread cutting speed (mm/min)
T s : Acceleration/deceleration time constant (see)
T P : position loop time constant (see)
NOTJ% 2, When proceeding with ehamfa”ng during a thread-cutting cyclq the length of the area where
the thread is incomplete is equivalent to the value produced by adding 62 determined by the
above formula to the chamfering pitch set by parameter.
1 .
—a
o 1 2 3 4 5
I
50 100 150 200 inch/rnin
,. . . Thread-cutting speed l?
-332- i ‘
APPENDIX 8. LIST OF ALARMS
-333-
,,,,,,,
APPENDIX 8. LIST OF ALARMS
-334-’
APPEND,, 8. LIST OF ALARMS
-335-
APPENDIX 8. LIST OF ALARMS
-336-
APPENDIX 8. LIST OF ALARMS
-337-
APPENDIX 8. LIST OF ALARMS
-338-
APPENDIX 8. LIST OF ALARMS
-340 -
APPENDLX 8. LIST OF ALARMS
-341-’
,,,,—
-342-
APPEND.R 8. LIST OF ALARMS
-343-
b ,,,!’ ,,,