Before initial operation, read these instructions thoroughly, and retain for future reference
YASMWA
TOE-C843-12,30
H
Page 2
This manual is primarily intended with 9“ CRT character display to
give operators instructions for YASNAC J50M programming, operation and maintenance.
For operation of 14“ CRT character display
the instruction manual
(TOE-C843-8.31
(ACGC,
optional), refer to
) separately provided.
This manual applies to the basic and optional features of
YASNAC
J50M.
The optional features are marked with a dagger.
For the specifications of your YASNAC J50M, refer to the machine
tool builder’s manual.
YASNAC J50M Operator’s Panel
with 9“ CRT Character Display
When reading this manual keep in mind that the
information contained herein does not cover every
possible contingency which might be met during
the operation. Any operation not described in
this manual should not be attempted with the
control.
The functions and performance as NC machine are
determined by a combination of machine and the
NC control. For operation of your NC machine,
the machine tool builder’s manual shall take priority over this manual.
The illustration of machine control station should be
used for your reference in understanding the function. For detailed array of operator’s devices and
names, refer to machine tool builder’s manual.
2. PROGRAMMING
2.1
INPUT FORMAT
2.1.1 INPUT FORMAT
A variable block format conforming to JIS#B
6313 is used for
YASNAC
J50M.
Unless otherwise specified, the following rules
apply to the description of programming
pies shown in this manual.
Absolute Zero Point:
Reference Zero Point
(Return to reference
rnatic
return) :
Dimensions : in mm
Table Z. 1
following the address characters in Table 2.1
indicate the programmable number of digits.
shows
+
zero by manual and auto-
e
the input format. Numerals
exam-
EXAMPLE
x
Note:
A decimal point should be omitted in actual programming,
decimal points, refer to
PROGRAMMING” on page 5.
The leading zeros can be suppressed for all
dress
but all minus signs must be programmed.
In the manual, EOB (end of block) code in a program example is represented by a semicolon ( ; ) .
In actual programming, CR
(1S0 code) should be used instead of the semi-
colon ( ; ) .
# Japanese Industrial Standard
when you make a program including
code;.
+
Plus signs need not be programmed,
5
2.1.3. “ DECIMAL
(EIA
3
code) or LF/NL
pOINT
ad-
Down to third decimal place
Five digits of integerinches
Sign
Address character: X
. Metric input format
0N4G3a+53F5S2WM3D
. Inch input format
0N4G3
Notes:
I!ail
.
. P , Q , R and L are omitted in the above format
because they are used for various meanings.
a+44F31 S2TZM3D(H)2
represents X , Y , Z,I> J or
in mm
or
1
(H)2B3;
K.
B3;
Page 10
2.1.1 INPUT FORMAT (Cent’d)
Table 2.1 Input Format
No.
1
Program No.
2
Sequence No.N4N4
3
G function
Cordinate
4
Word
5
Feed /rein
6
Feed/rein 1/10
7
S-function,
8
T- function
M–f unction
9
Tool Offset No.H20r D2
10
Address
Linear axis
Rotary
ti
Metric Output
Metric Input
a+53
b+53
F50
F51
Inch Input
0404
G3
a+44
b+53
F31
F32
S2
S5
T2
T4
M3
Inch Input
Metric Input Inch Input
G3B
a+53
b+53
F50
F51
H2 or D2
a+44
b+53
F41
F42
S2
S5
T2
T4o
M3
B: Basic
O: Optional
B
B
B
o
B
B
B
o
B
B
B
B-f unction
11
12
DwellP53P53
Program No. d&gnation
13
Sequence No. dkgnaticm
14
15
No. of repetitions
B3
P4P4
P4
L8L8
B3
P4
o
B
B
B
B
Page 11
2.1.2 ADDRESS AND FUNCTION CHARACTERS
Address characters and their meanings are shown in Table 2.2.
Table 2.2 Address Characters
Address
Characters
AAdditional rotary axis parallel to X-axis
B
c
D
E
F
G
H
I
J
K
LNumber of repetitions
M
N
~rogram
P
I
Additional rotary axis parallel to Y-axis
Additional rotary axis parallel to Z-axis
Tool radius offset number
User macro character
Feedrate
I Preparat
1
Tool length offset number
X-coordinate of arc center
Radius for circle cutting
Y-coordinate of arc center
Cutting depth for circle cutting
Z-coordinate arc center
]
Miscellaneous functions
I
Sequence number
ory function
‘umber
Dwell time, Program No. and sequence No.
designation in subprogram
Meanings
B:
Basic
O: Optional
o
I
I
IB
IB
I
o
o
B,O
o
B
B, O
B
B
o
B,O
B
B, O
B
B
o
Q
R
s
T
uAdditional linear axis parallel to X-axis
Depth of cut,
Point R for canned cycles
Radius designation of a circular arc
Spindle-speed function
I
Tool function
I
shift of canned cycles
I
vAdditional linear axis parallel to Y-axis
w
x
Y
z
I
Additional linear axis parallel to Z-axiso
X-coordinate
Y-coordinate
Z-coordinate
I
o
O, B
{
I
B
B
o
I
I
o
B
B
B
3
Page 12
2.1.2 ADDRESS AND FUNCTION CHARACTERS (Cent’d)
Table 2.3 Function Characters
EIA Code
Blank
Bs
Tab
CR
SPSPSpace
ER
Uc
LC
2-4-5 bits
2-4-7 bits
•!-
oto9
ISO Code
I
Nti
I
BS I Disregarded
1
HT I Disregarded
I
LF
CRDisregarded
I
I
I
oto9
I
/NL
% I
Rewind stop
( \
Control
)
+
- I Minus sign, User macro operator
Meanings
Error in significant data area in EIA
Disregarded in ISO
End of Block
Upper shift
Lower shift
out
(Comment start)
Control in (Comment end)
Disregarded, User macro operator
Numerals
(EOB)
Remarks
EIA :
Special
code
Ato
atoz
11
Del I
DEL ( Disregarded (Including
Z
/ \ Optional
.
Parameter
setting
o
Notes:
Characters other than the above cause error in significant data area.
1.
Information between Control Out and Control In is ignored as insignificant data.
2.
3.
1
#
*
—
—
[
1
$
@
?1
Tape code (EIA or 1S0) can be switched by setting.
*
—
—
[
1
$
@
? I User macro operator
Address characters, User macro operator
block
skip
All
Mark)
Decimal point
I
Sharp (Variable)
Astrisk (Multiplication operator)
Equal mark
Left bracket
Right bracket
User macro operator
User macro operator
User macro operator
EIA:
Special
code
4
Page 13
2.1.3 DECIMAL POINT PROGRAMMING
Numerals containing a decimal point may be used
as the dimensional data of addresses related to
coordinates (distance) , time and speed.
Decimal points can be used in the following address words.
Coordinate words:X, Y, Z, I, J, K, A, B,C,
U, V, W, Q, R
Time word: P
Feed rate word: F
EXAMPLE
[ mm]
X15.X15.000 mm
Y20.5
(G94)F25.6
G04P1. —
— Y20. 500 mm
– F25. O mm/min or
F4.0)
(for
Dwell 1.000 sec
[inch]
x15.0000 inches
or
Y20.
or
5000 inches
F25.6
inches/rein
(for
F3.1)
M code
M 92
M93
Note:When power is applied or the control is
reset, the control is in the state of M code
marked with
Inter-block stoppage can be eliminated when the
program is so made that the automatic operation
time of advance reading of 4 blocks is longer than
processing time of advance reading of next 4
blocks of data.
Note :
Advance reading is not made for every 4 blocks
but is always ready to be made up to 4 blocks in
M93 mode.
2.: MPBRE:GRAM
I
v
Multi-active register off
Multi-active register on
~.
NUMBER AND SEQUENCE
Meaning
Normally, when data without a decimal point is
‘t lit
input, the control regards
(or 0.0001 inches, or 0.001 deg.).
as O. 001 mm
2.1.4 LABEL SKIP FUNCTION
In the cases named below,
becomes effective , and LSK is displayed on the
CRT.
. When the power supply is turned on.
. When the RESET key is pushed.
While the label skip function is effective, all data
on the punched tape up to the first EOB code are
neglected. When LSK is displayed on the CRT
the MEM (memory) or EDIT (editing) mode , it indicates the presence of a pointer at the leading
end of the part program.
BUFFER REGISTER
2.1.5
During normal operation ,
read in advance and compensation computing is
made for the follow-on operation.
In the tool radius compensation C
blocks of data or up to 4 blocks of data are read
in advance and compensation computing required
for the next operation is executed. One block can
contain up to 128 characters including EOB .
2.1.6 MULTI-ACTIVE REGISTERS
For the portion of part programs sandwiched in
between M93 and M92, up to
read in advance.
the label skip function
oxe
block of data is
+
mode, two
t
4
blocks of data are
in
2.2.1 PROGRAM NUMBER
Program numbers may be prefixed to programs
for the purpose of program identification.
Up to 4 digits may be written after an address
character
program numbers can be registered in the control, and up to 199 or 999 can be registered
employing an option.
One program begins with a program number, and
ends with M02,
placed at the ends of main programs, and M99 is
placed at the ends of subprograms.
PROGRAM WITH
PROGRAM NO. 10
ER (or
the top and end of the program.
Notes :
The blocks for optional block skip such as
/M02;
of programs .
. To make the reading of M02, M30, and M99 in-
effective as a program end, and to make the
succeeding ER
program ends is possible with a parameter
change. (
[lo!!
as program numbers.
M30
or M99.
%
at ISO code) is punched on the tape at
/M99;
, /M30; ,
#6021 DO)
are not regarded as ends
(EIA)
or % (I SO) as a sign of
M02
PROGRAM WITH
PROGRAM NO. 1234
and
up to 99
M30
are
5
Page 14
2.2.2 SEQUENCE NUMBER
2.2.3 OPTIONAL BLOCK SKIP (/1 - /9)
t
Integers consisting of up to 4 digits may be writ-
N
ten following an address character
numbers.
Sequence numbers are reference numbers for
blocks, and do not have any influence on the
meaning and sequence of machining processes.
Therefore, they may be sequential, non-sequen-
tial, and duplicated numbers, and also not using
any sequence number is also possible. Generally,
sequential numbers are convenient as sequence
numbers.
When searching for sequence numbers, be sure
to search or
hand.
Notes :
. When 5 or more digits are written as
number, only the digits up to the 4th from the
trailing end are effective.
. When two or more blocks have the same sequence
number, only one is retrieved and read, and
no more searching is performed.
Blocks without sequence numbers can also be
searched for with respect to the address data
contained in the blocks.
s~ecify p~ogram
numbers
as sequence
before-
a sequence
Those blocks
ed are neglected between In and the end of that
block, when the external optional block skip
switch for that number “n” is on.
EXAMPLE
/2
When the switch for
neglected,
block is read as if
N 1234
With “ 1“ ,
Notes :
The optional block skipping process is executed
while the blocks are read into the buffer
If the blocks have been read , subsequent
ter.
switching on is ineffective to skip the blocks.
While reading or punching out programs, this
function is ineffective.
The optional block skip
function.
in which “ /n” (n = 1 - 9) is includ-
N1234
GO1
X1OO /3 Y20();
/2
and when the switch for
GO1
11 1!!
may be omitted.
is on , the entire block is
XIOO; .
/2
- /9 is an option
/3
is on , this
resis–
2.3 COORDINATE WORD
Generally,
tions and commands for setting coordinate systems are called coordinate words, and coordinate
words consist of address characters for desired
axes and numerals representing dimensions of
directions.
2.3.1 COORDINATE WORD
commands for movements in axis direc-
Table 2.4 Coordinate Words
Address
Main axes
4th axis
Circular
interpolation
auxiliary
data
7
x,
Y, z
A,B,
or
v, w
u,
Q
R
I, J, K
C
Position or distance in X, Y or Z coordinate
direction.
These coordinate words are treated as commands
in the directions of the 4th axis.
A ,
Circle in
feed in Z-axis direction .
Refer to 2. 9.5 HELICAL
INTERPOLATION .
X. Y and Z
(G02,G03)” on page 22.
CONTROLt
Four-axis Control
Simultaneously
controllable axes
X, Y, Z, and
X, Y, Z , and
Two axes,
Xdl/Ya(ll or
Two axes: X and Y
Three axes :
plane and linear feed in
axis direction.
2. 9.5 HELICAL INTERPO-
LATION on page 27.
Four axes, X, Y, Z, or
XY,
(see Note. )
XY-plane
ail’ axes
dl’axes
(21~3)
XY, Yz,
ZC4(1)
circle in
YZ
or ZX
and linear
Zx,
XY
Refer tc
~ (ll.
-
Z-
(1) The
(2) Circular arc plane is determined according to
(3) For circular interpolation axis
2.3.4 4TH
An additional 4th axis can be incorporated. In
this manual, the 4th axis is referred to as
axis, and represents any of the 6 axes, A, B,
U, V and W.
#6023.
2.3.4.1 ROTARY AXIS (A, B OR C AXIS)
The rotary axis is defined as follows.
The unit of output increment and input increment
for B-axis is “deg.
linear axes.For the other respects, the treatments are the same as those in mm.
system)
Even when inch system is selected by parameter,
the values for the B- axis remains
The control does not convert B-axis coordinate
commands.
converted. (Refer to 2.9.3. “ LINEAR INTERPOLATION”)
2.3.4.2 LINEAR AXIS (U, V OR W AXIS)
The linear axes are defined as follows.
~
a axis represents any one of axes A, B, C,
U, V or W, selected as the 4th axis.
the currently effective G codes for plane desig-
nation
2.9.4, “ CIRCULAR INTERPOLATION
on page 22.
linear axes U, V , and W should be designated.
(G17 to G19) . For details, refer to
(G02,G03)”
a, any one of
AXIS CONTROLt
a-
by
Address. is specified
Table 2.7 Rotary Axes for 4th
MS
Control Table
Rotary axis
A axis
B axisRotary axis parallel to Y-axis
C axis
Note:
Linear axis
I
I
Rotary axis parallel to X-axis
Rotary axis parallel to Z-axis
In this manual, any one of the three
axes, A, B and C, is referred to as
B-axis .
‘1
instead of “mm” used with
However, feedrate command F is
Table 2.8 Linear Axes
I
Linear axis parallel to X-axis
Linear axis
Linear axis parallel to Z-axis
Definition
Definition
parallel
parameter
(Metric
“deg. “ unit.
to Y-axis
C,
Note:
In this manual, linear axes either U, V
or W are indicated by c-axis.
7
Page 16
2.3.4.2 LINEAR AXIS (U, V OR W AXIS) (Cent’d)
The unit output increment and input increment for
C-axis is the same as the other linear axes, X, Y
and Z. No discrimination is necessary.
When inch system is selected by parameter, input
values must be in inches for C–axis.
Y
I
v
B
c
)1
—u
-x
c
z
Fig. 2.1 4th Axis in Right-hand
Coordinate System
LEAST INPUT INCREMENT AND LEAST OUTPUT
2.3.5
A
INCREMENT
2.3.5.1 LEAST INPUT INCREMENT
The minimum input units that can be commanded
by punched tape or MDI are shown in Table
2.9.
Table 2.9 Least Input Increment
(#6006D5 = “O’)
Linear Axis
Rotary
Axis?
Tool offset value must always
mm (or 0.0001 inch, or 0.001
is possible in these units.
In 0.01 mm increment system, the following op-
in
eration must be made
. Write operation in
. Programming for operation in MEMORY
~
Program editing operation in EDT
Notes :
If NC programs set by O. 001 mm is fed into or stored in an equipment set by 0.01 mm
increment, the machine will move ten times
the intended dimensions.
If the increment system is switched when the
contents of NC tape are stored in memory, the
machine will move by ten times or one tenth of
the commanded dimensions .
When the stored program is punched out on the
tape-’ ,
stored” regardless of switching of the
ment system.
2.3.5.2 LEAST OUTPUT INCREMENT
Least output increment is the minimum unit of tool
motion.
by parameter
Metric output
Inch output
the stored figures are punched out
Selection of metric or inch output is made
(#6007D3) setting.
Table 2.10
the unit of O. 01 mm.
hfDI mode .
kast
Linear axis
0.001 mm0.001 deg
0.0001 in.
be written in O. 001
deg4. )
, and offset
mode*.
Output Increment
Rotary
0.001 deg
mode’.
“as
incre–
axis+
Metric input
Inch input
Least input increment times ten can be set by
setting parameter #6006D5 at
Note : Selection of metric system or inch system is made
by setting
(#6001DO).
O. 001 mm
0.0001 in
“
Input Increment X 1
(#6006D5=
“I)
1.
0.001 deg
O. 001 deg
“
I)
MAXIMUM PROGRAMMABLE DIMENSIONS
2.3.6
Maximum programmable dimensions of move com-
mand are shown below.
Table 2.11 Maximum Programmable Dimensions
Linear axis
I
Metric
output
Inch
output
incrc,mental programming , input values must
In
not exceed the maximum programmable value.
In absolute programming , move amount of each
axis must not
va!ue
Metric input
f
Inch input
1
Metric input
rnput
Inch
exceed
t99999.
999 mm
t3937.
0078 in.
+99999.
999 mm
*9999.9999 in.
the maximum programmable
Rotary
!
*99999.999 deg
t99999.
+99999.
t99999.
axis+
999 deg
999 deg
999 deg
8
Page 17
Note :The machine may not function properly if
a move command over the maximum programmable
value is given The above maximum program-
apply
mable values also
dresses I, J, K, R, Q
mand addresses X , Y, Z ,
The accumulative value must not exceed the maximum accumulative values shown below .
Table 2.12 Maximum Cumulative values
to distance command ad-
in addition to move com-
a.
Table 2.13 Programmable Range of Feedrate
(Feed/rein) range
F1.-F3OOOO.O mm/min
Metric
output
Inch
output
Metric input
Inch input
Metric input
inDut
Inch
F50
FO.1-F1181.1O in. /rein
F31
F1.-F762OO.
F50
FO. 1-3000.00 in. /rein
F31
Feedrate
mm/min
Linear axis
Metric input
Inch input
Listed input values do not depend on metric/
inch output system.
f
99999.999 mm
f
9999.9999 in.
Rotary
t
99999.999 deg
f
99999.999 deg
axis+
2.4 TRAVERSE AND FEED FUNCTIONS
2.4.1 RAPID TRAVERSE RATE
2. 4.1.1 RAPID TRAVERSE RATE
The rapid traverse motion is used for the motion
(GOO)
for the Positioning
the Manual Rapid Traverse (RAPID) . The traverse rates differ among the axes since they are
dependent on the machine specification and are
determined by the machine tool builders. The
rapid traverse rates determined by the machine
are set by parameters in advance for individual
axes.
in two or three axial directions simultaneously ,
motions in these axial directions are independent
of each other, and
different times among these motions. Therefore,
motion paths are normally not straight.
For override rapid traverse rates , Fo, 25%, 50%
and 100% of the basic rapid traverse rates , are
available.
parameter ( #6231) .
2. 4.1.2 SETTING RANGE OF RAPID TRAVERSE
RATE
For each axis, rapid traverse rates can be set
at some suitable multiple of O. 001
min ) .
The maximum programmable rapid traverse rate is
30,000
have their own optimum rapid traverse rates. Refer to
the manual provided by the machine tool builder.
2.4.2
With five digits following an address character F,
tool feedrates per minute (mm /rein) are programmed.
The programmable range of feedrates is as follows.
When the tool is moved in rapid traverse
Fo is a constant feed rate set by a
mm/min. However, respective machine tools
FEEDRATE (F-FUNCTION)
and for the motion for
the end points are reached at
mm/min
(or deg /
The maximum feedrate is subject to the perform-
ance of the servo system and the machine system.
When the maximum feedrate set by the servo or
machine system is below the maximum programmable feedrate given above, the former is set by
a parameter ( #6228) , and whenever feedrates
“above the set maximum limit are commanded, the
feedrate is clamped at the set maximum value.
F commands for linear and circular interpolations
involving motions in simultaneously controlled
two axial directions specify feedrates in the direc-
tion tangential to the motion path.
91
EXAMPLE G
GO1 X40.
With this command,
F= 500={’
(mm/min)
G03
With this command,
F = 200 =
(mm/min)
(incremental)
Y30.
!
+Y
/
1
X.
. . . Y. . . .
~~”
CENTER
+Y
I
-
F500
~
Y component
500 nun/rein
-—
J
400
mm/min
Fig. 2.2
1..
. F200
\
.,200
I
I.
I
‘,
l\
mm/min
\
7
d
+x
Fig. 2.3
X component
mmim
fY
in
, 300
.J
fx
9
Page 18
2.4.2
FEEDRATE (F-FUNCTION) (Cent’d)
F commands for linear interpolations involving
motions in simultaneously controlled three axial
directions specify feedrates also in the direction
tangential to the motion path.
EXAMPLE
X..
With GO1
F = 400 = fX2 + fY2 +
(mm/min)
. Y.. .
+Y
/
I
2..
. F400 ;
fz2
END POINT
Table 2.14 Programmable Range
of 1/10 Feedrate
Format
Metric
output
Inch
output
. When parameter #6020 DO or
the feedrate range returns to normal.
Metric input
I
~nchinput ] F32IFO.01-FI.IBI.10 in./min
Metric input
Inch input
2.4.4 F 1-DIGIT PROGRAMMING
(1) Specification of a value 1 to 9 that follows
F selects the corresponding preset feedrate.
F51
FO.
F51
FO.
F32
F0.01-F3000.00 in. /rein
t
Feedrate
(Feed/rein) range
1-F3000.O
1-F76200.O
D1
is set to “O, ”
mm/min
mm/min
(2) Set the feedrate of each of F1 to F9 to the
setting number shown in Table 2.15 (a).
—— —____
/
+2
Fig.
2.4
F commands for linear interpolations involving
motions in simultaneously controlled four axial
directions specify feedrates also in the direction
tangential to the motion path.
fx2
(mm/min) =
F
Notes :
. If FO is programmed, it is regarded as a data
error. (alarm code “030)
. Do not program F commands with minus numerals,
otherwise correct operation is not guaranteed.
EXAMPLE
F-250 ; . . . . . . . . wrong
2.4.3
FEEDRATE 1/1
The feedrate programmed by F commands can be
converted to 1
ting as follows.
. When parameter #6020
the feedrates range becomes as shown below.
/10-th value with a parameter set-
+ fy2 +
O
DO
fz2
+ fa2
or D1 is set to “ 1, “
(3) By operating the manual pulse generator
F1-DIGIT
when
digit command currently specified may be increased or decreased.Set the increment or decrement value per pulse
parameters listed in Table 2.15 (b).
As a result of this operation, the contents of the
setting number of the F1-digit feedrate are
changed.
(4) Upper Limit of Feedrate
Set the maximum feedrate of
to the following parameter. If a value greater
than the usual maximum feedrate (the contents
of #6228) is set, it is governed by the contents
of #6228.
switch is on, the feedrate of Fl -
(F1-digit
Table 2.15 (a) F Command and
Setting No.
F command
F4
F5
F6
F7
FE
F9
Setting No. for
F1-digit
I
I
I
multiply) to the
F1-digit
designation
speed
#6564
#6565
#6566
#6567
#6568
#6569
10
Setting “ 1“ =
0.1
in. /rein or 0.01 in. /rein
Page 19
Table 2.15 (b) F Command and
Parameter No.
F
command
F1
F5
F6
“ 1“ =
Setting
Table 2.15 (c) Parameter No. for
Maximum Feedrate
Parameter No.
#6226
#6227
Notes
:
a.
When this feature is installed, the specifying
1 to 9 mm /rein by the usual F function is not al-
lowed.
usually.
Specifying
Parameter No. for
F1-digit
I
I
I
I
O. 1 mm]minlpulse
Meaning
I
Max speed of F1 to F4
Max speed of F5 to F9
mtitiply
#6141
#6145
#6146
10 mm /rein or more is allowed
b. If FO is specified, error “ 030”’ will be caused.
c. When
run is assumed.
d.
ride feature is invalid.
For
F1-digit
DRY
RUN switch is on, the rate of dry
specification, the feedrate over-
e. The feedrate stored in memory is retained
after the power is turned off.
For the
f.
var]able
command of micro-program
F l-digit command is possible.
2.4.5 AUTOMATIC ACCELERATION AND DECELERATION
Acceleration and deceleration for rapid
The 2-step linear acceleration/deceleration can be speci-
fied shown in Fig. 2.5.
(GOO)
TIME
_
Fig. 2.5
Rapid traverse rate and acceleration deceleration
constant of rapid traverse rate can be set by
parameter. (#6280 to #6301)
2.4.5.2 ACCELERATION /DECELERATION OF
FEEDRATE
Automatic acceleration and deceleration of feed
GO1
motion (
Feedrate time constants and feedrate bias are
set by parameters. During tapping, another time
constants and bias other than for usual feedrate
can be set by parameters (#6406 -#6434) .
- G03) are in the exponential mode.
Fig. 2.6 Exponential acceleration
deceleration
Note:
The automatic acceleration /deceleration param-
eters are set to the optimum values for the respective machines.
unless this is required for special purposes.
Do not change the setting
2.5 SPINDLE-SPEED FUNCTION (S-FUNCTION)
2.5.1 S 2-DIGIT PROGRAMMING
The spindle speed is specified by two digits following the address S
For each S code and its corresponding spindle
speed
manual.
When a move command and an S code are issued in the
same block, whether the S command is executed together with the move command or after the completion of tool
move depends on the machine tool builder. Refer to the
machine tool builder’s manual.
S codes are modal, remaining effective, when
once commanded, until next S code is commanded.
If the spindle is stopped by M05 (spindle stop)
command, the S command in the control is kept.
(r/rnin), refer to the machine
(S00 to S99) .
tool builder! ~
11
Page 20
2.5.1 S 2-DIGIT PROGRAMMING (Cent’d)
EXAMPLE
COO S11 M03 ;
. . . S command
Spindle CW
x..
Y.. . z.. . ;
GO1
Z.. . F.. . ;
‘1
S11: Effective
1
GOO x.. .
Y.. . Z.. . M05 ; Spindle stop
M03 ;
x.. .
Y.. . z.. . ;
GO1
Z.. . F.. . ;
S22 ;
x.. .
Y.. . F.. . ;
S11: Effective
1
S22: Effective
1
Note : The two-digit BCD output is sent 10 the machine
when S two-digit command is issued.
EXAMPLE
S 1000 M03 ;
s
I
1000
FM
START
THE
BLOCK
SPEED
rein-l s~~cH~~~Iz$TIo~
COMPLETION OF
COWND
0?
Fig. 2.7
2.6 TOOL FUNCTION (T-FUNCTION)
2.6.1 T 2-DIGIT PROGRAMMING
Two digits, following the address T , specify the
tool number.
Leading zeros may be omitted.
2.5.2 S 5-DIGIT PROGRAMMING
With five digits written after an address character
ml—ll—llll’’l),
S(S
commanded.
The programmed speeds become effective upon
the inputting of an S-command-comple tion-inputsignal (
When an S command is programmed in the same
block with
(spindle reverse run) ,
block starts only after the spindle speed reaches
the level specified by the S command, in most
cases.However, for exact behavior of the machine tool under consideration, refer to the machine tool
The S commands are modal, and when it is programmed once,
command is programmed.
is stopped by M05, the S command remains effective.
again with an M03 (or M04) , the spindle runs at
the speed specified by the S command.
When the spindle speed is to be changed by a
new S command after it is started with an M03 or
M04, attention must be paid to the selected spindle speed range.
SFIN)
hI03
builderls
Therefore, when the spindle starts
spindle speeds (rein-l) are directly
,
(spindle forward run) or M04
the execution of the next
manual.
it remains effective until another
Even when the spindle
Tan
I
I
The figures used for the designation of tool num-
ber are determined by the machine. Refer to
the machine tool builder’s manual.
When a move command and a T code are issued
simultaneously ,
the two commands are executed simultaneously,
or
the T command is executed upon completion of
the execution of the move command,
depending on the design of the machine.
For this, refer to the machine builder’s manual.
T codes are modal, and therefore, once they
are given , they remain effective until another
T command is given.
T code commands are generally for making
automatic tool changers
tool number to be used next. Therefore, they
can be given without regard to the G, H “or D
codes which are for offsetting for the length
or radius of the tool currently in use.
Tool number
(ATC)
to select the
Notes :
~
The lower limit of programmable S commands
(SO and other S commands near O)
by the spindle motor of the machine tool. Refer
to the machine tool builder’s manual.
program minus values as S commands.
, When the control is equipped with the S 5-digit
command function ,
is possible.That is, override speeds between
50 and 120% of the commanded spindle speed
can be obtained at intervals of 10%.
spindle speed overriding
is determined
Do not
12
2.6.2 T 4-DIGIT
Four digits following the address T specifies the
tool number.
Leading zeros may be omitted.
PROGRAMMING
L Tool number
This tool code is the same as the T 2-digit codes,
except for the increased number of digits.
Page 21
2.7 TOOL COMPENSATION
2.7.1 OUTLINE OF TOOL COMPENSATION
For the procedures of storing values into memory, refer
to 4.3.5.
SET AND WORK
“DISPLAYING AND WRITING OF TOOL OFF-
OFFS~
on page 144.
The tool compensation function is in the following
three modes.
. Tool length compensation
This function is for compensating the differences
in tool length, and is effective in the Z axis direction,Specified length compensation becomes
effective from the block in which G43 or G44 is
programmed together with an H code. It is
cancelled
. Tool position offset ( for simple compensation
for tool radius)
This function is for compensating for errors in
machined dimensions to be introduced by the radius
of tools. It is effective in the X, Y, and Z (4th t ) axis
directions.
G45-G48 is programmed together.
. Tool radius compensation C
for tool radius effects with complicated machining contours)
This function is for compensating for the tool
radius effect with any given machining contours.
It is effective in X-Y , Y-Z, and Z-X planes.
It becomes effective from the moment
G42 is commanded together with a D code, and
is
Not
e :
tions, refer to
(G-FUNCTION)”.
2.7.2 TOOL OFFSET MEMORY
For the three groups of offsets, all the necessary
offset values must be stored in memory before-
hand.
The following number of offset values can be
stored in the tool offset memory.
with HOO or G49.
It is effective only for the block in which
4
(for compensating
cancelled
by G40.
For details of these compensations func-
2.9,
“PREPARATORY FUNCTION
G41
, or
2.7.3 H- AND D-FUNCTION (H, D CODES)
Two or
D , specify tool offset numbers.
The tool offset numbers 01 through 99 directly
correspond to the
bers.
ignated, the corresponding g offset values stored
in the offset memories will be used to offset the
tools .
Tool offset numbers 00 (HOO or DOO) have differ-
ent meanings depending on the respective offset
functions.For details, refer to the descriptions
on the respective G functions.
H- and D-codes must be used properly according
to their functions.
The tool offset numbers 01 through
used freely in combination with the both H and
D codes.
threet
digits, following the address H or
~
Tool offset
number
~
99 offset-value memory num-
That is, when certain numbers are des-
Code
H code
D code
I
I
Tool length offset
1
Tool position offset, Tool radius
compensation
Function
99 can be
Offset Value Storage
I
Basic
t Optional
The setting range of offset values is as follows.
Metric input
Inch input
Listed input values do not depend on metric/
input output system.
I
I
Linear axis
i
999.999 mm
O -
? 99. 9999 inch O- k 999.999 deg
O -
99
1199
Rotary
O-
? 999.999 deg
axist
13
Page 22
2.7.3 H- AND D-FUNCTION (H, D CODES) (Cent’d)
However, for programming ease, it is
ed to divide the numbers into H code part and
D code part.
recommend-
Table 2.16 H or D Code and Offset Number
H codes:
D codes:
HO1 to H30
D31to
D99
offset
method
Tool length offset
Tool position offset
Tool dia. compensation C
com
(Intersection
puting system)
-
G code
G43
G44
G49
G45
G46
G47
G48
G40
G41
G42
2.8 MISCELLANEOUS FUNCTIONS
(M-FUNCTION)
The miscellaneous function is specified with the
M
address
of each M code (MOO
the machine,
to the machine tool builder’s manual for the function of M codes except for the following M codes
concerned with the control.
2.8.1 M CODES FOR STOP (MOO, MO1 , M02,
MOO (Program Stop)
This code, when given in automatic operation
mode, stops the automatic operation after the
commands in the block containing MOO have
been completed and MOO R signal is fed. The
program may be continued
CYCLE START button.
MO1
MO1
stop MOO whenever the OPTIONAL STOP switch
is on.
the
M02 (End-of-Program)
MOZ
in automatic operation
and maximum three digits. The function
to M89) is
except for several M codes.
determined
M30)
by
pressing the
(Optional Stop)
performs the same function as program
When the OPTIONAL STOP switch is off,
hlOl
code is disregarded.
is used at the end of program When
mode , this code stops
by
Refer
given
H or D codeOffset value memory
No.Offset value
01
02
03
04
I
I
96
97
98
99
*
I
the automatic operation after the commands in
the block containing M02 have been completed.
Although the control is reset in most cases,
the details are determined by the machine. Refer to the machine tool builder’s manual.
M30 (End-of-Tape)
M30 is given at the end of tape. When given in
automatic operation mode, this code stops the
automatic operation after the commands in the
block containing M30 have been completed. In
addition, in most cases, the control is reset
and rewinds the memory.
are determined by the machine, refer to the
machine tool builder’s manual.
Notes :
. When MOO, MO1, M02 or M30 is given, it pre-
vents the control from reading ahead the next
block of information.
is fed in addition to the 2-digit BCD output for
codes.
M
. Whether MOO, MO1, M02 or M30 executes spin-
dle stop , coolant off or some other executions,
refer to the machine tool builder’s manual.
M CODES FOR INTERNAL PROCESSING
2.8.2
(M90 TO Ml 99)
M90
through Ml 99 are used only for internal pro-
cessing.
Even when they are programmed ,
external output signal
is sent.
Since the details
The single decoded signal
(BIN and decoded output)
no
14
Page 23
M90t :
M917:
M92t:
M93t:
M94:
M95:
M
M97t:
M98:
M99:
M1OO to 199:Used for enhansed codes
Program interrupt off
Program interrupt on
Multi-active register off
Multi-active register on
Mirror image off
Mirror image on
Tool radius compensation C:
96+:
circular path mode
Tool radius compensation C :
intersection computing mode
Subroutine program call
Subroutine program end
2.8.3 PROGRAM INTERRUPTION ON/OFF
(M91 , M90) t
M93:
During the time from this command to M92, the
control assumes the 4 blocks-advance-reading
mode.
in advance for the following operation.
the program is so made that the operation time
of advance reading of 4 blocks is longer than
processing time of advance reading of next 4
blocks of data.
M92:
This command cancels 4 blocks-advance -reading
mode.
Note :
blocks without move command can be contained( up to
two blocks ) .
cluding the two blocks, may be read in advance.
Namely, up to 4 blocks of data are read
Inter-block stoppage can be eliminated when
In tool radius compensation C mode, the
Under this condition, 6 blocks, in-
The following M codes are used for the program
interruption function .
Program interrupt function OFF
~
Note:
reset, the control is in the state of M code
marked with
.M91
.
2.8.4 MULTI-ACTIVE REGISTERS ON/OFF
(M93,
When power is applied or the control is
~.
P. . . . . . ;
During the time from this command to an M90
command, whenever a program interruption
signal is received, the program under
tion is interrupted (if the machine is in motion,
it is stopped after deceleration) , and the a jump
is made to the program the number of which is
written after the
M90;
With this command, the program interrupt func-
tion is
cancelled.
P .
execu–
M92) t
M code
M 92
Note:
reset, the control is in the state of M code
marked with
Y
Multi-active register OFF
~
Multi-active register ON
M93
I
When power is applied or the control is
~
.
Meaning
MIRROR IMAGE ON/OFF
2.8.5
M code
M94
M95
Note:When power is applied or the control is
reset, the control is in the state of M code
marked
With these codes,
be started and stopped at any desired point in
the program.
made on a single block,
M94 and M95 are modal. When the power supply
is turned on, M94 (OFF) is in effect.
The axis on which mirror image is to be effected is
specified by setting #6000 Do to D3 (or mirror image
axis designation switch). For this procedure, refer to
5.1.25, “MIRROR IMAGE AXIS
on page 171.
When
control the machine in mirror-image fashion,
that is, movements in the specified coordinate
direction will be reversed.
M95
Y
I
I
with-.
mirror image operation can
These commands must always be
is given, the subsequent blocks will
(M95,
M94)
Meaning
Mirror image OFF
Mirror image ON
SELE~OR
I
SWITCH”
&–-
T
\
‘\
‘
//,
~:&OGRAD
F
X-AXIS MIRROR
IMAGE ON
M95
x
Fig. 2.8
15
Page 24
2.8.5 MIRROR IMAGE ON/OFF
With both the absolute and increment move
commands,
obtained.
constitutes the mirror point.
. When
cancelled
image operation must be started and
at the same position.
Notes :
“
When G28 or G30 is used to change tools or for
ending machining processes, make sure to cancel the
mirror image effect by means of M94.
If mirror image effect is not
G30 is given, an error “058” occurs.
the same mirror image effect will be
The block including M95 command
M94
is given , mirror image effect will be
on the subsequent blocks. Mirror
(M95,
M94) (Cent’d)
cancelled
cancelled when G28 or
The mirror image effect is not effective on the
offset movement resulting from the tool length
offset function.
Do not switch the designation of mirror image
axis during operations under M95 (ON) mode,
Displayed current position by POS key in mirror image fashion indicates the actual motion of
Displayed data by COM key show program-
tool .
med commands,
. Program must be made so that mirror image
operation starts and stops at the same position.
If the start position and the stop position are
not the same, movements of the machine after
canceling mirror image will be shifted by the
difference between both positions.
EXAMPLE
X AXIS MIRROR INAGE ON
-—-—-
r
L.—___
/
\
-120
NO1 G92 XO YO ;
N02
-80 \\
\
t
\
\
\
.-
PATH BY
ERRONEOUS
CANCELLING
M95 :
1
1
A’
/
/
-40
–––-90-40
r
loo
STAR
POIN
. . . . .
+Y
PROGRAMMED
20 40
L
t
CORiECT
Mirror image on.
1A
PATH
COWD
60
+x
120
16
N03 G90 GO1 X40.
N04X120. ;
N05
N06X40. ;
N07
N08
N09’
N1O
Nll
Ylr)o. ;
Y40. ;
Xo Yo ;
M94 ;
X20.Y-40. ;
x60. ;
Y40.F300
If “M94 ;“ is programmed here,
+
. . . .
the tool moves on the dotted line.
Correct mirror image off.
Fig.
2.9
“;
Page 25
. Mirror image external input function
(a) Overview
In addition to the conventional mirror image
function, the mirror image execution mode can also
be set when power is turned on, or reset, by
setting the corresponding parameter.
mode is the mirror image execution mode (power on
or reset, ) the parameter can be set to select the
command mirror image at the G28 intermediate point
or not.
(b) How to use the function
(i) Upon power ON or upon reset
O: M94 mode (mirror image off)
#6005,
(ii) Upon power ON, when it is M95 mode (#6005,
D2
#6005,
Note : The specifications are the same as the
conventional specifications, when #6005,
Therefore, turn off mirror image by M94, when
commanding G28, or G29 under this mode.
1!058!1 occurs
D2
is “l.”)
D1
1: M95 mode (mirror image on)
O: Commands mirror image at the
intermediate point
1: Does not command mirror image at
the G28 intermediate point
if not turned
off.
When the
D2
is “O. ”
Error
G28
2.8.6 CIRCULAR PATH MODE ON/OFF ON
TOOL RADIUS COMPENSATION C
M code
7
M 96
M 97
Note:
reset, the control is in the state of M code
marked
In the G41 or G42 tool radius compensation mode,
when M96 is given, the tool moves along a circular
path around a corner with an angle of
In the M97 mode, the tool does not move along a
circular path at the corner, but moves along two
intersecting straight lines intersecting at a calculated
intersecting point shifted from the programmed
contour by the tool radius.
CIRCULAR
Tool radius compensation circular
path ON.
Tool radius compensation circular
path OFF.
(Execution of intersection point)
When power is applied or the control is
withy
.
M96 MODE
(M97,
Meaning
M96) t
18W
or larger.
N97 NODE
(c) Program example
~
Example of commanding mirror image on the G28
intermediate point
Program example (mirror image of X-axis only is
on)
Y
X-AXIS MIRROR .~‘
IMAGE ON
,/”
-\.
I
–
100
Note : When commanding axis designation under the
mirror image mode
ahead by parameter (#61 16) of the set/reset M codes.
I
–40 o
-
100
50
(M95) by m code, stop the look-
REFERENCE POINT
PROGRAM COMMAND
40
100
w
x
‘ATHFEcTIO:F
P
M96 and M97 are modal. When the power is
turned on, M96 takes effect.
M 96 and M97 are effective on the following
move command blocks.
GO1 X.. .OC; C;
(GO1) X.. . Y.. . M96 ;
GOIXO. .Y. ..
M96 (or M97) ;
(GOl)X. .. y...
PROGRAMMED
CONTOUR
Fig. 2.10
FS. . ;
;
*
Effective from
the corner of
these 2 blocks
)
Effective from
the corner of
these 2 blocks
}
17
Page 26
2.8.7 SUBROUTINE PROGRAM (M98, M99)
Format of subroutine program
(M99)
With this function ,
which have been numbered and stored in advance
is made and executed as many times as desired.
The following M codes are used for this function.
P..
I
.
M code
M98
M99
Call of subroutine program
M98
With this command, call of the subroutine pro-
gram with the number specified after P is made
and is executed number of times specified after
When no L code is programmed, the sub-
L.
routine is executed once.
Subroutine programs can be nested up to 4
times.
EXAMPLE
call of subroutine programs
Meaning
Call of subroutine program
Subroutine program end
(M98)
L..
. ;
Subroutine programs are written in the
in g format,
memory in advance.
I
o;
. . . . . . . . . . . . . . .;
. . . . . . . . . . . . . . .;
. . . . . . . . . . . . . . .;
hf99
-
Automatic return command from
gram
M99 ;
At the end of subroutine programs, M99 is
written in a block of its own.
commanded in the subroutine program which
has been called by M98, the execution
main program is automatically restarted at the
block immediately following the M98 block.
and are stored in the part program
. . .
;
I
—
Program No.
Subroutine
—
program end.
subroutine
When M99 is
follow-
of
the
prm
Call of subroutine program and execution of it
are made in the
. Special use of M99
M99 P.. . ;
With this command,
return to the block following the M 98 block after
executing the subroutine program , but returns
to the block with a sequence No. specified by
the P code.
Notes :
If the program number specified by the P code
is not found, this
While a subroutine program is repeated L times,
the number of remaining repetitions may be
seque~ce
0100 ;
NOO1
NO02 h198
NO03
NO04 M98 P200 ; —
NO05
shown below.
Main program
GOO . . . . ;
P200 L3 ; –
..,.
;
. . . . ;
the main program does not
is regarded as an error “041.
Subroutine program
0200 ;
NOO1 ...,
NO02
N050 M99 ;
displayed.
AND wRITING OPERATION .
This function is usable when subroutine pro-
grams are stored in the part program memory.
The main program can either be commanded
from NC tape or the part program memory.
When the nesting of subroutine programs is
attempted more than 4 times, an error state is
caused.
Commanding
“
the execution of the program to the head of the
main program and control endless operation.
;
o..
. ;
For details , refer to
M99; in main prOgram
4.3
DISPLAY
will ‘et~n
18
Page 27
2.8.8 OTHER M CODES
For using M codes,
above,
ual.
refer to the machine tool builder’s man-
Table 2.17
M codeMeaningsRemarks
M03
M04
w
M05
—-
M08
M09
When these M codes are given in the same block together
with move command, whether the M commands are
executed simultaneously or after completion of move
command, are determined by the type of machine. Refer
to the machine tool builder’s manual.
2.8.9 2ND MISCELLANEOUS FUNCTION
(B-FUNCTION)
Three digits following the address B give index
table positions.
The actual index positions corresponding to the
respective B codes depend on the machine tool
builder.For this, refer to the specifications of
the machine tool builder. When a B -function is
given together with a move command in one block,
the B command is executed simultaneously with
the move command, or
. B command is executed after the execution of
the move command,
depending on the design of the machine tool.
For this refer to the specifications of the ma-
chine tool builder.
B codes are modal.
it remains effective until another B-command is
given .
Coolant off
I
t
other than those mentioned
~pical
Examples of
M Codes for Machine
M03 and M04 are
not switchable.
M05 (stop) must
be intermediated
I
I
When one B code is given,
Notes :
B function standard interface is in 3-digit BCD
output .
“
With MDI operation on NC panel, “B” is used to
specify address for B codes. Therefore, when the
control has B-function, the 4th axis control cannot be
added.
2.9 PREPARATORY FUNCTION (G-FUNCTION)
2.9.1 LIST OF G CODES AND GROUPS
An address character G and up to 3 digits following it specify the operation of the block.
Ordinary G codes are either non-modal G codes
marked with * or modal G codes belonging to
groups 01 through 15.
to the division B are included in the basic spe-
cifications:
The G codes belonging to groups 01 through
15 are modal, remaining effective when once
commanded until other G codes in the same
group will be commanded.
The G codes in the * group are non-modal, and
are effective only for the block in which they
are commanded.
The G codes belonging to groups 01 through 15
may be programmed twice or more in the same
block.
same group are programmed, the last appearing G code is effective.
When the RESET key is depressed during the
execution of a tool compensation C
or a canned cycle, they become respectively
G40 or G80 which cancels the programmed commands.
G43, G44, G49 and G45 through G48 belonging
to the * group can be programmed together with
the following G codes in the 01 group in the
same block.
If
of
as G code of 08 group alarm will be caused.
The transition state of the following G codes
can be changed by setting of parameters.
The G codes belonging to the following groups
Incremental command designation
Programming of absolute zero
point
I
Solid tap mode ON
05
Solid tap mode OFF
\
Return to initial point for
canned cycles
10
Return to point R for canned
cvcles
Qql
.
I
Form offset
mode OFF
------
B ,
0: +ti.n.l
10
I
10
Basic
o
B
B
o
o
o
o
o
o
o
0
0
0
0
o
o
0
0
0
0
0
0
0
0
B
?3
B
o
o
o
o
Notes:
The G codes in the *
1.
are effective only for the block in which they
are commanded.
twice or more in a block.
programmed only once in a block of its own.
The codes marked with
2.
selected at power on or reset.
The code marked ~
3.
upon power ON.
group are non-modal, and
They cannot be programmed
is
They must be
1
are automatically
automatically
selected
2.9.2
POSITIONING
GOO
(where a = A, B, C, U, V, or WI
With this command, the tool is sent to the speci-
fied position in rapid traverse motions along the
3 axes ( 5 axes’) simultaneously. If anY Of
coordinate positions is not specified, the machine
does not move along that coordinate axis
The rapid traverse rate for the respective axes
are inherent to the machine tool.
machine tool builder’s manual.
EXAMPLE
GOO is a modal G code belonging to the 01 group.
X... Y... Z... (a
GOO
X40.
z
Error detect OFF
x..
.
G06
With
this
Y..
commancl
are initiated as with
following exceptions.
After the completion of the positioning motion
with G06 block, the program advances to the
next block in the ERROR DETECT OFF mode
(Note) .Therefore, the tool path at the corner
is rounded.
G06 is a non modal G code belonging to the *
group , and therefore, it is effective only in
which
Notes :
it
is programmed.
GOO commands position the tool in the ERROR
DETECT ON mode,
gram advances to the next block only after the
servo
lag pulses are decreased below the per-
missible level,
With this
trol.
of the
workpiece
(GOO,
G06)
T
...)
:
the
Refer to the
Y
4Q
o
positioning
z..
.
Z40. ;
40.
Rapid traverse rate
X
axis:
Y axis: 8
Z axis: 4 mimin
Fig. 2.11
(a t...)
8 m /rein
(G06)
:
x
m/min
Y 40.
.
, the same positioning motions
a GOO command, with the
which means that the pro-
and this is detected by the
con–
command, therefore the corner
is machined sharp .
21
Page 30
2.9.2
POSITIONING (GOO, G06) (Cent’d)
EXAMPLE
. With the ERROR DETECT OFF mode commanded
by G06, the program advances to the next block
immediately after the completion of pulse distribution.
LINEAR INTERPOLATION (GOI
2.9.3
GO1 X.. .Y. .. Z...
a
where
With this command, the tool is moved simultaneously in
the three (four t) axial directions resulting in a linear
motion. When a certain axis is missing in the command,
the tool does not move in the axial direction of that axis.
Feedrate is specified by an F code the feedrate in the
component axial directions are so controlled that the
resultant feedrate becomes the specified feedrate.
The end point can be programmed either in
coordinates or in incremental values with G90 or G91
respectively.(Refer to 2.9.30, “ABSOLUTE
/INCREMENTAL PROGRAMMING
If no F code is given in the block containing the
GO1
an error
= A, B, C, U, V, or W
F=
(where
directions. )
or in preceding blocks, the block constitutes
Fx2 + Fy2 + Fz2 +
Fx, Fy.
“
030. “
(a t...)
are feedrate in the X ,
. .
)
F... ;
Fu2
Y ..-
sbsolute
(G90, G9 l)”).
GO1
X40.
Y40.
Y
40:
o
Z40.
F1OO
;
100
mmlmin
RESULTANT
FEEDRATE
/’0.
z
Ftg. 2.12
Where the optional 4th axis is a rotary axis (A, B or C),
for the same F code, the feedrates in the basic three axis
directions (X, Y and Z), and the rotary axis feedrate are
as indicated.
Table 2.19 Minimum F Command Unit
F-function
Metric
Outpl.lt
Inch
output
Note:
CIRCULAR INTERPOLATION
2.9.4
With the following commands, the tool is controlled
along the specified circular pathes on the XV-, 2X-, or
Metric input
Inch
inp Ut
Metric input
Inch input
Feedrate of linear 4th axis as the same as that of basic three axes.
XY-plane
ZX-plane G18
YZ-plane G19
G 17
F50
F310.1 in. /rein
F50
F310, 1 in. /rein1 deg/min
(G02,
G03)
G02
G03
{}
G02
G03
{}
G02
G()~ ‘.. .
{}
Feedrate of basic
. Y.. .
‘“”
‘“”” ‘“”” K..
‘“”” JO. )
In minimum F command unit
three axes
1 mm /rein
mm/min
1
R
~“”” J
. . . . . .
{
R
{
R.. .
K.. .
{
Feedrate of rotary axes
1 deg /rein
2.54 deg
O. 3937 deg /rein
YZ- plane, at a tangential speed specified by the F
code.
F.. . ;
}
. . .
.
I..
.
1
)
F
““”
F... ;
;
Imin
22
Page 31
The moving direction of the tool along the circle
is as follows.
G02:
Clockwise
G03: Counter-clockwise
G17 :
XY-plane or
G18 : ZX-plane or Z4-planet
YZ-plane or Y4-planet
G 19:
(when the 4th axis is linear)
X4-planef
Y
]GO~G02
,
~$G02
~x
XY-plane
(G17)
When circular interpolation
programmed, usually, the plane of interpolation
should be specified in advance with G17, G18 or
G19.
EXAMPLE
G17 G90 G03 X15,
(a) Absolute command with
Y
I
END POINT
40.
ZX-plane
(G18)
Fig. 2.13
(G02, Got)
Y40, I-30. J-10. F150 ;
(G90)
is to be
YZ-plane
(G19)
In addition to the plane of circular interpolation,
these G codes specify planes for tool radius compensation
the contrary, XY plane (
matically immediately after the switching of the
power supply.
,
The end point of the circular arc may be specified
by G90 or G91 respectively in absolute or incremental values.
is always programmed in incremental values from
the start point, irrespective of G90 or G 91.
G17 G91 G03 X-40. Y20. 1-30. J-10.
(b) Incremental command
40
(G41,
G42) .
However, the center of the circle
Y
t
I
t-
If no selection is made to
G17) is selected auto-
F150;
-40.
i
20.
,
CENTE~-””
-30.
Instead of the coordinates 1, J, and K of the
center of the circle, the radius can be directly
specified with an R command.
circular interpolation with radius R designation
With this command, complete circular interpolations
are repeated n times.
the interpolation is executed only once.
~
-plane
X
Z a -plane
Y a -plane
Without an L designation,
G17
G18
G19
G02
G03
{}
G02
G03
{}
G02
G03
{}
‘“””a”””
‘“””a”’”
‘“””a”””
Note :
. G17 G02
Where address characters for the 4th axis is
missing as in the above command, the
is automatically selected. Circular interpolation
cannot be performed on the axes including
rotary 4th axis.
Circular pathes covering two or more quadrants
can be programmed in a single block. A com-
plete closed circle can also be programmed.
EXAMPLE
GOO
XO YO ;
X..
.
{
;“”” J
. . . . . .
F..
. ;
}
XY- plane
G02 XO YO 110. JO F1OO ;
. . .
complete circle
Y
When a linear 4th axis option is used, circular
a
interpolation is possible in the X
planes in addition to the XY-, YX-, and
a
(where
R..
.
1.. .
{
. . .
R
K.. .
{
R..
.
J..
.
{
= U, V, or W).
J..
.
‘“””
}
F
1..’. ““”
)
K..
.
‘o””
}
;
;
;
/
&
,
o––
@
-, Z a -, and Y a -
\
The end point i
\
CENTER
*-
\
%
\\
Fig. 2.17
When the end point is programmed in the hatched areas shown above, no alarm state is created, but the tool will keep on rotating.
Especially when tool compensation is applied,
coordinate values of the point and the center
must be programmed accurately.
represented by
0
y
g
/
ZY- planes
.s
1,
~
,1
.
4
10.
Fig.
2.16
When the coordinate values of the end point of a circular
path is not exactly on the correct circular path due to
calculation errors, etc., correction is made as shown below.
Points O are commanded as end point. (See Fig. 2.17).
20!
x
24
When radius is specified as O (I, J = O on G17 plane)
speci~ng
in
DMSION)
When
end point) at R command, the error is compensated for
in the range of
2.9.5 HELlCAL INTERPOLATION
A circular interpolation on a certain plane, and
a linear interpolation along an axis not included
in that plane can be executed in synchroniza-
tion, and this combined interpolation is called
helical interpolation.
circular arc, alarm 102 (CAL ERROR =
is triggered.
I ~ I >
R ( t : distance from the start point to the
&I
– R S #6649.
(G02,
G03)
t
Page 33
Command format
(a) For
(b) For
(c) For
(d) For X
(e) For Z.
(f) For Y
XY-plae
ZX-planeG18
YZ-pl~e
a -plae
-plme
a -plae
G17
G19
G17
G18
G19
G02
G03
{}
G02
G03
{}
G02
G03
[}
G02
G03
{}
G02
G03
{}
G02 y.. .
G03
{}
‘“”” ‘“””
‘“”
z
10. .
{
‘“”’ ‘“”’ K..
.
‘“”” a“”” 1..
““” a“”” K..
z..
~..
.
.
{
{
{
{
{
R..
.
J..
. . .
R
.
R
J“”” K
. . . . . .
R..
.
.
R..
.
.
;“””
. . . . . .
I“””
I.””
K
.
Z(a) . . .
}
Y(a)
}
x(a)
}
z
)
J.”. ‘“
Y..
}
X..
}
F..
. . .
F..
. . .
F..
.
F..
. ;
. F.. . ;
. F.. . ;
. ;
. ;
. ;
Where
w.If no 4th axis is programmed in (d) , (e) ,
and (f) , they are regarded as equal to (a) , (b)
and (c) .
EXAMPLE
G17 G03 XO Y1OO. R1OO. Z90.
Notes :
2.9.6
G04
This command interrupts feed for the length of
time designated by the address P .
Dwell is programmed as an independent block.
The maximum length of time which can be desig-
nated with address P is as follows.
a is one of the linear 4th axes U, V, or
z
90.
L
100.
Fig.
2.18
The circular arc should be within 360°.
As long as above note (a) is satisfied, the
start and end points can be taken at any time.
The feedrate F means the tangential speed on
the plane of circular interpolation.
Tool radius
only to the circular path on the plane” of
c
ular
interpolation.
com~ensation
END POINT
Y
F1O.
;
C t can be applied
cir-
DWELL (G04)
P..-
;
FormatDwell time (P programmable range)
P53
The value does not depend on metric
or metric /inch output.
EXAMPLE
G04 P2500 ;
Dwell time: 2.5 sec.
Two types of dwell can be selected by parameter:
Dwell when the specified value in the command
block before the dwell block is identified by lag
pulses of servo, or dwell on completion of pulse
distribution.
2.9.7
Exact stop
When a block containing G09 is executed, the
program advances to the next block after com-
pleting a block in the Error Detect On mode
(Note a) .
corners are desired.
effective only in the block in which it is contained.
Exact stop mode
When once G61 is commanded, all the following
blocks will be completed in the Error Detect
On mode before proceeding to the next block.
Exact stop mode cancel ( G64)
This G command is for canceling the effect of
G61.
0 - 99999.999 sec
EXACT STOP
(G09)
This function is used when sharp
(G09,
(G61)
linch
G61 , G64)
G09 is non-modal, and is
rnput
25
Page 34
2.9.7 EXACT STOP
Notes :
. In the Error Detect On mode, the program pro-
ceeds to the next block only after the number
of servo delay pulses is found to have decreased below a permissible limit following the complete distribution of circular interpolation
command pulses.
In the G09 and G61. off modes, the program pro-
ceeds to the next block immediately after the
complete distribution of the pulses of ordinary
linear and circular interpolations, and there-
fore, because of the servo delay, tool pathes
are rounded at the corner. This mode is called
llErr~r
Detect
(G09,
G61, G64) (Cent’d)
Off”
‘ode”
(b) For the work coordinate system setting B
specification, change the setting of the work
coordinate system by
Y.. . z.. .
meaning of
(a).)
(a...);.
Q2 and pm is the same as mentioned in
2.9.9 CIRCLE CUTTING
This is a canned cycle which includes a complete
series of movements for machining a circle in a
single block.
. Format
G12(G13) 1..
speci@ng
It includes the following functions.
.
D..
.
G 10 Q2 Pm Jn X . . .
(Jn specifies J1 to J5. The
(G12,
G13)i
F..
. ;
. For rapid traverse,
Off modes are controlled only by GOO and
and not by the above G codes.
the Error Detect On and
G06,
2.9.8 TOOL OFFSET VALUE DESIGNATION (G1O)
With a G1O command, correction of tool offset
values and work coordinate system can be made
as follows.
(1) Designation of tool offset value ( G1O)
Normally, tool offset values are written in by
MDI .
P..
and R = tool offset value) , any programmed
offset values can be replaced by a designated
value.
When G1O is commanded in the G90 mode, R is
stored as it is.
When G1O is commanded in the G91
added in the previous tool offset value.
(’2)
(a) Corresponding to G54 through G59,
work coordinate systems are set up
data in advance.
On the other hand, with a program G1O
.
R..
.; , (where P = tool offset number
Changing work
coordinate
system+
mode. R is
separate
as setting
Y
w
Fig. 2.19
~
Designation of rapid traverse section R
G1z(G13) 1..
With this command , a circular bore is machined
as shown below.
character R specifies rapid traverse sections.
.
R..
.
D..
.
F.”.
;
Numerals following an address
Y
I
Q2 Pm X... Y.. ,Z. .. (a...)
G1O
(where Q2 is used to discriminate from tool
offset value designation and a means to set up
a work coordinate system.
corresponds to the work coordinate system m
to be set up. )
P1. o.
For
For
For
With the above command, data of any desired
work coordinate system can be changed.
G54
P2. . . G55
P6.
. .
G59 corresponds.
Pm(m=lto6)
Fig. 2.20
Page 35
Commanding repeated circle designation
G12(G13) 1..
With this command, the circular bore surface
can be executed L times.
Commanding spiral circle Q, K
G12(G13) 1..
With this command, the tool is moved along a
spiral before finally finishing a circular hole,
as shown below.For the sake of simplification,
the diagram shows the tool path with a zero
radius (D = O) .
programmed without sign.
Tool path
(D) represents a set value of tool radius
compensation.
Clockwise
G12:
Counterclockwise
G13:
Radius of finished circle
I:
(incremental value with sign)
Rapid traverse section
R:
(incremental value with sign)
.
D..
.
L..
.
F..
. ;
.
D..
.
K..
.
Q..
.
F..
Q (radius increment) must be
(CW)
(CCW)
. ;
Combined designation
tion, repeated circle and spiral circle.
Rapid traverse section, repeated circle designation and spiral circle can be commanded in
combination as shown below.
G12(G13)
Notes :
Circle cutting is possible only on the XY plane.
The tool speed in the rapid traverse section is
set by parameter #6225.
Feedrate override cannot be applied to rapid
traverse rate.
tool speed conforms to dry run speed.
With a circle cutting command
tool is offset for its radius compensation with-
out the use of G41 or G42 (tool radius compen-
sation) .
radius compensation with G40.
In the explanation above, only motions in the +
direction of X-axis is considered. With proper use of
signs for I, K and D codes, motions in the - direction
of X-axis (symmetrical with respect to Y-axis) can be
commanded. In Fig. 2.23, signs of I, R and (D) are
minus. However, cutting in the Y-axis direction
impossible.
I, J, K, R, Q and L codes in circle cutting command are effective only in the block containing
them.
I.. .D. .. R...
Q..
.
L.. F.. ;
While dry run switch is ON, the
When using
of
rapid traverse sec-
(or J.. .)
G12 or G13, cancel
K...
(G12>G13) , the
tool
is
Tool radius compensation No.
D:
Cutting feed rate
F:
Y
G12:
I
w
Fig.
2.21
Y
~
s
RADIUS
INCREMENT
x
RADIUS OF
FINISHED CIRCLE
w
Fig. 2.22
27
Page 36
2.9.9 CIRCLE CUTTING (G I 2, GI 3) t (Cent’d)
Tool path
@
G13:
~
(D) represents a set value of tool radius
compensation.
. The radius I of finished circle and the rapid
traverse section R are subject to the following
restriction.
with the restriction are programmed , this is
regarded as an error.
5
‘@
When values not in conformity
lR-dl<l
@**
I-all
5
~
Iw
50
I
RAPID
TRA~JERSE
SECTION
F
CUT
UTED
E XAMPLE
.
GOO
Z-40. ;
G12 150. R40. D1O F300 ; D1O
GOO
Z40.
:
(a)
+Y
I
Fig. 2.23
GOO Z- 40. ;
J7.
G13 I-50.
GOO Z40. ;
D15 F300; D15 = -8.0 mrn
. .
❑ 10.
Omm
—
t-i
Fig. 2.24
When G12 or G13
conditions must be satisfied :
Condition 1 : D
Condition:
Unless otherwise, section R is
machine moves at F-feed speed.
2.9.10 PLANE DESIGNATION
The plane for making circular interpolation and
tool radius compensation is designated try G codes
G17/G18/G19.
G17 : XY-plane
G18 : ZX-plane
G19 : YZ-plane
When the 4th
the following planes are newly added.
G17 :
G 18:
G 19:
a means U, V or W axis.
The move command in each axis can be programmed regardless of the plane designation by
G18/G19.
For example, if
G17 Z.. . ;
is designated, motion is on Z-axis.
is commanded, the following two
2
J
I- D-Jz O
invalidated and the
(G17,
G18, G19)
axisf
of linear axis is s-elected,
XY-plane or X a -plane
ZX-plane or Z a -plane
YZ-plane or Y a -plane
—
G17/
28
Page 37
The plane for making tool radius compensation by
command G41 or G42 is
G17, G18 or G19. It is not possible to designate
compensation plane including
axis.
The
XY-plane
turned on.
(G 17) is selected when the power is
univocally determined by
tie
4th axis of rotary
Take the following procedure after the command
of G20
A.
B.
/G21
selection.
Program absolute zero point
before move command.
In principle, make the display reset operation when current position display ( external) is used.
(G92) for all axes
lNCH/METRIC
2.9.11
(G20,
G21)t
Unit of input data are selectively specified by the
following G codes between metric and inch.
v
These G codes are programmed at the leading end
of a block of its own. If one of these G codes are
commanded, the units of all the following motions
are changed afterwards.
“
subsequent programs
. tool offset values
. part of setting parameters
. part of manual movements
o
displays
Notes :
When G20 or
inch/metric selection is changed. Therefore,
the state of
~lication depends
\6001 DO. “
DESIGNATION BY G CODE
G21
G21
is commanded, the setting of
G20/G21 at the time of power
on the setting by parameter
Metric
-..
ap-
The tool offset values are processed different-
GZ1
ly in the G20 mode and the
G20/G21 must be commanded after modifying
the tool offset values.
2.9.12 STORED STROKE LIMIT (G22, G23)
This
function is for checking the current tool
position during manual or automatic operation
for entry into the prohibited area specified by
parameters or by G22.
hibited area, machine operation is stopped and
an. error sign is displayed.
. 1st prohibited area (stored stroke limit 1)
The area outside the area specified by a parameter is a prohibited area.
be used as a substitute of overtravel checking
function.Upper limit point A
1
point B
are specified by parameters.
If the tool enters a pro-
mode.
t
Generally, this can
1
and lower limit
Al(Xa,
Ya, Za)
EXAMPLE
ER
CR
01234 ;
G20
;
_
~
. When
G20/G21 selection is commanded in the
program, take the following procedure before-
hand.
A. When work coordinate system ( G54 to G59)
is used,
tern.
B . Cancel all tool compensation command.
(G41 to G48)
return it to base coordinate
Inch input designation
sys–
/“
5
/’
/’
///////’
B1
(xb,
Yb, Zb) ‘
z
k
x
Fig. 2.25
/
/’
Y
29
Page 38
2.9.12 STORED STROKE LIMIT (G22, G23) t (Cent’d)
2nd prohibited area (Stored stroke limit 2)
The boundary of the 2nd prohibited area is
specified by a parameter setting or by G22.
The inside or the outside of the boundary
selectively be made a prohibited area by means
of parameter setting.
XO.
G22
.Y. .OI. .. KC. .J. ..
~~
C point
Upper limit
D point
Lower limit
KC. O ;
car
2ND PROHIBITED AREA
/
/
/
5*
///
B2
(I, J, K)
Where 2nd prohibited
area is outside.
Az(x, Y, Z)
/’/
With this command, the checking of the 2nd
prohibited area is started, and with G23 ;,
the check function is cleared.
Table 2.20 Setting of Stored Stroke Limit for Each Axis
~
Point
1st
prohib-
ited area
2nd
prohib-
ited area
Al
B1
Point
point A2
Point B 2
#6600
#6606
#6510
#6513#6514
Az (x,
Y, Z)
B2(I, J,K)
Where 2nd prohibited
area is inside.
Fig. 2.26
x
Y
#6601
#6607
#6511
z
#6602
#6608
#6512
#6515
Division
Parameter
Setting
Note: Point A sets plus value of boundary line on the machine
coordinate
The parameters for specifying the inside and
the outside of the 2nd prohibited area are as
follows .
#6007D0
“
o“
1! ~
1!
systelm and point B sets minus value .
Meaning
Inside prohibition
outside prohibition
30
The 2nd prohibited area checking function can
also be turned on and off with the following
setting number.
#6001DI
]
Meaning
Page 39
Notes :
1st and the 2nd prohibited area can be
The
specified overlapping each other.
Boundary lines on the minus side are included
lines
,(1* ~~.
on
L
in the prohibited areas. Boundary
the plus side are not included in the prohi-
bited areas.
All the prohibited areas become effective after
a manual return to reference point or a return
to reference point by
the power supply.
If the tool is in the prohibited area at the time
when the prohibited area becomes effective,
this is immediately regarded as an error. In
this case, turn off the 2nd prohibited area by
the setting of the setting number, and either
rewrite the data or move the tool out of the
prohibited area manually,
If an alarm state is created by the entry of the
tool into the prohibited area, the tool can move
only in the returning direction.
The stored stroke limit cannot be checked dur-
ing a machine lock operation.
PROGRAM COPYt (G25)
2.9.13
(1)
The command G25P
. . . . . .
sequence
program
G25: Program copy G code
P:
Q:
Each will be commanded with four digits. The leading
zeros of p2 and q2 cannot be omitted.
L: Number of repetitions (One time if omitted)
(Z) Although the
tape, MDI or memory operation, it will be necessary to store the program to be copied in the
memory,When sequence numbers are overlapped,
the first sequence number will become effective.
(3) The G25 command may also be used again
in the program being copied. This is called
multiple program copying and is possible up
to a maximum of four levels. However, error
“ 042” will occur if four levels are exceeded.
executes L times any program from
p2 of program p 1 to sequence q2 of
ql,
pl;
First O number
p2; First sequence number (N)
ql;
Last O
q2; Last sequence
(pl=ql)
G25
G28 after turning on
.~i .~z”
Q
command can be given by
(4) Program copying can be commanded in a fixed
cycle (G70 to G72,
(5) Simple jump command “M99” can be used in
the program being copied by the
It is the same as the M99 function commanded
in the main program.
Notes :
(a) Error “042” will occur if
of levels called by G25 and
when used in a subprogram.
(b) If G25 is used during
(G65, G66), Up to four separate
(c) Since the sequence number specified by address
p2 and q2 will be searched from the first number
of each program, care will be required not to
duplicate the sequence numbers. If duplicated,
the first sequence number will become effective.
(d) In command G25 P (pi) (p2)
following errors will occur.
Error “070 when p 1 cannot be searched
Error “04 1” when p2 cannot be searched
Error “040 when p 1 and q 1 are not the same
(e) If a reset operation for errors or an M30/M02 reset
occurs when executing command G25, execution will
return to the beginning of the called program of the O
level.
(f) If a P or Q command is less than four digits,
will be considered a sequence number and
it
the program sequence number will be searched.
(g) The leading zeros in both commnads P and
Q can be omitted. However, for five digits or
more,
the sequence number.
(h) If M98 or M99 is commanded in the G25 block,
error
(i) Since M99 will have priority if it is in the
block (End block of G25) specified by q2 of
G25, the command will return to the beginning
of the program being executed. Do not command
M99 in the block specified by
(j)
omitted. When omitted, it will automatically be
considered to be the same as the leading O of the P
command.
(k) A program copy command in a fixed cycle
cannot be commanded in the
fixed cycle command. If commanded, G code
error r! 02111
the lower four digits will be considered
II 040[1
will occur.
The O
(ql)
at the end of the Q command can be
will occur.
G73, G76,
G81
to
G89).
G25 command.
the total number
M98 exceeds four
a user macro call
levels
are possible.
Q (ql)
(q2) L . . . ;, the
q2.
same block with the
H---a
O Level
1,1 kvel
tnd Level
Lev,ltih
3rd
&.Cl
(1) When the block indicated by G25 q2 (end block of
G25) is a G25 block, q2 is disregarded and the next block
is proceeded.
Therefore, create a program as shown page 32 and 33.
1. M98 can be used in a program
G25. Four levels may
when using G25 with M98.
2. Care should be taken when jumping to a
different L level with M99 since execution will
become endless with no means of escape.
2.9.14 REFERENCE POINT CHECK
This function is for checking the correct return
of the tool to the reference point after performing
a cycle of operation in accordance with a program
which starts at the reference point and ends at
the reference point.
X..
.
Y..
.
Z..
.
G27
With this command, the tool moves towards the
specified position
simultaneously but independently, and after the
arrival at the specified point, the point is checked for the conformity to the reference point. If
any of the axes is omitted in the command, the
tool does not move in that axis and no check is
made in that axis.
If the point is in conformity with the reference
point, the reference point return lamp lights.
If the tool is correctly in the reference point in
all the axes, automatic operation is performed
further, but if the tool is not in the reference
point even in one axis, this is regarded as an
error ( alarm 241 - 244 display) , and the automatic operation is interrupted.(Cycle start
lamp goes off. )
If G27 is commanded in the tool offset mode, the
tool return point is also offset. Cancel the tool
offset mode when commanding G27.
(a+...);
along
the three axes ( 4
(G27) t
axes~)
copied with
no; b:
exceeded even
Reference point as meant here is a freed point relative to
the machine to which the tool returns by the manual
reference point return motion or by G28 automatic
reference point return motion. Refer to 5.2.1,
RETURN TO REFERENCE POINT’ on page 174. The
mirror image function can be applied to the G27
command. To avoid non-conformity errors, clear the
mirror image mode with M94 (Mirror image
commanding G27.
AUTOMATIC RETURN TO REFERENCE POINT
2.9.15
t
(G28)
G28
With this command, the tool is sent back to the reference
point. The tool moves towards the specified points in
rapid traverse, and automatically stops at the reference
point.
Thetool moves simultaneously in up to 3 axes (4 axes t ).
However, the tool will not move in the direction of the
axis for which a coordinate instruction is omitted.
X... Z... Z... (~t... ) :
“~w
offl before
Page 42
2.9.15 AUTOMATIC RETURN TO REFERENCE POINT
(G28)
t
(Cent’d)
EXAMPLE
X..
.
Y..
.
2..
G28
—-
I
“Return to reference point” involves the same
series of motions as the manual return to
ence point.
Notes :
If G28 is commanded in the tool radius compen-
sation mode
this is regarded as an input error “ 024.
If G28 is commanded in the Mirror Image mode
(M95)
, this constitutes an input error “058. “
The tool position offset command is not
G28. Be sure to cancel it before commanding G28. If
G28 is given in the tool position offset mode, the tool
motion by the succeeding program becomes as
described below. Care should be taken.
When the succeeding program is made in the
A.
incremental mode:
Tool moves by the amount of incremental
value from the reference point .
offset is not effective.
B.
When the succeeding program is made in the
absolute mode:
Tool moves to the position which is specified by absolute value and tool offset value.
c,
When G29 is given immediately after the
G28:
By G29 command, the tool moves to the offset interim positioning point and the suc-
ceeding motion is made according to the
item A and B.
When returning the tool to the reference point for the
first time after turning on the power supply. pay
attention to the tool position.
~R.N
TO REFERENCE
. ;
I
,
b
Y-AXIS DECELERATION LS
Ftg.
2.27
(G41,
G42) or in a canned cycle,
POINTt
REFERENCE POINT
+
c
- — DECELERATION
Referto 5.2.1
.
Z-AXIS
Y
refer–
“
cancelled by
The tool
Mu-
Return to reference point in rapid traverse
In addition to the above “ Automatic Return to
Reference Point, “ “ Rapid Traverse Return to
Reference Point” function may be incorporated in
the control.
quence is as follows.
After positioning at an interim positioning point
B , the tool directly moves to the reference
point in rapid traverse. The returning time is
shorter than that with the ordinary return to
reference in which deceleration LSS are used in
all the axes.
With th
Point, ”
the reference point return possible area.
The rapid traverse return to reference point
becomes possible only after the tool has been
returned once to the reference point in all the
axes by manual operation or by G28, following
the turning on of the power supply.
Rapid traverse return to reference point is effective only with G28.
are not changed by it.
Where a
for the 4th axis in a G28 command, and when the tool
has been returned to the reference point in the X-, Y- ,
and Z-axis, the tool moves to the reference point in the
rapid traverse return mode. If
axis is included in the command, the tool returns to
the reference point in the ordinary return mode,
urdess the return motions in all the 4-axes have been
completed.
For return to reference point in rapid traverse, tool
cannot be moved in RAPID or JOG mode unless
REFERENCE POINT RETURN switch turns off after
completion of reference point return.
2.9.16 RETURN FROM REFERENCE POINT
This code is used to return the tool to its original
position after return to reference point by automatic
return to reference point
Y..
G28
\
Y..
G29
\
With this function, the motion se-
VIRapid
e
point B may not necessarily be within
Traverse
Return to Reference
Manual return motions
4th axis is used, when no command is given
a command for the 4th
(G29) t
alongthe same path.
. Z.. . ;
v
Point B
.
Z..
v
. ;
4
/
Point A+B+C
(Reference point)
Point C+B+D
Point D
c
(REFERENCE POINT)
+
1!
~
D/””
/<
RETURN TO
B
(INTERIM POSITIONING
POINT )
/“”
II
7
I’
REFERENCE
POINT
34
d
A
Fig. 2.28
Page 43
When G29 is programmed, it is not necessary to
consider the distance between point B and C in the
program. Particularly when an incremental command
is used, this is effective for returning tool to the
original position, after returning to reference zero.
+
Movement of C
traverse rate simultaneously along three axes
(simultaneously four axes t) by G29. However, in an
axis for which a coordinate command was omitted,
the tool will not move.
If G28 is programmed a number of times, the
nal coordinates of point B which the last G28
creates is effective for the move of G29.
B and of B + D is made at rapid
An input error
without execution of G28 after the control is
turned on.
In principle, cancel tool offset before programming G28 or G29.
offset is also effective. interim positioning
point B will also be offset, and the tool passes
point B’ .
1T0591J occurs
If they are programmed when
if GZ9 is given
c
fi
-
/’
(REFERENCE POINT)
4
/
/
EXAMPLE 1 (In the case of absolute input)
Interim point
;+
~
coordinates
XY
(o, 20.
( 30.
+%
, 10. )
N21 G90 ;
N22 G28 Z1O.
N23 G28 X30. ;
Y20.
F*,
blocks
EXAMPLE 2
G91
w
;
2..
/
.
:
Y40.
Y-40.
1
40
!!024J! occurs
to G89) .
c
(REFERENCE POINT)
*
“L+*
Fig. 2.29
if G29 is program-
(G73,
N31
N32 G28
N33 G28 X20.
N34 M06 ;
N35 G29 X40.
‘~~;
Notes :
. An input error
med in tool ‘radius compensation mode ( G41,
G42) or during canned cycle mode
G76, G77, G81
z
, 10
.
G74.
,’/7
~,ti
----/
-w
/
d“
)
0
An input error “058” occurs if G29 is given during mirror image
The
be taken
G28 does not meet with that of G29.
(1) The following operations are made between
(2) G28 and G29 are commanded in the blocks
(3) G28 and G29 are commanded after manual
2.9.17 RETURN TO 2ND, 3RD AND 4TH REFERENCE
POINT
G30 Pn
(where Pn = P2, p3, p4)
With this command, the tool first moves to an interim positioning point, and then, moves to the
2nd, 3rd or 4th reference point.
P2:
P3:3rd reference point
P4:
If any axis of the coordinate instruction is omitted,
the tool remains motionless in the direction of that
axis.
Each reference point is specified by the
eters (#6612 to #6629) before hand.
A’
followin E
G28 and G29 commands.
. Machine lock
following the block containing M94 which
cancels mirror image at the different point
from the starting point of mirror image.
operation at Manual Absolute Off.
(G30)
2nd reference point
4th reference point
command or operation must not
bec>use
Setup of coordinate system (G92, ORG key)
Manual operation at Manual Absolute Off
t
X..
.
Y..
.
OFFSET
B
(INTERIM POSITIONING
POINT)
Fig. 2.30
(M95) .
interim positioning point B of
z..
.
AMOUNT
(a t...) ;
When P is omitted,
the tool moves to
the 2nd reference
}
point.
param–
35
Page 44
2.9.17 RETURN TO 2ND, 3RD AND 4TH REFERENCE
POINT (G30) t (Cent’d)
EXAMPLE
G30 P2 x30. Y50. : The tool returns to the 2nd
reference point moving in
the X and Y directions.
When G29 is commanded after G30, the tool
moves to the designated point
of interim positioning point designated by G 30.
However the interim positioning point is renewed on the axis designated by G 30.
SKIP FUNCTION (G31)t
2.9.18
G31
X..
. Y.. . Z.. .
(a t...) F...
by
G29 by way
:
Y
(30. ,50.)
INTERIM
POINT
~
H
o
Q
w
fi~
Oz
m~
mm
Ub
~:
!x
&g
(o, o)
~H
MB
~g
(a) First, positioning
30. Y= 50.). The interim point
of the G92 coordinate system or work coordinate
system (G54 to
(b) Then positioning is executed at the second
reference point as follows :
X-&s
= X-axis machine reference point + (#6612)
Y-axis 2nd reference point position
= Y-axis machine reference point + (#6613)
In the above example, when ;
X-axis machine reference point = O,
Y-axis machine reference point = O,
#6612 = 10.000 and
#661 3 = 20.000 in the G92 coordinate system, the
machine moves to the following positions by rapid
traverse.
X-axis 2nd reference point position
= X-axis machine reference point + (#6612)
= o + 10.000 = 10.000
Y-axis 2nd reference point position
= Y-axis machine reference point + (#6613)
=
(c) Output during stay in the 2nd reference point
(#12014, #12015) is provided in the range of 3 micron
t
Znd reference point.
Notes :
Three items except the last one in NOTES of 2.9.15
AUTOMATIC RETURN TO REFERENCE POINT
on page 33, apply to G30 in the same manner.
2
ND
REFERENCE
POINT
G92 COORDINATE SYSTEM
f
G59).
2nd reference point position
o +
20.000 = 20.000
‘x:
\
2ND REFERENCE POINT
SHIFT AMOUNT
ismadeat theintefimpoint (X=
CURRENT
– -
‘-—
‘>
“Sb
(x
= a,
isa
coordinate value
VALUE
I
y=b)
x
(G28)
With this command, a special linear interpolation
is commanded.
under the command of this program, whenever a
skip signal is inputted, the interpolation is inter-
rupted immediately, and the program advances
to the next block.
signal is inputted to the time the control start
to process the signal, delay time is less than
0.5m sec.G31 is non-modal.
EXAMPLE
N1OO G90 G31 X1OO.Y50.
N200 GO1 x80.
SKIP SIGNAL
During the interpolation movement
From the moment that a skip
;
Y15.
;
IS
INPUT HERE
\
Fig. 2.31
When
being inputted, the machine stops at the end of
‘G31 block is executed without a skip signal
the block, and the alarm code “087” is displayed.
Feedrate of the tool is set for G 31 blocks selec-
tively by one of the following two methods as
specified by parameter
#6019D4.
(100.,
To be specified by F similar to ordinary pro-
grams.
To be set in advance by parameter #6232.
When a skip signal is inputted, the coordinate
values at the moment are automatically stored as
parameter data.
storing X coordinate value
“
#6552
#6553
#6554 . . .
#6555 . . .
t
. .
storing Y coordinate value
...
storing Z coordinate value
storing 4th coordinate value
5a)
36
Page 45
These coordinate values indicate the positions
when skip signal is ON and not the position when
the tool is stopped.
These data can be treated as coordinate data in
user macros.
When a skip signal is not given in spite the execution of G31 by setting ( #6004DO) , the program
moves on to the next block automatically.
Note :
near the skip final reference point, the dead zone
exists in the skip signal processing in the range
shown below. At this time, alarm “87 occurs when
#6004
value of the commanded axis is stored in #6552 to
#6555.
When actual skip stop detecting position is
f)o = O. When #6004 Do = 1, the final point
*
SKIP SIGNAL IS
INPUT HERE
Y
N
10il
A-
I
I
C
(100.,50. )
ACTUAL MOTION
PATH
(80.,15. )
Table 2.21 G codes of Tool Radius
Compensation C
G code I Group
G40
G41
G42
Note:
1
07
07
07
When the power is turned on, G40 is
effective.
I
I
Cancellation of tool radius
compensation C
Tool radius compensation
C , left
Tool radius compensation
C , right
Meaning
Note that the directions of compensation
(right, left) indicated above are reversed
when the sign of the tool radius value in the
offset memory designated by a
ative.
the block containing G41, G42 or in a preceding block.
will be regarded as “O.
Make sure to designate a D code in
If DOO is commanded, tool radius
“
G41
(LEFT)
D code is neg-
(Metric input)
\a]<1000XF
(Inch input)
lal<10000XF
KP : Position loop gain constant (1/S)
F:Reference speed (metric input : mm/min,
inch input : inch/rein)
2.9.19 TOOL RADIUS COMPENSATION C
(G40, G41 , G42)
It is possible to specify the radius of the tool and
to cause automatic tool path offset by this value.
Store the offset value (tool radius value) in the
offset value memory in advance by MDI, and program the tool offset number correspond to the
tool radius value by a D code in the program.
1.
Designation of compensation direction and
of D code
Tool radius compensation C is programmed
with G41, G42 and is
G41 and G42 indicate the directions of tool
offset with respect to the direction of movement.
~+~
[
7500 60 XKP
~+~
[
7500 60 XKP
t
cancelled
2
+
1000X60
2
+
1000X60
by G40.
)
1
TOOL
PROGRAMMING
%
Switching between G41 and G42 can be made in
compensation mode. Details will be given in item 5
on page 40.
2.
Designation of compensating plane
The plane in which tool radius compensation is made
is designated by G17, G18, G19.
They are G codes of 02 group. The
in effect at the time power is turned on.
Table 2.22 G Codes for Designation
G code
G17
G18
I
Group
Fig. 2.32
of Planes
02
02
D
G42
(RI
GHT
)
XY-plane (G17) is
I
Meaning
XY-plane
ZX-plane
G19I 02
Note: When the power is turned on, G17
is effective.
I
YZ-plane
37
Page 46
2.9.19 TOOL RADIUS COMPENSATION C
(G40, G41, G42) t (Cent’d)
Make sure to designate a G code for plane
designation in the same block as that of G41,
G42 or in a preceding block. Plane designation cannot be made in a compensation mode.
It is not possible to apply tool radius compen-
sation in a plane including the 4th
3.
Method of entry into compensation mode
axist,
EXAMPLE B
(C) G17 GO1
G41(G42) D..
. . . . . .
xY
X..
G02
TOOL , G40
F..
. ;
. ;
.
Y..
.
J..
. ;
\
When
normal line at the start point of the block
immediately after G41( G42) . If no coordinate
instruction is programmed in the block of
or GO1 for a G code in group A. An input
error (alarm code “026) occurs if a G code
other than GOO, GO1 is programmed.
G41(G42)
to an offset position with the distance equal
to the radius.
G41(G42)
value only.
a movement, it is necessary to program GOO
EXAMPLE A
(a) G17 GO1 F.. . ;
G41(G42) D..
%
Y
is programmed, the tool moves
The offset position is on the
, movement is made by the offset
Because
‘::’/’41
G42
G41( G42) accompanies
. X.. .
x..
. ;
/ TOOL,
\
‘\
.
)’.”
~.
-
\
Y..
G40
‘—
----
. ;
(d) G17 GO1 F.. . ;
G41(G42) D..
G02
X..
TOOL , G4
. ;
. Y.. .
%
CENTER
b
CENTER
J..
- . .
-.
7’
G42
. ;
-/
y
~
G41
\
\
\
(b) G17 GO1 F.. . ;
G41(G42) D..
X..
G02
38
W
PROGRAMMED
.
X..
.
.
Y..
.
Jo.
, TOOL, G40
&
CENTER
Fig. 2.33
. ;
Y“”.
;
PATH
Fig. 2.34
Pay attention to the fact that offset is made
on the normal line to the program line
mined by the block after
start point in all of the examples (a) to (d)
above.
sation plane is not programmed in the block
after
ahead and the compensation start with the
block .
can be programmed continuously up to two.
Input error occurs if move commands on the
compensation plane are not programmed in
more than three blocks .
When compensation entry is programmed in
the GOO mode, positioning movement is made
independently
point.
fere with the workpiece.
When the movement on the compen-
G41(G42)
Take care not to make the tool inter-
, the next one block is read
The blocks without move command
by
each axis to the offset
G41(G42)
deter–
at the
Page 47
4.
Movement in compensation mode
When after the tool radius compensation is
programmed by G41, G42, the tool moves along
the offset path until the instruction G40 is
given.
As talc
made by the control, designate only the
shape of the
tool path is controlled as follows depending
on the angle between blocks.
A.Inside corner ( 180° or less) :
Intersection computing type
B.Outside corner (over 180°) :
Circular path type (in the case of M96)
ulation of the path is automatically
workpiece
Fig. 2.35
in the program. The
M96 . . .Tool radius compensation circular
path ON
M97 . . .
Normally, M96 is used for this operation,
however,
“overcut”
M96, M97 should be used.
c.Movement in GOO mode
The instruction GOO positions tools independently along each axis toward the final offset
position.
path.
Tool radius compensation circular
path OFF (execution of intersection
computation)
when there is a possibility of an
in cutting special shapes with the
Care should be taken on the cutter
G
OO
OR
GO1
Fig. 2.36
In this case,
included in the former block.
Code M97 can be used to machine the outside corner by the intersection computation, depending on
the work. For details, refer to 2.8.6, “CIRCULAR
PATH MODE ON/OFF ON TOOL RADIUS COMPENSATION C
movement of circular path is
(M97,M96)t” on page 17.
/
/
/’
/
/
d
&
00
(In
Fig. 2.37
M96 mode)
GOO
OR
GO1
39
Page 48
2.9.19 TOOL RADIUS COMPENSATION C
(G40, G41, G42) t (Cent’d)
Shape requiring care
D.
Do not program a wedge shape having an
accute angle.
ir
---
--
:(.-:!
*----------—-
Q-
\
The intersection is
located at a far point
Increase
the angle
Command involving no movement in compen-
5.
sation mode
The control normally reads in advance two
blocks during tool radius compensation mode
and computes the tool path.
these blocks give no coordinate instructions
such as
block further ahead and makes computing.
G04 (dwell) , the control reads the
_->4
/
_ — -----------
‘4
M97
If either of
G42
11
ti
J
--
A---
---
,,
.
‘+
G42 ,
I
---
---
r
?,
P@
L---------
J;97
__ ------
w
-------
1!’
Fig.
2.38
G41
M97
I
I
~=--”>
i
G41
—
-1
0
The blocks withno coordinate instructions
can be processed continuously up to two
blocks .
missing in three or more blocks, tool radius
compensation becomes impossible and accurate
tool path cannot be
a Program where G41 or G42 is used, ensure
that, after them, three or more blocks without
movement command plane will not follow.
(a) Wrong
Where the tool cannot
enter the wedge shape,
the intersection
is located on the opposite
side.
(b) Correct
Program a
the entry
When coordinate instructions are
1
path allowing
of the tool.
point
obta~ned. Therefore, in
40
Page 49
EXAMPLE
G17
x.. . Y.. . ;
If no move command is programmed in three continuous
blocks, offset in the block immediate before them is made
on the normal line at the end point. Where movement
the compensation plane cannot be programmed in three or
GO1 G41 X..
x..
.
Y..
. ;
G04 P1OOO ;
. . .
x Y.. . ;
x..
.
Y..
. ;
. . .
z
. . .
z
. . . . . .
x
Y
x.:.
Y..
. ;
X..
G40
.
. Y.. . D.. . F.. . ;
T
}J
Y..
. ;
Blocks without movement
in compensation plane.
(When these blocks are within
two, machining is made smoothly. )
in
more continuous blocks for retracting in the third axis or
the like, and offsetting on the normal line is not
ry, a dummy block can be inserted by I, J or K.
satisfacti-
EXAMPLE
NOO1 G17 GO1
X..
NO02
NO1O X.. . Y.. . ;
NO1l 1.. . J.. . ;
N012 Z.. . ;
N019 Z.. . ;
~--–––
IN020 X..
l–––_”__
N029
N030 G40
. Y.. . ;
--—-
y_
X..
. Y.. . ;
1
-——
”:”__;__;
X..
G41 X..
1-
1
. Y.. . ;
. Y.. .
XY-plane
1
Z axis
(~~~$e)
1
———--——— --
XY-plane
D..
. F.. . ;
Dummy block
4
I
I
~
;
N012[ IN019
NOIO
Y
P
1
It
J
I
—-.
I
Fig. 2.39
020
(x,
.
Y)
41
Page 50
2.9.19 TOOL RADIUS COMPENSATION C
(G40, G41, G42) t (Cent’d)
The dummy block is not programmed for actual move-
ment but it only provides data required for tool radius
compensation computation. In the example indicated
above, an instruction that is the same as the first block
(N020)
of restarted movement of the
movement of Z axis is programmed as a dummy by I and
J. I, J and K are used as the addresses of this dummy
instruction, and they correspond to X-, Y-, Z-axis
respectively. Suitably use them in accordance
plane designation.
EXAMPLE
X..
.
Y..
N050 GO1
[
N051 GO1 I(b)
N052
N053 2.. . ;
N059 Z.. . ;
N060 G03 X.. . Y.. . I(a) J(b) ;— Circular
N061 GO1 X.. . Y.. . ;
2..
- ;
. ;
J(-a)
z-axis
1
XY-plane
; —
after
witi
the
Dummy block
I:
Dummy for X-axis
command
Dummy for Y-axis
J:
command
programmed in
incremental
values
K: Dummy for Z-axis
command
If X... Y.. .
the above example, give an instruction by converting into incremental values.
Note:Make a dummy block as follows if the
object of the dummy block is circular
interpolation.
I
1
interpolation
‘1
of N020 is in absolute values in
~052
!
~
~059
,1
.O-O
II-’a
Y
N%
\
\
\
\
b
l---x
N060
CENTER
.“
b
1
N051
: DUNMY BLOCK
(LINEAR)
~is
is, insert a linear dummy block that gives the tangential direction at the start point of the circular interpolation program block as shown above. The sign of the
dummy block data depends on the shape of the circle.
The tool stops at point A by the dummy block in prepa-
ration for the next circular command.
-ACENTER
:x-
‘------
/
1
/
,4
/’
Y
*
L
Switching between G41 and G42 in compensa-
6.
tion mode
In compensation mode, direct switching between
G41 and G42 is possible without making cancel-
lation with G40.
x
Fig.
2.41
\
\
I
\
‘~ ,0,,
DW
BLOCK
Fig.
2.40
EXAMPLE
N1O G17
Nll G41(G42) D.,
N20 GO1
N21
G42(G41) X..
N22
GO1 F..
X..
. Y.. . F.. . ;
. . .
x
. ;
. ;
. Y.. . ;
Block of
switching
42
Page 51
8.
Method of cancellation of compensation
G40 is the command for canceling tool radius
compensation C and for positioning or feeding the tool to just programmed end point.
In this case, the tool moves to a point
normal line at the end point of the block immediately before the block containing G40.
on the
G42
(a)
G41 +
G42
(M96 mode)
N21
N20
,P .,
A
G42
G42 +
(b)
Fig. 2.42
Note:The movement identical to what is
above is also obtained when block
split into two blocks as follows.
(G41)
G42
;
x“”. Y..
G41
.
. ;
\.
G41
--
N22
shown
N21 is
BLOCK READ AFTER
CHANGE OF TOOL
RADIUS VALUE
/
Fig. 2.43
Therefore, no portion will be left unmachined
even when a cancellation with sharp angle is
programmed.Because G40 accompanies
celing
GO1 mode like G41, G42. An input error “027”
occurs if group A other than GOO, G02 is used.
movement, program it in the GOO or
can-
7.
Change of tool radius value in compensation
mode
New D code commanded in compensation mode is
effective in the block next to the commanded
block.
43
Page 52
2.9.19 TOOL RADIUS COMPENSATION
(G40,
G41, G42) f (Cent’d)
EXAMPLE A
(a) G41 (G42)
GO1 X.. . F.. . ;
G40 X.. . Y.. . ;
C
EXAMPLE B
(C) G41
(G42)
G02
GO1
x.. . Y.. . ;
G40 ;
X..
.
Y..
.
I..
.
J..
. ;
G41
--
2
G42
? ‘-
L-
(b) G41
(G42)
G02
GO1 G40 X.. . Y.. . ;
X..
x
.
/
Y..
TOOL
,/;?’
,/
/
/
.
1..
/
.
J..
TOOL
G40
. ;
G40
(d)
G41 (G42)
G02
X..
GO1
G40 ;
A
CENTER
.
Y..
. 10. .
J..
. ;
.G40
44
.’
/“
/
I
A
CENTER
Fig. 2.44
Fig. 2.45
In all cases (a) through (d) described above,
the tool reaches the programmed end point via
the offset position on the normal line at the end
point of the block immediately before G40.
CENTER
Page 53
-—.
Cautions and remarks In tool
Y.
sation C
Maximum programmable dimensions (Refer to
A.
Table 2. 14) is not changed even in tool
radius compensation C.
. .
. .
rad]us
compen-
(3) When reversing command or an
to reversing
M97
(Outside Corner Circular Arc Point
Off)
c~mmand is programmed in
mode.
angle
close
B.
Programmed shapes that produce input
errors
Input error
ing programmed shapes.
(1) When programming an inside arc with tool
compensation, if
Programmed arc radius r + 5 (setting unit)
~
toolradius d
5: 0.001 (in mm)
: 0.0001 (in inches)
TOOL
-.
_-
d
r<d
%
“ 045” occurs with the follow-
‘r
r<d
d(
E
(a) Outside compensation
(b)
Inside
compensation
error
‘\A
(b) Command close
to reversing
In M96 mode, all of the above shapes are
correctly compensated.
c.
Input errors occur when the following G codes
are programmed in compensation mode.
Fig. 2.48
‘\A
Note:
circular arc command,
0
cient.
With the
tangent angle
alone is insuffi-
Fig. 2.46
(2) When
No–intersection
error occurs when
tool
large relative to
the programmed shape.
no intersection point exists
locus of the offset tool center.
radius is too
Outside compensation
is correctly made
even when
/--4
r<d
on the
Prohibited G codes
1
G codes causingG12, G13 (G17 to G19)
input errors
* If a “reset operation” is performed in compensa-
tion mode, compensation is
remains.
D,
Tool radius compensation C is applied to
the movement path offset by tool length
offset and tool position offset.
in principle, avoid applying compensation
C to the path using tool position offset
for compensation of tool radius.
E.
When programming G41, G42 and
or GO1 and an F code should be programmed in the same block or in a preceding
block.
G28, G29
G73, G74, G76, G77
G81 to G89
G92
cancelled and G40
,G31
However,
G40, GOO
Fig. 2.47
45
Page 54
2.9.19 TOOL RADIUS COMPENSATION C
(G40, G41, G42) t (Cent’d)
F.
An input error occurs if a G code,
G19 of plane designation for changing the
compensation plane is programmed during
compensation.
G.
Program circle cutting
canned cycles
to G89) in the tool radius compensation
cancel mode.
cutting incorporate tool radius compensating functions in themselves.
11024!! occurs
compensation mode.
H.
Tool radius compensation C is also possible on
circular interpolation by radius designation.
(G73,
Circle cutting and helical
when
(G12,
G13) , and
G74, G76, G77, G80
they
are
programmed
G17
to
Input error
‘n
N102
‘\
‘v-
r-
~
N1OO
.
/
/
I*
P
L
Advance reading of blocks is prohibited
M.
when MOO,
given, and compensation is usually interrupted.
sation is secured by programming 1, J, K
in a dummy block immediately before MOO,
MO1 to avoid interruption.
x
MO1 (1402,
Continuation of correct compen-
--
*
\
b’
f
DUMMY BLOCK USING
CODES:
I, J
Fig. 2.50
M30) commands are
N101
I.
Subprogram
compensation mode.
J.
Compensation is applied to the projection to
the compensation plane designated by
G18 or G19 when simultaneous movement
along three axes (four
grammed in compensation mode.
(M98, M99) can be programmed in
axest maximum) is pro-
COWLETING
POSITION
OF PULSE DISTRIBUTION OUT OF THE
COMPENSATION PLANE .
COMPENSATION
A
LANE
‘
K.
Input error
terpolation is programmed out of the plane
designated by
I-”*
Fig.
2.49
1! 046!1 occurs
G17, G18 or G19.
73
when circular in
G17,
(G41)
N200 GO1
I
N201
N202
I
N203
Up to 99 radit~s values can be stored in the
N.
offset memory in total for the tool radius
compensation , together with the values for
other compensation.
a D code.
of tool radius compensation is
f99.
(or
Overcut
o.
med on a step less than the too! radius in
M96 mode.
-
undersize cut
is better than overcut with the M96 mode.
X..
.
Y..
. ;
. . .
I
MOO ;
x..
. Y.. .
The maximum programmable value
9999 inch) .
occurs if compensation is program-
Keep this in mind. Although
orcurs
;
]-
J.. .
Make designation by
with the G97 mode , it
Command
1
I
--l
;
*999. 999 mm
movement
data N203
using I, J
Offset position may be temporarily modified
L.
by programming a dummy block using ad-
dresses I,
J,
K.
(G42)
N1OO
GO1
N101
N102
X..
,..
I
. . .
x
.
J..
Y..
. ;
. ;
46
-,---g:,cuT *:
(a)
M96 mode
Fig. 2.51
UNDERSIZE
CUT
(b) M97 mode
Page 55
P. Even in M96 mode, the tool moves directly
toward point B without making circular path,
if
both AX and AY are smaller than a fixed
value as shown below.
this case is the value set by parameter
(#6230).
AX
/’
\
,/
/
,
9
\l
\
The fixed value in
B
--—— —
MOVEMENT
OF TOOL
\l
,1
11.
Intervention to active buffer in compensation
mode
The data given below can be programmed in com-
pensation mode of G41 or G42 with procedures
identical to those of MDI operation, after turning
on the SINGLE BLOCK switch to suspend the
block, and then, selecting the RAPID or JOG mode.
Programmable data:
F, M, S,
Programmable block:
In addition to the block of commands
of the active buffer just executed
Tand B+
codes
\
\
‘~r
PROGRAMMING
AX:Y
AY~y
Y y:
I
1
Set value of
parameter #6230
I
l--x
Fig. 2.52
10. Intervention of
mode
MDI operation can not be intervened in com-
pensation mode.
MD I operation in compensation
When the CYCLE START button is pushed in
RAPID or JOG mode after programming, the com-
mands are immediately executed and signals such
as BCD output are sent out. Automatic operation
STA~
can be resumed when CYCLE
returning to the original automatic operation
mode.
Note:
items, the following M codes cannot be written.
In the operation described in these
MO1,
MOO,
M02, M30, M90 to M199
is made after
47
Page 56
2.9.19 TOOL
(G40, G41, G42) f (Cent’d)
RADIUS
COMPENSATION C
EXAMPLE A
o
DO?4?lY
BLOCK-
/
START POINT
z-
Outside cutting
G41
L
Inside cutting
G42
+
— +x
~~~~~,ol
@G17 (GOI) F300
@G41 D21
@Y140. ; —
@x30.
@G02
@Gel
@Y-loo. ;
@x-40. ;
@G03
@GOl
Z-25.
_
; – XY
;
Y40. ;
X1OO. 150. ;
X30. Y-40.
x-80. R50.
X-70. ;
Incremental;
lowering
plane
feed command
— Tool radius compensation
start command
Z
axis
designation,
with
tool
@
@
@
offset No. 21
@ G42 ,G(ll) X130.
Offset to a point on the
Y90.
normal line of start point
of this block.
@
@
@
Outer Cutting
-R designation circular
arc
@
@
G02 x80. 140. ;
@
GO1 Y-30. ;
@
@
@
@ ::0;:0,)
J-20. ; —
Z25. ; —
MO1 ; —
F2000 ;
Z-25.
Y-40.
x-60. ;
Y30. ;
x-60. ;
F150.;
—
F300
;
Y30. ; —
225. ; —
X-60.
F2000
;
Dummy block (for modifying offset position)
Z
axis
elevation
Two
blocks
without movement on the
Optional
stop
designated
1
plane
Switching of direction of
+
compensation (left
right)
Z axis lowering
Inner Cutting
Offset to a point on the
normal
line of end point
of this block
Z axis elevation
Compensation cancel
command
48
The same effect is obtained even when the commands
are
not made.
They are entered for ease of understanding.
in parentheses
Page 57
EXAMPLE B
LI
.-
\
(G40)
G91 GO1
20,
1
40.
z-25.F150 ;
F300 ;
G17
20.
40.
+Y
L
+x
D20 X20. ;
G42
X-20.Y-20.1-20. ;
G02
X-40. ;
GO1
Y30.
;
G02
x80.140. ;
Y-30. ;
GO1
X-40. ;
G02
X-20.
G40 GO1
With the inner cutting in EXAMPLE A, the double
cutting allowance at the cutting start and cutting end
varies with the tool radius.
with zero double cutting allowance regardless of the
cutter radius is shown in EXAMPLE B.
X20. ;
Z25. ;
Y20.
Fig. 2.54
J20. ;
An inner cutting case
49
Page 58
(GO1) Z.. . ;
2.9.20 TOOL LENGTH COMPENSATION
(G43, G44, G49)
t
The tool length compensation function is for adding or subtracting the stored tool offset values
to the Z-axis coordinate instruction values for
the purpose of compensating for the deviations
in tool length,
G codes for tool length compensation
G codeGroup
Meaning
B.
G43(G44)
With this command, the tool is shifted by
the distance specified by the G code.
c.
G43(G44) Z..
H.. . ; . . . . .
With the command (2) , the tool is shifted
by the difference between the previous
tool offset value and the new tool offset
value.
H.. . ;
.
H..
. ;
(2)
(+)
G43
G44
G49
G43 and G44 are modal functions, remaining
effective when once commanded until
the sum of (or difference between) the H
value and the Z value.
tool point is displaced from the specified
Z-coordinate position by the distance specified by the H code.
08
08
08
Z.. .
H..
direction
( -) direction
cancel
cancella-
. ;
As the” result, the
When G43, G44 and G49 are to be commanded,
the accompanying 01 group G codes must be
GOO, GO1 or G60.
this is regarded as an error.
Direction of shift
The direction of tool shift is determined by the
sign of tool offset value as programmed in the
H code and by the G code used.
\
G43
G44
Plus directionMinus direction
Minus directionPlus direction
When G02 or G03 is used,
Sign of tool offset value
PositiveNegative
50
Page 59
EXAMPLE
H1O . . .
Hll ...
N101 G92
N102 G90
N103 G43
N104 GO1
N105 GOO
Offset value: -3.0
Offset value: 4.0
CRT display including offset value
(Z-direction only)
Zo ;
GOO X1. O
Z-20. H1O ;
Z-30.
ZO HOO ;
F1OOO ;
Y2.
O ;
0.000
0.000
-23.000
-33.000
0.000
2.9.21 TOOL POSITION OFFSET (G45 TO G48)
Tool position offset is for extending or reducing the move-
ment value designated in the program by the values in
the tool offset memory, and is mainly used for tool radius
compensation for square patterns. Therefore, this function is not required with controls equipped with G40,
G41, G42 (tool radius compensation C).
1.
G codes of tool position offset
G code Group
G45
*
Extension
Meaning
N201 GOO
N202 G44
N203 GO1
N204 GOO
Notes :
When the tool offset value is changed
MDI function while programs in
mode is in execution, the change is effective
from the block containing
The tool position offset function or the tool
radius compensation function is effective on
the tool which is already offset by the tool
length compensation function.
G43, G44 and G49 can be programmed in
ned cycles.If they are programmed, this is
regarded as an input error.
When a G92 command involving the Z- axis is
given during the execution of a program in the
tool length compensation mode, the tool length
compensation is canceled. In principle, when
G92 is to be programmed, the existing tool
length compensation mode should first be canceled.
During the automatic execution of a program in the
tool length compensation mode, the number of the
effective tool compensation memory (H code number)
can be displayed.
MAND DATA DISPLAY “ G43, G44, and G49 commands must be given in GOO or GO1 mode. When
G43 is commanded in G02 or G03 mode, no alarm is
triggered but correct motion may not be made.
X-2. O Y-2. O ;
Hll
Z-30.
Z-40.
ZO HOO ;
;
F1OOO ;
-34.000
-44.000
0.000
tie
D code.
For details, refer to 4.3.2, “COM-
b~
the
offset
can–
G46
G 47
G48
ACTUAL
TOOL
POSITION
PROG~D
TOOL POSITION
Reduction
*
Expansion by double
*
Reduction by double
*
-L
~ ,
W-zo.000
.~-23.000
I
WV
/
.,
-30.000
-33.000
U
... .
ACTUAL
PROGRAN
‘:TION Q
TOOL POSITION
U.40000
2.
G45 to G48 extend and reduce the movement
value programmed in the block, in the
tion of movement by the tool offset value.
“..,,.
“
‘.L—
-30.000
-34.000
-40:000
direc–
Extension or reduction is made only in the
block in which G45 to G48 are programmed
and movements in other blocks are unaffect-
Therefore, to restore extended or re-
ed.
duced values to the original program values,
an extension or reduction in the opposite
direction must be programmed eventually.
51
Page 60
2.9.21 TOOL POSITION OFFSET (G45 TO G48) (Cent’d)
Make program command by incremental designa-
3.
tion (G91) for making the above operation clear.
When the command is given by absolute designa-
(G90),
tion
the direction of movement to the movement value
from the end point of the preceding block, to the
command target point. That is, extension and
reduction are made to the incremental movement
amount. The programming may become complicated.
extension and reduction are made along
EXAMPLE
G 91
@
GOO G46
@
GO1 G47 Y... (DO1) F... ; . . .
@
@
@
@
GOO G46
G47 X.. .
G47 Y.. .
G47
X... Y... DO1
(DO1) ; . . .
(DO1) ; ~ . .
X..
(DO1) ; . . .
.
X... Y...
; . . .Reduction
(DO1) ; . . .
4.
When programming
tool offset number by a D code simultaneously
with axis designation.
modal, they may be omitted if the same D
code is used.
the tool offset value memory.
Extension by double
Extension by double
Extension by double
Extension by double
Reduction
G45
to G48, designate the
Because D codes are
Store the tool radius value in
Y
Extension and reduction
5.
Extension or reduction is determined by the
sign of the tool offset value designated by a
D code in addition to the G code.
Sign of tool offset value
Positive
G45
ExtensionReduction
G46Reduction
G47
G48
N ote:In general, tool offset value should
Extension by
double
Reduction by
double
be “positive. “
Negative
Extension
Reduction by
double
Extension by
double
r——————————— -1
Fig.
@
2.55
6.
Values of extension and reduction
A. Programmed incremental move values are
extended or reduced by the designated tool
offset values or by twice their values.
G91 GOO G47 x6o.
~:E---?
t
START
POINT
100.
Fig.
D1O ;D1O = 20.
(
EXTE
NSION By DOUBLE)
END
POINT
(
TOOL
MOVEMENT)
2.56
52
Page 61
B . Where extension or reduction is applied to
an axis in the preceding block and the start
point has already been offset, the total movement value is identical to that described above, but the distance is measured from the
offset start point.
With a command same as that described above :
~“-’~’’””o”
!
START
\
POINT
Offset value by preceding block
Note:
G46 X1O.D1O ;D1O = 20.
100.
Fig. 2.57
Where the tool offset value is larger
than the programmed movement value,
the direction of movement may be reversed when extension or reduction
is applied.
1
END POINT
(TOOL MOVEMENT)
‘y
‘0”’”)
%---em””)
In practice , correct radius compensation of
circular arc is made if an offset is applied
in the preceding block.
G91 GO1 F..
G46
G45 Y.. . ;
G45 G02
GO1 X..
TOOL
. ;
X..
. Y.. . D1O ;
X..
.
. ;
MOVEMEN< ,/z
I
——
/A
,“
&
START POINT
Y.. .I.
. . ;
/’
II
—
PROGRAMMING
CENTER
END POINT START POINT
(TOOL MOVEMENT)
Fig. 2.58
7.
The above applies to X- andY-axis, butG45
to G48 may also be programmed to
the same manner.
8.
Application to circular interpolation
If I, J, K are programmed in the block with
G45 to G48, extension or reduction
respectively in the same directions as X, Y,
z.Therefore, tool radius compensation is
possible with 1/4 circle,
G91
G45 G02 X50.Y50.
MOVEMENT OF
TOOL
PROGW~ING
T
‘
/“
nl
>-””--?~
/
/
/’
;
kw?
Fig.
3/4or
150.D1O ;
—
G
EXTENSION OF I :
20.
2.59
EXTENSION OF X:
20.
Z-axis
is
made
full circle.
D1O = 20.
,
XTENSION
20.
in
“, ,,
Note:
When it is necessary to program 1/2
circle , assemble them using 1 /4 circle.
Fig.
2.60
(a)
G45
UNDERSIZE
CUT
——
G45
(b)
Fig. 2.61
53
Page 62
2.9.21 TOOL POSITION OFFSET (G45 TO G48) (Cent’d)
9. When programming G45 to G48, the
group can be given together in the same block. An
input error occurs if command is given with other
G codes.
10. When only movement by offset in the incremental
designation (G91) is required, program “O” as the
axis move command.
GO1
G91
G91
It
11. H code or D code can be selected by parameter
setting of the tool position offset (G45 to
set number command.
H code or D code
number command, by parameter setting.
G45 XO
. . .
. . .
is
Movement is made in the positive
direction along both X and Y axis
by the offset value with
GOO G46 XO
Movement is made in the negative
direction along X axis by the offset value
meaningless to give a
YO
D1O F.. . ;
Dll
;
with
D1l.
siEn
can be selected for offset
Gcodeof
D1O.
to “O. “
G48),off-
Ol
Setting parameter
#6073
D2
=
1:
H code only is effective
= O : D code only is effective
Notes :
When
G45 to G48 are programmed as the simultane-
ous move command along two axes, extension or
reduction is made in the two axes. Overcut or under-
size cut will occur if this is applied to cutting. Keep
this in mind.
Even when the offset value is changed by MDI, the
offset command previously programmed will not be
affected. It becomes operable when G45 to G48 are
programmed thereafter.
This tool position offset can be applied in addition to the tool length offset.
Mirror image can be applied to tool position off-
set.
That is, it is possible to perform symmet-
rical cutting with this offset applied.
Tool position offset is independent of G codes
(GIT/G18/G19)
G45
to G48 can not be
ned cycles mode.
this is programmed.
If G92 is programmed in the offset mode, programming of coordinate system is made after the offset
value is canceled from the designated axes. In princi-
ple, program G92 after returning the offset value to
the original value by programming extension or
reduction in the opposite direction.
. During automatic operation, the offset distance
in each axis from the programmed end point by
tool position offset can be displayed
4.3.2.3, “DISPLAY OF TOOL OFFSET STATE:
COMMAND (OFFSET)
of
plane designation.
programmed in the can-
An input error
.“
will
occur if
Refer to
Page 63
EXAMPLE A
i?
.
z
30. ,
I
3
d
I
I
!
I
I
L>
–-––-–––––—––––-––-––- .-
30.
,
G91
GO1
Z-25.F150 ;
G46 x40.Y40.
G45 Y70. ;
G45 G02 X30.
G45 GO1 X30. ;
Y-50. ;
G48 x50. ;
Y50. ;
G47 X70. ;
G47 Y-60. ;
G46 XO ;
G46 G03 x-40.
GO1
G46
YO ;
G47 X-140. ;
G46 x-40.
z25. ;
1
140.
50.
Q
Y30.
Y-40.
Y-40. ;
D1O F300 ;
130. ;
J-40. ;
+Y
L
+x
Fig. 2.62
55
Page 64
2.9.21 TOOL POSITION OFFSET (G45 TO G48) (Cent’d)
EXAMPLE B
@
Q
@
G45 G03 X40.
@
G45 G03 X-40. Y40. 1-40. ;
@
G46 GO1 X-20. ;
@
@
@
G45 G03 X-50.
@
G46
@
@
o
G46 X 30.
G45 X70.
Y50. ;
G45 X-50. ;
GOI YO
X50. ;
Y-80. ;
G46 x-30.
Fig. 2.63
Y40.D15 ;
Y40.
;
Y-40. ;
J40. ;
Y-50. J-50.
;
56
Page 65
2.9.22 SCALING FUNCTION (G50, G51 )
With this function ,
med by part programs can
at any desired scale .
The following G codes are used for this function .
G
code
7
G50
G51
workpiece
Group
15
15
contours program–
be enlarged or reduced
Scaling OFF
Scaling ON
t
Meaning
Where the work coordinate system is specified, I, J,
and K in the G51 block designates the distance
between coordinate system origin and scaling center.
400,
1
Y
N1
G92 XO YO :
N2 GOO G90 X200. Y1OO. ;
G51
~~
1200.
SCALING
CENTER
N3
J200.
;
Example
Note:
reset, the control is in the state of G code
marked
G51
1.. . J.. . K.. . P.. . ;
With this command, the program is executed on an
enlarged or reduced scale with the scale ratio specified by P, and the center of scaling specified by I, J,
and K.
G50; command cancels the scaling mode.
When power is applied or the control is
with-.
Work
Coordinate
System
Shift
(200, 100)
The enlarging and reducing scales can be se-
lected
lEnlarging
Reference unit for P is :
When P command includes decimal number , num-
wit~in-the
and reducing range I 0.000001-99.9999991
bers after decimal point are regarded as
digit numbers.
Example
Po.
999999
P2.
O
P2
When P (designating multiplication) is omitted,
multiplication is determined by setting #6500 and
#6501.
Multiplication
following
0.999999 time
2
times
~ange.
1 =
0.000001.
0.000002 time
#6500
=
#6501
six-
Notes :
Example
Where setting #6500
Multiplication factor =
=
3, #6501 = 100
=
0.03 times
&
Multiplication should not exceed the enlarging
and reducing range.
When 1, J , or K is programmed in the G51 command, scaling functions on the axis designated:
. . .
X-axis, J. . . Y-axis, K. . . Z-axis.
I
Scaling will work only on the axis selected by I,
J,or
K.
Example
G51
1100 JO PO.8
With this command , scaling will work on X- and
Y-axis and not on Z-axis.
G 92
Y
G54
400.
N1 G54
N2 GOO G90 X200. Y1OO. ;
N3
G51
1200. J200. ;
400.
Amount
Scaling is turned on when approaching for
usual machining and off after retraction on
completion of approaching.
on scaling during machining will not form the
correct contour.
Scaling is executed on the two axes on machin-
ing plane.
atis ,an alarm occurs at circular command be-
cause scaling cannot work according to circular
command.
Block commands
and G50 ;
If X, Y and Z commands coincide in the same
block, an alarm will occur.
When the scale ratio of one or more is programmed, the resultant command value should not
exceed the maximum.
Scale ratio O cannot be commanded. If commanded, an alarm will occur.
Scaling is not effective on compensation value.
Canned cycles cannot be executed with scaling
commanded on Z-axis.
ed on Z-axis during canned cycle execution,
an alarm will occur.
When operation is reset (reset pushbutton, M02, M30
command), scaling is turned off
200,
11:
If scaling is executed on a single
should be programmed independently.
~>
Fig, 2.64
G51 I..
If scaling is command-
SCALING
CENTER
Turning off and
.
J.,
.
K,.
.
p..
(G50).
. ;
57
Page 66
2.9.22 SCALING FUNCTION (G50, G51 ) t (Cent’d)
Display of command and position will show the
values of command and position after scaling is
finished.
The following G codes cannot be commanded
during scaling. If commanded, an alarm will
occur.
G28, G29, G30, G31, G36, G37, G38, G53,
Scaling ( G51) command cannot be given during
tool radius compensation C.
Alarm codes for scaling are listed below.
Table 2.23 Alarm Codes for Scaling
Alarm Code
050
051
.
Scaling should always be commanded by G51
and G50 as a pair. Commanding G 51 during
scaling mode is ignored.
I
G50 and G51 blocks not
commanded independently.
.
Multiplication factor set as O.
.
Unusable G code commanded
during scaling
Scaling function working on
Z-axis during canned cycle.
.
Scaling
during compensation C.
Causes
(G51)
commanded
G92
2.9.23 WORK COORDINATE SYSTEM SETTING A
(G52 TO G59)
Six types of work coordinate systems corresponding to six G codes, G54 through G59, are available for selective use.
. There are three types of coordinate systems as
follows .
A. Basic coordinate system
This is the basic coordinate system to be
set up by G92, by the ORIGIN key, or by
the automatic coordinate system setting
ti on.
until any of these actions will be made, the
tool position at the time of turning on is
treated as the temporary coordinate origin.
B . Work coordinate system
When any of the G codes G54 through G59 is
commanded, a coordinate system with the origin
shifted by the amount set by the setting numbers
corresponding to that G code is set up. The coordinate systems set up by these G codes are
referred to as work coordinate systems, and when
a work coordinate system is set up, the tool
controlled to it. Since there are six G codes for
work coordinate systems, up to six work coordinate systems can be used.
C. Machine coordinate system
This is a coordinate system which is fixed
to the machine, and is
is returned to the reference point.
coordinate system has its (O, 0, O) point at
the reference point.
t
When the power supply is turned on,
set
up when the tool
func-
wtll be
This
The setting number for setting the shift amounts
for G codes from G54 to G59 are as follows.
Table 2.24 Work Coordinate System Setting A
G code
G54
G55
G56
G57
G58
G59
Setting
up work coordinate systems
(G54 <o E59)
G54 (G55, G56, G57, G58 or
When this command is given, from that time on, the
tool will be controlled by the work coordinate system.
Coordinate system
Work coordinate system 1
Work coordinate system 2
Work coordinate system 3
Work coordinate system 4
Work coordinate system 5
Work coordinate system 6
G59):
58
x
#6516
#6522
#6528
#6534
#6540
#6546
Returning to basic coordinate system ( G52)
G52 ;
With this command, the currently effective
work coordinate system is cancelled, and the
basic coordinate system becomes effective
Y
#6517
#6523
#6529
#6535
#6541
#6547
z
#6518
#6524
#6530
#6536
#6542
#6548
a
#6519
#6525
#6531
#6537
#6543
#6549
again .
Page 67
EXAMPLE
N1 G90 X1OO. Y200. ;
N2 G54 ;
N3 X1OO. Y300. ;
N4 X300. Y200. ;
N5 G52 ;
N6 Xo Yo ;
Temporary shift to positions on machine coordinate system
(G90) G53 X... Y,.. Z... ;
With this command, the tool is shifted to the
position (X,
system only in this block. G53 is a non-modal
G code.
2.9.23 WORK COORDINATE SYSTEM SETTING A
(G52 TO G59) t (Cent’d)
Notes :
The shift amounts for work coordinate systems
be specified by programs with G1O com-
can
mands, in addition to the MD I writing. For
details , refer to 2.9.8.
DESIGNATION (G1O).”
Work coordinate systems set up
G59 are canceled by the G52 command, and the
basic coordinate system becomes effective again.
When a work coordinate system has been set up by
any of the commands G54 through G59, the selected
shift amounts can not be changed even when they
are rewritten.
The rewritten shift amounts will become effec-
tive when a new work coordinate system com-
mand is executed.
G53 commands should only be given under the
following conditions.
not satisfied, the commands are regarded as
errors.
The mirror image function is not used.
(1)
(2)
No canned cycle is in use and no tool com-
pensation C is in use.
(3)
If a 01 group G code is used, it is
GO1 or G60 and nothing else.
G53 command is executed with the machine
If a
lock function on, the current value displayed
changes sequentially until the command value
corresponding to the machine lock function off
state will be displayed. If the machine lock
function is switched on and off during the ex-
ecution of G53 blocks , correct positioning can
not be achieved.
However, when a complete G53 block is
ed with the machine lock function off, correct
positioning is achieved as programmed, even
when the machine lock function is switched on
and off before that block.
G53 commands should be given in the G 90 mode.
If they are given in the
values are regarded as G 90 mode values.
When work coordinate systems are to be changed
with any one of the G54 through G59 commands,
the program should be written so that a new
coordinate system will be set up in the G90
mode and the basic coordinate system will be
reset in the G90 mode.
If a G53 command is
compensation or tool position offset function is
on, the tool offset value
rarily. Generally, when giving a G53 command,
the tool length compensation and tool position
offset commands should be canceled in advance.
. If a G 53 command is given while the tool
position offset command is ON, subsequent
programs will be as follows :
“ TOOL OFFSET VALUE
by
G54 through
If these conditions are
GOO,
execut–
G91 mode, the command
~ven
while the tool length
is deleted tempo-
(1)
If subsequent programs are given in
incremental mode, it will cause the tool to
move by incremental amount given from
reference point as a command. (Offset
amount not considered. )
(2)
If subsequent programs are
absolute mode, it will
move by “absolute position plus offset
amount” given as a command.
When any one of the commands G54 through
G59 is given while the tool length
compensation or tool position, the
compensation remains effective. Generally,
when any one of the commands G54 through
G59 is to be given, the tool length
compensation or tool position offset command
should be canceled in advance.
m
G54 ;
1
~“
Shift amount for Z axis is 1300.
G54 shift: Z
HO1
Offset:
. If G92 is given during execution on the work
coordinate system set up by G54 through G59,
G54 through G59 or the basic coordinate system is shifted so that the current position is
to be a shifted position by G92, G92 should
not be used in G54 to G59 modes in general.
WORK COORDINATE SYSTEM SETTING B
2.9.24
(G52 TO G59)
(1) Outline of work coordinate system-setting
expansion
Up to 30 types of work coordinate systems can
be set with the expansion of the work coordinate
= 100.
t
cOMzlOO-
I
cOM “
= 300.
given
cause~he
100
’
in
tool to
systems of specification A (6 types) by using
Jl
commands
G59. The expanded area will be set by #6700
-#6771.
The four axes X, Y, Z,
G59 and G54 (J 1) to G59 (J
ands
J2 to J5, only three axes X, Y, Z can be set but
the 4th axis cannot be set.
(2) Setting numbers for specifying work coordinate system shift
For work coordinate system setting, comments will be
displayed as shown below.
the 4th axis of G54 (J 1) to G59
#6715
#6733
#6751#6752#6753
#6769
#6716
#6734
#6770
~is
display will be possible if
(4) Work coordinate system setting
(n=l,
(a) G54 Jn;
With this command,
cause the tool to move along the work coordinate
system. G 54 to G59 are modal commands.
(b) The G54; command and G54 Jl; command are
equivalent.
(c) If a command is a numerical value above J6,
alarmt! 12911 will occur.
(d) Durtng the J2 to J5 commands, the amount of shift
on the 4th axis will be O and the basic coordinate system
will become effective again.
(5) Returning to the basic coordinate system
(a) G52;
With this command it will be possible to cancel
the currently selected work coordinate and
return to the basic work coordinate system.
(b) G52 is a
(6) EXAMPLE
Y
2, 3, 4, 5)
subsequent programs will
(G52)
modal command.
SHIFT AMOUNT FOR
WORK COORDINATE SYSTEM
400”t 300tA
(200 100)
N1
G92 XO YO;
N2 G90 GOO X1OO.
Y200.
:
N3 G54J2;
N4 X200. Y300;
N5 x400.
N6
G52;
Y1OO;
N7 XO YO;
Work Coordinate Svstem Shift Amount
#6700
#6701
200.
100.
Setting Comment Display
SETTING
#6520
#6521
#65Z2
#6523
#6524#6525#6526
*3
Selection of
w
axis.
-12345678(G54
4th axis displays any one of A, B, C,
(7) Temporary shift on the machine coordinate
system
01234 N1234
o
o
o
o
(G55 X)
(G55 Y)
(G55
/3)
Similar to Specification A, G53 can command a
temporary shift on the machine coordinate system
with the G 53 command. G53 is a non-modal G
code.
Example:
(8) Changing work coordinate systems with G 10
(a)
corrects the work coordinate system from the
(G53)
similar
G53(G90)GO0
to Specification A, G 10 command
X.. .Y. .. Z.. .(a ...);
program .
-
U, V, or
G10Q2Pm JnX, ., Y.. ,Z .,,
This command corrects the specified work coordinate system to be corrected can be specified
by the combination Pm Jn.
(a...);
61
Page 70
2.9.24 WORK COORDINATE SYSTEM SETTING B
(G52 TO G59) t (Cent’d)
Pm . . . . . selects commands from G54 to G59.
P1 = G54
to to
P6 = G59
Jn . . . . . selects any of
Example:
(b) Omission of J or specification of JO will be
considered equivalent to
(c) Error
value is specified for m or n.
(d)
when executing commands J2 to J5.
(9) Work coordinate system shifting in user macro
(a) The amount of work coordinate shifting (and
external work coordinate system corrections) can
be read by using a system variable for the right
element of an arithmetic expression.
(b) The values can be changed by using the
above system variable as the left element.
(c) The correspondence between the system variable and
the amount of work coordinate shift will appear as listed
in the following table.
#2700’s the
spondence as the X-axis. Command G54 to G59
lent to J 1) only in the case of
P2J3. . . . . G55J3
P4J2 . . . . . G57J2
II0381! will
Error“038” will occur if the 4th axis is commanded
a
System
Vabiables
#2500
#2501
#2$06
occur if a wrong numerical
Y-axis of
axes of #2800’s have the same corre-
Table 2.26 (a)
Work Coordinate
System Shift
External work
coordinate system
correction amount
#2511
#2516
#2521
#2526
#2531
#2536
#2541
#2546
JI to J5.
J1.
#2600s,
a
axis.
Amount
G54. (J1)
G59”(J1)
G54
J2
G59 J2
G54 J3
G59 J3
G54 J4
G54 J4
G54 J5
G59 J5
the Z-axis of
(equiva-
Axis
x
Table 2.26 (b)
System
Variables
External work
#2600
#2601
#2606
#2611
coordinate system
correction amount
G54
G59
G54
.
#2616
#2621
#2631
#2636
#2641G54 J5
#2646
System
Variables
#2700
#2701
#2706
#2711
#2716
#2721
#2726
#2731
#2736
#2741
+2746
G59
G54 J3
G59 J3#2626
G54 J4
G54 J5
.
.
G59 J5
Table 2.26 (c)
Work Coordinate
Shift Amount
System
External work
coordinate system
correction amount
G54
G59
G54
G59
G54 J3
G59 J3
G54 J4
G59 J4
G54 J5
.
G59 J5
(Jl)
(Jl)
(Jl)
(Jl)
J2
J2
J2
J2
Y
Axis
z
62
Page 71
Table 2.26 (d)
System
Variables
#2800
$2801
#2806
(d) Program examples
(i) #116
Command G54 (J 1) assigns the amount of work coordinate
system shift of X-axis as the common variable #116.
(ii)
Command G54 (J2) cancels the amount of work coordinate
system shift of X-axis and sets the contents of local variable #4.
(10) Correction of the work coordinate system shift by an
external input
(a) The amount of work coordinate system shift can be
corrected by an external data input signal.
(b) The new amount of shift can be obtained by inputting
the amount of axis correction from the outside and adding
this to all of the shift values from G54
axis will correct X-axis shift amounts for all commands
from G54
(11) Notes and remarks
(a) The notes in Specification A are also applicable to
Specification B.
(b) Use the G54 to G59 ; commands in the GOO or GO1
mode. Alarm “129” will occur if used in any other mode.
=#2501
#2511=#4
For example, inputting the amount of shift for the X-
(1) Outline of work coordinate system setting expansion
function
The rotary angle can be set in the work coordinate system
setting when commanding G54 to G59, to perform the
coordinate system rotation at the same time. The J2 to J5
commands of G54 to G59 are also expanded to
ting of the 4th axis.
(2) The item on the rotary angle is added to the work coordinate system setting. The 4th axis can be set to all the
work coordinate systems at the same time. See Table 2.26
(e) for the setting numbers.
t
Wow
set-
(3) Setting command display
SETTING
#6520 –12345678
*
#6521
# 6522
# 6523
# 6524# 6525
3000
0
0
A, B, C. U,
Fig, 2.67
O
1234 N 1234
(G54
~)
(G54 R)
(G 55 X)
(G 55 Y)
V or W is displayed by the
=1s
specification.
4th
63
Page 72
2.9.25 WORK COORDINATE SYSTEM SETTING C
(G52 TO G59)
t
(Contd)
(4) Work coordinate system setting
Setting is performed in the same way as for work
coordinate system setting B.
move the work coordinate system.
(a) G54 Jn;
With this command, all later programs move on the
. .
speclfled
modal commands.
(b) The G54; command and G54
(c) Commanding numerals exceeding J6 causes alarm
11129+!1
(d) When J2 to J5 are commanded, the shift amount of
the 4th axis becomes O and returns to the basic coordinate system.
(5) Returning to the basic coordinate system
(a) G52;
With this command, the currently selected work
coordinate system is canceled, to return to the
basic coordinate system.
(b) G52 is modal.
(6) Program example
G92 XO YO ZO:
.
Nothing changes under G92.
(n = 1, 2, to 5)
work coordinate sYstern.
Rotation is added to
G54 to G59
Jl;
are equivalent.
are
(G52)
.
.
.
G54;
.
(G68 XO YO R
.
Shifts the work coordinate system by G54,
.
and rotates the coordinate system for R,
.
centering the work coordinate system (O, O).
G55;
.
(G69)
.
(G68 XO YO
.
Shifts the work coordinate system by G54
.
and cancels the rotation, to create a new
coordinate system by the G55 work
coordinate system shift amount and rotary
angle.
G52;
.
(G69)
.
Returns to the G92 coordinate system
.
G52.
.
M30;
(
when actually programmed.
Tem~orarv
(7)
system
As in the A-specification, the move on the machine
coordinate system can be temporarily commanded by
the G53 command.
(Example) G53
The rotation is also canceled.
) shows what the program will be
move in the machine coordinate
tG53) ‘
(value of
R (value of #6527))
G53 is a non-modal G code.
(G90)
GOO
(a... ) ;
#6521))
X... Y.*o Z--”
by
like
(8) Work coordinate system alteration by G1O
As is the work coordinate system A- and
specifications,
system can be commanded from the program by the
G1O command.
(a) G1O Q2 Pm Jn
Command as above, to correct the specified work
coordinate system.
The combination of Pm and Jn specifies the
coordinate system to be corrected.
Select G54 to G59 by
P1 = G44
to
P6 = G59
J1
Select
ExampleP2 J3. . . G55 J3
(b) When J is omitted or when JO is specified, it is
regarded as
(c) When a wrong numeral is commanded for m or
n, error ‘i 03811
(d) The 4th axis command is enabled when J2 to J5 are
commanded.
(This is added to the work coordinate system shift
specifications).
(e)
(9) Work coordinate system shift amount in the
macro program
(a) The following system variables are added to the
macro, by the addition of the work coordinate
system shift amount.
(b) The notes and how to use the system variables
are the same as the A- and B-specifications.
to J5 by Jn* . ●
R“””
System
Variables
the work correction of the coordinate
X...
Z... a... R... ;
Pm.. *
. . . G57
J2
P4
J1.
occurs.
corrects the rotary angle,
#2500
+
#2501
.
.
#2i06
#2511
.
.
#2;16
#2521
.
.
#2;26
#2531
.
.
#2536
#2541
.
.
#2~46
+
.J3
Table 2.26
Work Coordinate
System Shift
Amount
External work
coordinate system
correction amount
G54
G59 “(J1)
G54
G59
G54 J3
G59
G54 J4
G59
(Jl)
.
.
J2
.
.
.
J2
.
‘J3
.
i4
(fJ
Axis
B-
B-
x
64
Page 73
Table 2.26
(@
Table 2.26 (i)
System
Variables
#2600
#2601
.
.
#2;06
#2611
.
.
#2~16
#2621
.
#2626
#2631
#2i36
#2641
.
.
.
#2646
System
Variables
#2700
#2701
.
.
#2+06
#2711
.
.
#2f16
#2721
.
#2i26
#2731
.
#2~36#2986
#2741
.
.
#2+46
Work Coordinate
System Shift
Amount
External work
coordinate system
correction amount
+
G54 (Jl)
.
.
G59 “(J1)
G54 J2
.
.
G59 >2
G54 J3
.
.
G59 >3
G54 J4
.
.
G59
h4
G54 J5
.
.
G59
;5
Table 2.26 (h)
Work Coordinate
System Shift
Amount
External work
coordinate system
correction amount
G54
(Jl)
.
.
G59 “(J1)
G54 J2
.
.
G59 ~2
G54 J3
.
.
G59
;3
G54
J4
.
G59 J4
G54 J5
.
G59
;5
Axis
Y
Axis
z
Variables
(c) Assign the following system variables to the
rotary angle.
System
Variables
System
#2800
#2801
.
.
#2~06
#2811
.
#2~16
#2821
.
.
#2i26
#2831
.
.
#2~36
#2841
.
.
#2i46
#2951
.
.
#2<56
#2961
.
.
#2966
#2971
.
#2981
.
.
.
#2991
.
.
#2~96
Work Coordinate
System Shift
Amount
External work
coordinate system
correction amount
G54
(Jl)
.
.
G59 “(J1)
G54 J2
.
.
G59
;2
G54 J3
.
.
G59
b3
G54 J4
.
.
G59 >4
G54 J5
.
.
.
G59 J5
Table 2.26 (j)
Work Coordinate
System Rotary
Angle
G54
J1
.
.
G59”
J1
G54
J2
.
.
G59’
J2
G54 J3
.
G59’
J3
G54 J4
.
.
.
G59 J4
I
G54 J5
1:
G59”
J5
Axis
a
Address
R
65
Page 74
It
2.9.25 WORK COORDINATE SYSTEM SETTING C
(G52 TO G59)
(10 ) Correction of the work coordinate system shift
amount by external input
(a) The work coordinate system shift amount can be
corrected by external data input signals.
(b) The externally input axis correction amount is
added to all the G54
to make new shift amounts.
work coordinate system shift amount is not directly
corrected.
for external work coordinate system correction
amount.
coordinate system = External work coordinate system
correction amount + work coordinate system shift
amount setting.
(c) For rotary angle, the direct setting is
corrected.
coordinate system correction amount.
(11 ) J-number monitor during execution of work
coordinate system shift
The pair addition number J can be monitored by
#6195, during execution of the work coordinate
system shift (G54 to
No J
J1
J2
● ?””
J3
J4 . . . .
J5 . . . .=5
(12) Notes and remarks
(a) All the notes for the B-specifications
the C-specifications.
(b) Command the G54 to G59 commands under the
GOO to GO1 mode.
modes, alarm
(c) G68 and G69 cannot be used in this
specification. Executing G68 and G69 will cause
“alarm.
(d) The coordinate system rotation by the G54
command is canceled by the G52 command or by
setting O in the work coordinate system setting.
(e) The G28 /G30 commands during coordinate
system rotation under the G54 command, can
perform rotation at the intermediate positioning
point, but not on the reference point.
Coordinate system rotation is also not performed for
G53.
(f) The coordinate rotation plane of this specification is fixed to the G17 plane.
UNIDIRECTIONAL APPROACH
2.9.26
t
(Cent’d)
(Jl)
to G59 (J5) shift amounts
The setting of the
The work coordinate system is corrected
Shift amount on actually moving work
Therefore, there is no external work
G59).
.*OO
#6195 = 1
..*o
=
2
=3
=
4
If commanded under other
“
129” occurs.
(G60)
t
apply
to
This function is effective to position the tool at
high accuracy .
G60 x.. . Y.. .
With this command, the tool moves and stops at the
specified position. If the tool approaches the stop position in the direction specified by the parameter (#6014),
Z.. .();..);
ovenravels the stop position by the amount specilied
by parameters (#6436 - #6439), and then returns to the
specified position to stop.
o
Notes :
. Unidirectional approach is effective in the canned cycle
mode. Shift by G76 includes unidirectional approach.
Cancel this function before executing G76 for safety purposes.
. Unidirectional positioning is performed at the interim
point by G28 command.
c
When GOO is commanded in a G60 block, the latter
commanded G code is validated.
HOLE PATTERN CYCLES
2.9.27
With this function , when a radius and a center
angle are specified, the corresponding rectan-
gular coordinate positions are computed automatically and the tool is brought to the required
positions.
with one of the canned cycles
G73, G74, G76 and
bolt hole cycle , the arc cycle, and the line at
angle cycle are programmed.
the position specified by a radius and an angle
in rapid traverse
. Bolt hole cycle
G70
With this command, the tool is positioned successively at equally spaced L points on a circle with the center at X, Y and the radius of
1, starting at a point located on a line forming
J degree with X-axis. In the
X, Y : Coordinate of the bolt hole cycle, defined
I:
Radius of the bolt hole circle, programmed in
a positive number and programmed with an
accuracy of the least input increment.
Angular position of the first hole, programmed
J:
in degrees with an accuracy of O.001 degree.
CCW direction is regarded positive.
Number of division of the circumference.
L:
For the counter-clockwise sequence, positive
numbers are programmed, and vice versa.
—
—
———
DIRECTION SET BY
PAWTER
OVERTRAL’EL ;
I
(
>
1
I
I
STOP
POSITION
Fig.
2.68
(G70,
G71 , G72)
This function is used in conjunction
G77.
(GOO)
.
(G70)
X..
.
Y.. , 1..
either in G90 or G91 mode.
.
G81
With this function, the
J..
through G89,
The tool moves to
.
L..
. ;
command.
o
t
66
Page 75
EXAMPLE
2
5
G81
G98 G90
G70 X90. Y30. 140. J20. L6 ;
GOO
G80
Arc cycle
With this function , when the following command
is given , the tool is successively positioned to
L points located on a circular arc with the center located at X , Y and with the radius of I,
at a center angle of K degrees, starting from
the point lying on a line intersecting the X
atis
at J degrees.
G71 X..
XO YO ;
(G71)
.
Y..
.
z-50.
R-20. F20 Lo
Fig.
2.69
I..J..
K.. L..
.
;
:
x, Y: Coordinates of the arc center, defind
G91
either in G90 or
I:Radius of the arc programmed with an
J:
K:
L:
accuracy of the least programmable
increment,
Angular position of the first hole, pro-
grammed in O. 001 degrees. Positive
values are used to command counterclockwise direction.
Angular spacing in degrees with an accuracy of O. 001 degrees.
are used to command counter-clockwise
direction.
and in positive numbers
Number of holes, to be set in positive
numbers.
EXAMPLE
END -
POINT
mode
Positive values
Line at angle cycle
When the following command is given, the tool is
positioned successively at L points lying on a line
forming J degrees with X-axis, with a uniform interval
of I, starting at X, Y.
G72
x, Y:
I:Interval is programmed in degrees, at
J:Angles programmed with an accuracy of
L:Number of holes programmed in positive
EXAMPLES
XO. O Y..
Coordinates of the starting point, either
in G 90 or G91 mode
an accuracy of the least input increment.
will be located on the line in the nega-
tive direction.
O. 001 degrees.
Positive values are used for
numbers.
(G72)
.
1..
. Jo. .
When I is negative, the holes
L*o.
;
CCW
direction.
I
Y=30m
1
G81
G98 G90 Z-50. R-20.
G72 x70. Y 30, 125.
G80 GOO XO YO ;
Fig.
Notes :
When the hole pattern cycles are to
med with G70,
ned cycle G73,
should be programmed with L = O, in the preceding block,
executed, but drilling data will be registered.
G70, G71 or G72 can be programmed in the same block
with a canned cycle G code.
However G73 and G83 which involve I, J, and K can not
be programmed with G70, G71 or G72 in the same
block. When G73 or G83 is to be used, either
used or
ceding block.
I, J, and K should be programmed in the pre-
C171
or G72, in principle, a can-
G74, G76, G77, G81 to G89
Since L = O, the canned cycle is not
J15.5
2.71
F20,
L6
LO ;
;
be
program-
Q
is to be
START
POINT
X.70mm
Y=30m
Fig. 2.70
G81
G98 G90 Z-50.
G71
X70. Y30. 1110.
G80 GOO XO YO ;
R-20.
J20.
F20 LO ;
K15.2
L7 ;
67
Page 76
2.9.27 HOLE PATTERN CYCLES (G70, G71, G72) t (Cent’d)G70,
G71
and G72 are non-modal G codes.
The machining control of G70,
with the drilling of the last hole, and to move
the tool to the next position, the G90 (absolute)
mode is more convenient than the
mental) mode, because the latter involves complicated calculations.
Immediately after the completion of the machining
process as commanded by G70,
canned cycle is still effective, and care must be taken
in programming the subsequent block. Be sure to cancel the canned cycle by G80.
G71
If G70,
radius compensation mode ( G41 or G42) , the
ALARM code will be displayed.
or G72 command is given in the tool
G code
G73
G74
Wood pecker
feed
Feed
G71
Plunging
or G72 ends
G91
(incre-
G71 or G72, the
At hole bottom
Spindle forward Spindle reversing
running after
dwell
Give G70, G71 or G72 command in a canned
cle mode only.
gramming any canned cycle, the ALARM code
be displayed.
will
If they are given without
2.9.28 CANNED CYCLES
(G73,
G74, G76, G77, G80 TO G89, G98, G99)
Canned cycles (G73, G74, G76, G77, G80 to G89,
G98, G 99) are simplified programs that contain
specific movements over a number of blocks in
one block.
G80 code is commanded for canceling them .
Table 2.27
I
Retraction
\
Rapid traverse
after feed
14 types of cycles are available, and
Application
High speed deep
hole drilling
Reverse tapping
cY-
pro--
t
G76
G77
G80
G81
G82
G83
G84
G85
G86
G87
Feed
Spindle index-
+
shift
ing
+
rapid traverse
+
shift + spindle
+
start
feed
Feed
Feed
Wood pecker
feed
Feed
Spindle index-Rapid traverse
+ stift
ing
DwellRapid traverse
DwellRapid traverse
Spindle
revers-
ing after dwell
+
shift, spindle
start
spindle indexing
+
shift + rapid
traverse
shift, spindle
start
Rapid traverse
Rapid traverse
+
Spindle forward
running after
Boring
Back boring
+
Cancel
Drilling
Spot, facing
Deep hole
drilling
Tapping
feed
Feed
Feed
FeedBoring
Spindle stop
Spindle stopManual retraction
Feed
Rapid traverse
~
Spindle start
z
Spindle start
Boring
Boring
68
G88
G89
Feed
Feed
Spindle stop
after dwell~
Dwell
Manual retraction
Boring
Spindle start
Feed
Boring
Page 77
Command format:
G code of canned cycle
r
t
G..
.
X*.
. .
Drilling position X , Y coordinate command
y~.
. .
z*.
. . R.. .
—.
—-
Dwell at hole bottom
I
Point R coordinate command
: Z coordinate command
Poi
P..
.
Q..
.
L..
.
—
F“””
T
Cutting feedrate
TT
Number of repeats
I
Drilling pitch for G73, G83
Shift amount of G76, G77
;
U9
START
POINT
Operations
one cycle with the commands shown above.
@
Positioning the drilling position (X
@
Rapid traverse to R point
@
Drilling to Z point
@
Return to R point or to initial point
Number of repeats is specified by the address
Where L is not given, number of repeats
L.
is regarded as
If O is given for L, only positioning to (X, Y)
is made. Shift direction of shift of G76,
can be made atthe intended angle specified
by the parameter. (
Z- axis returning position at the end of canned
cycle can be designated by the following G code.
‘q ~
@lo
B;
k
Fig. 2,72
@
through @ are executed in
“
1.
‘1
INITIAL POSITION
POSITION R
POSITION Z
HOLE BOTTOM)
(
#6019D0)
,Y)
G77
G code
G98
!
G99
Note:
reset, the control is in the state of G code
marked with
Where parameter
direction is
The direction is set as listed below.
x(+)
x(-)
y(+)
I
When power is applied or the control is
1.
made in the specified direction.
.,
1
I
I
Y(-)
Where parameter
direction
shifting angle is set by setting #6506 (1 = 0.001
deg) .
is
made at
Meaning
Initial level return
Position R level return
#6019D0
is set to O, the shift
DZ
o
I
o
1
1
#6019D0
the intended angle. The
1
is set to 1, the shift
DI
0
1
0
1
69
Page 78
2.9.28 CANNED CYCLES (G73, G74, G76, G77, G80 TO G89, G98, G99) t (Cent’d)
When the canned cycles are executed by turning on the SINGLE BLOCK switch, a temporary
stop is made in an intermediate position, and
the FEED HOLD lamp lights up.
(1) After positioning to point (X, Y )
(2) After positioning to point R
(3) After termination of each cycle, if L
command has been given.
The single block stop after the completion of
canned cycles is normal, and the FEED HOLD
lamp does not light up.
Be sure to designate the R and Z points by programming R and Z before entering the canned cycle mode.
R and Z points are cleared when canned cycles are
cancelled.
When executing canned cycles with the address
data changed, the block requires any of the following address commands. The canned cycles
will not be executed otherwise .
-
When M, S, T or B+ code is given in the canned cycle , M , S , T signals are sent at the first
positioning in the block. In general, M, S, T
should be commanded in their own block.
An program error “021” occurs when any one of the
foUowtng
mode.
When programming G92, G27, G28 etc., make sure
to cancel the canned cycles
Cancellation is performed when a G code of 01
group is programmed during canned cycles.
G codes is programmed in the canned cycle
G codes of * group except for G04
~
in advance.
. Programming consideration of M98 in the canned
cYcle
mode is the same as those of other than
canned cycle modes. (e. g. Restriction of execution to no more than four levels, M98 command from punched tape and the like. )
. Address L for designation of repetition number
of subprograms is
below is a special case that the address L is
retained temporarily.
EXAMPLE
G91 G81 X1O.R-20. Z-30.
L3 ; . . . The canned cycle is not executed
X20. ; . . . The canned cycle G81 is executed
As mentioned above,
is retained until actually executed.
. Changing of R point and Z point
When R is commanded instead of Z during the
execution of canned cycle in G91 mode, Z becomes incremental value from the new R point.
Care should be taken.
G92 XO YO ZO
G91
X.. . Y.. . R-5. O
Z-10. OF ;
nonmodal.
because X, Y, Z, u, or R is not
designated in this block.
The L3 is retained.
3 times using the retained L3.
After the execution , the L3 is
erased.
address L in canned
Point R
But described
F1OO ;
cycle
Point Z
A single-block of DWELL
the canned cycle mode.
mally.
An program error
cycles are programmed in the tool radius compensation C mode
Start of spindle forward or reverse
M04) should be executed by automatic operation commands before entering canned cycles.
Do not enter into canned cycles after manually
switching the spindle between forward and reverse.
Execution of subprogram
mode. In a canned cycle mode, M98 P... L... ; can be
programmed to call up subprogram and the canned
cycle is continued in the subprogram. The address
(program number of the first block of subprogram)
with M98 command destroys temporary the contents
of address P for designation of
the jumping to subprogram, it resumes the contents.
(G04) can be inserted in
DWELL is executed nor-
1102411 occurs
(G41, G42) .
when canned
(M98)
in canned cycle
dwefl time, but after
(M03 or
~::~o’
“
G74/G84 are commands for reverse tapping/tap-
ping but they are not distinguished. That is, when
inputting by M03, M04 is output at the bottom of
the hole ; when inputting by M04, M03 is output at
the bottom of the hole. When G74/G84 are commanded without spindle revolution, M03 is output
at the bottom of the hole.
P
e
77
Page 86
2.9.28 CANNED CYCLES
EXAMPLE
(G73,
G74, G76, G77, G80 TO G89, G98, G99) t (Contid)
+Y
40,
START POINT
.
N1O
G92
XO YO 20 ;
Nll
G90 G98 ;
N12 G81
N13
N14
X30.
M98 P1OO ;
GOO XO YO ;
-----4
-----+
-----
~
L-----N----. +-----
1“
~
r
/’
/’
/’
40.
— +x
Fig. 2.75
Y40.
R-20
2-30.
. . .
. .
7
Return to initial point, Absolute
F200 ;...
Jump to subprogram
;
:
Drilling cycle
N15
T05 ;
N16M06 ;
N17
G84 X30.
N18
N19
GOO XO YO ;
0400
N1OO
N101
N102
N103
N104
M98 P400 ;
G91
X40. L3 ;
Y30. ;
X-40. L3 ;
Y30. ;
X40. L3
N105 G90 G80 ;
N106
M99 :
Y40.
R-20
. . .
. . .
2-30.
. . .
Tapper selection
Tool change
F2000
; . . .
Tapping cycle
Jump to subprogram (Note)
Subprogram for drilling
position pattern .
78
Page 87
2.9.29 UPGRADING THE CANNED CYCLE
(G73,
G74, G76, G77, G80 TO G89, G98, G99,
G181, G182, G185, G186, G187,
The following functions are added to the conventional
YASNAC canned cycles.
.
Initial point alteration
.
Improved command procedure for the high-speed
deep hole drilling cycle
.
2-step feed
.
Reciprocal feed
.
Improved command procedure for boring and back
boring
.
2-step drilling cycle
.
Improved command procedure for the tapping
cycle
2.9.29.1 VARIOUS FUNCTIONS
(1) Initial point alteration
Canceling the canned cycle before changing the
point in the canned cycle is not required. Address W is
used.
Example
-—-— ---
!$~m
1
1
rm ,
11,
18
II
---II
!11,1
G189)t
r-wz
IIII
initi~
W1
R3
Z3
z
(2) The drill can be moved up to the R point
during high-speed drilling. This allows the chips
to be removed during the cycle.
● : Dwell
o : Single-block stop
2.9.29.3 2-STEP FEED
Delaying the cutting speed near the drilling start
point can improve the precision without performing
center drilling.
----
I
I
!
i
I
1
,
G99G81
G98
X.”.Y”””R1 .
X...Y”””R2 ““”22
X...”.R3R3
..21 ““”Fc-c
““”W 1
;
““”
“-”23 “.”W2””” ;
;
X“””Y””” ;
Notes:
The W point command under the G91 mode
1.
creates the R point and Z point based on the
initial point of the previous block; not the W
point of command block. Therefore, The old R
point and Z point are stored to make the move,
unless the R point and Z point are newly
commanded.
2.When under the G98 mode (return to the initial
level) , single-block stop is not performed at the
R point, but at the W point or the initial point.
2.9.29.2 IMPROVEMENT ON THE HIGH-SPEED DEEP
HOLE DRILLING CYCLE
(1) In high-speed deep hole drilling, inserting some
dwell at the bottom of the hole in each pitch can
help lighten the load on the drill. Command the
dwell time by setting #6212 or by address P.
F FEED
L
Address E:Speed of the 1st step
Address F:
2.9.29.4 RECIPROCAL FEED
Tapping/boring, etc. :
The forward and return cutting speeds can be
commanded separately.In tapping, the machining
can also be ended before the tapper is elongated.
In boring, the machining time can be shortened.
In reaming, the flaw made on the machining surface
during the return cycle can be prevented.
Distance of the
(commanded without sign )
---- ----
F
Address:
1
I
FEED ~
,
E Return speed
1st step speed
E
FEELI
79
Page 88
2.9.29.5 IMPROVED COMMAND PROCEDURE FOR
BORING AND BACK BORING
G’76 I
The
specified by setting, but can also be commanded in
the program.
be given by setting #6210 or by the program
command,
This makes commanding of
G77 shift direction can now not only be
The dwell time before shift can also
G761G77 easier.
G76
X.””Y.. ”Z”””R. ””I.. ”JP”.”; .”;
—+
Shift direction designation
I
Dwell
time
New initial point (absolute /increment )
w:
Setting data (#6211)
a:
Notes:
1.
When the pitch dwell is commanded by the
program, it has priority over setting #6212.
When program command is not given, dwell is
performed by entering a numeral in the setting
FORWARD ROTATION OF
SPINDLE AFTER DWELL
AT THE R POINT
lN*TIAL
W POINT
I
1
A
R POINT
● ✚ Dwell
o : Single-block
stop
‘OINT
:
Dwell (P)
~z
● :
Setting data
6:
Single-block stop
o:
P:Hole-bottom dwell
w:
New initial point (absolute/incremental)
Setting data (#6213)
a:
Note:
program, it has priority over setting #6212. When
the P command is not given, dwell is performed by
entering a numeral in the setting #6212 (1 = 1 ms) .
Note:The return to the R point or initial point
after reaching the Z point is accomplished by
switching the cutting feed and rapid feed at points
J and K.
Note:The return to the R point or initial point
after reaching the Z point is accomplished by
switching the cutting feed and rapid feed at points
J and K.
2.9.30 ABSOLUTE/lNCREMENTAL PROGRAMMING
(G90,
G91)
These G codes are for designating whether the move-
ment data following the axis address are in absolute
value or incremental value.
.G90
. . .
In the block including G90 and in the subsequent
blocks, the movement data which follow addresses
X, Y, Z, (
In the block including G91 and in the subsequent
blocks, data area is regarded as incremental values.
G91 GO1 X.. .
Incremental designation
Y
z.. . ;
. . .
Incremental designation
. . .
+Y
I
I
II
Y6
Y3
I
Y5
Y2
Y1
~4
G91:
-~
Incremental
G90 :
Absolute
Fig. 2.76
0
G90,
. If both
same block, the G code which was programmed
last is valid.
Note :
.
The initial state of these G codes when the pow-
G91
are modal G codes of 03 group.
G9(I
and G91 are programmed in the
xl
X2
-
er is turned on can be designated
#6005DI).
Parameter(
2.9.31 PROGRAMMING OF ABSOLUTE ZERO POINT
(G92)
Programming the absolute
ming movement command is required. When an
absolute zero point is programmed, one absolute coordinate system is determined, and all absolute movement
commands programmed thereafter will move the tool on
the programmed coordinate.
.G92
X.. . Y.. .
With this command, the current position of the tool is
programmed in the control as absolute coordinate
[X,
point
(with sign) from the desired absolute zero point (O, O,
0, 0 t ) to the current position. In other words, G92
command is for designating the position of the
“absolute zero point”.
EXAMPLE
G92 X500.
Y, Z, a t). That is, program the distance
#6005Do)l
1101!
!l~ll
Z.. .(cr t”).)
Y300.
2400. ;
Initial state
I
I
zero
G 90
G 91
point before program-
;
/1
by
parameter
—+x
. G92 is a G code of non-modal group which is
valid only in the programmed block. It is not
possible to program other G codes, F, M, S,
T , B
Notes :
In
all tool offset modes are
. When the power is turned on , the current posi-
tion of the tool is set as absolute zero point
O,o, et).
ordinate by G 92 before executing the automatic operation.
The programmed absolute zero point is not af-
fected by reset operation. Perform any of the
following operations for resetting the absolute
zero point.
1.
2.
3.
2.9.32 TOOL LIFE CONTROL (G1 22, G123)
2.9.32.1
The tools are classified into groups and tool life
(usage time, total usages or usage distance) is set for
each group. This is a function to give commands for
tool groups from the part program and to select the
next tool in the same group, which has been sequentially arranged, when the fixed life expires.
(1)
Of the tool numbers from
tered as tools for tool life control. If T code commands are
given with two digits, tool numbers from
be used.
(2) Number of groups that can be registered and the
number of tools that can be registered per group.
Maximum number of groups
Maximum number of tools per group . . . . . . .
The maximum controllable number of tools is 256.
Note : Different number of tools can be set for each
group such as 12 in group 1, 8 in group 2.
+Y
I
+Z
Fig.
2.77
+
codes in the same block.
principle , program G92 in the state where
Make sure to reprogram absolute co-
Use ORG key (see 4.1. 9)
h’rite G92 XO YO 20 at O
and then execute . “
Turn the power off and on again
TOOL LIFE CONTROL
Maxtmum number of tools to be controlled . . ...256
cancelled.
/30
; in MDImode,
TOl
to T9998, 256 can be regis-
TOl
to T99 can
. . . . . . .
128
(0,
16
86
Page 95
(3) Setting and displaying tool life control data:
The tool numbers used in each tool group and the tool
compensation number, life, total usages, etc. of each tool
can be entered
be input from the part-program.
can also be displayed with the
With the function set to
displayed bydepressing
is a two stage switch for offset display and tool life control display.
(1) List oftoollife control group registrations
Pages 1 and 2 of the tool life control display shows a
list of registered tool groups. Check the information
on these pages for any groupto be indexed.
(2) Tool life control data display
Page 3 and subsequent pages of the tool life control
display are the tool life control data display. Each
tool group composes a 2-page data display screen.
Using “group search’’
desired page.
<Operating sequence
(a) Press the
screen.
(b) Press the
data screen.
(c) Key-in
(d) Press the
group will then appear.
thenumerical
LIFE CO~ROL DATA
~
, tool life control data are
~
onceagain. The
willbe
convenient to display the
of’’group search>
~
key to display the tool life control
m
key to display the tool life control
value of the object group.
I-
key. Data display of the object
043 048
RDY
DISPLAY
J
~
key
GROUP NO.
TOOL LIFE CONTROL 01234
LIFE CLASSIFICATION
N1234
GROUP 123-1 MINUTES
T-NO H-NO D-NO LIFE USED STS
TOOO1
TOO1l
TO024
T9001
TOO05023
T1278
TO054
TOOL NO.
001002300
011
100101
212
09900
*
)*
1
TOOL LENGTHTOOL LIFE
COMPENSATION
NO.SKP-SKIPPED TOOL
012
214
022
*
*
*
TOOL RADIUS
COMPENSATION
‘0’
1000 25
9000 00
TOOL LIFE
2.9.32.3 TOOL LIFE CONTROL DATA
(1) Setting by key input
Writing and correcting of tool life control data can be
performed from the operator’s panel.
(a) Sequence of operation
~
(i) Press the
screen.
(ii ) Use the
the group to be rewritten.
(iii) Since the cursor will be at the first T-NO, move
the cursor to the T-NO by pressing the
(The cursor moves horizontally.)
(iv) Key-in the numerical value.
( v ) Press the
tion will then be rewritten.
(b) Writing T-NO
If the cursor is placed under a registered T-NO and a
new T-NO is entered, the other data will be initialized
and LIFE = 9999, H-NO and D-NO will be unregistered (* mark), and USED = O STS will be blank.
in a numerical value between O - 9998 for the T–NO.
(c) Writing H-NO and D-NO
(i) When a command such as H999 or D999 is given
from the part program, the corrected numbers
stored here will be searched.
(ii) As long as nothing in particular is written
in H-NO and D-NO, they will be considered
unregistered (* mark) .
(iii) Unregistered and H-NO = O are different.
ARhough
cancelled, if H (D) 999 is executed in unregistered
state, an error will occur.
(iv) Key-in numerical values from O to 299 for
H-NO and D-NO.
(d) Writing LIFE
(i) The numerical value 9999 will be automatically
written when T-NO is written.
H-NO = O and D-NO = O are corrections
key to display the tool life control
~~
key or group search and search
~
key. The data at the cursor posi-
302
400
400
500153
500
200
1*
TO$AL
USAGES MARK
~
OVR
OVR
SKP
0
0
*
f*
UNREGISTERED
I
OVR-LIFE EXPIRED
SE~ING
PI
key.
Key-
\
/
87
Page 96
2.9.32.3 TOOL LIFE CONTROL DATA SETTING (Cent’d)
(ii) Key-in LIFE with a numerical value between
1 and 9999.
(e) Writing USED
(i) When T-NO is written as the value of USED,
the numerical value O will also be automatically
written.
{ii)
In general, start USED from O.
(f) Writing life classification
(i)
Press the
T-NO position and press
move to the life classification position,
1=1
key to move the cursor to the initial
1~~
. The cursor will
Table 2.29 Data Erasure Method
Erasure Type
I
Page
(ii) Key-in
❑ and
~
to change life classification will
change to MINUTES.
~
and
~
Key-in
change to COUNTS. Key-in
classification will change to
~1 ~{
Key-in
to change life classification will
~
and
~
to change life
MKTERS or FEET.
to change the life classification to drilling
count (HOLES),
(iii) Writing of life classification is effective for the group
written. Although one group has two pages, both pages
display the same in life classification so either page can
be written.
(iv) For life classification, key-in the numerical values “O
to “3”.
(Q
Data erasure
~
Data can be erased by using the
key.
A list of data erasure methods is shown in the table
below.
Cursor Position
Key-in Data
Erasure of
allAll pages
groups
Erasure ofAll pages
one group
3 and
Erasure of
T-NO
Page
subsequent
pages
Erasure of
STS
Page 3 and
subsequent
pages
(h) Notes :
(i) There are mutual relations in data modification of
LIFE, USED and STS.
=
When LIFE
USED, OVR is generally lit. If STS is
cleared, USED will also become “O”.
(ii) Data correction is possible by key operation
only when the edit lock is “open” and not in
automatic operation,
(iii) If one group or
all groups are erased, the
life classification of the groups concerned will be
initialized to MINUTES.
(2) Setting with the part program
Tool life control data can be set by executing
a program with the format shown in the table
below.
(a) Tool regeistration G codes
(G122/G123)
commands are given in the following form.
G122; . .
G123;
... ...,
. . . . . . . . .
Starts tool registration
Ends tool registration
Possible at any
❑ [- 19]9
19 /91]0RG]
place.
Possible at any
place.
Group number to
be erased.
T-NO with
data.
STS with data.
Give commands on tool information to be set in
the section of
-G123;
.
G122;
(b) Data commanding format
Table 2.30 Tool Life Control Data Format
Tape
Format
G122;
P’:rl’
1A ;
TAAAH ,( DnD[
Lx ..;
TAAAH.
‘ .
DDOI
Lx
Y.:
P:i[_L71A;
TAAAH “, ., DCID[
L...;
G123
L4?an]ng
Tool
reglstratlort
Commands group No. after P.
Commands
Specifies tool No. after T
Specifies tool length compensation
No. after H.
Spec, fles
No. after D.
Spec, fies
Sets new group data.
Tool registration end
start.
IIfe classlflcat,on
tool
radius
compensation
tool
llfe(
1-9999) after L.
after 1.
88
Page 97
(c) G code (G 124) for clearing tool registration
The tool life control data can be cleared by
ing the G124; command. If a command for P is
given in the same block as
will be erased. (P = 1 to 128)
In other words, by entering the command
G124P . ...,
group specified by P.
Notes :
(i) All previously registered data will be
executing G 124 ;. If command G 122 is entered without
executing G 124, the following will occur.
(a) If tool numbers have already been registered
previous data will be erased and replaced with
new data. If H and D are omitted in the block
in which T exists,
(* mark).
(b) If tool numbers are unregistered, new data
will be registered in simple form.
are omitted in the block in which T exists, T
will
change to unregistered ( * mark) .
omitted, L9999 will be stored.
(ii) Settings are possible in which “registration
will start after canceling all previously registered
data if command
(iii) The H and D codes can be omitted when not
being used.
(iv) Tool life L will be modal between G 122 and
G 123 so these commands can be omitted when
setting to the same tool life.
(v) The
@ng
I.
IO . . . . Controlling by time (1 to 9999 minutes)
11 . . . .
12 . . . .
13 . . . .
(vi) Each of the addresses T, H, D, L, P, I has the follow-
ing commendable range. Any other command values will
cause in an error.
()~T~9998,1)~H,D~299,()
128>0< I
(vii) Commands G122 and G123 can be used in independent blocks.
(viij
Do not enter commands (such as a shift command)
other than tool information in the G 122 ; . . . G123 ;
section. (Alarm will occur if such a command is entered.)
(ix) Do not switch over the mode to execute a manual
MDI command while executing G 122 ;. (Alarm will occur
if this is attempted.)
( x ) If I is omitted, the life classification originally speci-
fied in that group will remain unchanged.
A cleared group will generally become in the “minutes”
state.
it will be possible to erase only the
T will change to unregistered
G122; is executed” .
followfng life classifications can be set by speci-
Controlling by counts (1 to 9999 counts)
Controlling by distance (1 to 9999 mm,
1 to 9999 feet)
Controlling by the drilling count (1 to 9999
counts)
=2
G124, one group only
If H and D
~L~9999,1~F’~
enter–
cancelled by
If L is
2.9.32.4 EXECUTION
(1) Commands with the part program
Tool life control can be performed with commands
from the part program by using the T and H
codes shown in the table below.
Table 2.31 Tool Life Control by Part Program
Tape Format
TIOOO1;
Tool life control ON mode will be set with
the M06 command of “tool group number
OF TOOL LIFE CONTROL
Meaning
+
10000. “
0M06;
The tool will be mounted on the main shaft
with the M06 command and time and distance
count will normally start thereafter.
H999;
The H-NO registered on the tools will be
selected with the H999 command.
D999;
DO;
HO;
T&AAA;
@M06;
I
The D-NO registered on the tools will be
selected
tiith
the H999 command.
Cancel D
Cancel H
Returns to normal T command
The tool on which life control is being carried
out with the
Ivt06
command will be removed
from the main shaft and counting of time and
distance will end.
M30
Notes :
1. The T code command of the numerical value
of “tool life group number + 10000” with TIOOO1
to T 10128 controls tool life and outputs the
T codes registered in that group.
2. The H and D codes of the
will be selected by commands H999 and D999
with the tool life control function.
(2) Tool life count
(a) One of the following can be selected with
parameter #6020 on the tool on which life count
is to be performed.
. Counting of a tool in the latest T command
group of the M06 command.
, Counting of a tool in the T command group
just prior to the M06 command.
Machining ends.
tool
being selected
(b) Tool life count will not be performed by time,
distance or counts when the “tool life count disregard input” is in ON state.
(c) When tool life is set by time
The control will count every second in which the
@
1
each
time
and
tool is actually used in the section between
‘@ of the table in para. (1) and, in the cutting
mode.Life count will be increased by
time one minute is exceeded.
r~uired
feed and dual operation will not be counted.
for single block stop, feed hold, fast
However, the
89
Page 98
2.9.32.4 EXECUTION OF TOOL LIFE CONTROL (Cent’d)
(d) When tool life is set by distance
The cutting distance is calculated by the interval
(every second) outlined in para. (c) and life count
will be increased by
exceeds 1 inch or 1 foot.
(e) When tool life is set by count
The count will increase by “L” when the command
T9999LAAA;
the table in section (1) is executed.
omitted,
(f) When the tool life is set by the drilling count
The repeat count
(canned
G89>,dril~ing pattern cycle cG70, G71, G72>)
counts the life. within the commanded tool life count
range.
counted, when
The life count is performed in the look-ahead
process. Therefore
execution of a single block, the life will be over
before executing that block.
(g) The count can be increased by “1” only
during the
count cannot be increased by incorporating
T9999L
Selection of whether to count with
M02/M30 must be made with parameter #6020.
(h) The maximum value for USED is 9999 so the
count will not go above 9999.
in the section between @ and @ of
L1 will be equivalent.
cvcle
~G73. G74. G76. G77 and G81 to
If no “L” is specified, one drilling is
“L”
M02/M30
a A
A and M02/M30 in the same program.
“
1” each time the distance
1! LIT of
the drilling command
= O,
0 drilling is counted.
, if the life ends during
command. However, the
T9999LAAA
lf
L is
or
2.9.32.5 PARAMETERS AND SE’ITINGS FOR TOOL
LIFE CONTROL
(1) Settings
(D6)
#6004
Clears life data registered prior to the
command
O: Does not clear
1: Clears
G122;
#6204
Specifies group number when resetting for tool change.
However, this is only effective when #6020
1
Setting
(2) Parameters
#6020
Specifies group number for tool change skipping
(TLSKP)
O: Currently specified group
1: External signal
#6020
Selection of a T command group during an M06
command.
O: Latest T command
1: Immediately Prior T command
to 128
(D7)
(D6)
(TL1
to TL64)
(D5) is “O”.
#6020
(D5)
Group number command for tool change reset
(TLRST)
O: Setting #6204 1: External input (TL1 to TL64)
(D4)
#6020
IM selection when tool life control is by count
T
O: Counts with T9999L
1: Counts with
2.9.32.6
CONTROL
(1)
(a)
the
(b)
was
(c)
152, 0~T~9998,
O~D =299
(d) Intervened in
(2) Alarm 126:
This is an error when there is an overflow during
execution of a life control data command.
(a) A command was entered for 257 or more tools.
(b) A command was entered for 17 or more tools
in one group.
(3) Alarm 127:
This is an error in a T5 digit command and a
T9999 command function
(a) When a T5 digit command was executed, the
object group was not registered.
(b) The T9999L
although the parameter was for a count with
Mo2/M30.
(c) The T9999L
it was not a life control classification count.
(4) Alarm 128:
This is an error in the T5 digit command and
the H(D) 999 command fuction.
(a) All of the groups were in
the T5 digit command was executed.
(b) Tool numbers H-NO and D-NO
ALARM CODE DETAILS ON TOOL LIFE
Format errors of alarm 125:
A different address command was made in
G122 or G123 block.
P command was neglected and T command
made in G122.
A numerical value other than 1
M02/M30
13~L~
was commanded in G122.
~~~command
AAA
AAA
G122/G123/G124
9999, 0SHS299,
G122 with a manual MDI.
command was executed although
S P S 128, 0 S
and
was executed
SKP
status when
were found
unregistered ( * mark) when executing command
H(D)999.
Notes :
(1) Do not rewrite the life control data when
executing life control.
(2) Even if M06 is executed in manual MDI, life
control will not be executed. Do not execute
commands TIOOO1 through T10128 in manual MDI.
(3) If OVR and SKP occur at the same time, T-NO will
display SKP on a priority basis.
90
Page 99
2.9.33 ROTATION OF COORDINATES
Gla
G68
a . . . .. b . . . .. R......
(G68,
G69)
t
{}
Where,
a, b:
rotation
R:Angle of rotation
direction, and absolute value is to be used for
command)
By commanding with the above, the commands
thereafter are rotated by the value of the angle
assigned by R around the center commanded by
point a, b.
manded in 0.001 degree units.
Values of coordinates of the center of
(+ for counterclockwise
The angle of rotation must be com-
(a, b)
(2) Plane of rotation is determined by the
plane
(G17,
G18,
G] q) that has been selected.
G51...; .;
G68
. . . . . .
.
.
.
.
G69;
. .
G50;
.o.9”
(e) G68,
G69 is automatically selected during power
(f)
turn-on or reset operation.
(g) Commanding the rotation of coordinates
possible during tool radius compensation C. It causes an
alarm.
(h)
The following G codes cannot be commanded
during the rotation of coordinates:
(Scaling on)
( Coordinate rotation on)
(Coordinate rotation off )
..o
(Scaling off)
G69 are modal G codes of group 18.
(G68) is not
They activate
alarms.
G29, G31, G36, G37, G38, G53 and G92
(i) ‘The rotation of coordinates turns on during
the approach of ordinary machining and turns off
upon completion of machining.
no proper machining shape is obtained if the
that
rotation of coordinates is turned on during
machining.
If the rotation of coordinates
during
the canned cycles, the canned cycle mode
can-celed.
is
Alarm codes related to the rotation of coor-
(j)
dinates are as follows:
It should be noted
(G68)
is commanded
G 17 XY-plane or X4-plane
G 18 ZX-plane or
G 19
YZ-pIane or Y4-plane
(3)
G69;
Z4-plane
(But the 4th axis is
limited to linear axis.)
1
When this is commanded, the coordinate rotation
mode is
cancelled.
(4) Note:
(a) If a and b are omitted, the position where
the command of G68 was made becomes the center
of rotation.
(b) Blocks of G68
must be commanded by a single block.Be sure
to use
of coordinates.
(c)
rotation of coordinates was commanded.
(d) When using together with scaling functions,
the rotation of the coordinate system is made after
turning-on scaling,
be made in the following order:
G68. . . . . . . . .G69 in pairs for the rotation
position
Omission of R is not permitted.
a
. . . . . . . . . ..
display shows the position where the
and thus the command should
R......
and G69;
2.9.34 SETTING OF LOCAL COORDINATE SYSTEM
(G52) t
(1)G52 Q2X...
( a indicates the 4th axis.)
dinate system shifted by the corresponding
commanded value from the work coordinate system
is set.
This coordinate system is called the local coordinate system,
this assigned local coordinate system.
Alarm No.
150
151
When the above command is issued, a
I
G code not to be used in G68
mode has been commanded.
G68 is commanded again when
a G68 command is executed.
Format of G68, G69 command
blocks is not correct.
Z... Z... a...
and thereafter the tool moves on
Contents
:
coor–
91
Page 100
2.9.34 SETTING OF LOCAL COORDINATE SYSTEM
t
(G52)
(Cent’d)
Programming Example
N1
G90 GO1 X1OO Y200 F1OO;
N2
G54;
Xloo Y300;
N3
N4
N5
N6
N7
N8
N9
.
Work Coordinate System Shift Amount (200, 100)
Y
Q2
G52
X200
G52 Q2 XO YO;
Xo Yo;
G52;
Xo Yo;
X300 Y200;
Yloo;
(1) Operating procedures are as follows :
(a) Turn on the auto mode handle offset switch.
(b) Select the axis to be moved by means of the handles
axis select switch. However, if “the manual pulse generator of simultaneously controllable axes of three-axis control” has been added, the movement with simultaneous 3
axes can be performed.
(c)
Select the distance traveled per graduation of
handle by means of manual pulse multiply switch.
The distance traveled per graduation can be
switched to 1, 10 or 100 pulses.
(d) If the handle is turned during the auto
operation of interpolation block, the distance
traveled by handle is synchronized with the
distance traveled by auto operation on the axis
selected by Step (b) .
400
300
N2
200
N1
100
0
100 200 300 400 500 600 700
(2) G52 Q2 XO YO
When this command is issued, the local coordinate
system is
dinate
(3) G52;
By this single block
reference coordinate
(4) Remarks
(a) G52
coordinate system has been set. Alarm “043” occurs if
the command is made under the state of the work coordinate system setting.
(b) Setting of coordinate system by G92 command
or ORG key is not permitted under the state of
setting work coordinate system and local coordinate
system.
(c) Precautions with the setting functions of work
coordinate system are also applicable here.
(d) It should be noted that G52 performs the
operation of canceling the work coordinate system
(G54 to G59) if the above option has not been
added.
2.9.35
This is the function of synchronizing the movement
by manual pulse generator with the movement by
auto operation during auto operation (tape
tion, MDI operation, memory operation) .
Deviation due to the mounting of work can be off-
set by this function.
cancelled
system
AUTO MODE HANDLE OFFSETt
occurs.
Q2
command is effective only when the work
ZO(a
O) ;
and return to the work coor-
command, the return to
system occurs.
LOCAL COORDINATE
SYSTEM
WORK COORDINATE
SYSTEM
BASIC COORDINATE
x
sys~~~
opera–
Clockwise direction:
Counterclockwise direction:
To negative direction
HANDLEt
~
~“
DI
L
(e) Turn off the auto mode handle offset switch.
(f) After that the movement is made with the
shift corresponding to the offset made by the
handle.
as G92) of coordinate system thereafter, the offset
portion by the handle is not added, and the setup
only by the commanded values is performed.
(2)
Remarks
(a) Movement of auto mode handle offset is effec-
tive only during interpolation. in auto operation.
It is invalid during rapid traverse or single stop.
(b) Under an alarm state, movement by the auto
mode handIe offset is not possible.
(c) When the axis interlock input (IT) is on,
movement by auto mode handle offset is not possible.
(d) By means of parameter setting, it is possible
to invalidate the movement by auto mode handle
offset of each axis.
I
However, for the setup command (such
‘s ~
x-axis
#6010D5
(HOFSX)
I
To positive direction
HA ND[.
E
‘$::;.,,
‘v’
x
1
O(I
()()(1
OFF
“id/lnvdid
1
o
Valid
Invalid
92
4th-axis
#601 1D5
(HOFS4)
1
o
Valid
Invalid
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.