Академический Документы
Профессиональный Документы
Культура Документы
Applicable Model
MH-403 SH-403
MH-503, 503/U SH-503
MH-633, 633/U SH-633
MH-1003 SH5000
HVM630 SH8000
AFM2400 NH5000
ULTIMILL H3000 NH4000
Applicable NC Unit
MSG-501
MSG-502
PM-MHMSG502-B3E
• The contents of this manual are subject to change without notice due to
improvements to the machine or in order to improve the manual.
Consequently, please bear in mind that there may be slight discrepancies
between the contents of the manual and the actual machine. Changes to
the instruction manual are made in revised editions which are
distinguished from each other by updating the instruction manual number.
• Should you discover any discrepancies between the contents of the
manual and the actual machine, or if any part of the manual is unclear,
please contact Mori Seiki and clarify these points before using the
machine. Mori Seiki will not be liable for any damages occurring as a
direct or indirect consequence of using the machine without clarifying
these points.
• All rights reserved: reproduction of this instruction manual in any form, in
whole or in part, is not permitted without the written consent of Mori Seiki.
990730
Machine Information
Model name:
Manufacturing date:
Representative:
FOREWORD
A: BEFORE PROGRAMMING
B: G FUNCTIONS
C: M FUNCTIONS
F: T, S, AND F FUNCTIONS
G: D AND H FUNCTIONS
I: B FUNCTIONS
J: A FUNCTIONS
K: EXAMPLE PROGRAMS
INDEX
SIGNAL WORD DEFINITION
A variety of symbols are used to indicate different types of warning information and advice.
Learn the meanings of these symbols and carefully read the explanation to ensure safe operation
while using this manual.
<Symbols related with warning>
The warning information is classified into three categories, DANGER, WARNING, and CAUTION.
The following symbols are used to indicate the level of danger.
CAUTION Indicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury or damages to the machine.
The information described following the caution symbol must be strictly observed.
<Other symbols>
COMMAND The format identified by this symbol gives information for programming.
This machine is intended for use by persons who have a basic knowledge of machine tools,
including cutting theory, tooling and fixtures. Mori Seiki cannot accept responsibility for accidents
that occur as a result of operation, maintenance, or programming of the machine by personnel
who lack this basic knowledge or sufficient training.
Workpiece materials and shapes vary widely among machine users. Mori Seiki cannot predict the
spindle speed, feedrate, depth of cut, etc., that will be required in each case and it is therefore the
user's responsibility to determine the appropriate settings.
Each machine is shipped with a variety of built-in safety devices. However, careless handling of
the machine can cause serious accidents. To prevent the occurrence of such accidents, all
programmers and other personnel that deal with the machine must carefully read the manuals
supplied by Mori Seiki, the NC unit manufacturer, and equipment manufacturers, before
attempting to operate, maintain, or program the machine.
Because there are so many "things that cannot be done" and "things that must not be done" when
using the machine, it is impossible to cover all of them in the Instruction Manual. Assume that
something is impossible unless the manual specifically states that it can be done.
The following manuals are supplied with your machining center:
I. Safety Guidelines prepared by Mori Seiki
II. Instruction Manual prepared by Mori Seiki
• MAINTENANCE MANUAL
• OPERATION MANUAL
• PROGRAMMING MANUAL
III. NC unit Operation and Maintenance Manuals prepared by the NC unit manufacturer
IV. Instruction Manuals prepared by equipment manufacturers
In addition to the instruction manual, ladder diagrams and parameter tables are also supplied with
the machine to help with electrical maintenance, and there is an electrical circuit diagram in the
document compartment inside the electrical cabinet. Please make use of this material when
carrying out maintenance work.
Fundamental safety information is presented in the following pages.
All cautions on operation must be strictly observed when operating the machine, carrying out
maintenance work, or writing programs. Failure to observe fundamental safety information can
cause accidents in which the operator or other personnel working near the machine are seriously
injured, or the machine is damaged. All personnel that deal with the machine must carefully read
and thoroughly understand the information in the following pages before attempting programming
or operating the machine.
SO-MC-A9E/P
-2- FOR SAFE OPERATION
The vocabulary and terms used for machine parts and operations in the warnings, cautions and
notes are defined or explained in the manual texts and illustrations.
If you are unsure of the meaning of any word or expression, please refer to the corresponding
textual explanation or illustration. If you still cannot understand or are unsure of the meaning,
contact Mori Seiki for clarification.
"Operator", as used in these cautions, means not only the operator who operates or supervises a
machine tool to perform machining, but also any person, including maintenance personnel who
maintain and inspect a machine tool or safety device or safety measures provided with it, and the
programmers who create programs used for machining, who are engaged in operations which
deal with a machine tool.
Therefore, all persons engaged in these operations must carefully read these cautions and related
materials, and thoroughly understand the contents before attempting to operate the machine.
SO-MC-A9E/P
FOR SAFE OPERATION -3-
The cautions that must constantly be born in mind when operating the machine are listed below.
Listed below are important cautions that apply to all machine-related work (machine operation,
maintenance, inspection, programming, etc.).
SO-MC-A9E/P
-4- FOR SAFE OPERATION
DANGER 6. Cover power supply cables that are run along the floor with rigid
insulated plates to prevent them from being damaged. Damage to
the insulation of the power supply cable could cause electric shocks.
7. Even after the power is turned off, some devices will remain charged
and the temperature of motors, lights inside the machine, etc., will
remain high. Make sure that the charge has been discharged or the
temperature has fallen before carrying out maintenance work or
inspections on these devices. If you touch these devices/units
carelessly while they are still charged or while the temperature is still
high you could receive an electric shock or be burned.
8. Check that all cables are properly insulated before using the
machine. There is considerable danger of electric shock if damaged
cables are used.
WARNING 1. Keep the floor area around the machine tidy and clean; do not leave
things lying on it, and clean up spilled water or oil immediately. If
you fail to do this, plant personnel may injure themselves by tripping
over or slipping on the floor.
2. Before operating the machine, check the area where you will have to
stand and walk to make sure you can operate the machine safely. If
you do not check your footing beforehand, you could loose your
balance while working and injure yourself by putting your hands in a
dangerous place while trying to find support, or by falling over.
3. Before using a switch, button, or key, check visually that it is the one
you intend to use, and then press or set it decisively. Pressing the
wrong switch, button, or key by mistake can cause accidents
involving serious injuries or damage to the machine.
4. Always keep the doors closed during machine operation. Leaving
the machine running or operating it with a door open could cause
accidents involving serious injuries or damage to the machine; plant
personnel could be seriously injured by being entangled in the
rotating parts of the machine or crushed by its moving parts, struck
by a workpiece or cutting tool if they fly out of the machine, hit by
flying chips, or splashed with coolant.
SO-MC-A9E/P
FOR SAFE OPERATION -5-
WARNING 5. The parameters are set on shipment in accordance with the machine
specifications; do not change them without first consulting Mori
Seiki. If the parameters are changed without consultation, the
machine may operate in an unexpected manner, causing accidents
involving serious injuries or damage to the machine.
6. The machine specifications are set before shipping so that the
customer's safety is ensured and the machine can deliver its full
performance. Never change the settings nor modify the machine in
any case. Changing the settings or modifying the machine without
consultation may degrade safety assurance or cause accidents
involving serious injuries, impaired machine performance, and
considerable shortening of the machine service life. If the
specifications and/or settings have to be changed, or the machine
has to be modified to meet new machining requirements, or due to
changes in the operating conditions, consult Mori Seiki.
Mori Seiki cannot accept responsibility for accidents that occur as a
result of changing the machine specifications.
7. Before operating or programming the machine, or performing
maintenance work, carefully read the instruction manuals provided
by Mori Seiki, the NC unit manufacturer and the equipment
manufacturers so that you fully understand the information they
contain. Keep these instruction manuals safely so that you do not
lose them. If you do lose an instruction manual, contact Mori Seiki,
the NC unit manufacturer, or the relevant equipment manufacturer. If
you attempt to operate the machine without having carefully read the
instruction manuals first, you will perform dangerous and erroneous
operations which may cause accidents involving serious injuries or
damage to the machine.
8. Always observe the instructions in the caution labels stuck to the
machine. Carefully read the Safety Guidelines supplied with the
machine so that you fully understand them. If the writing on the
labels becomes illegible, or if the labels are damaged or peel off,
contact Mori Seiki. Also contact Mori Seiki if you cannot understand
any of the labels. If you operate the machine without observing the
instructions on the labels, or without understanding them properly,
you will perform dangerous and erroneous operations which may
cause accidents involving serious injuries or damage to the
machine.
SO-MC-A9E/P
-6- FOR SAFE OPERATION
WARNING 9. Never operate, maintain, or program the machine while under the
influence of alcohol or drugs. Your concentration will be impaired,
you may loose your balance and fall against dangerous parts of the
machine, and you may operate the machine incorrectly, causing
accidents involving serious injuries or damage to the machine.
10. Machine operators and authorized personnel working inside the
plant and in the vicinity of the machine must put their clothing and
hair in order so that there is no danger they will be entangled in the
machine. If you have uncontrolled long hair or loose clothing and it
gets caught in the machine, you will be seriously injured by being
entangled in the rotating parts of the machine or crushed by its
moving parts. Always wear safety shoes, eye protectors and a
helmet.
11. The machine is equipped with interlock functions such as the door
interlock and electrical cabinet door interlock to ensure the
operator's safety. All the interlock functions must be ON when
operating the machine. If you have to operate the machine with the
interlocks released, you must recognize that there are many hazards
involved and pay particular attention to safety while operating the
machine in this condition. After finishing the necessary work, you
must switch the interlocks back ON.
If the machine is operated with the interlocks released, it may
operate in an unexpected manner, causing accidents involving
serious injuries or damage to the machine.
12. The door interlock function serves only to protect the machine
operator from accidents that can be prevented by inhibiting manual
and automatic operation of the spindle, axis movement, and all other
operations in automatic operation when the door is opened and
while it is open; it will not afford protection against other hazards.
For example, each machine user will machine a variety of workpiece
types and use a variety of workpiece holding fixtures, cutting tools,
and cutting conditions; you are still responsible for ensuring safety
with regard to the hazards that can arise from these user-specific
conditions.
SO-MC-A9E/P
FOR SAFE OPERATION -7-
WARNING 13. If the door interlock function is released, the machine is able to
operate with some limitations while the door is open, exposing you
to danger. In daily production operation, the door interlock function
must be set "ON" and the key operating the switch must be removed
from the switch and kept safely.
When aligning the workpiece, measuring the tool offset data, or
carrying out other setup work, it may be necessary to release the
door interlock function. If you have to carry out work while the
interlock function is released, you must recognize that there are
many hazards involved and pay particular attention to safety. When
the door interlock function is released, the warning lamp blinks in
red and a warning buzzer sounds intermittently. You must recognize
that the door interlock function is released when the warning lamp is
blinking in red and the warning buzzer is activated. After finishing
the necessary work, you must switch the interlock function back ON.
14. Before operating the machine, memorize the locations of the
emergency stop buttons so that you can press one immediately from
any location and at any time while operating the machine. The
emergency stop buttons are used to stop all operations in the event
of an emergency. If there is an obstacle in front of an emergency
stop button it will not be possible to press it immediately when an
emergency occurs and this could cause accidents involving serious
injuries or damage to the machine.
15. To prevent hazardous situations, the plant or equipment supervisor
must bar entry to the plant or the vicinity of the machine to anyone
with insufficient safety training. Allowing persons without sufficient
safety training unhindered into the plant and the vicinity of the
machine could cause accidents involving serious injuries.
16. Because of the inertia of the moving parts of the machine, they may
not be stopped immediately when the emergency stop button is
pressed. Always confirm that all operations have stopped before
going near these parts. If you approach the moving parts of the
machine without due care you may be entangled in them and
seriously injured.
17. Do not leave articles such as tools and rags inside the machine. If
the machine is operated with such articles inside it they may become
entangled with a tool and thrown out of the machine, and this could
cause accidents involving serious injuries or damage to the
machine.
SO-MC-A9E/P
-8- FOR SAFE OPERATION
WARNING 18. When the machine is running, operating noise may possibly be
produced, depending on the cutting conditions and other factors.
When an operator works near the machine, either change cutting
conditions to limit generation of noises or the operator must wear
protective gear, meeting the level of generated noise, which will not
cause inconvenience for performing intended work. Working under
noises might impair operator's health, such as hearing.
CAUTION 1. User programs stored in the memory, parameters set before shipping, and the
offset data input by the user, can be destroyed or lost due to incorrect operation
or other causes. To protect data against destruction and loss, back it up using an
external I/O device (option), or other device.
If you fail to make backup files, Mori Seiki cannot accept responsibility for any
problem resulting from destroyed programs or lost parameter data and/or offset
data.
Keep the parameter table supplied with the machine in a safe place. Note that if
the data is destroyed it will take some time to set the parameters again.
2. Never touch chips or the cutting edges of tools with your bare hands since you
may be injured.
3. If the machine is equipped with a footswitch, take care not to stumble over it since
you may be injured.
4. If it becomes necessary to perform a memory clear operation, contact Mori Seiki
first. If a memory clear operation is performed without due care, the entire
memory contents may be deleted, causing machine faults.
5. The machine operator must have normal sensory perception. If a person who
has an abnormality affecting any sense operates the machine, he/she will not be
able to accurately confirm the machine status and surrounding conditions by eye/
ear/touch. Sensory confirmation is extremely important when operating the
machine and an inability to make such confirmations properly could cause
accidents involving serious injuries or damage to the machine.
6. Ensure that the workplace is adequately lit. If there is insufficient light, the
operator may trip over something or be unable to perform or check work
accurately, and this could cause accidents involving serious injuries or damage to
the machine.
7. Remove any obstacles around the machine.
Secure adequate space around the machine for working and adequate
passageway, considering both ease of operation and safety. If there are any
obstacles or if there is insufficient space or passageway, the operator may trip
and fall or be unable to work properly, and this could cause accidents involving
serious injuries or damage to the machine.
SO-MC-A9E/P
FOR SAFE OPERATION -9-
CAUTION 8. Stack products (workpieces) stably. If they are not stacked stably they may fall
and injure the machine operator. Unstable stacking may also damage the
products (workpieces), causing defects.
9. Keep the area around the machine clean; remove chips and foreign matter near
the machine. If left, chips and foreign matter may cause plant personnel to fall
and injure themselves.
10. Use a working bench strong and stable enough to support the weight of the
workpieces and tools. If an unstable working bench is used the workpieces and
tools could fall off and injure the machine operator.
If a machine alarm or NC alarm occurs, check its meaning by referring to the alarm list in
NOTE
the instruction manual or ladder diagram, and take the appropriate action. If this is
ineffective, consult Mori Seiki or the NC unit manufacturer and take action when you
understand clearly what to do.
SO-MC-A9E/P
-10- FOR SAFE OPERATION
The safety practices that the programmer must observe while programming are presented below.
Read them before attempting programming.
Workpiece shapes and materials vary widely among machine users and, since the workpiece
holding fixtures, cutting tools, cutting methods, and machining conditions will also vary
accordingly, Mori Seiki cannot predict what factors will apply in individual cases. It is the machine
user's responsibility to take these factors into account when creating a program. It is also the
machine user's responsibility to ensure safety with respect to the hazards that may arise due to
these user-dependent factors.
WARNING 1. Specify a spindle speed limit that is lower than the lowest of the
individual allowable speed limits for the holder and cutting tool. If
you do not follow this instruction, the workpiece or cutting tool could
fly out of the machine, causing accidents involving serious injuries
or damage to the machine.
2. Clamp workpieces and cutting tools securely. Determine the depth
of cut and cutting feedrate for test cutting with safe operation as the
first priority; do not give priority to productivity when making these
determinations. If you fail to observe this warning, the tool or
workpiece could fly out of the machine, causing accidents involving
serious injuries or damage to the machine.
3. Always select the most appropriate cutting tool and holder for the
material and shape of the workpiece to be machined and cutting
method, and check that the workpiece can be machined without any
problems.
If an inappropriate cutting tool or holder is selected, the workpiece or
cutting tool could fly out during machining, causing accidents
involving serious injuries or damage to the machine. Machining
accuracy will also be adversely affected.
4. Before starting spindle rotation, check that the workpiece and
cutting tool are securely clamped.
If the workpiece or cutting tool is not securely clamped, the cutting
tool will fly out when the spindle is rotated, or the workpiece will fly
out during machining, causing accidents involving serious injuries
or damage to the machine.
SO-MC-A9E/P
FOR SAFE OPERATION -11-
WARNING 5. The positions to be reached in the second, third and fourth zero
return operation are established by setting the distance from the
machine zero point in parameters. For the machines equipped with
an APC, do not change the settings for these parameters. If the
setting is changed, the machine will move in an unexpected manner,
and this could cause accidents involving serious injuries or damage
to the machine.
6. For the machine with the flat type operation panel, always place the
operation selection key-switch in the "operation enable" or
"operation disable" position after completing program entry. Be
aware that the program will be updated if program editing operations
are carried out with the operation selection key-switch at the
"operation and edit enable" position. If the program is executed after
being accidentally updated in this way the machine could operate
unexpectedly, causing serious injuries or damage to the machine.
7. For the machine with the discrete type operation panel, always place
the edit enable key-switch in the "edit disable" position after
completing program entry. Be aware that the program will be
updated if program editing operations are carried out with the edit
enable key-switch at the "edit enable" position. If the program is
executed after being accidentally updated in this way the machine
could operate unexpectedly, causing serious injuries or damage to
the machine.
8. For the machine with the touch panel, always return the WRITE
PROTECT switch (PROGRAM) back to ON after completing program
entry. Be aware that the program will be updated if program editing
operations are carried out with the WRITE PROTECT switch
(PROGRAM) set OFF. If the program is executed after being
accidentally updated in this way, the machine could operate
unexpectedly, causing serious injuries or damage to the machine.
SO-MC-A9E/P
-12- FOR SAFE OPERATION
WARNING 9. Workpiece materials and shapes vary widely among machine users.
Mori Seiki cannot predict the spindle speed, feedrate, depth of cut,
etc., that will be required in each case and it is therefore the user's
responsibility to determine the appropriate settings.
Note also that the machining conditions determined in automatic
programming are the standard conditions, which are not necessarily
the most suitable for the user's purposes and may have to be
changed in accordance with the workpiece, cutting tool, fixture, etc.
The conditions determined in automatic programming are for
reference only and the final responsibility for determining the
conditions rests with the user. (Conversational NC specification)
If you have difficulty determining these conditions, consult the tool
manufacturer and fixture manufacturer. Machining under
inappropriate machining conditions can cause the workpiece or
cutting tool to fly out during machining, causing accidents involving
serious injuries or damage to the machine.
10. While the machine is temporarily stopped during machining – for
example when checking a program, performing test cutting, or
cleaning chips out of the machine – do not move the axes or perform
tool changes in manual operation. Or, if it is absolutely necessary to
do so, be sure to return the axes to their original positions before
restarting the program. If machining is restarted without returning
them to their original positions, the axes will move in unexpected
directions, causing collisions between the cutting tool or holders
and workpiece or fixture, which could cause accidents involving
serious injuries or damage to the machine. The workpiece could
also be machined with the wrong tool, and the cutting tool could be
damaged.
11. If the program is to be input to the NC memory not by the
programmer but by a machine operator, write it clearly and
accurately so that anyone will be able to read it. If the operator
misreads the program and inputs incorrect data, the cutting tool or
holder could interfere with the workpiece or fixture during
machining, causing accidents involving serious injuries or damage
to the machine.
12. If you forget to enter a decimal point in a program entry that requires
one and start the machine without noticing the error, the axis may
move to an unexpected position, causing damage to the machine.
Check that you have entered decimal points where necessary.
SO-MC-A9E/P
FOR SAFE OPERATION -13-
WARNING 13. Before starting the spindle, carefully check the workpiece gripping
conditions and the machining conditions, including the workpiece
clamping method, spindle speed, depth of cut, and feedrate. If you
start the spindle without adequate checking, the workpiece or cutting
tool could fly out, causing accidents involving serious injuries or
damage to the machine.
14. There are cases that the spindle must not be rotated at the specified
maximum speed due to the conditions related to the jig and the
cutting tool, etc., even if the length, the diameter, and the mass of the
cutting tool are all within the restrictions. If the spindle is rotated at a
high speed exceeding the permissible spindle forcibly under such
situation, the cutting tool will fly out, causing serious injuries or
damage to the machine.
CAUTION 1. Contact Mori Seiki when machining cast iron, ceramics, or other materials which
generate powder-type chips in dry cutting. If chips are not dealt with in an
appropriate manner for the workpiece material, they can cause machine faults.
2. Before starting mass production, always check the program and perform test
cutting in the single block mode. If you fail to do this the workpiece could collide
with the cutting tool during machining, causing damage to the machine.
Machining defects could also be caused.
3. When shifting the coordinate system in order to check a program, set the shift
direction and shift amount carefully to avoid interference between the cutting tool
and holder, or workpiece and fixture, etc., which could cause damage to the
machine.
4. You will probably use a variety of workpiece shapes and materials, and the
clamping method will differ according to the workpiece type. Therefore, when
checking a program with the workpiece clamped, check for interference carefully,
taking the workpiece shape and material, and the workpiece clamping method,
into account. Depending on these factors, there may be interference between
the cutting tool or holder and the workpiece or fixture, which will cause damage to
the machine.
5. Before tilting or rotating the table, make sure that no interference will occur as a
result of the motion, since this will cause damage to the machine.
6. If abnormal vibration or chattering is generated during machining due to improper
combination among jig, cutting tool, workpiece material, etc., change the
machining conditions to proper values. If machining is continued forcibly under
the machining conditions with improper values, it will bring critical problems for
the machine and accuracy such that the bearings is damaged quickly and cutting
tool is worn excessively will take place.
SO-MC-A9E/P
-14- FOR SAFE OPERATION
The accuracy of the finished product cannot be maintained unless the following points are
observed when operating the machine. Failure to observe these points can also cause accidents
involving serious injuries and damage to the machine. Study these points carefully before
operating the machine.
WARNING Workpiece materials and shapes vary widely among machine users, and
Mori Seiki cannot predict the requirements for individual cases. Give full
consideration to the workpiece material and shape in order to set the
appropriate machining conditions. If inappropriate settings are used, the
workpiece or cutting tool could fly out during machining, causing
accidents involving serious injuries or damage to the machine.
Inappropriate settings will also adversely affect machining accuracy.
NOTE
1. When mounting a workpiece to the table or workpiece holding fixture, take the
rigidity of the workpiece into account when determining the clamping method so that
the workpiece will not be distorted during machining. If the workpiece is distorted,
machining accuracy will be adversely affected.
2. If any chips become entangled with the workpiece or cutting tool, the machining
accuracy will be adversely affected. Select a cutting tool and machining conditions
which do not cause entangling of chips.
SO-MC-A9E/P
FOR SAFE OPERATION -15-
For the machine equipped with the high-speed spindle (definition of high-speed spindle: the
product of the spindle bearing I.D. (mm) × spindle speed (min−1) is 1.2 million or larger), strictly
observe the cautionary items indicated below to ensure safe machine operation and also to
maintain spindle life and accuracy for a long time.
The cautions that relate to the rapid traverse rate are given below. Observe these cautions during
programming.
CAUTION If X-, Y-, and Z-axis movements are specified in the same block in the G00 mode, the
tool path is not always a straight line from the present position to the programmed end
point. Make sure that there are no obstacles in the tool path, remembering that X-, Y-,
and Z-axis movement is at the rapid traverse rate. If the workpiece or fixture lies in the
tool path, it could interfere with the tool or tool holder. This interference will cause
damage to the machine.
SO-MC-A9E/P
-16- FOR SAFE OPERATION
The cautions that relate to G codes (also called "preparatory codes") are given below.
Observe these cautions during programming.
CAUTION 1. When using the G28 and G30 commands, first return the Z-axis to the zero point
or the 2nd, 3rd, or 4th zero point, and then return the X- and Y-axes to the zero
point or 2nd, 3rd, or 4th zero point. If the X- and Y-axes are returned to the zero
point or 2nd, 3rd, or 4th zero point first – depending on the positions of the cutting
tool and fixture, and on the position of the workpiece zero point – this may result
in interference with the workpiece, which will cause damage to the machine.
2. When using the G28 and G30 commands to return the Z-axis from its current
position to the zero point or the 2nd, 3rd, or 4th zero point, designate "G91 G28
Z0;", "G91 G30 Z0;" or "G91 G30 P3(P4) Z0;". If you designate "G90 G28 Z0;",
"G90 G30 Z0;" or "G90 G30 P3(P4) Z0;", the machine zero point will be
approached via the workpiece zero point, or the 2nd, 3rd or 4th zero point, and –
depending on the positions of the cutting tool and fixture and the workpiece zero
point – this may result in interference with the workpiece, which will cause
damage to the machine.
3. When using the stored stroke limit function, always execute a machine zero
return operation after switching the power ON, otherwise the function will not be
valid. If the machine is operated in this condition it will not stop even if the cutting
tool enters the prohibited area, and this could cause damage to the machine.
(Stored stroke limit specification)
NOTE
1. When specifying G codes in a block, they must be placed before the addresses
(other than G and M) which are executed under the mode they establish. If a G code
is specified after addresses for which it establishes the mode of processing, the
mode established by it is not valid to these addresses.
2. When executing a dwell using the G04 command, if the cutting tool is kept in contact
with the workpiece at a position such as the bottom of a groove for a long time it will
shorten the life of the tool nose as well as adversely affecting machining accuracy.
The dwell period should be the time it takes for the spindle to rotate approximately
one turn.
SO-MC-A9E/P
FOR SAFE OPERATION -17-
The cautions that relate to the hole machining canned cycle (G73 - G89) are presented below.
Observe these cautions.
WARNING When the machine is stopped during a hole machining canned cycle by
executing an emergency stop or pressing the reset key, the hole
machining mode is cancelled and the hole machining data is cleared. If
you restart machining without due care the machine could move in an
unexpected manner, causing accidents involving serious injuries or
damage to the machine.
CAUTION 1. A tapper is used in the tapping cycle called by G74 or G84. When a tapper is
used, the return movement from the bottom of the machine hole to the point R
level is executed with the tapper extended. Therefore, the point R level must be
selected so that the extended tapper will be completely clear of the machined
hole when the Z-axis reaches the point R level, otherwise the cutting tool may
collide or interfere with the workpiece on moving to the next machining position,
and this will cause damage to the machine.
2. When the emergency stop button or reset key has been pressed to stop the
machine during a tapping operation, carefully move the axes after checking the
workpiece and cutting tool carefully for damage. If you move the axes without
due care, the workpiece and cutting tool may collide or interfere with each other,
and this could cause damage to the machine.
3. When using the fine boring cycle called by G76 or the back boring cycle called by
G87, mount a boring bit at the position opposite the boring bar shift direction. If
the boring bit is mounted at the position that coincides with the boring bar shift
direction, the boring bit or boring bar will collide or interfere with the workpiece
when the program is executed and this will cause damage to the machine. It may
also break the boring bit.
4. In the manual boring cycle called by G88 (with manual withdrawal), any manual
operation may be performed after the spindle has stopped rotating at the bottom
of the hole. However, before changing from manual to another operation mode,
the cutting tool must be positioned outside the machined hole. If positioning to
the next machining position is carried out before the cutting tool has been
extracted from the machined hole, the cutting tool will strike the workpiece,
causing damage to the machine.
SO-MC-A9E/P
-18- FOR SAFE OPERATION
The cautions that relate to M codes (also called "miscellaneous codes") are given below. Observe
these cautions during programming.
CAUTION 1. Do not stop the spindle by specifying the M05 command while the cutting tool is
in contact with the workpiece. This could cause damage to the cutting tool.
2. Start the spindle by executing either the M03 or M04 command before the cutting
tool comes into contact with the workpiece. (Does not apply in the case of the
rigid tapping cycle.) If the cutting tool is brought into contact with the workpiece
while it is not rotating, it could be damaged.
3. When the automatic door is closed by specifying the M83 command, make sure
that your fingers, etc., do not get caught in the door and that there are no
obstacles that will prevent the door from closing. If your fingers are caught in the
door, you could be injured.
The cautions that relate to tool changes are presented below. Observe these cautions.
WARNING If the tool change method is the technical memory random method, the
ATC operation is different for tool changes involving tools with the same
diameter and tool changes involving tools with different diameters. In the
case of tool changes for tools with different diameters the ATC operation
is performed twice. Take due care when changing tools with different
diameters in the MDI mode. If do not exercise sufficient caution and get
too close to the moving parts of the ATC you may be trapped by them and
seriously injured.
CAUTION 1. When mounting tools, check the restrictions on tools thoroughly and make sure
that the arrangement of tools will not cause interference at tool changes. If you
fail to observe the restrictions on tools, tools may interfere with each other when
tool changes are performed, and this will cause damage to the machine.
2. With the ATC of technical memory random method, make sure to set the pots at
both sides of the pot where a large-diameter tool that requires an empty pot at
both sides. If a tool change cycle is carried out with a tool stored in the pot next
to the large-diameter tool pot, an interference occurs between the large-diameter
tool and the tool stored in the pot, causing damage to the machine
SO-MC-A9E/P
FOREWORD
CAUTION 1. There are two methods for specifying the coordinate values; an absolute
command and an incremental command. In this manual, the absolute command
is usually being described. Unless otherwise stated, the program can also be
created using incremental commands. When a specified method using
incremental commands is different from one using absolute commands, or if
either an absolute or an incremental command cannot be used, some cautionary
notes will be described at that point.
For absolute commands and incremental commands, refer to pages A-25 (9)
and I-4 (2).
2. The illustrations of cutting tools in this manual may not indicate the correct setting
orientation, since this will differ according to the machine model.
Make sure the correct relationship between the cutting tool mounting position and
the workpiece (spindle) rotation direction when writing a program.
3. With G and M codes, two types of formats such as F16 format and F15 format are
available. The programming method varies between these two formats for some
of the G and M codes and such differences are explained in the related items in
this manual. Pay attention to the difference when creating a program.
Before shipping the machine, the format is set to the F16 format.
4. Please note that all of the functions and optional devices/equipment explained in
this manual are not always available with the delivered machine.
Retrofitting of such functions and optional devices/equipment is not always
possible. For details, contact Mori Seiki.
CHAPTER A
BEFORE PROGRAMMING
A : BEFORE PROGRAMMING
11 FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-30
1 WHAT IS A PROGRAM?
Programmers must have a knowledge of machining. They should write programs based on this
knowledge, and also observe the points listed below, to ensure accurate, efficient and safe
operation.
Programmers must:
1. Develop a knowledge of the theory of cutting.
2. Acquire a knowledge of workpiece holding tools (fixtures) in order to determine the
machining method that ensures safe and accurate operation.
3. Determine the appropriate cutting tools by taking into consideration the workpiece shape,
material, spindle speed, feedrate, depth of cut, and width of cut to prevent problems which
might occur during machining.
4. Understand the machining performance of the machine to be used.
5. Understand the safety devices and interlock functions featured by the machine to be used.
6. Become familiar with the functions related to programming.
BEFORE PROGRAMMING A-3
.
.
.
A-4 BEFORE PROGRAMMING
1. Z.5 → Z0.5
2. X200. → X200.0
After inputting the program, check the input program
carefully on input error and omission of the data in the
program.
This section describes the flow of operation, including programming. Follow and understand the
flow so that the operation can be performed smoothly.
"OPERATION
8) Mount the tools and workpiece to the machine
PREPARATIONS" in the
OPERATION MANUAL
"PREPARATION BEFORE
12) Check the program by carrying out dry run operation
STARTING MASS
(Correct the program if necessary) PRODUCTION" in the
OPERATION MANUAL
13) Check the machining condition by carrying out test cutting "PREPARATION
BEFORE
(Correct the program if necessary) STARTING MASS
(Input the tool offset value if necessary) PRODUCTION" in
the OPERATION
MANUAL
14) Machine the workpiece in automatic operation
Mass
production
15) Product is completed
1. Operation steps 4) and 7) above should be skipped when a program is created using
NOTE
the conversational programming function.
2. Operation step 6) above should be skipped when the conversational programming
function is not used for creating a program.
A-6 BEFORE PROGRAMMING
The items to be checked in the course of programming and before starting machine operation are
summarized in the following tables. Check these items to ensure smooth operation.
Check
Check Items
Column
1. Are tolerances readable on the drawing?
Reading the 3. Are the shape and material of the workpiece blank made clear?
Drawing
Are the processes before and after the processes to be carried out on the
4.
machining center made clear?
5. Are the keys for machining understandable?
8. Have you read all the dimensions and notes on the drawing?
Check
Check Items
Column
Are the order of machining and machining conditions determined in
1.
accordance with the shape and material of the workpiece blank?
2. Are the workpiece clamping method and the fixtures determined correctly?
Order and
Conditions 3. Are the cutting tools selected correctly?
of Machining Are the machining processes appropriate for the shape and material of the
4.
workpiece blank?
5. Is machining free of interference?
Check
Check Items
1 2 3 Column
4 5 6 Is the program being written to suit the shape and material of the workpiece
1.
blank?
7 9
2. Are programs created in units of machining processes?
Inputting the 3. Is a decimal point entered in all numerical values?
Program
4. Is the sign (+, −) preceding numerical values correct?
5. Are feed modes (rapid traverse and cutting feed) used correctly?
Check
Check Items
Column
Are the tool holders and the retention knobs cleaned before mounting a
1.
cutting tool?
2. Are cutting tools free of abnormal wear and/or breakage?
Mounting 3. Are tool shape and material proper for intended operation?
the Tools
4. Are cutting tools mounted to the tool holders correctly?
9. Are tool numbers allocated correctly for different size of cutting tools?
Are cutting tools mounted taking the maximum diameter of the adjacent
10.
tools into consideration?
Are pots adjacent to a large diameter tool assigned for small diameter tools
11.
or left empty?
Check
Check Items
Column
1. Is the DOOR INTERLOCK key-switch placed in the NORMAL position?
Check
Check Items
Column
1. Is the DOOR INTERLOCK key-switch placed in the NORMAL position?
5. Are the feed modes (rapid traverse and cutting feed) used correctly?
8. Are the tools free of interference with the workpiece and fixtures?
Check
Check Items
Column
1. Is the DOOR INTERLOCK key-switch placed in the NORMAL position?
11. Are the cutting tools free of interference with the workpiece and fixtures?
12. Are the dimensions measured after the rough cutting process?
13. Are the settings for feed override and rapid traverse override correct?
Check
Check Items
Column
1. Is the measuring instrument functioning correctly?
Check
Check Items
Column
This section describes the basic terms that must be understood for creating a program.
Ex.
O0001; Program number
N1;
G90 G00 G54 X90.0 Y105.0;
M01;
M06;
N2;
G90 G00 G54 X0 Y0;
M30;
If a program number to be input is already in the memory, that number, and therefore that
NOTE
program cannot be input. Change its number to input the program.
The program number can have less than four significant digits. It can be input using less
than four digits.
For example, even if a program number is input as O1, the screen will automatically
display "O0001".
A-12 BEFORE PROGRAMMING
The sequence number is used to search for or call the position that is being executed, or to
facilitate finding the position you want to edit in the program easily.
The sequence number is expressed as a number of five digits or less (1 to 99999), following the
letter "N".
Generally, the sequence numbers are assigned to the part programs for individual cutting tools in
the ascending order in the order the machining processes are executed.
Ex.
O0001;
N1; Sequence number
G90 G00 G54 X90.0 Y105.0;
M01;
M06;
M30;
1. If a sequence number consists of more than five digits, the five digits from the least
significant position are recognized as the sequence number.
2. The sequence number is not necessarily specified. Also, it is not necessary to input
numbers with five significant digits.
If a program is too long and exceeds the memory capacity, put the sequence
numbers at the beginning of the program for each process, or do not specify these
numbers. This will help save memory capacity.
BEFORE PROGRAMMING A-13
The part program refers to the program which contains all the information necessary for executing
the cutting process to be carried out by a single cutting tool.
Each process (1st process, 2nd process...) for machining a component contains the part programs
for as many tools as are necessary to complete each process.
Ex.
O0001;
N1;
G90 G00 G54 X90.0 Y105.0;
G43 Z30.0 H1 S440 T2;
Part program for the tool No. 1
M01;
M06;
N2;
G90 G00 G54 X0 Y0;
G43 Z30.0 H2 S800 T1;
Part program for the tool No. 2
M01;
M06;
M30;
6-4 Address
G01 Z0 F2000;
Address
6-5 Data
The numbers (including the sign and decimal point) that follow the address are called the "data".
G01 Z0 F2000;
Data
In addition, the information (program and other) to be input to the NC for machining the
NOTE
workpiece is also called the data.
Determine the type of data from the explanation of the statement.
A-14 BEFORE PROGRAMMING
6-6 Word
A word is the minimum unit for specifying functions. A word consists of an address and the data.
G01 Z0 F2000;
Word
6-7 Block
A block is the minimum command unit necessary to operate a machine (including the NC unit). It
is also the minimum unit used to create a part program. A block consists of words.
On the program sheet, each one line corresponds to one block.
O0001;. . . . . . . . . . . . . . . . . . . . . . First block
N1; . . . . . . . . . . . . . . . . . . . . . . . . . Second block
G90 G00 G54 X90.0 Y100.0; . . . . Third block
6-8 Summary
A program consists of words, a combination of address and data, and of blocks, a combination of
words, as shown below.
Word Program
M06; 1 block
M30; 1 block
BEFORE PROGRAMMING A-15
This section describes movement along the controlled axes and its relationship with the program.
Knowing the direction of the controlled axes is essential when creating a program.
This section deals with the axis definition and how the axis movement is defined in programming.
Column
+Z
+U
+Y
−U
+B
+X
Spindle head
(Machine Front)
Table
A-16 BEFORE PROGRAMMING
Spindle head
Column
+
+
X −
Pallet Y
−
+
B
−
−
Z
(Machine Front)
Table
BEFORE PROGRAMMING A-17
7-1-4 HVM630
Spindle
X
−
Pallet
+
+
− Z
Y
+ −
B −
Double-column
Ram
(Machine Front)
BEFORE PROGRAMMING A-19
7-1-5 AFM2400
Saddle
Y
− Z +
− −−
+
A X
−
+
(Machine Front)
Column
Table
Spindle head
A-20 BEFORE PROGRAMMING
Pay attention to the sign (+, −) which is used to determine the direction of axis (X, Y, Z) movement.
7-2-1 MH Series
+Y
−Z
+X
−X
+B
−B
+Z
Table −Y
(Spindle side)
In response to X-axis movement commands, the table moves. And for Y- and Z-axis movement
commands, the tool (spindle head and column) moves.
Although actual machine movement corresponding to the individual axis movement commands is
as indicated above, it is assumed that the tool moves in the specified axis direction for the purpose
of programming so that calculation for coordinate values is simplified.
As summarized in the table above, if we assume that a tool moves, the positive (+) and negative
(−) directions of the X-axis movement are defined as in the illustration below.
+Y
−Z
−X
+X
+B
−B
+Z
Table −Y
(Spindle side)
+Y
+Z
−X
+X
+B
−B
−Z
Table −Y
(Spindle side)
In response to Z-axis movement commands, the table moves. And for X- and Y-axes movement
commands, the tool (column and spindle head) moves.
Although actual machine movement corresponding to the individual axis movement commands is
as indicated above, it is assumed that the tool moves in the specified axis direction for the purpose
of programming so that calculation for coordinate values is simplified.
A-22 BEFORE PROGRAMMING
+Y
−Z
−X
+X
+B
−B
+Z
Table −Y
(Spindle side)
BEFORE PROGRAMMING A-23
X-axis movement commands move the saddle, Y-axis movement commands the column, and
Z-axis movement commands the spindle head (tool). Although the actual machine movement
corresponding to the individual axis movement commands is as indicated below, it is assumed
that it is the tool that moves in the specified axis direction for the purpose of programming to
simplify the calculation of coordinate values. The actual motion is the same as the programmed
motion.
+Y
−Z
−X
+X
+Z
Table −Y
(Spindle side)
A-24 BEFORE PROGRAMMING
When specifying the command "Move the cutting tool to point A.", for example, if there is no
reference point for the specified command, the machine cannot find point A and cannot move.
The reference point established for programming is called the workpiece zero point (X0, Y0, Z0).
In a program, X, Y, and Z coordinate values are specified taking the workpiece zero point for the
reference. Accordingly, when creating the program, the workpiece zero point must be determined.
The workpiece zero point should be taken at a point where programming will be facilitated.
Determine the workpiece zero point taking convenience for programming and setup as well as
required accuracy into consideration. Refer to the examples given as follows.
/
In the drawings used for explanation, the workpiece zero point is expressed as .
1) Taking the workpiece zero point at the center allows easy calculation of the coordinate
values of the center of the tapped holes and circular pocket.
Circular pocket
(X0, Y0)
Tapped hole
Z0
2) Because the geometry is symmetrical in reference to the X-axis, taking the workpiece zero
point at the specified position facilitates calculation of the coordinate values.
Y (X0, Y0)
Z0
BEFORE PROGRAMMING A-25
To specify tool movement from the presently located point to the next point (target point), the
following two types of commands can be used.
1. Absolute commands
2. Incremental commands
When writing a program, it is necessary to understand the nature of these two types of dimension
specifying commands.
This section deals with the basic for using the absolute and incremental commands in a program.
9-1 Absolute Commands
Absolute commands define a specific point by the signed distance from the workpiece zero point
(X0, Y0, Z0).
The axis movement commands in the G90 mode are all executed as the absolute
commands.
50 +Y
100 100
1 4
1
175
Workpiece
500
+X
zero point
(X0, Y0, Z0)
175
2 3
3
2
300
Since the commands in ( ) are the same as in the previous block, they can be omitted.
Incremental commands define relative position on a given coordinate system by specifying the
movement distance from the present position. The positive sign indicates that the position to be
defined is in the positive direction from the present position.
/
The axis movement commands in the G91 mode are all executed as the incremental
commands.
BEFORE PROGRAMMING A-27
50 +Y
100 100
1 4
1
175
Workpiece
500
+X
zero point
(X0, Y0, Z0)
175
2 3
3
2
300
Since the commands in ( ) are the same as in the previous block, they can be omitted.
A-28 BEFORE PROGRAMMING
9-3 Summary
Spindle speed
NOTE
min−1 means "rpm".
3. Depth of cut
There is no special function used to specify the depth of cut. Depth of cut is specified using
tool movement along the Z-axis.
With a hole machining canned cycle, depth of cut can be specified using an address.
NOTE
For details of the hole machining canned cycle, refer to CHAPTER D "HOLE
MACHINING CANNED CYCLE".
4. Cutting width
There is no special function to specify width of cut. Specify it with movement along X- or
Y-axis.
A-30 BEFORE PROGRAMMING
11 FUNCTIONS
A program is created using alphabets which show functions, and numerical values. The G, M, S,
F, T, D, H, and B functions represent the main functions.
Details of each function are described in Chapter B and succeeding chapters.
The following table gives an overview of functions:
Code Functions
When creating a part program for each tool (face mill, end mill, etc.), the following basic patterns
are used.
O0001; Program number (This is specified only once at the beginning of all programs.)
G90 G00 G54 (to G59) X_ Y_ ; Specifies positioning at X_ Y_ at a rapid traverse rate; X_ and Y_
are given in absolute values.
G43 Z_ H_ S_ T_ (M08); Specifies positioning of Z-axis and calls the next tool to the tool
change position. The spindle speed command and coolant
supply ON command are also specified.
M08 is not necessary when coolant is not used.
NOTE
*
M03; Starts spindle rotation in the normal direction.
(Machining program)
G00 Z_ (M09); Specifies retraction from the cutting area and stops coolant
supply.
M09 is not specified if coolant is not used.
NOTE
G91 G30 X0 Y0 M05; Returns X- and Y-axes to the second zero point to carry out tool
change and stops spindle rotation.
Tool change position varies depending on machine
NOTE models.
This manual describes all program numbers in a four digit number. However, it is not necessary to
write or enter a program number in a four digit number. A program number specified in less than
four digit number is recognized and displayed in a four digit number after it is input to the NC. If
"O1" is entered, for example, it is recognized and displayed as "O0001".
For an NC, it is possible to use a decimal point to enter numerical values. A decimal point can be
used to express the numerical values that have the unit of "distance", "angle", "time", or "speed".
The addresses which allow the use of a decimal point are indicated below.
Distance and angle: X, Y, Z, U, V, W, A, B, C, I, J, K, Q, R
Time: X
Cutting feedrate: F
WARNING When inputting a value for the address for which a decimal point can be
used, make sure that the decimal point is used correctly. If a decimal
point is not specified by mistake, the turret will move in an unexpected
direction, causing injuries and machine damage.
"mm" setting (specified by G21)
X1.0 . . . . . . X1 mm
X1. . . . . . . . X0.001 mm
(if a decimal point is not entered, it is assumed that the
value is specified in the unit of least input increment.)
"inch" setting (specified by G20)
X1.0 . . . . . . X1 inch
X1. . . . . . . . X0.0001 inch
(if a decimal point is not entered, it is assumed that the
value is specified in the unit of least input increment.)
1. There are limits in the usable units depending on addresses. Setting units are "mm",
NOTE
"inch", "degree" and "second".
X15.0 . . . . . . . . . . . . . X15 mm or X15 inches
G04 X1.0 . . . . . . . . . . Dwell for 1 second
F10.0 . . . . . . . . . . . . . 10 mm/rev, 10 mm/min, 10 inch/rev, or 10 inch/min
2. In the case of a dwell command, a decimal point can be used when address X is
used. However, it is not allowed to use a decimal point if address P is used since
address P is also used to specify a sequence number.
B : G FUNCTIONS
3-1 Setting the Workpiece Zero Point (Workpiece End Face) . . . . . . . . . . . . . . . . . . B-10
3-2 Setting the Workpiece Zero Point (Center of Table Rotation) . . . . . . . . . . . . . . . B-13
1-1 Pre-load Level Switching and Changing Offset by S Codes . . . . . . . APPENDIX B-2
1-2 Changing the Pre-load Level Switching Offset by G10 . . . . . . . . . . . APPENDIX B-3
1-3 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX B-4
G FUNCTIONS B-1
1 G CODE LIST
G codes are also called preparatory functions. The G codes consisting of the address G
and a numerical value that follows address G define the machining method and the axis
movement mode in a specified block. The NC establishes the control mode in response to
the specified G code.
The numerical value following address G defines the commands written in that block.
Depending on how the G codes remain valid, they are classified into the following two types:
Type Meaning
One-shot G code The G code is valid only in the specified block.
(G codes in group 00,
excluding G10 and G11)
Modal G code The G code remains valid until another G code in the
(G codes in groups other same group is specified.
than group 00)
For example, G00 and G01 are both modal codes, that is, they are G codes in the group
other than group 00.
G01 X_ Y_ ;
X_ ; G01 is valid in this range.
Y_ ;
G00 X_ Y_ ;
1. When specifying G codes in a block, they must be placed before the addresses
NOTE
(other than G and M) which are executed under the mode they establish. If a
G code is specified after addresses for which it establishes the mode of
processing, the mode established by it is not valid to these addresses.
2. More than one G code, each belonging to a different G code group, may be specified
in the same block.
3. If more than one G code, belonging to the same group, are specified in a block, the
one specified later is valid.
4. If a G code not listed in the G code table or a G code for which the
corresponding option is not selected is specified, an alarm message (No. 010)
is displayed on the screen.
5. The NC establishes the G code modes, identified by the symbol, when the power
is turned on.
6. For rigid tapping, specify "M29 S_" to the block just before the block containing G84
or G74.
: Standard : Option
G00 Positioning
: Standard : Option
: Standard : Option
G72.1 Copy-rotation
00
G72.2 Copy-shift
G FUNCTIONS B-5
: Standard : Option
To specify tool movement from the presently located point to the next point (target point), the
following two types of commands can be used.
1. Absolute command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G90
2. Incremental command . . . . . . . . . . . . . . . . . . . . . . . . . . . G91
<Absolute command>
Absolute commands define a specific point by the signed distance from the workpiece zero point
(X0, Y0, Z0).
The axis movement commands in the G90 mode are all executed as the absolute
commands.
<Incremental command>
Incremental commands define relative position on a given coordinate system by specifying the
movement distance from the present position. The positive sign indicates that the position to be
defined is in the positive direction from the present position.
The axis movement commands in the G91 mode are all executed as the incremental
commands.
Once the G90 command is specified, it remains valid unless the G91 command is
NOTE
specified next. To the contrary, once the G91 command is specified, it remains valid
unless the G90 command is specified next.
Such G codes are called modal G code.
For the G code groups, refer to page B-1 (1).
The positive (+) sign may be omitted. The negative (−) sign cannot be omitted.
X+10.0 → X10.0
Y+10.0 → Y10.0
G FUNCTIONS B-7
+Y
<Absolute command>
50 +Y
100 100
1 4
1
175
Workpiece
500
zero point +X
2 3
3
2
300
B-8 G FUNCTIONS
<Absolute command>
Since the commands given in ( ) call no axis movement, they can be omitted.
−Y
G FUNCTIONS B-9
The operation to "set a work coordinate system" means the operation by which the NC recognizes
the location of the workpiece zero point which is determined arbitrarily.
By setting six work coordinate systems beforehand, call one of these coordinate systems by
executing the corresponding G code.
There are two methods of setting the workpiece zero point.
• Setting the workpiece zero point at the end face of the workpiece
Page B-10 (3-1)
For the procedure used for setting the workpiece zero point, refer to the OPERATION
MANUAL.
COMMAND
(G90) G54(G55, G56, G57, G58, G59) X_ Y_ ;
• G90 . . . . . . . . Calls the absolute commands.
• G54 to G59. . . Selects a work coordinate system.
• X, Y . . . . . . . . Specifies the coordinate value of each axis used for positioning
a cutting tool in the selected work coordinate system. (workpiece
zero point)
1. The G54 work coordinate system is selected when the power is turned on.
NOTE
2. If the number of work coordinate systems called by G54 to G59 is not sufficient for
intended operation, use the G10 (changing work coordinate system), G52 (setting
local coordinate system) or G54, G54.1 (setting additional work coordinate system)
<option> command to define more number of work coordinate systems.
For G10, refer to page B-16 (4).
For G52, refer to page B-83 (24).
For G54, G54.1, refer to page B-86 (26).
1. A work coordinate system is defined in the manner to offset the machine coordinate
system. Therefore, as it is not necessary to input the measured values to the
program, use of a work coordinate system makes programming easier.
2. Because there are six coordinate systems from G54 to G59, the setting of these
coordinate system is convenient for machining that requires plural coordinate
systems in such as multiple workpiece setup.
B-10 G FUNCTIONS
The procedure for setting the workpiece zero point at the end face of the workpiece is described
below.
Concerning the X- and Y-axes, set the distance from the machine zero point of the X- and Y-axes
to the end face of the workpiece (workpiece zero point) on the WORK OFFSET screen in negative
values.
For the Z-axis, set the distance from the spindle gage line to the end face of the workpiece
(workpiece zero point) on the WORK OFFSET screen in a negative value, with the Z-axis returned
to the machine zero point.
When the workpiece zero point is set in this method, dimensions such as depth of a hole
specified on the part drawing can be used in programming since the workpiece zero point
on the Z-axis is set at the end face of the workpiece.
G FUNCTIONS B-11
Programming using G54 to G59 (Workpiece zero point set at the end face of
Ex. workpiece) (1)
Create the program using the G54 command for the workpiece indicated below with the workpiece
zero point set at the end face of the workpiece.
Select a point convenient for calculating the coordinate values for the workpiece zero
point.
+Y
+X
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at the workpiece zero point (X0, Y0) at a rapid
traverse rate in the work coordinate system called by G54
Machining program
B-12 G FUNCTIONS
Programming using G54 to G59 (Workpiece zero point set at the end face of
Ex. workpiece) (2)
Create the program using the G54 and G55 commands for the workpiece indicated below with the
workpiece zero point set at the end face of the workpiece.
When two workpieces are mounted on one face of the angle plate, the same positioning is
executed in the two work coordinate systems (G54, G55).
+Y +Y
30 30 30 30
Angle plate
2 1 6 5
20 20
+X 20 20 +X
3 4 7 8
Workpiece zero point for G54 Workpiece zero point for G55
O0001;
N1;
G90 G00 G54 X30.0 Y20.0; . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S800 T2;
M03;
X−30.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 2 at a rapid traverse rate
Y−20.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 3 at a rapid traverse rate
X30.0; . . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 4 at a rapid traverse rate
G55 X30.0 Y20.0; . . . . . . . . . . . . . . . . . Positioning at point 5 at a rapid traverse rate in the work
coordinate system called by G55
X−30.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 6 at a rapid traverse rate
Y−20.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 7 at a rapid traverse rate
X30.0; . . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 8 at a rapid traverse rate
As known from the example program above, it is recommended to set the workpiece zero
point for individual workpieces to simplify programming when multiple workpieces are set.
G FUNCTIONS B-13
The procedure for setting the workpiece zero point at the center of table rotation is described
below.
Concerning the X-axis, set a half of X-axis travel on the WORK OFFSET screen in a negative
value.
Concerning the Y-axis, set the distance from the machine zero point of the Y-axis to the end face
of the workpiece (workpiece zero point) on the WORK OFFSET screen in a negative value.
For the Z-axis, set the distance from the spindle gage line to the center of table rotation with the
Z-axis returned to the machine zero point on the WORK OFFSET screen in a negative value.
When the workpiece zero point is set in this method, it is not necessary to specify the work
coordinate system setting G code for each of the workpieces mounted on four faces of the
angle plate, since the workpiece zero point on the Z-axis is set at the center of table
rotation.
Programming using G54 to G59 (Workpiece zero point set at the center of table
Ex. rotation) (1)
Create the program using the G54 command for the workpiece indicated below with the workpiece
zero point set at the center of table rotation.
Select a point convenient for calculating the coordinate values for the workpiece zero
point.
+Y
125 100
+Y
+Z +X
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at the workpiece zero point (X0, Y0) at a rapid
traverse rate in the work coordinate system called by G54
Machining program
G FUNCTIONS B-15
Programming using G54 to G59 (Workpiece zero point set at the center of table
Ex. rotation) (2)
Create the program using the G54 and G55 commands for the workpiece indicated below with the
workpiece zero point set at the center of table rotation.
When two workpieces are mounted on one face of the angle plate, the same positioning is
executed in the two work coordinate systems (G54, G55).
+Y
125 100 +Y +Y
30 30 30 30
2 1 6 5
20 20
20 20
+X +X
+Z
3 4 7 8
Angle plate
O0001;
N1;
G90 G00 G54 X30.0 Y20.0; . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z255.0 H1 S800 T2;
M03;
X−30.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 2 at a rapid traverse rate
Y−20.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 3 at a rapid traverse rate
X30.0; . . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 4 at a rapid traverse rate
G55 X30.0 Y20.0; . . . . . . . . . . . . . . . . . Positioning at point 5 at a rapid traverse rate in the work
coordinate system called by G55
X−30.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 6 at a rapid traverse rate
Y−20.0; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 7 at a rapid traverse rate
X30.0; . . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 8 at a rapid traverse rate
As known from the example program above, it is recommended to set the workpiece zero
point for individual workpieces to simplify programming when multiple workpieces are set.
B-16 G FUNCTIONS
The G10 command updates the distance from the machine zero point to the workpiece
NOTE
zero point which is obtained during setting up. Accordingly, if the zero point of the work
coordinate system is changed by using the G10 command, the commands are executed in
the updated coordinate system.
In a program, if a coordinate system should be established while the present work
coordinate system remains as it is, use a local coordinate system (G52).
For details of the local coordinate system (G52), refer to page B-83 (24).
120
+Y +Y +Y
G54 G55 G56
1 , 2 , 3
+Z +X +X +X
1 2 3
Angle plate
130
+Y +Y +Y
G57 G54 G55
4 , 5 , 6
+Z +X +X +X
4 5 6
Angle plate
O0001;
N1;
G90 G10 L2 P1 X−400.0 Y−120.0 Z−350.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Inputting the offset data of point 1 for G54 work coordinate
system
G10 L2 P2 X−300.0 Y−120.0 Z−350.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Inputting the offset data of point 2 for G55 work coordinate
system
G00 G54 X0 Y0; . . . . . . . . . . . . . . . . . . Positioning of a cutting tool at workpiece zero point 1 of
G54 at rapid traverse rate
G43 Z30.0 H1 S400 T2;
M03;
G55 X0 Y0; . . . . . . . . . . . . . . . . . . . . . . Positioning of a cutting tool at workpiece zero point 2 of
G55 at rapid traverse rate
G56 X0 Y0; . . . . . . . . . . . . . . . . . . . . . . Positioning of a cutting tool at workpiece zero point 3 of
G56 at rapid traverse rate
B-18 G FUNCTIONS
The G43 and G44 commands are used to locate the tip of tool at the Z-axis position specified in
the program independent of differences in tool lengths by using the tool length offset function.
There are two methods for setting tool length offset data.
• To set the distance from the spindle gage line to the tool tip (type 1)
Page B-20 (5-1)
• To set the distance from the tool tip to the workpiece zero point with the Z-axis positioned at
the machine zero return point (type 2)
Page B-21 (5-2)
For the procedure for setting the tool length offset data, refer to the OPERATION
MANUAL.
COMMAND
G43 Z_ H_ ;
G49;
• G43 . . . . . . . . Calls the tool length offset mode.
• G49 . . . . . . . . Cancels the tool length offset mode.
• Z . . . . . . . . . . . Specifies the coordinate value for positioning in the Z-axis
direction.
• H. . . . . . . . . . . Specifies the tool offset number to be used.
1. The tool length offset mode is canceled by the H0 command instead of specifying
NOTE
the G49 command.
2. If the G28, G30, G30.1 (option), or the G53 command is specified in the tool length
offset mode, the tool length offset mode is canceled.
If the G44 command is used for tool length offset, the sign for the tool length offset amount
should be reversed from the sign used with the G44 command.
Mori Seiki uses G43 instead of G44.
B-20 G FUNCTIONS
With type 1, set the distance from the spindle gage line to the tool tip on the TOOL OFFSET
screen in a positive value.
A: Distance from the spindle gage line to the center of
Spindle
gage line
table rotation
B: Tool length (offset data)
Workpiece
Table
When this method is used for setting the tool length offset data, it is not necessary to
measure tool lengths for each kind of workpieces if the workpiece zero point is set at the
end of the workpiece or at the center of table rotation. Usually, this method is used for
setting tool length offset data.
G FUNCTIONS B-21
With type 2, set the distance from the tool tip to the workpiece zero point, with the Z-axis returned
to the machine zero point, on the TOOL OFFSET screen in a negative value.
Spindle A: Distance from the spindle gage line to the center of
gage line table rotation
B: Tool length
B
C: Movement distance (offset data)
D: Distance from the center of table rotation to the
reference face
Offset data = C
A
C (Type 2)
Reference face
D
Center of table rotation
Workpiece
Table
When this method is used for setting the tool length offset data, it is necessary to measure
tool lengths for each kind of workpieces. However, since this method is simple to set the
tool length offset data, this method may be used when machining a single workpiece.
B-22 G FUNCTIONS
2
1
+X
O0001;
N1; (T1 is set in the spindle)
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S800 T2; . . . . . . . . . . . . Positioning at a point 30 mm away from Z0 (workpiece
upper face) in the +Z direction at a rapid traverse rate;
offset is made in the Z-axis direction by the tool length
amount set for tool offset number 1.
M03;
Machining program
M01;
M06;
Machining program
M30;
G FUNCTIONS B-23
For using the tool length offset mode (G43), it is advisable to use it in a pattern.
O0001;
N1;
G90 G00 G54 X_ Y_ ;
G43 Z_ H_ S_ T_ ;
M03;
Machining program
M01;
M06;
N2;
G90 G00 G54 X_ Y_ ;
G43 Z_ H_ S_ T_ ;
M03;
Machining program
M30;
B-24 G FUNCTIONS
G18
Generally, the XY plane called by G17 is selected to
+Z execute the required functions. However, there are cases
G17 that the function must be executed on the ZX or YZ plane.
G19
To select the ZX or YZ plane, specify G18 or G19.
COMMAND
G17; . . . . . . . . . . . XY plane (selected when power is turned on)
G18; . . . . . . . . . . . ZX plane
G19; . . . . . . . . . . . YZ plane
G17;
G FUNCTIONS B-25
The values specified as ( , , ) in the illustration below indicate the coordinate values
(X, Y, Z).
+Y
+X
(5.0, 0, 0)
2
+Z
3
(0, 0, −5.0) 1
(0, −5.0, 0)
O0001;
N1;
−Y
G18 G02 X0 Z−5.0 R5.0; . . . . . . . . . . . Moving the cutting tool along the arc +X
in the clockwise direction up to point
3 on the ZX plane
10
Circular cutting (Radius: 5.0 mm) 2
5
3
−Z
−10 −5
G19 G03 Y−5.0 Z0 R5.0; . . . . . . . . . . . Moving the cutting tool along the arc −5 −10
in the along the arc in the −Z
3
counterclockwise direction up to −5
1
point 1 on the YZ plane −10
The values specified as ( , , ) in the illustration below indicate the coordinate values
(X, Y, Z).
5 (0, 10.0, 0)
(0, 0, −10.0) 4
1
(10.0, 0, 0)
(X0, Y0)
2
3
(−10.0, 0, 0) (0, −10.0, 0)
+Y
+X
+Z
−Y
G FUNCTIONS B-27
−10
Determine the arc rotating 3
direction (clockwise or
counterclockwise direction specified by G02 or
G03) by viewing the arc in the negative direction
from the positive direction in the X-axis, which is
not contained in the YZ plane.
B-28 G FUNCTIONS
CAUTION If X-, Y-, and Z-axis movements are specified in the same block in the G00 mode, the
tool path is not always a straight line from the present position to the programmed end
point. Therefore, when specifying positioning in the G00 mode, it is necessary to make
sure that there is no obstacle in the path of positioning, which is determined according
to the traverse rate of the individual axes (X, Y, Z). If there is an obstacle such as a
workpiece and a fixture in the positioning path, the tool or the tool holder will be hit
against them causing machine damage.
G FUNCTIONS B-29
1. Once the G00 command is specified, it remains valid until another G code in the 01
NOTE
group is specified. G01, G02, and G03 are examples of G codes which belong to
the group 01.
G codes which remain valid until another G code in the same group is specified are
called modal G codes.
3. The rapid traverse rate is adjustable by using the rapid traverse rate override switch
on the machine operation panel.
4. If the rapid traverse rate override switch is set to "0" during automatic operation, the
programmed rapid traverse is not executed and the operation enters the feed hold
mode.
+Y
31 33
2 1
25
25
+X
15
25
3 4
15 15
Rapid traverse
O0001;
N1;
Since the G00 command is a modal G code, it is valid for the succeeding blocks.
Therefore, axis movement commands in these blocks are all executed at a rapid traverse
rate.
B-30 G FUNCTIONS
COMMAND
G01 X_ Y_ Z_ F_ ;
• G01 . . . . . . . . Calls the linear interpolation mode.
• X, Y, Z. . . . . . . Specifies the cutting target point for cutting.
• F . . . . . . . . . . . Specifies the feedrate.
1. Once the G01 command is specified, it remains valid until another G code in the 01
NOTE
group is specified. G00, G02, and G03 are examples of G codes which belong to
the group 01.
G codes which remain valid until another G code in the same group is specified are
called modal G codes.
2. The cutting traverse rate is adjustable by using the feedrate override switch on the
machine operation panel in the range of 0 to 150%.
3. The feedrate data is "0" until an F code is specified.
If an axis movement command is read before an F code is specified, the machine
does not operate. In this case, an alarm message (No. 011) is displayed on the
screen.
G FUNCTIONS B-31
+Y
31 33
2 1
25
25
+X
15
25
3 4
15 15
Cutting feed
O0001;
N1;
G90 G01 X33.0 Y25.0 F500; . . . . . . . . Moving the cutting tool to point 1 at a feedrate of 500
mm/min
X−31.0; . . . . . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool from point 1 to point 2 at a feedrate
of 500 mm/min
X−15.0 Y−15.0 F250; . . . . . . . . . . . . . . Moving the cutting tool from point 2 to point 3 at a feedrate
of 250 mm/min
X15.0 Y−25.0; . . . . . . . . . . . . . . . . . . . . Moving the cutting tool from point 3 to point 4 at a feedrate
of 250 mm/min
Since the G01 command is a modal G code, it is valid for the succeeding blocks.
Therefore, axis movement commands in these blocks are all executed at a cutting
feedrate.
B-32 G FUNCTIONS
G03
G02 or G03 is determined by viewing the arc in the negative direction from the positive
direction in the axis which is not contained in the selected plane.
In the G17 XY plane, for example, the G02 command generates a clockwise arc by
viewing the arc in the negative direction from the positive direction in the Z-axis.
B-34 G FUNCTIONS
The values specified as ( , ) in the illustration below indicate the coordinate values (X,
Y).
2 (0, 50.0)
3
(−60.0, 50.0) 1
R50 (70.0, 50.0)
Cutting feed
O0001;
N1;
+Y
R20
4 3
2
30
R10
20
5
10
+X
10
6 1
20
R10
30
9
R20 7 8
8 18
Cutting feed
28 28
O0001;
N1;
G90 G01 X28.0 Y0 F500; . . . . . . . . . . . Positioning at point 1 at a rapid traverse rate of 500
mm/min
G91 G03 X10.0 Y10.0 R10.0;. . . . . . . . Circular cutting (counterclockwise direction) to point 9
(Radius: 10.0 mm)
When suspending program execution by specifying G04 at the bottom of the hole, for
NOTE
example, specify the time which allows the spindle to rotate by approximately one turn. If
the spindle is rotated too long while the cutting tool is in contact with the workpiece, it will
shorten the tool life as well as deteriorate finished surface accuracy.
COMMAND
G04 P_ ;
G04 X_ ;
• G04 . . . . . . . . Calls the dwell function.
• P. . . . . . . . . . . The period in which the program execution is suspended.
Specify the dwell period in units of 0.001 sec without a decimal
point.
P1000 . . . . . . . . . 1 sec.
• X. . . . . . . . . . . The period in which the program execution is suspended.
Specify the dwell period using a value with a decimal point.
X1.0 . . . . . . . . . . . 1 sec.
X1 . . . . . . . . . . . . 0.001 sec.
1. When address P is used to specify the dwell period, decimal point cannot be used.
NOTE
Dwell for 1.5 seconds . . . . . . . . G04 P1500;
Dwell for 2.3 seconds . . . . . . . . G04 P2300;
2. Programmable range of dwell period: 0.001 to 99999.999 (sec)
3. The G04 command is valid only for the specified block.
4. Calculate the time per spindle rotation using the following equation.
60 (sec)
t (sec) =
Spindle speed (min−1)
B-38 G FUNCTIONS
2 1
Dwell for 0.1 sec Rapid traverse
at the hole bottom
Cutting feed
10 2
−Z +Z
Z0
O0001;
N1;
By specifying G28 or G30, it is possible to return the specified axes to the machine zero point, or
second, third or fourth zero point via the specified intermediate point. This type of zero return
operation is used to avoid interference of a cutting tool with the workpiece, angle plate, or machine
cover which might occur if the cutting tool is directly returned from the present position to the tool
change position. It is also used when changing a workpiece or removing chips, or when carrying
out APC operation.
With SH series, the third and fourth zero return function is optional.
NOTE
WARNING The positions to be reached in the second, third and fourth zero return
operation are established by setting the distance from the machine zero
point in parameters No. 1241, No. 1242, and No. 1243, respectively. Do not
change the setting for these parameters. If the setting is changed
mistakenly, the machine will move in an unexpected manner, and this
could cause accidents involving serious injuries or damage to the
machine.
CAUTION 1. When returning the axes to the machine zero point (or second, third, or fourth
zero point) using G28 or G30, return the Z-axis to the machine zero point (or
second, third, or fourth zero point) first and after that return the X- and Y-axes to
the machine zero point (or second, third, or fourth zero point). If the X- or Y-axis
is returned first, the cutting tool will interfere with the fixture or with the workpiece,
depending on the position of the workpiece, causing machine damage.
B-40 G FUNCTIONS
CAUTION 2. When returning the Z-axis from the present position to the machine zero point (or
second, third or fourth zero point) using G28 or G30, specify any of the following
commands: "G91 G28 Z0;", "G91 G30 Z0;", "G91 G30 P3(P4) Z0;".
If G28 or G30 is specified in the G90 mode ("G90 G28 Z0;", "G90 G30 Z0;", "G90
G30 P3(P4) Z0;"), the Z-axis returns to the machine zero point (or second, third,
or fourth zero point) via the workpiece zero point. This movement will cause
interference of a cutting tool with the fixture or with the workpiece, depending on
the position of the workpiece, causing machine damage.
A hole machining cycle specifies operation sequence to be specified in several blocks by the
commands in a single block containing a G code.
For details of G73 - G89 (hole machining canned cycle), refer to Chapter D, "HOLE
MACHINING CANNED CYCLE".
Basic command format and movement of the hole machining canned cycle are explained below:
<Movement>
A hole machining canned cycle consists of movements 1
Movement 3 Movement 2 to 6 shown in the diagram.
Movements 1, 2, and 6 are common to all canned cycles
called by G73 to G89.
Movement 1
Movement 4 Point R Movements 3 to 5 vary according to respective canned
Point Z Initial point cycles.
Movement 5 Movement 6
Rapid traverse
Workpiece Cutting feed
Rapid traverse or
Z0 cutting feed
−Z +Z
For a hole machining canned cycle, "initial point", "point R", and "point Z" indicate the
following positions:
• Initial point . . . . . . The position where a hole machining canned cycle starts in the
Z-axis direction
• Point R. . . . . . . . . The position where Z-axis feedrate changes from rapid traverse
rate to the programmed cutting feedrate in the called hole
machining canned cycle
• Point Z . . . . . . . . . The position of the hole bottom in the Z-axis direction
Movement 1: Positioning at the hole machining start position by the movements of X- and
Y-axes.
Movement 2: Moving to point R at a rapid traverse rate
Movement 3: Hole machining (Hole machining is carried out.)
Movement 4: Movement at hole bottom
Movement 3 Movement 2
Movement 1
Movement 4 Point R
Point Z Initial point
Movement 5 Movement 6
Rapid traverse
Workpiece Cutting feed
Rapid traverse or
Z0 cutting feed
−Z +Z
Machining program
Movement 5 Movement 2
• Z−25.0 . . . . . . Z coordinate value of the point Z
level (hole bottom)
Workpiece Rapid traverse • R3.0 . . . . . . . . Z coordinate value of the point R
Cutting feed level
Z0 This has the same meaning
as Z3.0.
In the G90 incremental mode, the same cycle is programmed as indicated below.
G91 G99 G82 X−10.0 Y−10.0 Z−28.0 R−27.0 P100 F100;
B-46 G FUNCTIONS
The cutter radius offset means shifting of the tool paths to the right or left by the radius from the
programmed paths.
For details of the G40 - G42 commands (cutter radius offset), refer to Chapter E,
"CUTTER RADIUS OFFSET".
Generally, when cutting a pocket or carrying out contouring operation using an end mill, the cutter
radius offset function is used to finish the workpiece in the shape specified in the drawing.
How the shape in Fig. 1 is finished using the cutter radius offset function is briefly explained below.
3 4 Specify the required shape to be finished in the program:
point 1 → 2 → 3 → 4
Workpiece
1
Fig. 1
1
Fig. 2
Tool
1. In the helical interpolation mode, the cutter radius offset function is applied only to
NOTE
circular arc.
2. In the block where the helical interpolation is specified, it is not allowed to specify the
tool position offset and the tool length offset function.
3. The F command specifies the feedrate
X
along the circular arc. Since actual
feedrate differs from the feedrate
specified by the F command in the Length of
circular arc
program, careful consideration must be
paid so that the feedrate along a linear Z
Feedrate
axis does not exceed the limit of the
Tool path
machine.
The feedrate along a linear axis is
Length of linear axis
calculated with the following formula.
Y
+Y
30 4
5 1 3 7
+X
−30 30
2
M60 × P2.0
φ 30 30 −30 6
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
G43 Z30.0 H1 S1590 T2;
M03;
Z−30.0;
G01 G41 X12.0 Y−18.0 D1 F80;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
G03 X30.0 Y0 Z−29.7 R18.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
I−30.0 Z−27.7; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 7
X12.0 Y18.0 Z−27.4 R18.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
G00 G40 X0 Y0;
<Lead angle>
12
10 11 12 11
As in the illustration in the left, when triangle abc is wound
7 8 9 c 10
9 8
6 7
4 5
1 2 3 1
2 3 4
5 6
around a cylinder, the oblique line of the triangle forms a
b
a curve, which is called helix. If a groove having the section
πD
of triangle or square is created along the helix, it forms the
9 8
c 11
10
2
3 4
7 tread. ∠ cab = θ of triangle abc to form the helix of this
5 6
12 1 tread is called the lead angle. In order to cut the tread
0 0
θ b
smoothly, movements in point 3 to point 8 must generate
a
the same angle as the lead angle. Lead angle can be
θ: Lead angle (degree)
L: Lead (mm) calculated using the following formula.
D: Thread diameter (mm) L
tanθ =
π•D
G FUNCTIONS B-51
1) point 1 → 2
<Approach arc radius>
The radius of the approach arc radius must satisfy the following conditions.
Tool radius < r (approach arc radius) < Machining radius
By entering tool radius 15 mm and machining radius 30 mm to the inequality above, the
following can be obtained.
15 < r < 30
From this, approach radius is determined as r = 18 mm.
<Coordinate values of approach arc radius start point>
If the inside angle of the approach arc is too large, approach motion will take a time.
Conversely, if it is too small, the tool may interfere with the face to be machined. Taking
these into consideration, the inside angle of the approach arc is determined to be 90°.
The coordinate values of the center of the approach arc are calculated using the approach
radius and the machining radius; X12.0, Y0. The coordinate values of the start point 2 are
then calculated as X12.0, Y−18.0.
2) point 2 → 3
<Lead in approach arc>
To execute thread cutting smoothly, the lead angle within the approach arc must match the
lead angle of the thread to be cut.
Machining radius : Pitch (Lead) = Approach arc radius : L (Lead)
Since "machining radius = 30 mm", "pitch = 2 mm", and "approach arc radius = 18 mm",
30 : 2 = 18 : L
Accordingly, value L is obtained as follows:
L = 1.2 mm
B-52 G FUNCTIONS
+Y
30 4
Coordinate values
of the center of
approach arc
5 1 3 7
(X12.0, Y0)
+X
−30 30
2
(X12.0, Y−18.0)
−30 6
4) point 7 → 8
<Lead in escape arc>
The lead in the escape arc is the same as that in the approach arc.
L = 1.2 mm
<Z-axis movement distance during escape>
The Z-axis movement distance during escape is equal to that during approach. Therefore,
one fourth the lead in the escape arc 1.2 mm is the distance the Z-axis moves during
escape. This Z-axis movement distance during movement along the escape arc 7 → 8 is
thus obtained as 0.3 mm.
Z: −27.7 + 0.3 = −27.4
<Coordinate values of the end point of escape arc>
If the inside angle of the escape arc is too large, escape motion will take a time. Conversely,
if it is too small, the tool may interfere with the face to be machined. Taking these into
consideration, the inside angle of the escape arc is determined to be 90°.
The center of the escape arc is taken at the same point as the start point of the approach arc
(X12.0, Y0). Therefore, the coordinate values of the end point 8 of the escape arc are
X12.0, Y18.0.
+Y
30 4
8 (X12.0, Y18.0)
5 3 7
+X
−30 (X12.0, Y0) 30
Coordinate values
of the center of
escape arc
−30 6
B-54 G FUNCTIONS
Spindle speed:
1000V 1000 × 150 N: Spindle speed (min−1)
N= =
π•D π × 30 V: Cutting speed (m/min)
= 1590 (min−1) D: Tool diameter (mm)
Feedrate:
F1 (D1 − D2) 159 × (60 − 30) F1: Feedrate on the cutting line (mm/min)
F= =
D1 60 D1: Thread diameter (mm)
= 80 (mm/min) D2: Tool diameter (mm)
F1 = f•Z•N f: Tip feedrate per spindle rotation (mm)
= 0.1 × 1 × 1590 Z: Number of tips mounted in the thread
= 159 (mm/min) cutting tool
F1 (D1 + D2)
F=
D1
+Y
Workpiece
+X
φ D1
φ D2
The values obtained in the calculation above are only for reference purpose.
NOTE
Determine the cutting conditions, spindle speed, and feedrate be referring to the catalog
and technical document of the cutting tool manufacturer.
G FUNCTIONS B-55
involute
interpolation.
• I, J, K . . . . . . . . . . . . . Specifies the distance and direction from the start point of
the involute curve to the center of the base circle.
• R. . . . . . . . . . . . . . . . . Specifies the radius of the base circle.
• F . . . . . . . . . . . . . . . . . Specifies the feedrate.
B-56 G FUNCTIONS
1. The start and end points of the involute curve must be taken within 100 turns from
NOTE
the point where the involute curve starts.
2. In the G02.2 or G03.2 mode, an alarm occurs in the following cases:
• The end point is not specified.
• None of I, J, and K is specified.
• A command (I0, J0, K0) which causes the start point and the center of the base
circle to lie at the same position is specified.
• Either the start or end point lies in the base circle.
• R is not specified.
• R≤0
3. The G codes which can be specified in the involute interpolation mode are indicated
below.
• G04 . . . . . . . . . . . . . . Dwell
• G10 . . . . . . . . . . . . . . Data setting
• G17 . . . . . . . . . . . . . . XY plane
• G18 . . . . . . . . . . . . . . ZX plane
• G19 . . . . . . . . . . . . . . YZ plane
• G65 . . . . . . . . . . . . . . Macro call
• G66 . . . . . . . . . . . . . . Macro modal call
• G67 . . . . . . . . . . . . . . Macro modal call cancel
• G90 . . . . . . . . . . . . . . Absolute command
• G91 . . . . . . . . . . . . . . Incremental command
4. In the involute interpolation mode, helical interpolation (G02, G03) and scaling (G51)
are not possible.
5. The involute interpolation can be specified in the following modes.
• G41 . . . . . . . . . . . . . . Cutter radius offset, left
• G42 . . . . . . . . . . . . . . Cutter radius offset, right
• G51 . . . . . . . . . . . . . . Scaling
• G51.1 . . . . . . . . . . . . . Programmable mirror image
• G68 . . . . . . . . . . . . . . Coordinate rotation
G FUNCTIONS B-57
Rotation direction of the involute curve (G02.2, G03.2) is determined by viewing the
involute curve in the negative direction from the positive side of the axis which is not
included in the selected interpolation plane.
On the XY (G17) plane, for example, clockwise direction viewing from the positive side of
the Z-axis in the negative direction is defined as G02.2.
B-58 G FUNCTIONS
2. In the drawing, 1 indicates the start point of involute curve and 2 indicates the end
of involute curve.
3. The Y coordinate of point 2 in the drawing can be calculated in the following manner:
The Y coordinate value of point 2 is equal to 1 ' 2 , where 1 ' 2 is one and a half
turn of the base circle.
1 ' 2 = (diameter × π) × 1.5
= 20 × π × 1.5
= 94.248
+Y
(10.0, 94.248)
2
3
(50.0, 94.248)
+X
1 1’
(−10.0, 0) (10.0, 0)
Base circle
(Radius: 10 mm)
O0001;
N1;
G90 G00 G54 X_ Y_ ;
G43 Z30.0 H1 S800 T2;
M03;
X−10.0 Y0; . . . . . . . . . . . . . . . . . . . . . . Positioning at point 1 at a rapid traverse rate
G01 Z−5.0 F50;
G02.2 X10.0 Y94.248 I10.0 J0 R10.0 F200;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cutting to point 2 along the involute curve at a feedrate of
200 mm/min
G01 X50.0; . . . . . . . . . . . . . . . . . . . . . . Cutting to point 3 at a feedrate of 200 mm/min
G FUNCTIONS B-59
2. The G61 also command has check function for exact stop.
Different from the G09 command, the G61 command is a modal G code.
The values specified as ( , ) in the illustration below indicate the coordinate values (X,
Y).
+Y
(−60.0, 50.0) 2 1 (60.0, 50.0)
50
+X
50
O0001;
N1;
G00 X60.0 Y50.0; . . . . . . . . . . . . . . . . . Positioning at point 1 at a rapid traverse rate
G09 G01 X−60.0 F500; . . . . . . . . . . . . Moving the cutting tool to point 2 at a feedrate of 500
mm/min
The exact positioning at the end point 2 of movement is
checked by the NC.
Before starting the movement commands in the next
block, the cutting tool stops at point 2 once.
Y−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to point 3 at a feedrate of 500
mm/min
Without deceleration at point 3, the cutting tool starts
executing the command in the next block.
G42 G01 X50.0 Y80.0 D1 F200;. . . . . . By D1, the cutter radius offset command G42 is executed
using the tool geometry offset amount of cutter radius
offset set for tool offset number 1.
G FUNCTIONS B-63
The function called by G22 and G23 are called the stored
stroke check function.
In the G22 mode, when a tool enters the specified area an
alarm message is displayed on the screen and the
machine stops. G23 cancels the G22 mode.
If different kind workpieces 1 and 2 are mounted on the
angle plate or fixture, for example, the tool entry inhibited
area should be set by specifying the G22 command to
avoid interference of a cutting tool with the workpiece 2
while workpiece 1 is being cut.
COMMAND
G22 X_ Y_ Z_ I_ J_ K_ ;
G23;
• G22 . . . . . . . . Turns the stored stroke check function ON.
• G23 . . . . . . . . Turns the stored stroke check function OFF.
• X, Y, Z. . . . . . . Specifies the start point of the tool entry inhibited area.
Specify the distance from the machine zero point, i.e., machine
coordinate values displayed on the screen.
(X, Y, Z)
(I, J, K)
CAUTION When using the G22 stored stroke check function, it is necessary to execute the
machine zero return operation after turning on power. The stored stroke check function
cannot be used unless the machine zero return is executed. If the machine is operated
while the stored stroke check function is not set, the machine does not stop even when
a cutting tool enters the tool entry inhibited area, causing machine damage.
1. For setting the coordinate values "X_ Y_ Z_" and "I_ J_ K_", the following conditions
NOTE
must be satisfied.
• X > I, Y > J, Z > K
• X − I > 2 mm, Y − J > 2 mm, Z − K > 2 mm
(X, Y, Z) (X, Y, Z)
(I, J, K) (I, J, K)
<Entry inhibited area is set outside> <Entry inhibited area is set inside>
As shown in the illustration diagram above, the tool entry inhibited area is
established "outside" or "inside" the specified zone. Where the tool entry inhibited
area is set "outside" or "inside" is determined by the setting for parameter No.
1300.0.
3. The G22 and G23 commands must be specified in a block without other commands.
4. If the same values are set for "X_ Y_ Z_" and "I_ J_ K_" following the G22 command,
the tool entry inhibited area is not set.
5. Tool entry inhibited area specified with G22 is set in parameters.
The value set in parameters are not lost even if the power is turned off.
Accordingly, unless canceled by G23, the G22 function is valid when the power is
turned on.
G FUNCTIONS B-65
If a cutting tool enters the tool entry inhibited area specified with G22, an alarm is
displayed on the screen and the machine stops.
In this case, the cutting tool can be moved only in the opposite direction in which the
cutting tool has been moved.
O0001;
N1;
G91 G28 Z0; . . . . . . . . . . . . . . . . . . . . . Machine zero return of Z-axis
G28 X0 Y0; . . . . . . . . . . . . . . . . . . . . . . Machine zero return of X- and Y-axes
G22 X−100.0 Y−50.0 Z−40.0 I−140.0 J−70.0 K−80.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the tool entry inhibited area as illustrated above
G90 G00 G54 X_ Y_ ;
G43 Z_ H_ S_ T_ ;
M03;
Machining program
COMMAND
G31 X_ Y_ Z_ F_ ;
• G31 . . . . . . . . Turns ON the skip function.
• X, Y, Z. . . . . . . Specifies the coordinate values of the end point.
• F . . . . . . . . . . . Specifies feedrate.
2. Before specifying the G31 command, cancel the cutter radius offset mode (G41,
G42) by specifying the G40 command. If the G31 command is specified in the cutter
radius offset mode, an alarm message (No. 035) is displayed on the screen.
G FUNCTIONS B-67
+Y
1
(−40.0, −50.0)
Skip signal was given here. The values specified as ( , ) in the illustration
left indicate the coordinate values (X, Y).
Programmed path
Actual path
1 (40.0, –50.0)
B-68 G FUNCTIONS
2. When the commands in the block succeeding the G31 block are specified in absolute values
calling movement of a single axis
In the block succeeding the G31 block, the axes specified in this block move to the specified
position. However the axes not specified stay at the position where the skip signal is given.
In the path 1 → 2 → 3, G31 is specified for path 1 → 2. Using such a program, axis
movement is explained in the case a skip signal is input at point 2'.
+Y
(−30.0, 35.0) 2
3 (57.0, 35.0) G90 G00 X−40.0 Y−50.0; . . . . . . . . . . . . . . . . . . . . . . [1]
2’
G31 X−30.0 Y35.0 F500;. . . . . . . . . . . . . . . . . . . . . . . [2]
+X
X57.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [3]
1
(−40.0, −50.0)
3. When the commands in the block succeeding the G31 block are specified in absolute values
calling movement of two axes
If a skip signal is input at any point between the path specified in the G31 mode, positioning
called in the block succeeding the G31 block is always made at the specified position.
In the path 1 → 2 → 3, G31 is specified for path 1 → 2. Using such a program, axis
movement is explained in the case a skip signal is input at point 2'.
+Y
1
(−40.0, −50.0)
Programmed path
1 (−40.0, −50.0) Actual path
B-70 G FUNCTIONS
Command Offset
By specifying the G45 to G48 command, movement
value amount distance of the specified axis can be increased/decreased
or double-increased/double-decreased by the value set
on the TOOL OFFSET screen.
It is possible to machine the contour of a workpiece using
an end mill by shifting tool radius that has been input as
G45
the offset amount. This is the same use as the cutter
radius offset function (G41, G42). However, in taper
G46 machining, excessive cutting (undersized cutting) or
insufficient cutting (oversized cutting) is caused by
G47 offsetting only the tool radius.
Accordingly, the tool position offset G code (G45 - G48)
G48 are not used generally, but the cutter radius offset function
(G41, G42) is used.
COMMAND
G45(G46, G47, G48) X(Y)_ D_ ;
• G45 - G48 . . . Tool position offset
G code Function
1. G codes calling the tool position offset function (G45 - G48) is G code in group 00.
NOTE
As the above G codes are one-shot G code, they are valid only in the specified
block.
2. Setting range of the offset amount is indicated below.
±999.999mm
Offset amount
±999.999deg
End point
Offset amount 50 mm
Programmed path
Actual path
Start point Offset amount
50 mm
COMMAND
G51 X_ Y_ Z_ P_ ;
G50;
• G51 . . . . . . . . Specifies scaling.
• G50 . . . . . . . . Cancels the scaling.
• X, Y, Z. . . . . . . Specifies the coordinate value of the center of scaling (absolute
value).
• P. . . . . . . . . . . Specifies the magnification ratio (without decimal point).
+Y
2 200 1
100
2’ 1’
(X0, Y0)
+X
−200 −100 100 200
3’ 4’
−100
3 −200 4
O0001;
N1;
G90 G00 G54 X0 Y0;
G43 Z30.0 H1 S1000 T2;
M03;
G51 X0 Y0 P500; . . . . . . . . . . . . . . . . . Specifying scaling of 0.5-time magnification taking the
workpiece zero point (X0, Y0) as the center of scaling.
X200.0 Y200.0; . . . . . . . . . . . . . . . . . . . 1 . . . . . As scaling is applied to the shape 1 2 3
G01 Z−30.0 F500; 4, the shape 1' 2' 3' 4' is machined.
X−200.0; . . . . . . . . . . . . . . . . . . . . . . . . 2
Y−200.0; . . . . . . . . . . . . . . . . . . . . . . . . 3
X200.0; . . . . . . . . . . . . . . . . . . . . . . . . . 4
Y200.0; . . . . . . . . . . . . . . . . . . . . . . . . . 1
G00 Z30.0;
G50; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the scaling mode.
B-76 G FUNCTIONS
COMMAND
G51 X_ Y_ Z_ I_ J_ K_ ;
G50;
• G51 . . . . . . . . Specifies programmable mirror image.
• G50 . . . . . . . . Cancels the programmable mirror image.
• X, Y, Z. . . . . . . Specifies the axis and center of symmetry.
1. To use the programmable image function by specifying the G51 command, make
NOTE
appropriate setting for the following parameters.
• No. 5400.6 . . . . . . . This parameter selects the mode of programmable image
processing (point symmetry or symmetry with respect to
line).
• No. 5401.0 . . . . . . . If the setting for No. 5400.6 is "symmetry with respect to
line", "1" must be set for this parameter.
• No. 5400.7 . . . . . . . Selects the command unit of programmable image scale
factor from 0.001 and 0.00001.
2. The mirror image function can be specified by using the setting function in addition to
the G51 command.
If the mirror image function is set on the SETTING screen, it becomes valid after the
execution of the G51 (programmable mirror image) command.
3. When mirror image is specified to only the single axis of the specified plane,
commands are as follows.
• Circular COMMAND. . . . . . . G02 (Clockwise direction) and G03
(Counterclockwise direction) become opposite.
• Cutter radius offset. . . . . . . . G41 (left offset) and G42 (right offset) become
opposite.
• Coordinate rotation. . . . . . . . Rotation angle becomes opposite.
4. If the mirror image function is applied to a hole machining canned cycle, the mirror
image function is invalid for some of arguments as indicated below.
• In the fine boring cycle (G76), the mirror image function is invalid for the shift
amount Q or I and J at the bottom of hole.
• In the back boring cycle (G87), the mirror image function is invalid for the tool
shift amount Q or I and J.
5. Addresses I, J, and K must not be omitted.
6. After specifying the G51 or G50 command, the first axis movement must be
specified by an absolute command.
B-78 G FUNCTIONS
+Y
3
80
B 1 A
60 2
50
C D
+X
50 60 100
Sub-program (O0002)
O0002; (Shape A)
G90 G00 X60.0 Y60.0; . . . . . . . . . . . . . Positioning at point 1 at a rapid traverse rate
G01 Z−30.0 F120;
X100.0; . . . . . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to point 2 at a feedrate of 120
mm/min
Y80.0; . . . . . . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to point 3 at a feedrate of 120
mm/min
X60.0 Y60.0; . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to point 1 at a feedrate of 120
mm/min
G00 Z10.0;
M99;
G FUNCTIONS B-79
COMMAND
G51.1 X_ Y_ Z_ ;
• G51.1 . . . . . . . Specifies programmable mirror image.
• X, Y, Z. . . . . . . Specifies the axis and center of symmetry.
1. The mirror image function can be specified by using the setting function in addition to
NOTE
the G51.1 command.
If the mirror image function is set on the SETTING screen, it becomes valid after the
execution of the G51.1 (programmable mirror image) command.
2. When mirror image is specified to only the single axis of the specified plane,
commands are as follows.
• Circular COMMAND. . . . . G02 (clockwise direction) and G03
(counterclockwise direction) become opposite.
• Cutter radius offset. . . . . . G41 (left offset) and G42 (right offset) become
opposite.
• Coordinate rotation. . . . . . Rotation angle becomes opposite.
G FUNCTIONS B-81
3. The G50.1 and G51.1 commands must not be specified in the scaling or coordinate
NOTE
rotation mode.
If programmable mirror image, scaling, and coordinate rotation are specified in the
same block, they are executed in this order and, therefore, the G commands should
be specified in the order of G51.1, G51, and G68. To cancel them, specify the G
commands in the order of G69, G50, and G50.1.
4. After specifying the G51.1 or G50.1 command, the first axis movement must be
specified by an absolute command.
+Y
3
80
B 1 A
60 2
50
C D
+X
50 60 100
Sub-program (O0002)
O0002; (Shape A)
G90 G00 X60.0 Y60.0; . . . . . . . . . . . . . Positioning at point 1 at a rapid traverse rate
G01 Z−30.0 F120;
X100.0; . . . . . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to point 2 at a feedrate of 120
mm/min
Y80.0; . . . . . . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to point 3 at a feedrate of 120
mm/min
X60.0 Y60.0; . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to point 1 at a feedrate of 120
mm/min
G00 Z10.0;
M99;
B-82 G FUNCTIONS
COMMAND
G52 X_ Y_ Z_ ;
• G52 . . . . . . . . Sets a local coordinate system.
• X, Y, Z. . . . . . . Specifies the amount to shift the work coordinate system.
The position is zero point of the local coordinate system.
2. A local coordinate system is not canceled by the operation of the RESET (RESET) key
or when the NC is reset. Therefore, it is necessary to specify the local coordinate
system cancel command (G52 X0 Y0 Z0;) in the program to use a local coordinate
system.
If NC parameter is set as "NC parameter No. 1202.3 = 1", however, reset operation
cancels a local coordinate system.
3. If the G52 command is specified in the cutter radius offset mode (G41 or G42), the
cutter radius offset mode is temporarily canceled.
4. When the G52 command is specified, the first axis movement command after the
execution of it must be specified in absolute values.
5. When a local coordinate system is set by specifying the G52 command, the work
coordinate system and the machine coordinate system is not influenced by the set
local coordinate system.
B-84 G FUNCTIONS
Four 10 mm dia. holes, equally spaced on 30 mm Workpiece zero point for G54 (X0, Y0)
dia. circle.
Y
2
30
1
X
3 Y’
φ 30
40
2’
4
1’
X’
3’
φ 30
40
4’
30 50 40
Workpiece zero point for G52 (X'0, Y'0)
Sub-program (O0002)
O0002;
X15.0 Y0; . . . . . . . . . . . . . . . . . . . . . . . 1
X0 Y15.0; . . . . . . . . . . . . . . . . . . . . . . . 2
X−15.0 Y0; . . . . . . . . . . . . . . . . . . . . . . 3
X0 Y−15.0; . . . . . . . . . . . . . . . . . . . . . . 4
M99;
G80;
G FUNCTIONS B-85
The machine coordinate system means the coordinate system having its origin at the machine
zero point of X-, Y-, and Z-axes.
For the machine equipped with sensor or when using the special fixtures, it is possible to move a
cutting tool to a fixed position at rapid traverse by specifying the G53 command. Also specify the
G53 command to move the table to the machine center before finishing the machining.
The machine coordinate values of the axes can be confirmed by the present position
(machine coordinate) displayed on the screen.
COMMAND
G90 G53 X_ Y_ Z_ ;
• G90 . . . . . . . . Calls the absolute dimensioning mode.
• G53 . . . . . . . . Selects the machine coordinate system.
• X, Y, Z. . . . . . . Specifies the coordinate value in the machine coordinate
system.
Machining program
G91 G28 Z0 M05; . . . . . . . . . . . . . . . . . Stopping the spindle after the completion of zero point
return of the Z-axis
M01;
M06; . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing the spindle tool with T2 tool
G90 G53 X−300.0 Y−205.0; . . . . . . . . . The table moves to the center of X- and Y- axis travel at a
rapid traverse rate.
M30;
B-86 G FUNCTIONS
1. When power is turned on, the G54 work coordinate system is selected.
NOTE
2. Specify address P after the G54.1 (G54) command. If address P is not specified
following the G54.1 command in the same block, additional coordinate system 1
(G54.1 P1) is selected.
3. If a value outside the allowable range is specified for address P, an alarm message
(No. 030) is displayed on the screen.
G FUNCTIONS B-87
The origin of an additional work coordinate system can be shifted by executing the
following commands.
G10 L20 P_ X_ Y_ ;
• G10 L20. . . . . . . . . Calls the additional work coordinate system shift mode.
• P . . . . . . . . . . . . . . (Additional 48 sets of work coordinate systems)
Selects the additional work coordinate system from additional
work coordinate systems 1 to 48.
(Additional 300 sets of work coordinate systems)
Selects the additional work coordinate system from additional
work coordinate systems 1 to 300.
• X, Y . . . . . . . . . . . . Specifies the distance and direction of the workpiece zero point
in the new work coordinate system in reference to the machine
zero point.
(G90): Specifies the distance from the machine zero point to
the workpiece zero point of the additional work
coordinate system to be set newly. The specified
values are taken as the new offset amount.
(G91): Specifies the distance and direction from the origin in
the present work coordinate system to the workpiece
zero point of the additional work coordinate system to
be set newly. The specified values are added to the
present offset amount.
B-88 G FUNCTIONS
+Y +Y
Angle plate
+X +X
O0001;
N1;
G90 G00 G54(G54.1) P1 X0 Y0; . . . . . Positioning at the workpiece zero point (X0, Y0) of No. 1
additional work coordinate system at a rapid traverse rate
G43 Z30.0 H1 S500 T2;
M03;
Machining program
M06;
N2;
G90 G00 G54(G54.1) P2 X0 Y0; . . . . . Positioning at the workpiece zero point (X0, Y0) of No. 2
additional work coordinate system at a rapid traverse rate
G43 Z30.0 H2 S800 T3;
M03;
Machining program
G FUNCTIONS B-89
Overrun stroke
Start point
Start point
End point
NOTE
5. Uni-directional positioning for the axis for which travel is set to 0 is not possible.
6. The overrun stroke and the direction for positioning are set using parameter No.
5440.
7. The mirror image function is not valid for the positioning direction which is set using a
parameter.
8. If the direction of positioning specified in the program is the same direction as the
positioning direction set for the parameter, an axis stops once at a point away from
the specified end point by the "overrun stroke" which is set for the parameter. After
that positioning is made at the specified end point.
9. When G76 fine boring cycle or G87 back boring cycle is executed in the
uni-directional positioning mode, set the tool shift direction opposite to the direction
in which positioning has been made. Since uni-directional positioning is not
executed on tool shift axis in G76 and G87 cycles, if tool shift direction is set in the
same direction as the uni-directional positioning direction, the axis does not return to
the positioning point when it returns by the shift amount at the initial or R-point level
at the end of machining. This means that the axis position will be offset due to
backlash and other causes.
Tool shift direction and axis are set for parameters No. 5101.4 and No. 5101.5,
individually.
Positioning direction and overrun stroke to be set for parameter No. 5440 are X+1.0 mm,
NOTE
Y+1.0 mm.
+Y
30 30
2 1
20
+X
20
3 4
O0001;
N1;
G90 G00 G54 X50.0 Y20.0;
G43 Z30.0 H1 S1000 T2;
M03;
G FUNCTIONS B-91
1.0 mm
G99 G81 Z−5.0 R3.0 F100; . . . . . . . . . Executing the spot drilling cycle (G81) at point 1
1.0 mm
2 (X−30.0, Y20.0)
3 (X−30.0, Y−20.0)
1.0 mm
1.0 mm
<Macro program>
M99
COMMAND
G65(G66, G66.1) P_ L_ <Argument assignment>;
G67;
• G65 . . . . . . . . . Calls the macro call mode (one-shot command).
• G66 . . . . . . . . . Calls the macro call mode (modal command).
(call after execution of axis movement commands)
• G66.1 . . . . . . . . Calls the macro call mode (modal command).
(call in each block)
• G67 . . . . . . . . . Cancels the modal macro call mode, called by G66 or G66.1.
• P. . . . . . . . . . . . Specifies the macro program number to be called.
• L . . . . . . . . . . . . Specifies the number of macro program calls.
(If it is omitted, the specified macro program is called one time.)
• Argument assignment
. . . . . . . . . . . . . Specifies argument (A to Z) and value.
For details, refer to the instruction manual supplied
by the NC unit manufacturer.
G FUNCTIONS B-93
2. If the G66 command is specified, macro program is executed each time an axis
movement command is executed until this mode is canceled by the G67 command.
3. If the G66.1 command is specified, macro program is executed at each block after
the execution of commands in it until this mode is canceled by the G67 command.
4. In the G65, G66 and G66.1 blocks, the G65, G66 and G66.1 commands must be
specified preceding all arguments.
5. The G67 command is not related to G65.
6. The G66 or G66.1 block and the G67 block must be specified in the same program.
7. The G65 command cannot be specified with the G66, G66.1 or G67 command in the
same block.
8. Some of the characters used in a macro program are special characters. ("#", "*",
and "/" are examples of these special characters.) Since they are not supported by
the EIA code, it is not possible to use the EIA code for input/output of a macro
program. Therefore, a macro program must be created in the ISO code.
9. In the G66.1 mode, all codes other than O (program number), N (sequence number),
and G codes are not executed but they are treated as arguments. However, if more
than one G code or address N is specified in a single block, they are processed in
the following manner.
• G code . . . . . The G code specified last is treated as an argument.
• Address N . . Address N, other than the first one, is all treated as an
argument.
G66.1 P_ ;
N100 G90 G01 X_ Y_ F_ N200 . . . . . . G01 and N200 are both treated as an
Argument Argument
argument.
10. G66.1 (call in each block) is provided as an optional function with custom B macro.
O0001;
N1;
G90 G00 G54 X0 Y0;
G43 Z30.0 H1 S1000 T2;
M03;
G98 G81 Z−10.0 R3.0 F100 K0;. . . . . . Executing the spot drilling cycle (G81)
X100.0 Y50.0; . . . . . . . . . . . . . . . . . . . . Positioning at point 1 at a
rapid traverse rate
X_ Y_ ; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 2 at a
rapid traverse rate Drilling operation of 1 to 6
.....................
X_ Y_ ; . . . . . . . . . . . . . . . . . . . . . . . . . Positioning at point 6 at a
rapid traverse rate
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the spot drilling cycle (G81)
G FUNCTIONS B-95
#5 = #21∗#2/#3;
#6 = 1 − 2∗#10;
END1;
M99;
B-96 G FUNCTIONS
A macro program is created by combining the variables and qualifications which are expressed in
[ ].
Note that variables "#_ " are used in a macro program while arguments "A, B, C, ... X, Y, Z" are
used in a main program.
Since a combination between argument and variable is fixed such as "A = #1, B = #2", the value
specified for an argument in the main program is assigned to the corresponding variable in the
macro program.
The macro program indicated above is only for reference purpose and cannot be used for
NOTE
actual operation.
The symbol of "#_ " used in a program indicates a "variable". Variables are used in a
macro program.
For details of combination between arguments and variables, refer to the instruction
manual supplied by the NC unit manufacturer.
+Y
(0, 0)
+X
φ 20
+Y
(100, 0) (200, 0)
+X
(50, −40) Operation pattern
in a hole
Z−10.0; . . . . . . . . . . . . . . . . . . . . . . . . . 1 5 1
+Y
Next, create the main program for hole machining at four hole positions.
+Y
1 (0, 0) 3 (200, 0)
+X
2 (100, 0)
4 (50, −40)
1. Even when the G65 command is used, macro programs remain unchanged.
NOTE
2. Since the G65 command is a one-shot G code, it is valid only in the specified block.
O0001;
N1;
G90 G00 G54 X0 Y0;
G43 Z30.0 H1 S800 T2;
M03;
G65 P8000 A10.0; . . . . . . . . . . . . . . . . Executing the macro program (O8000) at point 1 by
entering "10.0" for #1 in the macro program
X100.0; . . . . . . . . . . . Executing the macro program (O8000) at point 2 by
G65 P8000 A10.0; entering "10.0" for #1 in the macro program
X200.0; . . . . . . . . . . . Executing the macro program (O8000) at point 3 by
G65 P8000 A10.0; entering "10.0" for #1 in the macro program
X50.0 Y−40.0; . . . . . . . . . . . Executing the macro program (O8000) at point 4 by
G65 P8000 A10.0; entering "10.0" for #1 in the macro program
Compare the following with the macro program which uses G66.
It is found that the program using G66 is shorter than the one using M98.
For details of M98 (Sub-program call), refer to page C-19 (8)
O0001;
N1;
G90 G00 G54 X0 Y0;
G43 Z30.0 H1 S800 T2;
M03;
M98 P100; . . . . . . . . . . . . . . . . . . . . . . Executing sub-program O0100 at point 1
X100.0; . . . . . . . . . . . Executing sub-program O0100 at point 2
M98 P100;
Sub-program (O0100)
O0100;
Z−10.0;
G91 G01 Y10.0 F100;
G02 J−10.0;
G01 Y−10.0;
G90 G00 Z10.0;
M99;
2) To create the macro program for the application where the holes have different diameters
while the pattern is similar to that used in 1).
+Y
(0, 0) φ 26 φ 30
+X
+Y
φ 20
(100, 0) (200, 0)
+X
Operation pattern
φ 32 (50, −40)
in a hole
G02 J−#1; . . . . . . . . . . . . . . . . . . . . . . . 3 5 1
+Y
G01 Y−#1;. . . . . . . . . . . . . . . . . . . . . . . 4 3
G90 G00 Z10.0; . . . . . . . . . . . . . . . . . . 5 +X
Next, create the main program for hole machining at four hole positions.
+Y
1 (0, 0) 3 (200, 0)
+X
2 (100, 0)
4 (50, −40)
The programmed shape can be rotated in an arbitrary angle using the G68 command.
Specifying the G69 command cancels this function.
+Y 1
2
+X
Rotation angle
Center of rotation
Center of rotation
• G17, G18, G19. . . . . . Selects the plane in which the coordinate system is
rotated.
• G68 . . . . . . . . . . . . . . Calls the coordinate rotation function.
• G69 . . . . . . . . . . . . . . Cancels the coordinate rotation function.
• X, Y, Z. . . . . . . . . . . . . Specifies the coordinate value of the center of rotation
(absolute value).
• R. . . . . . . . . . . . . . . . . Specifies the angle of rotation.
1. Do not change the plane selected by (G17 - G19) in the coordinate system rotation
NOTE
mode.
2. The coordinate values of the center of rotation should be specified in absolute
values. If these values are specified in incremental values, the point where the G68
command is specified is taken as the center of rotation.
3. If the center of rotation is omitted, the point where the G68 command is specified is
taken as the center of rotation.
4. Whether the rotation angle is specified in an absolute value or an incremental value
is selected by the setting for parameter No. 5400.0.
5. The minimum setting unit and programmable range of rotation angle is given below.
6. If address R is omitted, the value set for parameter No. 5410 is taken as the rotation
angle.
7. Offset motion such as cutter radius offset, tool length offset, and tool position offset
is executed after the execution of the rotation.
8. The G68 and G69 commands can be specified in the cutter radius offset mode. The
plane in which the rotation is executed and the one in which the cutter radius offset is
executed must be the same plane.
9. When the G68 command is specified in the scaling mode (G51 mode), scaling is
also applied to the coordinate values of the center of rotation. However, scaling is
not applied to the rotation angle.
For the movement commands, coordinate rotation is executed after the execution of
scaling. Accordingly, the commands in the program must be specified in the
following order.
G51;. . . . . . . . . . . . . . . . . Scaling mode
G68;. . . . . . . . . . . . . . . . . Coordinate rotation valid
11. The G68 command cannot be specified if both of the cutter radius offset function
NOTE
(G41 or G42 mode) and the scaling function (G51 mode) are called.
Specify the G68 command before specifying the cutter radius offset function.
G51;. . . . . . . . . . . . . . . . . Scaling mode
G68;. . . . . . . . . . . . . . . . . Coordinate rotation valid
+Y
50 3 ’ (30.0, 50.0)
2 2’
R20
(10.0, 50.0)
4 30
20 4 ’ (30.0, 20.0)
1
(10.0, 20.0)
+X
10 30
O0001;
N1;
G90 G00 G54 X0 Y0;
G43 Z30.0 H1 S1000 T2;
M03;
X10.0 Y20.0;
G01 Z−3.0 F200;
G68 (X10.0 Y20.0) R30.0; . . . . . . . . . . Calling the coordinate rotation function
The coordinate values of the center of rotation is point 1
(X10.0, Y20.0) and the rotation angle is 30°.
Y50.0; . . . . . . . . . Specifying the shape of 1' 2' 3' 4' by defining it in the order
of 2' → 3' → 4' → 1
1. A movement command must be specified in the first block of the sub-program for
NOTE
which copy by rotation is executed.
If the first block contains only the program number without a movement command,
there are cases that axis movement stops at the start point of the copied shape in
the nth-time (n = 1, 2, 3,.......) copy processing.
The first axis movement command must always be specified in absolute values.
<Wrong example>
O1000; . . . . . . . . . . . . . . . . . . . . . . . . . . No movement commands in the first
block
G90 G01 X100.0 Y200.0;
M99;
<Correct example>
O1000 G90 G01 X100.0 Y200.0; . . . . . . Movement commands specified in the
first block
M99;
2. If the G72.1 command in the sub-program which is subjected to the copy by rotation
processing of G72.1 command is specified again, an alarm message (No. 160) is
displayed on the screen.
3. It is allowed to specify the G72.2 command (copy by shift) in the sub-program which
is subjected to the copy by rotation processing by G72.1 command.
Similarly, it is allowed to specify the G72.1 command (copy by rotation) in the
sub-program which is subjected to the copy by shift processing by the G72.2
command.
4. It is allowed to specify the sub-program call (M98) and macro call (G65) in the
sub-program which is subjected to the copy by rotation processing by the G72.1
command.
5. The coordinate values of the center of rotation should be specified by absolute
commands. Even if incremental commands are used to specify the coordinate
values of the center of rotation, they are regarded as the absolute commands.
6. Use incremental values for specifying the angle of rotation (R). The rotation angle in
the nth time rotation is "R × (n − 1)".
7. In the G72.1 block, single block stop is not allowed.
8. In the G72.1 block, addresses other than P, L, X, Y, Z, and R are ignored.
Be sure to specify the sub-program number (P), coordinate values of center of
rotation (X, Y, Z), and angle of rotation (R) in this block.
9. If the sub-program number which is specified by address P is not found, an alarm
message (No. 078) is displayed on the screen.
10. If the address P is not specified, an alarm message (No. 076) is displayed on the
screen.
G FUNCTIONS B-107
11. The following commands cannot be specified in the copy by rotation processing.
NOTE
+Y R10
A
5 4
Start point
6 3
120 1
7 2
+X
R30
B C
1. A movement command must be specified in the first block of the sub-program for
NOTE
which copy by shift is executed.
If the first block contains only the program number without a movement command,
there are cases that axis movement stops at the start point of the copied shape in
the nth-time (n = 1, 2, 3......) copy processing.
The first axis movement command must always be specified in absolute values.
<Wrong example>
O1000; . . . . . . . . . . . . . . . . . . . . . . . . . . No movement commands in the first
block
G90 G01 X100.0 Y200.0;
M99;
<Correct example>
O1000 G90 G01 X100.0 Y200.0; . . . . . . Movement commands specified in the
first block
M99;
2. If the G72.2 command in the sub-program which is subjected to the copy by shift
processing of G72.2 command is specified again, an alarm message (No. 161) is
displayed on the screen.
3. It is allowed to specify the G72.1 command (copy by rotation) in the sub-program
which is subjected to the copy by shift processing by the G72.2 command.
Similarly, it is allowed to specify the G72.2 command (copy by shift) in the
sub-program which is subjected to the copy by rotation processing by the G72.1
command.
4. It is allowed to specify the sub-program call (M98) and macro call (G65) in the
sub-program which is subjected to the copy by shift processing by the G72.2
command.
5. Use incremental values for specifying the shift amount (I, J, and K). The shift
amount in the nth time shift is "(shift amount) × (n − 1)".
6. In the G72.2 block, single block stop is not allowed.
7. In the G72.2 block, addresses other than P, L, I, J, and K are ignored.
Be sure to specify the sub-program number (P) and shift amount (I, J, and K) in this
block.
8. If the sub-program number which is specified by address P is not found, an alarm
message (No. 078) is displayed on the screen.
9. If the address P is not specified, an alarm message (No. 076) is displayed on the
screen.
G FUNCTIONS B-111
10. The following commands cannot be specified in the copy by shift processing.
NOTE
+Y
A B C
50 5 6 R20
3 8
20 2 4 7
10 20
Start point
9
+X
(−20.0, 0) 1 30 100 170 240
70 70 70
B-112 G FUNCTIONS
The G08 command is optional for MH series (includes U-axis control specification).
NOTE
COMMAND
G08 P1;
G08 P0;
• G08 P1; . . . . . Specifies look ahead control mode ON.
• G08 P0; . . . . . Specifies look ahead control mode OFF.
2. The look ahead control is canceled when the RESET (RESET) key is pressed.
3. In the look ahead control mode, the following functions become valid.
• Precede feed-forward function
The function to give the command anticipating the error between the
commands and actual movement.
• Automatic corner deceleration function
The function to maintain the programmed feedrate as long as possible by
reducing shocks at corners.
• Arc radius feedrate clamp function
The function to clamp the feedrate when cutting an arc of small radius, thereby
restricting acceleration of feed axes within the allowable limits to reduce
shocks to the machine.
• Pre-interpolation linear acceleration/deceleration function
• Post-interpolation linear acceleration/deceleration function
B-114 G FUNCTIONS
4. In the look ahead control mode, the following functions cannot be specified or used.
NOTE
To specify or use them, cancel the look ahead control mode.
• Rigid tapping • Rotary table indexing
• Feed per revolution • Thread cutting, synchronized
feed
• F1-digit feed • Pulse handle feed
• Polar coordinate interpolation • Program restart
• Cylindrical interpolation • Feed stop
• Involute interpolation • High-speed skip
• Exponential function interpolation • Constant surface speed control
• 3D coordinate conversion • Interruption type custom macro
• Normal direction control • Small diameter deep hole drilling
cycle
• Polar coordinate command • High-speed remote buffer
Machining program
The 20000 min−1 specification machine of SH-503 and SH5000 has two spindle speed ranges,
low and high, and pre-load level applied to the spindle bearings (angular contact ball bearings) is
switched to the high or low pre-load level according to the spindle speed range.
The 15000 min−1 specification machine of SH-633, SH8000, MH-503 and 633 and the 13000
min−1 specification machine of MH-1003 have three spindle speed ranges, low, middle and high,
and pre-load level applied to the spindle bearings (angular contact ball bearings) is switched to the
high, middle or low pre-load level according to the spindle speed range.
If the pre-load level is changed according to spindle speeds, however, the spindle position is
displaced in the Z-axis direction. To eliminate an error due to displacement, the Z-axis position is
offset according to the pre-load level.
The Z-axis offset is set for "Z" of "COMMON" on the WORK OFFSET screen.
1. The appropriate pre-load value applied to the spindle varies according to spindle
NOTE
speeds. Generally, higher pre-load can be applied to the spindle in a low spindle
speed range to give high rigidity or high spindle rotating accuracy.
In a high spindle speed range, however, applying a high pre-load increases the
internal load due to heat generation of bearings and centrifugal force, which causes
problems such as seizure. To avoid such problems, pre-load level is changed to
lower level in high spindle speed ranges.
2. If the pre-load switching offset is not used, change the setting for parameter K10.3 to
"1".
3. When the pre-load switching offset is used, the Z-axis displacement by switching
pre-load levels is offset on the work coordinate system. In the tool length
measurement, it is not necessary to take into account the displacement by pre-load
levels. Measure the tool length after always specifying the S code of the basic
pre-load level (standard: high pre-load level in which "0" is set for the PC parameter)
in measurement.
If the pre-load switching offset is not used, measure the tool length after specifying
the spindle speed in actual machining by S code.
To give high rotation accuracy and rigidity, spindle bearings are pre-loaded.
B-2 APPENDIX
1. Pre-load levels applied to spindle speeds specified by S codes are indicated below.
NOTE
0 to 12999 High
13000 to 20000 Low
0 to 3999 High
4000 to 9999 Middle
10000 to 15000 Low
0 to 3999 High
4000 to 9999 Middle
10000 to 13000 Low
Using the G10 command, the pre-load level switching offset values set for "Z" of "COMMON" on
the WORK OFFSET screen can be changed.
COMMAND
G90(G91) G10 L2 P0 Z_ ;
M65;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G10 . . . . . . . . External input of offset value of a work coordinate system
• L2 . . . . . . . . . . Input of offset value of a work coordinate system
• P0. . . . . . . . . . Selects the offset data common to work coordinate systems G54
to G59.
• Z . . . . . . . . . . . Specifies the pre-load level switching offset value.
1. Specify the M65 command in the block immediately after the block where the G10
NOTE
command is specified.
2. If is possible to manually change the pre-load level switching offset value set for "Z"
of "COMMON" on the WORK OFFSET screen.
After changing the offset value manually, execute the M65 command in the MDI
mode.
3. Specify the M65 command in a block without other commands.
If the M65 command is specified with the G10 or M06 command or an S code in the
same block, the pre-load level switching offset value set for "Z" of "COMMON" on the
WORK OFFSET screen is not changed.
4. If the power is shut off without executing the updating of the pre-load level switching
offset value by the M65 command or an S code after changing the pre-load level
switching offset value set for "Z" of "COMMON" on the WORK OFFSET screen
either by the G10 command or manually, the pre-load level switching offset value is
not changed.
When the power is turned on again, the offset value for high pre-load level is set for
"Z" of "COMMON" on the WORK OFFSET screen.
5. When the power is turned on, the offset value for high pre-load level is set for "Z" of
"COMMON" on the WORK OFFSET screen.
B-4 APPENDIX
1-3 Parameters
The parameters related to the pre-load level switching offset are indicated below.
WARNING The parameters are set on shipment in accordance with the machine
specifications; do not change them without first consulting Mori Seiki. If
the parameters are changed without consultation, the machine may
operate in an unexpected manner, causing accidents involving serious
injuries or damage to the machine.
Parameter Description
D324 Z-axis offset value to be used when pre-load level is changed to the high level.
(μm)
Set "0" for this parameter since this value is taken as the reference for
NOTE
offset.
D328 Z-axis offset value to be used when pre-load level is changed to the middle level.
(μm)
D332 Z-axis offset value to be used when pre-load level is changed to the low level.
(μm)
D336 Z-coordinate value at the reference pre-load level.
The Z-axis offset value at the individual pre-load levels is added to the
NOTE
Z-coordinate value set for this parameter and written to "Z" of
"COMMON" on the WORK OFFSET screen.
It is possible to take the value set for D328 or D332 for the reference value. For the
NOTE
parameter which is taken as the reference value, "0" must be set.
CHAPTER C
M FUNCTIONS
C : M FUNCTIONS
16 M52, M58 DUST COLLECTOR AIR BLOW START AND STOP . . . . . . . . . . . . . . . . . C-35
1 M CODE LIST
M codes are also called miscellaneous functions that control program flow, coolant discharge on/
off, etc. These functions are also used as supplementary functions to those called by the G
codes.
CAUTION M31 and M32 commands are provided for maintenance purpose and they must not be
used in cases other than occurrence of fault.
Before using the M31 and M32 commands, please contact Mori Seiki.
1. It is allowed to specify one M code in a block. Optionally, one block can contain up to
NOTE
three M codes.
2. This chapter gives explanation on general M code functions. On some types of
machine models, all of these functions may not be supported or some of the M
codes may be used for different functions or not described below. For details, refer
to the ladder diagram supplied with your machine or contact Mori Seiki.
*1
3. Only for U-axis control specification.
*2
In the case of U-axis control specification, the tool in the spindle and the one in
the waiting pot are returned to the magazine and the spindle cap tool (tool No.
1) is mounted to the spindle.
*3 Only for MH series (includes the U-axis control specification), SH-403, and 633.
*4 Standard for MH-503, 503/U, 633, 633/U, 1003, and SH series.
*5
Only for MH series (includes U-axis control specification), SH-403, and 633.
*6
Only for MH-503, 633, 1003, and SH series.
*7
Only for SH series.
*8 Standard for SH series and NH5000.
*9
Only for MH-403, 1003, SH-503, and 633.
C-2 M FUNCTIONS
M73 Y-axis mirror image OFF Makes the Y-axis mirror image invalid
M74 Y-axis mirror image ON Makes the Y-axis mirror image valid
M75 X-axis mirror image OFF Makes the X-axis mirror image invalid
M76 X-axis mirror image ON Makes the X-axis mirror image valid
M92 Oil mist ON Starts discharging of oil mist. (Oil mist is optional.)
M108 In-machine fixture clamp For auto coupler type, available only for MDI mode.
M109 In-machine fixture unclamp (Auto-coupler specification)
M163 Tool life check 8-digit T code specification (Only for SH-503 and 633)
CAUTION After the operation is suspended temporarily by the M00 or M01 command, do not
change the tools or move an axis manually. If either or both of such manual operations
had to be carried out, return the turret head and the axes having been operated to the
previous state before manual operation. After that the automatic operation may be
restarted. If the automatic operation is restarted without restoring the previous state,
interference will occur between the tools or the tool holders and the workpiece or
fixture, or the workpiece will be machined by a wrong tool, causing tool to be broken.
C-8 M FUNCTIONS
2. The STATUS indicator [M00/M01] is lit when the M00 or M01 command is executed.
The program is continuously executed when the (ST) switch on the operation
panel is pressed.
3. When the M00 or M01 command is executed, the spindle start M codes (M03, M04)
and the coolant discharge M code (M08) are canceled. Therefore, when specifying
the M00 or M01 command, determine the position where these M codes are entered
taking this into consideration.
When restarting the program after suspending program execution by the M00 or
M01 command, specify the M03 or M04 command at the restart block. If coolant
discharge is required, specify the M08 command as well.
How the M01 command is executed is explained below in relation with the status of the
optional stop switch on the operation panel.
• Optional stop function is valid:
The M01 command is executed and the program stops after the execution of the
block where the M01 command is contained.
• Optional stop function is invalid:
The M01 command is ignored and the program is executed continuously.
M FUNCTIONS C-9
Machining program
N2;
G90 G00 G54 X0 Y0;
G43 Z30.0 H2 S400 T3;
M03;
Machining program
M01; or M00;
M06;
C-10 M FUNCTIONS
2. The indicator in the (ST) switch goes off when the M02 or M30 command is
executed. At the same time, the STATUS indicator [M02/M30] is lit.
M FUNCTIONS C-11
Machining program
N2;
G90 G00 G54 X0 Y0;
G43 Z30.0 H2 S400 T3;
M03;
Machining program
M06;
M30; or M02; . . . . . . . . . . . . . . . . . . . . <M02> Ends program execution and automatic
operation stops
Although the NC is reset, the cursor stays at this
position.
<M30> Ends program execution and automatic
operation stops
The NC is reset and the cursor returns to the
start of the program (O0001).
C-12 M FUNCTIONS
G04
COMMAND
M03; . . . . . . . . . . Specifies spindle start in the normal direction.
Normal direction:
Clockwise rotation, viewing the workpiece from the rear of the
spindle
M04; . . . . . . . . . . Specifies spindle start in the reverse direction.
Reverse direction:
Counterclockwise rotation, viewing the workpiece from the rear
of the spindle
M05; . . . . . . . . . . Specifies spindle stop.
Stops the spindle rotation.
CAUTION 1. Do not stop the spindle by specifying the M05 command while the cutting tool is
in contact with the workpiece. If the spindle is stopped while the cutting tool is in
contact with the workpiece, the tool will be chipped or the workpiece damaged.
2. Start the spindle by executing either the M03 or M04 command before the cutting
tool comes into contact with the workpiece (except high-speed deep hole rigid
tapping cycle, deep hole rigid tapping cycle, rigid tapping cycle, high-speed deep
hole reverse rigid tapping cycle, deep hole reverse rigid tapping cycle, and
reverse rigid tapping cycle). If the cutting tool is brought into contact with the
workpiece while it stays stationary, the cutting tool will be chipped.
Before starting the spindle rotation with the M03 or M04 command, it is necessary to
NOTE
specify the required spindle speed using an S code.
For S code, refer to page F-11 (2).
M FUNCTIONS C-13
Machining program
G91 G30 X0 Y0 M05; . . . . . . . . . . . . . . Stopping the spindle after the completion of second zero
return of the X- and Y-axes
M01; . . . . . . . . . . . . . . . . . . . . . . . . . . . Optional stop
The M06 command is used to change the tool set in the spindle with the tool at the tool change
position. When the M06 command is executed while no tool is set in the spindle, the tool at the
tool change position is set to the spindle. The M06 command executes a series of tool change
cycle (ATC) including spindle orientation and tool clamp/unclamp.
COMMAND
M06; . . . . . . . . . . . Tool change
CAUTION Pay attention to the following point if technical memory random method is used for tool
change.
(SH-403 <40-tool specification>)
ATC operation for changing the tools of different tool size groups differs from that for
changing the tools of the same tool size group.
For changing the tools belonging to different tool size groups, tool change cycle is
executed twice. Pay sufficient care when executing tool change operation in the MDI
mode in such cases.
1. If the M06 command is executed while the spindle is rotating, the spindle orientation
NOTE
is automatically executed and the tools are changed.
2. Before carrying out the tool change cycle by specifying the M06 command, it is
necessary to stop coolant supply.
3. Tool change position varies depending on the machine models.
For the tool change position of individual models, refer to page B-39 (11).
M FUNCTIONS C-15
Machining program
G91 G30 X0 Y0 M05; . . . . . . . . . . . . . . Returning the X- and Y-axes to the second zero point (tool
change position) and stopping the spindle
Machining program
M01;
M06;
C-16 M FUNCTIONS
COMMAND
M08; . . . . . . . . . . . Specifies coolant discharge ON.
2. If coolant is used for automatic operation, it is necessary to make sure that the
coolant tank has sufficient volume of coolant.
For the functions of the coolant switches on the operation panel, refer to Chapter A,
"OPERATION PANELS" in the OPERATION MANUAL separately provided.
Coolant discharge control using the coolant switches on the operation panel in
combination with the M08 command is explained below:
When the M08 command is specified, the indicator in the (ON) switch is lit and
coolant is supplied through the nozzles.
When the (OFF) switch is pressed while coolant is being supplied, the coolant
supply stops.
Pressing the (OFF) switch for 1 second or more while coolant is not being supplied
When the (ON) switch is pressed again, the indicator in the (ON) switch is lit.
M FUNCTIONS C-17
Machining program
The M33 command is used to return the tools, the tool mounted in the spindle and the one in the
waiting pot, to an empty pot in the magazine. When a dummy tool is set up for the machine, the
dummy tool is mounted in the spindle after returning the tools to the magazine.
The M33 command is used to empty the spindle before shutting off the power.
A dummy tool is a tool explicitly designed for protecting the spindle taper during run-in
operation.
COMMAND
M33; . . . . . . . . . . . Tool return cycle command
1. In the case of U-axis control specification, the tool in the spindle and the one in the
NOTE
waiting pot are returned to the magazine and the spindle cap tool (tool No. 1) is
mounted to the spindle.
2. The M33 command cannot be executed unless the axes are located at the tool
change position.
For the tool change position of individual models, refer to Page B-39 (11).
3. NH4000 is equipped with a dummy tool and specifying M33 will mount the dummy
tool in the spindle after returning the tools to the magazine.
Magazine pot location for the dummy tool is No. 40 for 40-tool specification
magazines and No. 60 for 60-tool specification magazines.
A dummy tool is a tool explicitly designed for protecting the spindle taper
during run-in operation.
Machining program
It is possible to specify sub-program call from one sub-program to the other as illustrated
NOTE
below. This is called nesting and allowable nesting level is four. If sub-program call
exceeds this limit, alarm number (No. 077) is displayed.
M98 P ;
• M98 . . . . . . . . Calls sub-program.
• P
Sub-program number
2. F15 format
M98 P_ L_ ;
• M98 . . . . . . . . Calls sub-program.
• P. . . . . . . . . . . Specifies sub-program number.
• L . . . . . . . . . . . Specifies the number of sub-program calls.
If it is omitted, the specified sub-program is called one time.
C-20 M FUNCTIONS
1. If the program number specified by address P is not found, an alarm message (No.
NOTE
078) is displayed on the screen.
2. If a P command is not specified in the M98 block, an alarm message (No. 076) is
displayed on the screen.
3. For F16 format, a numeric value specified following address P may not always be in
seven digit number. If a sub-program is called only once, address P should be
followed only by a sub-program number.
• P1. . . . . . . . . . . Sub-program number 1
• P1200. . . . . . . . Sub-program number 1200
If a sub-program is repeated two or more times, the sub-program number should be
specified in four digits.
• P2 0200 . . . . . . Sub-program number 200 is repeated two times.
• P30 0002 . . . . . Sub-program number 2 is repeated 30 times.
The number of program repetition: Max. 999 for F16 format and max. 9999 for F15 format
COMMAND
M99 P_ ;
• M99 . . . . . . . . Specifies return from the sub-program to the main program.
• P. . . . . . . . . . . Specifies the sequence number in the main program, where the
program flow should return. (omissible)
1. If the program number specified by address P is not found, an alarm message (No.
NOTE
078) is displayed on the screen.
2. If address P is specified, the return sequence number is searched, which will take a
time. Therefore, this must be taken into consideration when specifying address P.
1. If a P command is omitted, the program flow returns to the block that follows the one
where jump to the sub-program has been made.
Address P is not normally specified in an M99 block.
2. If "M99 P_ ;" is specified in the main program:
The program flow jumps to the sequence number specified by P in the main
program.
If a P command is omitted, the program flow jumps to the start of the main program.
The main program is executed endlessly.
M FUNCTIONS C-21
N202 ;
N203 M99;
(Repeats twice)
N11;
3 N12 M98 P300; O0300;
N13 ; N301 ;
N14 ; N302 ;
N15 ; N303 M99 P15;
C-22 M FUNCTIONS
+Y
2 8 1
+X
−10 10
3 −8 4
Sub-program (O0002)
O0002;
X10.0 Y8.0; . . . . . . . . . . . . . . . . . . . . . . 1
X−10.0; . . . . . . . . . . . . . . . . . . . . . . . . . 2
Y−8.0; . . . . . . . . . . . . . . . . . . . . . . . . . . 3
X10.0; . . . . . . . . . . . . . . . . . . . . . . . . . . 4
G80;
M99;
If the M99 command is executed in a main program, execution returns to the start block of
that main program and the same main program is executed again. This programming is
used for executing the same program repeatedly in such as a warm up program.
C-24 M FUNCTIONS
When the M20 command is executed, power supply to the NC is automatically shut off.
COMMAND
M20; . . . . . . . . . . . Specifies the automatic power shutoff function.
NOTE 1. The automatic power shutoff switch on the operation panel has the same
function as the M20 command.
With the automatic power shutoff switch pressed to make the automatic power
shutoff function valid (the indicator in the switch is lit), power supply is automatically
shut off when the M02 or M30 command in the program is executed.
Whether the power is automatically shut off in response to the execution of the M00
or M01 command, or not, is determined by the setting for the proper parameter.
The default setting made before shipping the machine is "power is not shut off when
M00 or M01 is executed."
2. Specify the M20 command in a block preceding the M30 block.
Since the M30 command includes the function (rewind function) to return to the
beginning of the program, the M20 command cannot be executed if the example
program as given below is executed.
<Example> When M20 is specified in the block succeeding the M30 block
M30;
M20;
3. Power is not shut off while the following operation is carried out. Power is shut off
after the completion of the operation.
• During APC cycle (the machine equipped with APC)
• During ATC cycle
• During SBC cycle
• During magazine indexing
• During pallet pool indexing (pallet pool specification)
4. The main switch is placed in the position between ON and OFF after the power
supply is automatically shut off using the automatic power shutoff function.
Place the main switch in the OFF position first and then place it in the ON
position to turn on the power supply again.
M FUNCTIONS C-25
Machining program
M06;
N2;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Starting the machining program of the second process
(N2)
Machining program
1. Whether oil shot is called only to the block in which the M07 and M55 commands are
NOTE
specified or to every tapping cycle to be executed after the block in which M07 and
M55 are specified, is set for parameter K6.1 or K6.5.
Oil shot is called at the same time the spindle start command is executed at point R
level.
2. If the parameter is set so that oil shot is called for every tapping cycle to be executed
after the block in which M07 and M55 commands are specified, the M09 command is
used to cancel the oil shot. When supplying oil shot only in the block in which M07
and M55 are specified, it is not necessary to specify M09 command.
3. Cutting fluid discharge time is set for parameter T38.
4. Oil shot cannot be stopped by pressing the (OFF) switch on the operation
panel.
5. If both the M07 and M55 commands are specified, both of oil shot 1 and oil shot 2
are discharged.
M FUNCTIONS C-27
+Y
2 30 1
Normal rotation
Dwell at the hole
+X bottom
Reverse rotation
−50 50
Rapid traverse
3 −30 4
Cutting feed
Point R Initial
point
O0001;
N1;
G90 G00 G54 X50.0 Y30.0;
G43 Z30.0 H1 S400 T2;
M03;
G99 G84 Z−_ R_ P_ F_ M07;. . . . . . . . Oil shot or oil shot 1 is applied at the same time the
spindle start command is executed at point R level.
X−50.0; . . . . . . . . . . . . . . Executing the tapping cycle (G84) at each of the specified
Y−30.0; positions
X50.0;
G80 M09; . . . . . . . . . . . . . . . . . . . . . . . Canceling the tapping cycle mode with the G80 command
2. If the M50 command is specified while coolant is discharged by the execution of the
M08 command, coolant is stopped and oil-hole drill coolant is discharged.
3. If the M08 command is specified while oil-hole drill coolant is discharged by the
execution of the M50 command, oil-hole drill coolant is stopped and coolant is
discharged.
4. For the oil-hole drill coolant system, special tool holders are necessary.
M FUNCTIONS C-29
+Y
2 50 1
+X
−80 80
O0001;
N1;
G90 G00 G54 X80.0 Y50.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate
G43 Z30.0 H1 S1000 T2 M03; . . . . . . . Positioning at Z30.0 at a rapid traverse rate; at the same
time the spindle starts rotating in the normal direction at
1000 min−1.
M50; . . . . . . . . . . . . . . . . . . . . . . . . . . . Discharging oil-hole drill coolant
G99 G81 Z−12.0 R3.0 F100; . . . . . . . . Executing the spot drilling cycle (G81) at point 1
Feedrate of the tool is 100 mm/min.
X−80.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the spot drilling cycle (G81) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the spot drilling cycle mode (G81)
M09; . . . . . . . . . . . . . . . . . . . . . . . . . . . Stopping the oil-hole drill coolant system
C-30 M FUNCTIONS
The M92 command can be used in the machine equipped the oil mist system.
COMMAND
M92; . . . . . . . . . . . Starts the oil mist system.
NOTE Oil mist cannot be stopped by pressing the (OFF) switch on the operation panel.
+Y
2 30 1
Normal rotation
Dwell at the hole
+X bottom Reverse rotation
−50 50
Rapid traverse
Cutting feed
Point R Initial
point
O0001;
N1;
G90 G00 G54 X50.0 Y30.0;
G43 Z30.0 H1 S400 T2;
M03;
G99 G84 Z−_ R_ P_ F_ M92;. . . . . . . . Executing the tapping cycle (G84) at point 1
Discharging oil mist
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the tapping cycle (G84) at point 2 in the same
cycle as executed at point 1
G80 M09; . . . . . . . . . . . . . . . . . . . . . . . Canceling the tapping cycle mode (G84); command
discharge of oil mist is stopped.
M FUNCTIONS C-31
The M72 and M77 commands can be used in the machine equipped with the chip flush-away
coolant system.
The M72 and M77 commands (chip flush-away coolant discharge ON/OFF) can be used
NOTE
only for MH-403, 1003, SH-503, and 633.
COMMAND
M72; . . . . . . . . . . . Starts the chip flush-away coolant system.
NOTE The chip flush-away coolant cannot be stopped by pressing the (OFF) switch on the
operation panel.
C-32 M FUNCTIONS
+Y
4 80 3
+X
−100 100
1 2
−80
O0001;
N1;
G90 G00 G54 X−160.0 Y−40.0; . . . . . . Positioning at point 1 at a rapid traverse rate
G43 Z30.0 H1 S400 T2;
M03;
G01 Z0 F500 M72; . . . . . . . . . . . . . . . . Moving the cutting tool to Z0 at a feedrate of 500 mm/min
The chip flush-away coolant discharge starts after the
completion of Z-axis at Z0.
The M80 and M81 commands can be used in the machine equipped with the shower coolant
system.
NOTE The shower coolant cannot be stopped by pressing the (OFF) switch on the operation
panel.
+Y
4 80 3
+X
−100 100
1 2
−80
O0001;
N1;
G90 G00 G54 X−160.0 Y−40.0; . . . . . . Positioning at point 1 at a rapid traverse rate
G43 Z30.0 H1 S400 T2;
M03;
G01 Z0 F500 M80; . . . . . . . . . . . . . . . . Moving the cutting tool to Z0 at a feedrate of 500 mm/min
The shower coolant discharge starts after the completion
of Z-axis at Z0.
The M51 and M59 commands can be used in the machine equipped with air blow system.
+Y
4 80 3
+X
−100 100
1 2
−80
O0001;
N1;
G90 G00 G54 X−160.0 Y−40.0; . . . . . . Positioning at point 1 at a rapid traverse rate
G43 Z30.0 H1 S400 T2;
M03;
G01 Z0 F500;
M51; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the air blow
The M52 and M58 commands can be used in the machine equipped with the dust collector.
+Y
80 1
+X
−100 100
O0001;
N1;
N2; (Drill)
G90 G00 G54 X100.0 Y80.0; . . . . . . . . Positioning at point 1 at a rapid traverse rate
G43 Z30.0 H2 S1000 T3; (T3 = dust collector)
M03;
G99 G81 Z−20.0 R3.0 F100;
G80;
G91 G30 X0 Y0 M05;
M01;
M06;
N3; (dust collector)
G90 G00 G54 X100.0 Y80.0; . . . . . . . . Positioning at point 1 at a rapid traverse rate
G43 Z30.0 H3 T4; . . . . . . . . . . . . . . . . . 1 The dust collector (T3) moves to the machined
hole and it is moved to the workpiece surface by
G01 Z0 F500; . . . . . . . . . . . . . . . . . . . . 2
the commands in point 2. After that the
Z−3.0 F100; . . . . . . . . . . . . . . . . . . . . . 3 commands in point 3, press the dust collector
against the workpiece surface by 3 mm.
2 3 1
Z0
CAUTION When the M49 command is executed, the setting of the override dial is ignored and
actual movement commands are all executed at the programmed feedrates. In this
mode, actual feedrates cannot be set faster than the programmed feedrates.
However, if this command is specified in a program, it is impossible to lower the actual
feedrate by using the feedrate override dial even if the programmed feedrate seems
too fast.
+Y
4 80 3
+X
−100 100
1 2
−80
The following program should be executed while the block delete switch on the operation
NOTE
panel is set OFF.
O0001;
N1;
G90 G00 G54 X−160.0 Y−40.0; . . . . . . Positioning at point 1 at a rapid traverse rate
G43 Z30.0 H1 S400 T2;
M03;
G01 Z0 F500;
/M49;. . . . . . . . . . . . . . . . . . . . . . . . . . . Making the override for cutting feed invalid
Since the slash (/) code is entered, execution of this block
COMMAND
M73; . . . . . . . . . . . Mirror image (Y-axis) OFF M74
+Y (Mirror image is
M74; . . . . . . . . . . . Mirror image (Y-axis) ON; applied in Y-axis
X-axis is used as the axis of direction.)
symmetry.
M75; . . . . . . . . . . . Mirror image (X-axis) OFF +X
+X
CAUTION When specifying the M73 to M76 commands, move the cutting tool to the axis of
symmetry first.
If the M73 to M76 commands are specified while the cutting tool is not positioned at the
axis of symmetry, the coordinate system used for executing the following program is
shifted. If the program is executed under such state, interference occurs between the
cutting tool or tool holder with the workpiece or fixture. This would cause damage to
the machine.
C-40 M FUNCTIONS
+Y
G H 50 D C
F E 15 A B
+X
−55 −20 20 55
J I −15 M N
K L −50 P O
Program the hole machining cycle at positions A to P with main program (O0001).
Main program (O0001)
O0001;
G90 G99 G81 Z−3.0 R3.0 F80 K0; . . . . Calling the spot drilling cycle (G81)
+Y
A to D The cutting tool moves in the manner as shown in
NOTE
the left.
+X
M FUNCTIONS C-41
G00 X0;. . . . . . . . . . . . . . . . . . . . . . . . . Moving the cutting tool to the axis of symmetry, Y-axis
M76; . . . . . . . . . . . . . . . . . . . . . . . . . . . Calling the mirror image (X-axis) function
G81 Z−3.0 R3.0 K0; . . . . . . . . . . . . . . . Calling the spot drilling cycle (G81)
+X
I to L
M to P
Specify the M19 command to stop the spindle rotation at the fixed position.
When mounting a boring bar which is used in the G76 or G87 boring cycle in the spindle, M19 is
used in the MDI mode. Since the canned cycle called by G76 or G87 includes the tool shift
movement in reference to the spindle orient stop position, the boring bar must be mounted in the
spindle while aligning the boring bit with the tool shift direction.
COMMAND
M19; . . . . . . . . . . . Specifies spindle orientation.
Spindle orientation is automatically executed if tool change cycle (M06) or hole machining
NOTE
canned cycle (G76, G87) is executed. In this case, it is not necessary to specify the M19
command in a program.
By setting, in the system variables, the angle of shift relative to the orientation angle at the spindle
fixed position attained by executing the M19 command, and then executing the M119 command,
you can orient the spindle to any required position.
The angle of shift relative to the fixed position is set for system variable #1133. One rotation of
360° is divided into 4096 units (1 = approx. 0.088°, 1024 = 90°). The amount of shift in the forward
direction of rotation must be set as a "plus" value.
COMMAND
#1133 = ; .... Setting of the amount of shift from the fixed position
The M108 and M109 commands can be used with the machine equipped with the auto-coupler.
When the M108 command is executed, the fixture in the machine is clamped.
When the M109 command is executed, the fixture in the machine is unclamped.
1. The M108 and M109 commands can be used only for MH-1003 and SH series
NOTE
2. To operate (clamp/unclamp) the fixture installed in the setup station, use the
footswitch installed in front of the setup station.
COMMAND
M108; . . . . . . . . . Specifies in-machine fixture clamp.
1. To execute the M108 or M109 command, the following conditions must be satisfied.
NOTE
The Cs contouring control function allocates the C-axis to rotation of the spindle to allow the
spindle to be positioned at a desired angular position. To distinguish the state in which the spindle
is controlled as the C-axis from the normal spindle state, such a state is referred to as the Cs
mode. Operation that requires the spindle to be positioned at a desired angular position should be
performed in the Cs mode.
COMMAND <Cs mode>
M166; . . . . . . . . . . . . . . . Calls the Cs mode.
G91 G28 C0; . . . . . . . Specifies C-axis zero return.
<C-axis positioning>
C_.; . . . . . . . . . . . . . . . . . . Specifies the spindle angular position.
<Canceling the Cs mode>
M167; . . . . . . . . . . . . . . . Cancels the Cs mode.
1. After switching the mode to the Cs mode, it is necessary to execute zero return of
NOTE
the C-axis.
2. Tool change operation is not possible in the Cs mode. Before carrying out a tool
change operation, cancel the Cs mode.
3. C-axis angle is set as shown in the illustration below.
+X direction . . . . . . . . . . . 0°
+Y direction . . . . . . . . . . . −90°
−X direction . . . . . . . . . . . 180° or −180°
−Y direction . . . . . . . . . . . 90°
+Y
−90°
+X
180° 0°
90°
1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-1
17 M29 G74, G84.3 REVERSE RIGID TAPPING CYCLE (LEFT-HAND THREAD) . . . . . D-58
18 M29 G74, G84.3 HIGH-SPEED DEEP HOLE REVERSE RIGID TAPPING CYCLE
(LEFT-HAND THREAD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-62
1 GENERAL
Basic command format and movement of the hole machining canned cycle are explained below:
<Movement>
A hole machining canned cycle consists of movements 1
Movement 3 Movement 2 to 6 shown in the diagram.
Movements 1, 2, and 6 are common to all canned cycles
called by G73 to G89.
Movement 1
Movement 4 Point Z Movements 3 to 5 vary according to respective canned
Point Z Initial point cycles.
Movement 5 Movement 6
Rapid traverse
Workpiece
Cutting feed
Rapid traverse
Z0
or cutting feed
−Z +Z
For a hole machining canned cycle, "initial point", "point R", and "point Z" indicate the
following positions:
• Initial point . . . . . . The position where a hole machining canned cycle starts in the
Z-axis direction
• Point R. . . . . . . . . The position where Z-axis feedrate changes from rapid traverse
rate to the programmed cutting feedrate in the called hole
machining canned cycle
• Point Z . . . . . . . . . The position of the hole bottom in the Z-axis direction
Movement 1: Positioning at the hole machining start position by the movements of X- and
Y-axes.
Movement 2: Moving to point R at a rapid traverse rate
Movement 3: Hole machining (Hole machining is carried out.)
Movement 4: Movement at hole bottom
COMMAND
G90(G91) G98(G99) G73 - G89 X_ Y_ Z_ R_ Q_ P_ F_ K_ ;
• G90 . . . . . . . . Calls the absolute dimensioning mode.
• G91 . . . . . . . . Calls the incremental dimensioning mode.
• G98 . . . . . . . . Calls the return to initial point level.
Movement 3 Movement 2
Movement 1
Movement 4 Point R
Point Z Initial point
Movement 5 Movement 6
Rapid traverse
Workpiece
Cutting feed
Rapid traverse
Z0 or cutting feed
−Z +Z
Machining program
In the G90 incremental mode, the same cycle is programmed as indicated below.
G91 G99 G82 X−10.0 Y−10.0 Z−28.0 R−27.0 P100 F100;
HOLE MACHINING CANNED CYCLE D-5
When machining the holes of the same dimensions, arranged in equal intervals, it is possible to
repeat the same hole machining canned cycle by specifying the number of repetitions following
address K. Therefore, the use of a K command can simplify programming.
K0
When K0 is specified, only the data of a hole machining canned cycle is stored.
At the position specified in the block containing K0, hole machining cycle is not executed.
K1
When K1 is specified, hole machining cycle is executed once at the specified position.
K2 to K9999
When Kn (n = 2 to 9999) is specified, the specified hole machining cycle is repeated by the
specified number of times.
+Y
C
45
B Hole machining position
35
A
25
15 Present position
+X
10 25 40 55
G90 G00 X10.0 Y15.0 Z30.0; . . . . . . . . Moving to X10.0, Y15.0 (the present position in the
illustration above) at a rapid traverse rate
G91 G99 G81 X15.0 Y10.0 Z−25.0 R−27.0 F100 K3;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The specified hole machining cycle is executed at A, B,
and C.
...
The patterns and operation methods called by the hole machining canned cycle G codes are
briefly explained below using diagrams. Typical applications and cautions are also described.
G73 High-speed deep hole G74 Reverse tapping M29 G74 High-speed deep hole
drilling (left-hand thread) reverse rigid tapping
(left-hand thread)
G98(G99) G73 X_ Y_ Z_ R_ Q_ F_ ; G98(G99) G74 X_ Y_ Z_ R_ P_ F_ ; M29 S_ ;
G98(G99) G74 X_ Y_ Z_ Q_ R_ P_ F_ ;
Spindle
Spindle reverse Spindle rotation stop
Spindle normal
rotation after dwell rotation rotation stop
Spindle
Q Q Q Q Q Q reverse
rotation
M29 G74 Deep hole reverse rigid M29 G74 Reverse rigid tapping G76 Fine boring
tapping (left-hand thread)
(left-hand thread)
M29 S_ ; M29 S_ ; 1. F16 format
G98(G99) G74 X_ Y_ Z_ Q_ R_ P_ F_ ; G98(G99) G74 X_ Y_ Z_ R_ P_ F_ ; G98(G99) G76 X_ Y_ Z_ R_ Q_ P_ F_ ;
2. F15 format
G98(G99) G76 X_ Y_ Z_ R_ I_ J_ P_ F_
Spindle
Spindle reverse Spindle
Spindle rotation
Spindle rotation rotation stop rotation rotation stop
stop
stop
Q Q Q Spindle
reverse
rotation
Point R
Point Z Point R
Point Z Point R
Deep hole tapping <F16 format> Tapping <F16 format> High precision boring
(No tapper is used.) (No tapper is used.) (Boring bar is shifted before
Q: Depth of cut per pass retracting it.)
d: Clearance amount
G81 Spot drilling G82 Counter boring G83 Deep hole drilling
Q Q Q
Dwell
M237 G83 Small-diameter deep G84 Tapping M29 G84 High-speed deep hole
hole drilling (right-hand thread) rigid tapping
(right-hand thread)
M237; G98(G99) G84 X_ Y_ Z_ R_ P_ F_ ; M29 S_ ;
G98(G99) G83 X_ Y_ Z_ R_ Q_ P_ F_ I_ ; G98(G99) G84 X_ Y_ Z_ Q_ R_ P_ F_ ;
Spindle
Spindle reverse Spindle normal Spindle rotation rotation stop
rotationafter dwell rotation stop
Q Q Q Spindle
Q Q Q normal
rotation
Small-diameter deep hole drilling Tapping Deep hole tapping <F16 format>
(The arbor with the overload torque (Tapper is used.) (No tapper is used.)
detection function is used.) Q: Depth of cut per pass
Q: Depth of cut per pass d: Retraction stroke
d: Clearance amount
<Option>
M29 G84 Deep hole rigid tapping M29 G84 Rigid tapping G84.2 High-speed deep hole
(right-hand thread) (right-hand thread) rigid tapping
(right-hand thread)
M29 S_ ; M29 S_ ; S_ ;
G98(G99) G84 X_ Y_ Z_ Q_ R_ P_ F_ ; G98(G99) G84 X_ Y_ Z_ R_ P_ F_ ; G98(G99) G84.2 X_ Y_ Z_ Q_ R_ P_ F_ ;
d d
Spindle rotation
Spindle reverse Spindle rotation Spindle reverse stop after dwell Spindle reverse Spindle rotation
rotation after dwell stop after dwell rotation after dwell rotation after dwell stop after dwell
Deep hole tapping <F16 format> Tapping <F16 format> Deep hole tapping <F15 format>
(No tapper is used.) (No tapper is used.) (No tapper is used.)
Q: Depth of cut per pass Q: Depth of cut per pass
d: Clearance amount d: Retraction stroke
D-10 HOLE MACHINING CANNED CYCLE
G84.2 Deep hole rigid tapping G84.2 Rigid tapping G84.3 High-speed deep hole
(right-hand thread) (right-hand thread) reverse rigid tapping
(left-hand thread)
S_ ; S_ ; S_ ;
G98(G99) G84.2 X_ Y_ Z_ Q_ R_ P_ F_ ; G98(G99) G84.2 X_ Y_ Z_ R_ P_ F_ ; G98(G99) G84.3 X_ Y_ Z_ Q_ R_ P_ F_ ;
Spindle Spindle
Spindle Spindle rotation normal Spindle Spindle rotation rotation stop
Spindle rotation
rotation stop stop rotation rotation stop stop
stop
Spindle
Q Q Q Spindle Q Q Q reverse
normal rotation
rotation
d d
Spindle rotation Spindle normal Spindle rotation
Spindle reverse Spindle rotation Spindle reverse rotation
stop after dwell rotation after dwell stop after dwell
rotation after dwell stop after dwell after dwell
Deep hole tapping <F15 format> Tapping <F15 format> Deep hole tapping <F15 format>
(No tapper is used.) (No tapper is used.) (No tapper is used.)
Q: Depth of cut per pass Q: Depth of cut per pass
d: Clearance amount d: Retraction stroke
G84.3 Deep hole reverse rigid G84.3 Reverse rigid tapping G85 Boring
tapping (left-hand thread) (left-hand thread)
S_ ; S_ ; G98(G99) G85 X_ Y_ Z_ R_ F_ ;
G98(G99) G84.3 X_ Y_ Z_ Q_ R_ P_ F_ ; G98(G99) G84.3 X_ Y_ Z_ R_ P_ F_ ;
Spindle
Spindle Spindle rotation reverse Spindle
Spindle rotation
rotation stop stop rotation rotation stop
stop
Q Q Q Spindle
reverse
rotation
d Spindle rotation
Spindle rotation Spindle normal stop after dwell
Spindle normal
rotation after dwell stop after dwell rotation after dwell
G89 Boring
G98(G99) G89 X_ Y_ Z_ R_ P_ F_ ;
Point Z Point R
G99 G98
Initial point
Dwell
Boring
D-12 HOLE MACHINING CANNED CYCLE
WARNING During the execution of a hole machining canned cycle, if the operation is
stopped by pressing the emergency stop button or the RESET (RESET) key,
the hole machining mode and the hole machining data are cleared. To
restart the operation, pay sufficient care. If the operation is restarted
mistakenly, the machine operates unexpectedly causing serious injuries
or damage to the machine.
CAUTION 1. For the tapping cycle called by G74 or G84, a tapper is used. In this case, the
return movement from the bottom of the machined hole to the point R is made
with the tapper extended. Therefore, the point R must be specified larger value
than tapper extending length. If the smaller value is specified, the cutting tool and
workpiece may collide or interfere with each other, and this could damage the
machine when moving to next machining position.
2. When the emergency stop button or RESET (RESET) key has been pressed to stop
the machine during a tapping operation, carefully move the axes after checking
the workpiece and cutting tool carefully for damage. If you move the axes without
due care, the workpiece and cutting tool may collide or interfere with each other,
and this could cause damage to the machine.
3. For the fine boring cycle called by G76 and the back boring cycle called by G87,
mount a boring bit at the position opposite to the boring bar shift direction. If the
boring bit is mounted in the same position as the boring bar shift direction, the
boring bit or boring bar will be hit against the workpiece causing machine
damage. This also causes the boring bit to be broken.
4. In the boring cycle called by G88, any manual operation is allowed after the
spindle has stopped rotating at the bottom of the hole. However, before changing
the operation mode from manual, the cutting tool must be positioned outside the
machined hole. If positioning is carried out to the next machining position before
cutting tool is extracted from the machined hole, the cutting tool will be hit against
the workpiece causing damage to the machine.
HOLE MACHINING CANNED CYCLE D-13
1. Generally, positioning for a hole machining canned cycle is executed in the XY plane
NOTE
and the hole machining cycle is executed along the Z-axis.
When changing the hole machining axis to X- or Y-axes, cancel the canned cycle
mode once.
2. The number of times the called hole machining canned cycle should be repeated is
required only when the cycle should be executed repeatedly. Although feedrate
value is retained when the hole machining canned cycle is canceled, the repeat
number data is not retained.
3. To call a hole machining canned cycle, the spindle should have been rotated by the
M03 or M04 command excluding the high-speed deep hole rigid tapping cycle, deep
hole rigid tapping cycle, rigid tapping cycle, high-speed deep hole reverse rigid
tapping cycle, deep hole reverse rigid tapping cycle and reverse rigid tapping cycle.
<Good example>
S_ M03;. . . . . . . . . . . . . . . . . . . . . Spindle normal rotation
G81 X_ Y_ Z_ R_ F_ ;. . . . . . . . . . Good
<Bad example>
M05; . . . . . . . . . . . . . . . . . . . . . . . Spindle stop
4. In the hole machining canned cycle mode, if any data of X, Y, Z, R, or additional axis
is specified in a block, the called hole machining cycle is executed.
In the block that does not contain any of X, Y, Z, R, or additional axis, the hole
machining cycle is not executed.
However, even if an X command is specified, the hole machining cycle is not
executed if it is specified following the G04 command which calls the dwell function.
D-14 HOLE MACHINING CANNED CYCLE
5. In the hole machining canned cycle (G74, G84, G76, or G86) which controls the
NOTE
mode of spindle rotation, if the cycle is executed continuously while the distance
from the hole position (X, Y) or initial point to point R is short, there may be cases
that the spindle fails to reach the required speed before it begins hole machining
Z-axis operation.
If such a problem is anticipated, enter the dwell command (G04) between machining
of two holes, without specifying the repeat number.
G86 X_ Y_ Z_ R_ F_ ;
G04 P _ ; . . . . . . . . . . . . . . . . . . . . Executes dwell and suspends hole machining
operation
X_ Y_ ;
G04 P_ ; . . . . . . . . . . . . . . . . . . . . Executes dwell and suspends hole machining
operation
X_ Y_ ;
6. The hole machining canned cycle mode is canceled by the G80 command or a G
code of group 01 (G00, G01, G02, G03).
G81 X_ Y_ Z_ R_ F_ ;
G00 X_ Y_ ;. . . . . . . . . . . . . . . . . . Only X- and Y-axes are moved, the hole
machining canned cycle is not executed.
G81 X_ Y_ Z_ R_ F_ ;
X_ Y_ ; . . . . . . . . . . . . . . . . . . . . . The called hole machining canned cycle is
executed.
7. Do not specify any of G codes of group 01 (G00, G01, G02, G03, etc.) with a G code
which calls a hole machining canned cycle in the same block.
If a G code which calls a hole machining canned cycle is specified with a G code of
group 01 in the same block, the hole machining canned cycle is canceled.
8. After the completion of hole machining operation executed using a hole machining
canned cycle, cancel the hole machining canned cycle by specifying G80 or a G
code in 01 group (G00, G01, G02, G03, etc.).
9. When miscellaneous function is specified with a G code which calls a hole
machining canned cycle in the same block, the M code is output at the first
positioning. After the completion of positioning, the next hole machining cycle is
started after checking the M code completion signal (FIN).
If the number of repetitions is specified, the M code is output only in the first cycle
and is not output after that.
10. If the G43 or G44 command is specified in a hole machining canned cycle mode,
tool length offset is applied when positioning is made at the point R.
11. The tool position offset mode (G45 - G48) cannot be specified in a hole machining
canned cycle mode.
12. Do not specify G27 - G30 commands in a hole machining canned cycle mode.
If G27 - G30 commands are specified in a hole machining canned cycle mode, an
alarm message (No. 044) is displayed on the screen.
HOLE MACHINING CANNED CYCLE D-15
13. During the tapping cycle, feedrate override and spindle speed override are fixed to
NOTE
100% because a fixed lead thread cannot be cut if feedrate or spindle speed is
changed during tapping cycle.
14. For the fine boring cycle called by G76 and the back boring cycle called by G87, if
shift amount Q or I and J is improper, the cutting tool will interfere with the workpiece
when it is moved up to be extracted from the workpiece.
15. If G80 is specified, point R and point Z data and hole machining data are canceled in
addition to the G code (G73, G74, G76, G81 - G89) calling for a hole machining
canned cycle.
16. In the back boring cycle called by G87, the point R return operation (G99) cannot be
specified.
17. Even when carrying out manual operation by specifying the G88 boring cycle
(manual extraction), point R and initial point do not vary.
D-16 HOLE MACHINING CANNED CYCLE
The G80 command is used to cancel a hole machining canned cycle (G73, G74, G76, G81 - G89)
and to allow ordinary operation to be executed.
Since a hole machining canned cycle is modal, once it is specified, the canned cycle mode
remains valid until it is canceled with the G80 command. Therefore, after completing the process
to be executed in the hole machining canned cycle mode, specify the G80 command in the next
block before executing an axis movement command.
COMMAND
G80; . . . . . . . . . . . Cancels a hole machining canned cycle.
1. The hole machining canned cycle mode is also canceled if a G code of group 01
NOTE
(G00, G01, G02, G03, etc.) is executed.
2. If G80 is specified, point R and point Z data and hole machining data are canceled in
addition to the G code (G73, G74, G76, G81 - G89) calling for a hole machining
canned cycle.
HOLE MACHINING CANNED CYCLE D-17
+Y
Rapid traverse
50 50 Cutting feed
2 1
30
+X
5
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G81 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100; . . . . . . . . . Executing the spot drilling cycle (G81) at point 1 with
depth of cut 5 mm
• Z−5.0 . . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the spot drilling cycle (G81) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the spot drilling canned cycle mode (G81)
COMMAND
G98(G99) G81 X_ Y_ Z_ R_ F_ ;
+Y
Rapid traverse
50 50 Cutting feed
2 1
30
+X
5
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G81 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100; . . . . . . . . . Executing the spot drilling cycle (G81) at point 1
• Z−5.0 . . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the spot drilling cycle (G81) cycle at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the spot drilling canned cycle mode (G81)
D-20 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G82 X_ Y_ Z_ R_ P_ F_ ;
P1000 → 1 second
The time required for the spindle to make one turn is calculated by:
60 (sec)
t (sec) =
spindle speed (min−1)
+Y
Rapid traverse
50 50 Cutting feed
Dwell at
2 1 hole bottom
30
+X
5
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G82 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G82 Z−5.0 R3.0 P100 F100;. . . . . Executing the counter boring cycle (G82) at point 1
• Z−5.0 . . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• P100 . . . . Dwell period at hole bottom for 0.1 sec
Spindle 1 turn time (sec)
60 (sec)
=
spindle speed (min−1)
= 0.06 < 0.1 (sec)
As known from the calculation above, the
spindle rotates more than one turn.
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the counter boring cycle (G82) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the counter boring canned cycle mode (G82)
D-22 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G85 X_ Y_ Z_ R_ F_ ;
+Y
Rapid traverse
50 50
Cutting feed
2 1
30
+X
10
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G85 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G85 Z−10.0 R3.0 F100; . . . . . . . . Executing the boring cycle (G85) at point 1
• Z−10.0 . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the boring cycle (G85) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the boring canned cycle mode (G85)
D-24 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G86 X_ Y_ Z_ R_ F_ ;
G99 G98
• X, Y . . . . . . Specifies the coordinate values of the
Spindle Spindle
normal normal
center of hole to be machined in the
Spindle rotation roatation roatation
stop
XY plane.
• Z . . . . . . . . . Specifies the position of point Z. (hole
Intitial poit
bottom)
Rapid traverse
Cutting feed • R. . . . . . . . . Specifies the position of point R.
• F . . . . . . . . . Specifies the feedrate (mm/min).
+Y
Rapid traverse
50 50 Cutting feed
Spindle stops
at the hole
2 1 30
bottom
+X
10
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G86 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G86 Z−10.0 R3.0 F100; . . . . . . . . Executing the boring cycle (G86) at point 1
• Z−10.0 . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the boring cycle (G86) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the boring canned cycle mode (G86)
D-26 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G88 X_ Y_ Z_ R_ P_ F_ ;
P1000 → 1 second
CAUTION In the boring cycle called by G88, any manual operation is allowed after the spindle has
stopped rotating at the bottom of the hole. However, before changing the operation
mode from manual, the cutting tool must be positioned outside the machined hole. If
positioning is carried out to the next machining position before cutting tool is extracted
from the machined hole, the cutting tool will be hit against the workpiece causing
damage to the machine.
1. To restart the operation after extracting the cutting tool from the machined hole,
NOTE
select the memory mode and press the (ST) switch. The cutting tool returns to
the initial point level (G98) or the point R level (G99) according to the specified mode
(G98, G99).
After that the spindle starts rotating and the operation is carried out according to the
commands in the next block.
HOLE MACHINING CANNED CYCLE D-27
2. Even when carrying out manual operation by specifying the G88 boring cycle
NOTE
(manual extraction), point R and initial point do not vary.
3. Specify address R in the block in which hole machining operation is specified.
If it is specified in a block where hole machining operation is not specified, the data
of address R is not saved.
+Y
Rapid traverse
50 50
Cutting feed
Spindle Manual feed
rotation
stop after
2 1
dwell at
30
hole bottom
+X for 0.1 sec
15
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G88 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
(G98) G88 Z−15.0 R3.0 P100 F100; . . Executing the boring cycle (G88) at point 1
• Z−15.0 . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• P100 . . . . Dwell period at hole bottom for 0.1 sec
Spindle 1 turn time (sec)
60 (sec)
=
spindle speed (min−1)
= 0.06 < 0.1 (sec)
As known from the calculation above, the
spindle rotates more than one turn.
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the boring cycle (G88) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the boring canned cycle mode (G88)
D-28 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G89 X_ Y_ Z_ R_ P_ F_ ;
P1000 → 1 second
+Y
Rapid traverse
50 50
Cutting feed
Dwell at
hole bottom
2 1 for 0.1 sec
30
+X
15
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G89 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G89 Z−15.0 R3.0 P100 F100;. . . . Executing the boring cycle (G89) at point 1
• Z−15.0 . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• P100 . . . . Dwell period at hole bottom for 0.1 sec
Spindle 1 turn time (sec)
60 (sec)
=
spindle speed (min−1)
= 0.06 < 0.1 (sec)
As known from the calculation above, the
spindle rotates more than one turn.
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the boring cycle (G89) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the boring canned cycle mode (G89)
D-30 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G73 X_ Y_ Z_ R_ Q_ F_ ;
+Y
Rapid traverse
50 50 5 5 5 5
Cutting feed
2 1
30
+X d
17
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G73 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G73 Z−17.0 R3.0 Q5.0 F100; . . . . Executing the high-speed deep hole drilling cycle (G73) at
point 1
• Z−17.0 . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• Q5.0 . . . . Depth of cut per infeed cycle of 5 mm
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the high-speed deep hole drilling cycle (G73) at
point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the high-speed deep hole drilling canned cycle
mode (G73)
D-32 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G83 X_ Y_ Z_ R_ Q_ F_ ;
Rapid traverse
• Z . . . . . . . . . Specifies the position of point Z. (hole
Drilling (Cutting feed) bottom)
• R. . . . . . . . . Specifies the position of point R.
• Q . . . . . . . . Depth of cut per infeed cycle
• F . . . . . . . . . Specifies the feedrate (mm/min).
+Y
Rapid traverse
50 50 5 5 5 5
Cutting feed
2 1
30
+X d
17
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G83 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G83 Z−17.0 R3.0 Q5.0 F100; . . . . Executing the deep hole drilling cycle (G83) at point 1
• Z−17.0 . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• Q5.0 . . . . Depth of cut per infeed cycle of 5 mm
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the deep hole drilling cycle (G83) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the deep hole drilling canned cycle mode (G83)
D-34 HOLE MACHINING CANNED CYCLE
This cycle is used for drilling with a small-diameter drill that is easily broken.
1. This cycle needs the use of an arbor that has the overload torque detection function.
NOTE
Note that the arbor with the overload torque detection function should be arranged
by the user.
2. The M237 G83 small-diameter deep hole drilling cycle is an optional function.
COMMAND
M237;
G98(G99) G83 X_ Y_ Z_ R_ Q_ P_ F_ I_ ;
P1000 → 1 second
In the small-diameter deep hole drilling cycle, it is possible to change the cutting conditions
gradually at each detection of overload torque or at each infeed by depth Q. The parameters used
for this function are explained below.
1. Whether or not the cutting conditions are changed
No. 5106 #1 0: Changes the cutting conditions at each detection of overload torque
1: Does not change the cutting conditions after the detection of overload
torque
No. 5160 #2 0: Changes the cutting conditions at each infeed by depth Q.
1: Does not change the cutting conditions after the infeed by depth Q.
2. Changing spindle speed (S code command)
No. 5164 Sets the spindle speed change ratio before and after the detection of
overload torque in percents.
No. 5165 Sets the spindle speed change ratio before and after the infeed by depth Q
in percents.
3. Changing feedrate (F code command)
No. 5166 Sets the feedrate change ratio before and after the detection of overload
torque in percents.
No. 5167 Sets the feedrate change ratio before and after the infeed by depth Q in
percents.
4. Lower limit in changing the cutting condition
No. 5168 Sets the lower limit of the feedrate in changing the cutting condition in the
ratio (percents) to the F code specified in the program.
If the feedrate reaches this lower limit, spindle speed and feedrate are not
changed any more.
+Y
Rapid traverse
50 50 5 5 5 5
Semi-rapid traverse
Cutting feed
2 1
30
+X d
17
Z3.0 Z30.0
(Point R) (Initial point)
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
M237;
G99 G83 Z−17.0 R3.0 Q5.0 F100 I1000;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the small-diameter deep hole drilling at point 1
• Z−17.0 . . Z coordinate value of the point Z
(hole bottom)
• R3.0 . . . . Z coordinate value of the point R
• Q5.0 . . . . Depth of cut per infeed cycle of 5 mm
• F100 . . . . Cutting feedrate of 100 mm/min
• I1000 . . . Semi-rapid traverse rate of 1000 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the small-diameter deep hole drilling at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the small-diameter deep hole drilling canned
cycle mode
D-38 HOLE MACHINING CANNED CYCLE
COMMAND
G98(G99) G84 X_ Y_ Z_ R_ P_ F_ ;
P1000 → 1 second
CAUTION 1. For the tapping cycle called by G84, a tapper is used. In this case, the return
movement from the bottom of the machined hole to the point R level is made with
the tapper extended. Therefore, the point R level must be specified larger value
than tapper extending length. If the smaller value is specified, the cutting tool and
workpiece may collide or interfere with each other, and this could damage the
machine when moving to next machining position.
1. During the tapping cycle called by G84, feedrate override and spindle speed
NOTE
override are fixed to 100% because a fixed lead thread cannot be cut if feedrate or
spindle speed is changed during tapping cycle.
2. If the (SP) switch on the operation panel is pressed during tapping cycle,
tapping cycle does not stop until the Z-axis returns to the point R or initial point level
is completed.
3. Specify address R in the block in which tapping operation is specified.
If it is specified in a block where tapping operation is not specified, the data of
address R is not saved.
+Y Rapid traverse
50 50 Cutting feed
(Initial point)
+X Z15.0
20 (Point R)
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S400 T2; . . . . . . . . . . . . Positioning at initial point level (Z30.0) at a rapid traverse
rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 400 min−1
G99 G84 Z−_ R15.0 P1000 F800; . . . . Executing the tapping cycle (G84) at point 1
Tapping is executed up to 20 mm depth.
Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
For the Z-axis point, specify "Z− (20 − tapper
elongation in normal rotation)".
COMMAND
G98(G99) G74 X_ Y_ Z_ R_ P_ F_ ;
P1000 → 1 second
CAUTION 1. For the reverse tapping cycle called by G74, a tapper is used. In this case, the
return movement from the bottom of the machined hole to the point R level is
made with the tapper extended. Therefore, the point R level must be specified
larger value than tapper extending length. If the smaller value is specified, the
cutting tool and workpiece may collide or interfere with each other, and this could
damage the machine when moving to next machining position.
1. During the reverse tapping cycle called by G74, feedrate override and spindle speed
NOTE
override are fixed to 100% because a fixed lead thread cannot be cut if feedrate or
spindle speed is changed during reverse tapping cycle.
2. If the (SP) switch on the operation panel is pressed during reverse tapping
cycle, reverse tapping cycle does not stop until the Z-axis returns to the point R or
initial point level is completed.
3. Specify address R in the block in which reverse tapping operation is specified.
If it is specified in a block where reverse tapping operation is not specified, the data
of address R is not saved.
Programming using G74
Ex.
To carry out the reverse tapping cycle (G74) (pitch: 2 mm, depth: 20 mm) at points 1 and 2.
+Y Rapid traverse
50 50 Cutting feed
Normal rotation
Dwell at
2 1 hole bottom Z30.0
Reverse rotation
30
(Initial point)
+X Z15.0
20 (Point R)
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S400 T2; . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M04; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the reverse direction at 400 min−1
G99 G74 Z−_ R15.0 P1000 F800; . . . . Executing the reverse tapping cycle (G74) at point 1
Reverse tapping is executed up to 20 mm depth.
Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
For the Z-axis point, specify "Z− (20 − tapper
elongation in reverse rotation)".
<Dwell command>
The following explains in what situation the dwell command should be used in the G84 tapping
cycle and the G74 reverse rigid tapping cycle.
When carrying out tapping in a through hole, extension of tapper tip at the hole bottom can be
ignored. However, in the case of a blind hole, if the tapper should extend beyond the depth of the
prepared hole, it will cause the tap to be damaged.
To avoid such a problem, use the tapper with built-in depth sizing device for tapping a blind hole.
Z−20.0 R15.0
Z−20.0 Z−20.0
HOLE MACHINING CANNED CYCLE D-43
The following distances of F1, F2, and F3 are specified in the catalog of the tapper with built-in
depth sizing device.
F3 F2 F1
When machining a threaded hole with the tapper equipped with depth sizing device, obtain the
point R and point Z to be specified in a program as indicated below:
Note that the explanation given below shows the theoretical value. The depth of tapped hole will
vary depending on workpiece material and prepared hole diameter in actual operation.
The following explanation is given assuming right-hand thread cutting. For left-hand
NOTE
thread cutting operation, pay attention to the rotation direction which is reversed from the
explanation.
F2
D-44 HOLE MACHINING CANNED CYCLE
Ex.
To carry out tapping of M8 P = 1.25, and 20 mm deep threaded hole in the tapping cycle (G84).
Prepared hole: 6.8 mm dia., depth 25 mm
Tapper to be used: F2 = 5 mm, F3 = 7 mm
S300 M03; . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 300 min−1
G99 G84 X_ Y_ Z−15.0 R15.0 P800 F375;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the tapping cycle (G84)
• Z−15.0 . . . . . Z = "Depth of tap" − "F2 (extension amount at the normal rotation)"
=20 − 5 = 15 (mm)
• R15.0 . . . . . . R > F2 (extension amount at the normal rotation) + F3 (extension amount
at the reverse rotation)
=5 + 7 = 12 (mm)
Because the value to be set for the point R must be larger than 12 mm, R15.0
is specified.
60 (sec) × F2
• P800 . . . . . . Dwell =
F (mm/min)
60 × 5
= = 0.8 (sec)
375
P1000 → 1 second
CAUTION
When the emergency stop button or RESET
(RESET) key has been pressed to stop the
machine during a rigid tapping operation, carefully move the axes after checking the
workpiece and cutting tool carefully for damage. If you move the axes without due
care, the workpiece and cutting tool may collide or interfere with each other, and this
could damage the machine.
D-46 HOLE MACHINING CANNED CYCLE
1. During rigid tapping cycle, feedrate override and spindle speed override are fixed to
NOTE
100% because a fixed lead thread cannot be cut if feedrate or spindle speed is
changed during rigid tapping cycle.
2. If the (SP) switch is pressed during rigid tapping cycle, the cycle does not stop
until the cutting tool returns to the initial point level (G98) or the point R level (G99).
3. Call the rigid tapping cycle in the state the spindle is stopped.
4. Since the spindle rotation and Z-axis feed are synchronized in the rigid tapping
mode, it is not necessary use a tapper.
5. Specify address R in the block in which rigid tapping operation is specified.
If it is specified in a block where rigid tapping operation is not specified, the data of
address R is not saved.
For the maximum spindle speed during rigid tapping operation, refer to page
APPENDIX D-37 (APPENDIX 2).
HOLE MACHINING CANNED CYCLE D-47
+Y Rapid traverse
50 50 Cutting feed
Spindle
rotation Normal rotation
stops at Z30.0
2 1 Reverse rotation
30
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the rigid tapping cycle (M29 G84) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the rigid tapping cycle (M29 G84)
D-48 HOLE MACHINING CANNED CYCLE
+Y Rapid traverse
50 50 Cutting feed
Spindle
rotation Normal rotation
2 1 stops at Z30.0
Reverse rotation
30
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
S400;
G99 G84.2 Z−20.0 R5.0 F800; . . . . . . . Executing the rigid tapping cycle (G84.2) at point 1
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the rigid tapping cycle (G84.2) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the rigid tapping cycle (G84.2)
HOLE MACHINING CANNED CYCLE D-49
1. Set "0" for parameter No. 5200.5 to use the high-speed deep hole rigid tapping
NOTE
cycle.
2. The return amount "d" is set for parameter #5213.
The default setting is "1000" (= 1 mm).
When carrying out tapping on mild or tough workpieces, long chips are apt to entangle on
the tool. In such operation, this mode of tapping cycle is used to break chips.
P1000 → 1 second
CAUTION
When the emergency stop button or RESET
(RESET) key has been pressed to stop the
machine during a high-speed deep hole rigid tapping operation, carefully move the
axes after checking the workpiece and cutting tool carefully for damage. If you move
the axes without due care, the workpiece and cutting tool may collide or interfere with
each other, and this could damage the machine.
1. During high-speed deep hole rigid tapping cycle, feedrate override and spindle
NOTE
speed override are fixed to 100% because a fixed lead thread cannot be cut if
feedrate or spindle speed is changed during high-speed deep hole rigid tapping
cycle. If "1" is set for parameter No. 5200.4, however, the axis returns by clearance
amount "d" in the spindle reverse rotation with the override value set for parameter
No. 5211 applied to axis feedrate. Whether the override value is set in units of 1% or
10% is set for parameter No. 5201.3.
2. Call the high-speed deep hole rigid tapping cycle in the state the spindle is stopped.
3. Since the spindle rotation and Z-axis feed are synchronized in the high-speed deep
hole rigid tapping mode, it is not necessary use a tapper.
4. Specify addresses Q and R in the block in which high-speed deep hole rigid tapping
operation is specified.
If it is specified in a block where high-speed deep hole rigid tapping operation is not
specified, the data of addresses Q and R is not saved.
5. If a negative value is specified for address Q, it is invalid. Always specify a positive
value for address Q.
6. If address Q is omitted or "Q0" is specified, a normal rigid tapping cycle is executed
but a high-speed deep hole rigid tapping cycle is not executed.
For the maximum spindle speed during high-speed deep hole rigid tapping operation,
refer to page APPENDIX D-37 (APPENDIX 2).
HOLE MACHINING CANNED CYCLE D-51
Programming using M29 G84 (High-speed deep hole rigid tapping cycle)
Ex.
To carry out tapping of pitch 2 mm and depth 45 mm at points 1 and 2 in the high-speed deep hole
rigid tapping cycle (M29 G84) <F16 format (setting made before shipping the machine)>
Set "0" for parameter No. 5200.5 to use the high-speed deep hole rigid tapping cycle.
NOTE
+Y Rapid traverse
Normal rotation
50 50 Cutting feed
10 10 10 10 10
Z30.0
2 1
30
(Initial point)
Reverse rotation
+X
d
45
Z5.0 (Point R)
Movement by M29 G84 at points 1 and 22
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the high-speed deep hole rigid tapping cycle
(M29 G84) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the high-speed deep hole rigid tapping cycle
(M29 G84)
D-52 HOLE MACHINING CANNED CYCLE
Set "0" for parameter No. 5200.5 to use the high-speed deep hole rigid tapping cycle.
NOTE
+Y Rapid traverse
Normal rotation
50 50 Cutting feed
10 10 10 10 10
Z30.0
2 1
(Initial point)
30
Reverse rotation
+X
d
45
Z5.0 (Point R)
Movement by G84.2 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
S400;
G99 G84.2 Z−45.0 Q10.0 R5.0 F800;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the high-speed deep hole rigid tapping cycle
(G84.2) at point 1
• Z−45.0 . . Z coordinate value of the point Z
• Q10.0 . . . Depth of cut per infeed cycle of 10 mm
• R5.0 . . . . Z coordinate value of the point R
• F800 . . . . Feedrate of 800 mm/min
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the high-speed deep hole rigid tapping cycle
(G84.2) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the high-speed deep hole rigid tapping cycle
(G84.2)
HOLE MACHINING CANNED CYCLE D-53
1. Set "1" for parameter No. 5200.5 to use the deep hole rigid tapping cycle (setting
NOTE
made before shipping the machine).
2. The clearance amount "d" is set for parameter #5213.
The default setting is "1000" (= 1 mm).
When tapping a deep hole where coolant cannot be supplied satisfactorily or carrying out
tapping on a workpiece which generates entangling chips, this mode of tapping cycle can
be effectively used.
COMMAND 1. F16 Format (setting made before shipping the machine)
M29 S_ ;
G98(G99) G84 X_ Y_ Z_ Q_ R_ P_ F_ ;
2. F15 Format
S_ ;
G98(G99) G84.2 X_ Y_ Z_ Q_ R_ P_ F_ ;
D-54 HOLE MACHINING CANNED CYCLE
P1000 → 1 second
CAUTION
When the emergency stop button or RESET
(RESET) key has been pressed to stop the
machine during a deep hole rigid tapping operation, carefully move the axes after
checking the workpiece and cutting tool carefully for damage. If you move the axes
without due care, the workpiece and cutting tool may collide or interfere with each
other, and this could damage the machine.
1. During deep hole rigid tapping cycle, feedrate override and spindle speed override
NOTE
are fixed to 100% because a fixed lead thread cannot be cut if feedrate or spindle
speed is changed during deep hole rigid tapping cycle. If "1" is set for parameter No.
5200.4, however, the axis returns to the R-point level in the spindle reverse rotation
with the override value set for parameter No. 5211 applied to axis feedrate. After
that the axis moves to the point, which is away from the previously machined
position by clearance amount "d", in the normal rotation of the spindle. Whether the
override value is set in units of 1% or 10% is set for parameter No. 5201.3.
2. Call the deep hole rigid tapping cycle in the state the spindle is stopped.
3. Since the spindle rotation and Z-axis feed are synchronized in the deep hole rigid
tapping mode, it is not necessary use a tapper.
4. Specify addresses Q and R in the block in which deep hole rigid tapping operation is
specified.
If it is specified in a block where deep hole rigid tapping operation is not specified,
the data of addresses Q and R is not saved.
HOLE MACHINING CANNED CYCLE D-55
For the maximum spindle speed during deep hole rigid tapping operation, refer to page
APPENDIX D-37 (APPENDIX 2).
D-56 HOLE MACHINING CANNED CYCLE
Set "1" for parameter No. 5200.5 to use the deep hole rigid tapping cycle (setting made
NOTE
before shipping the machine).
+Y
Normal rotation Rapid traverse
50 50
10 10 10 10 10 Cutting feed
Z30.0
2 1
30
(Initial point)
Reverse rotation
+X
d
45
Z5.0 (Point R)
Movement by M29 G84 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the deep hole rigid tapping cycle (M29 G84) at
point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the deep hole rigid tapping cycle (M29 G84)
HOLE MACHINING CANNED CYCLE D-57
Set "1" for parameter No. 5200.5 to use the deep hole rigid tapping cycle (setting made
NOTE
before shipping the machine).
+Y
Normal rotation Rapid traverse
50 50
10 10 10 10 10 Cutting feed
Z30.0
2 1
30
(Initial point)
Reverse rotation
+X
d
45
Z5.0 (Point R)
Movement by G84.2 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
S400;
G99 G84.2 Z−45.0 Q10.0 R5.0 F800;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the deep hole rigid tapping cycle (G84.2) at
point 1
• Z−45.0 . . Z coordinate value of the point Z
• Q10.0 . . . Depth of cut per infeed cycle of 10 mm
• R5.0 . . . . Z coordinate value of the point R
• F800 . . . . Feedrate of 800 mm/min
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the deep hole rigid tapping cycle (G84.2) at
point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the deep hole rigid tapping cycle (G84.2)
D-58 HOLE MACHINING CANNED CYCLE
P1000 → 1 second
CAUTION
When the emergency stop button or RESET
(RESET) key has been pressed to stop the
machine during a reverse rigid tapping operation, carefully move the axes after
checking the workpiece and cutting tool carefully for damage. If you move the axes
without due care, the workpiece and cutting tool may collide or interfere with each
other, and this could damage the machine.
1. During reverse rigid tapping cycle, feedrate override and spindle speed override are
NOTE
fixed to 100% because a fixed lead thread cannot be cut if feedrate or spindle speed
is changed during reverse rigid tapping cycle.
2. If the (SP) switch is pressed during reverse rigid tapping cycle, the cycle does
not stop until the cutting tool returns to the initial point level (G98) or the point R level
(G99).
3. Call the reverse rigid tapping cycle in the state the spindle is stopped.
4. Since the spindle rotation and Z-axis feed are synchronized in the reverse rigid
tapping mode, it is not necessary use a tapper.
5. Specify address R in the block in which reverse rigid tapping operation is specified.
If it is specified in a block where reverse rigid tapping operation is not specified, the
data of address R is not saved.
For the maximum spindle speed during reverse rigid tapping operation, refer to page
APPENDIX D-37 (APPENDIX 2).
D-60 HOLE MACHINING CANNED CYCLE
+Y Rapid traverse
50 50 Cutting feed
Spindle
rotation Reverse rotation
2 stops at Z30.0
1 30 Normal rotation
the hole (Initial point)
bottom
+X Z5.0
20 (Point R)
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the reverse rigid tapping cycle (M29 G74) at
point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the reverse rigid tapping cycle (M29 G74)
HOLE MACHINING CANNED CYCLE D-61
+Y Rapid traverse
50 50 Cutting feed
Spindle
rotation Reverse rotation
2 1 stops at Z30.0
Normal rotation
30
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
S400;
G99 G84.3 Z−20.0 R5.0 F800; . . . . . . . Executing the reverse rigid tapping cycle (G84.3) at point
1
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the reverse rigid tapping cycle (G84.3) at point
2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the reverse rigid tapping cycle (G84.3)
D-62 HOLE MACHINING CANNED CYCLE
1. Set "0" for parameter No. 5200.5 to use the high-speed deep hole reverse rigid
NOTE
tapping cycle.
2. The return amount "d" is set for parameter #5213.
The default setting is "1000" (= 1 mm).
When carrying out tapping on mild or tough workpieces, long chips are apt to entangle on
the tool. In such operation, this mode of tapping cycle is used to break chips.
P1000 → 1 second
CAUTION
When the emergency stop button or RESET
(RESET) key has been pressed to stop the
machine during a high-speed deep hole reverse rigid tapping operation, carefully move
the axes after checking the workpiece and cutting tool carefully for damage. If you
move the axes without due care, the workpiece and cutting tool may collide or interfere
with each other, and this could damage the machine.
1. During high-speed deep hole reverse rigid tapping cycle, feedrate override and
NOTE
spindle speed override are fixed to 100% because a fixed lead thread cannot be cut
if feedrate or spindle speed is changed during high-speed deep hole reverse rigid
tapping cycle. If "1" is set for parameter No. 5200.4, however, the axis returns by
clearance amount "d" in the spindle normal rotation with the override value set for
parameter No. 5211 applied to axis feedrate. Whether the override value is set in
units of 1% or 10% is set for parameter No. 5201.3.
2. Call the high-speed deep hole reverse rigid tapping cycle in the state the spindle is
stopped.
3. Since the spindle rotation and Z-axis feed are synchronized in the high-speed deep
hole reverse rigid tapping mode, it is not necessary use a tapper.
4. Specify addresses Q and R in the block in which high-speed deep hole reverse rigid
tapping operation is specified.
If it is specified in a block where high-speed deep hole reverse rigid tapping
operation is not specified, the data of addresses Q and R is not saved.
5. If a negative value is specified for address Q, it is invalid. Always specify a positive
value for address Q.
6. If address Q is omitted or "Q0" is specified, a normal reverse rigid tapping cycle is
executed but a high-speed deep hole reverse rigid tapping cycle is not executed.
For the maximum spindle speed during high-speed deep hole reverse rigid tapping
operation, refer to page APPENDIX D-37 (APPENDIX 2).
D-64 HOLE MACHINING CANNED CYCLE
Programming using M29 G74 (High-speed deep hole reverse rigid tapping cycle)
Ex.
To carry out tapping of pitch 2 mm and depth 45 mm at points 1 and 2 in the high-speed deep hole
reverse rigid tapping cycle (M29 G74) <F16 format (setting made before shipping the machine)>
Set "0" for parameter No. 5200.5 to use the high-speed deep hole reverse rigid tapping
NOTE
cycle.
+Y Rapid traverse
Reverse rotation
50 50 Cutting feed
10 10 10 10 10
Z30.0
2 1 30
(Initial point)
Normal rotation
+X
d
45
Z5.0 (Point R)
Movement by M29 G74 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the high-speed deep hole reverse rigid tapping
cycle (M29 G74) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the high-speed deep hole reverse rigid tapping
cycle (M29 G74)
HOLE MACHINING CANNED CYCLE D-65
Programming using G84.3 (High-speed deep hole reverse rigid tapping cycle)
Ex.
To carry out tapping of pitch 2 mm and depth 45 mm at points 1 and 2 in the high-speed deep hole
reverse rigid tapping cycle (M29 G74) <F16 format (setting made before shipping the machine)>
Set "0" for parameter No. 5200.5 to use the high-speed deep hole reverse rigid tapping
NOTE
cycle.
+Y
Rapid traverse
Reverse rotation
50 50 Cutting feed
10 10 10 10 10
Z30.0
2 1
30
(Initial point)
Normal rotation
+X
d
45
Z5.0 (Point R)
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
S400;
G99 G84.3 Z−45.0 Q10.0 R5.0 F800;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the high-speed deep hole reverse rigid tapping
cycle (G84.3) at point 1
• Z−45.0 . . Z coordinate value of the point Z
• Q10.0 . . . Depth of cut per infeed cycle of 10 mm
• R5.0 . . . . Z coordinate value of the point R
• F800 . . . . Feedrate of 800 mm/min
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the high-speed deep hole reverse rigid tapping
cycle (G84.3) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the high-speed deep hole reverse rigid tapping
cycle (G84.3)
D-66 HOLE MACHINING CANNED CYCLE
1. Set "1" for parameter No. 5200.5 to use the deep hole reverse rigid tapping cycle
NOTE
(setting made before shipping the machine).
2. The clearance amount "d" is set for parameter #5213.
The default setting is "1000" (= 1 mm).
When tapping a deep hole where coolant cannot be supplied satisfactorily or carrying out
tapping on a workpiece which generates entangling chips, this mode of tapping cycle can
be effectively used.
COMMAND 1. F16 Format (setting made before shipping the machine)
M29 S_ ;
G98(G99) G74 X_ Y_ Z_ Q_ R_ P_ F_ ;
2. F15 Format
S_ ;
G98(G99) G84.3 X_ Y_ Z_ Q_ R_ P_ F_ ;
HOLE MACHINING CANNED CYCLE D-67
P1000 → 1 second
CAUTION
When the emergency stop button or RESET
(RESET) key has been pressed to stop the
machine during a deep hole reverse rigid tapping operation, carefully move the axes
after checking the workpiece and cutting tool carefully for damage. If you move the
axes without due care, the workpiece and cutting tool may collide or interfere with each
other, and this could damage the machine.
1. During deep hole reverse rigid tapping cycle, feedrate override and spindle speed
NOTE
override are fixed to 100% because a fixed lead thread cannot be cut if feedrate or
spindle speed is changed during deep hole reverse rigid tapping cycle. If "1" is set
for parameter No. 5200.4, however, the axis returns to the R-point level in the
spindle normal rotation with the override value set for parameter No. 5211 applied to
axis feedrate. After that the axis moves to the point, which is away from the
previously machined position by clearance amount "d", in the reverse rotation of the
spindle. Whether the override value is set in units of 1% or 10% is set for parameter
No. 5201.3.
2. Call the deep hole reverse rigid tapping cycle in the state the spindle is stopped.
3. Since the spindle rotation and Z-axis feed are synchronized in the deep hole reverse
rigid tapping mode, it is not necessary use a tapper.
D-68 HOLE MACHINING CANNED CYCLE
4. Specify addresses Q and R in the block in which deep hole reverse rigid tapping
NOTE
operation is specified.
If it is specified in a block where deep hole reverse rigid tapping operation is not
specified, the data of addresses Q and R is not saved.
5. If a negative value is specified for address Q, it is invalid. Always specify a positive
value for address Q
6. If address Q is omitted or "Q0" is specified, a normal reverse rigid tapping cycle is
executed but a deep hole reverse rigid tapping cycle is not executed.
For the maximum spindle speed during deep hole reverse rigid tapping operation, refer
to page APPENDIX D-37 (APPENDIX 2).
HOLE MACHINING CANNED CYCLE D-69
Programming using M29 G74 (Deep hole reverse rigid tapping cycle)
Ex.
To carry out tapping of pitch 2 mm and depth 45 mm at points 1 and 2 in the deep hole reverse
rigid tapping cycle (M29 G74) <F16 format (setting made before shipping the machine)>
Set "1" for parameter No. 5200.5 to use the deep hole reverse rigid tapping cycle (setting
NOTE
made before shipping the machine).
+Y
Reverse rotation Rapid traverse
50 50
10 10 10 10 10
Cutting feed
2 1 Z30.0
30
Normal rotation
(Initial point)
+X
d
45
Z5.0 (Point R)
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the deep hole reverse rigid tapping cycle (M29
G74) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the deep hole reverse rigid tapping cycle (M29
G74)
D-70 HOLE MACHINING CANNED CYCLE
Set "1" for parameter No. 5200.5 to use the deep hole reverse rigid tapping cycle (setting
NOTE
made before shipping the machine).
+Y
Reverse rotation Rapid traverse
50 50
10 10 10 10 10 Cutting feed
2 1 Z30.0
30
Normal rotation
(Initial point)
+X
d
45
Z5.0 (Point R)
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 T2; . . . . . . . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
S400;
G99 G84.3 Z−45.0 Q10.0 R5.0 F800;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the deep hole reverse rigid tapping cycle
(G84.3) at point 1
• Z−45.0 . . Z coordinate value of the point Z
• Q10.0 . . . Depth of cut per infeed cycle of 10 mm
• R5.0 . . . . Z coordinate value of the point R
• F800 . . . . Feedrate of 800 mm/min
1. Feedrate F
= Spindle speed (min−1) × Pitch (mm)
= 400 × 2 = 800 (mm/min)
2. The spindle is stopped between the initial
point and the point R.
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the deep hole reverse rigid tapping cycle
(G84.3) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the deep hole reverse rigid tapping cycle
(G84.3)
HOLE MACHINING CANNED CYCLE D-71
In the fine boring cycle, the spindle stops at the orient stop
position at the bottom of the machined hole, the spindle is
shifted in the direction opposite to the boring bit position,
then the boring tool is returned to point R level at a rapid
traverse rate.
Since the boring tool is returned while the boring bit is
away from the machined surface, accurate boring without
leaving scratch on the finished surface is possible.
P1000 → 1 second
CAUTION For the fine boring cycle called by G76, mount a boring bit at the position opposite to
the boring bar shift direction. If the boring bit is mounted in the same position as the
boring bar shift direction, the boring bit or boring bar will be hit against the workpiece
causing machine damage. This also causes the boring bit to be broken.
1. For the fine boring cycle called by G76, if shift amount Q or I and J is improper, the
NOTE
tool will interfere with the workpiece when it is moved up to be extracted from the
workpiece.
Specify addresses Q or I, J and R in the block in which boring operation is specified.
2. If they are specified in a block where boring operation is not specified, the data of
addresses Q or I, J and R is not saved.
3. If a negative value is specified for address Q, it is invalid. Always specify a positive
value for address Q.
4. The tool bit retracts by the shift distance specified with address Q or I and J after the
return to the point R or initial point level.
5. The direction of shift and the axis to be shifted are set for parameters No. 5101.4 and
No. 5101.5.
These are set for "+X" before the shipping of the machine.
HOLE MACHINING CANNED CYCLE D-73
<Spindle Shift>
If the boring bar is extracted from the machined hole while the boring bit contacting the machined
surface, the boring bit will leave scratch on the machined surface. To avoid such scratch, it is
necessary to shift the spindle to move the boring bit away from the machined surface before
extracting the boring bar.
<F16 format (setting made before shipping the machine)>
Bored hole
+Y
+X
<F15 format>
Bored hole
+J
I, J
−I +I
+Y
−J
+X X and Y components of shift amount
D-74 HOLE MACHINING CANNED CYCLE
Programming using G76 <F16 format (setting made before shipping the machine)>
Ex.
To carry out the fine boring cycle (G76) at points 1 and 2.
+Y
50 50 Rapid traverse
Cutting feed
Dwell at
hole bottom
2 1 Shift after
30
spindle
orientation
+X
25
Z5.0 Z30.0
(Point R) (Initial point)
Movement by G76 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G76 Z−25.0 R5.0 Q0.3 P100 F100;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the fine boring cycle (G76) at point 1
• Z−25.0 . . Z coordinate value of the point Z (hole
bottom)
• R5.0 . . . . Z coordinate value of the point R
• Q0.3 . . . . Shift amount of tool: 0.3 mm
(Shifting tool nose by 0.3 mm in the +X
direction)
• P100 . . . . Dwell period at hole bottom for 0.1 sec
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the fine boring cycle (G76) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the fine boring canned cycle mode (G76)
HOLE MACHINING CANNED CYCLE D-75
+Y
Rapid traverse
50 50
Cutting feed
Dwell at
hole bottom
2 1 Shift after
30 spindle
orientation
+X
25
Z5.0 Z30.0
(Point R) (Initial point)
Movement by G76 at points 1 and 2
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G99 G76 Z−25.0 R5.0 I0.3 P100 F100;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the fine boring cycle (G76) at point 1
• Z−25.0 . . Z coordinate value of the point Z (hole
bottom)
• R5.0 . . . . Z coordinate value of the point R
• I0.3 . . . . . Shifting tool nose by 0.3 mm in the +X
direction
• P100 . . . . Dwell period at hole bottom for 0.1 sec
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the fine boring cycle (G76) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the fine boring canned cycle mode (G76)
D-76 HOLE MACHINING CANNED CYCLE
<Operation>
Spindle
3) Positioning at the point R at a rapid traverse rate.
normal Shift Q
4) Retraction of the spindle by the shifted amount and
rotation
the spindle starts rotating in the normal direction.
Point R Point Z
Back boring is carried out by the movement in the
Rapid traverse +Z-axis direction up to the point Z.
Cutting feed
5) Spindle orientation and shift in the direction opposite
Shift (rapid traverse)
to the boring bit position. Then, the boring bar is
OSS Spindle orientation
returned to the initial point level.
6) The boring bar returns by the shift distance, the
spindle starting rotating in the normal direction and
the operation specified in the next block starts.
HOLE MACHINING CANNED CYCLE D-77
P1000 → 1 second
CAUTION For the back boring cycle called by G87, mount a boring bit at the position opposite to
the boring bar shift direction. If the boring bit is mounted in the same position as the
boring bar shift direction, the boring bit or boring bar will be hit against the workpiece
causing machine damage. This also causes the boring bit to be broken.
1. For the back boring cycle called by G87, if shift amount Q or I and J is improper, the
NOTE
tool will interfere with the workpiece when it is moved up to be extracted from the
workpiece.
2. Specify addresses Q or I, J and R in the block in which back boring operation is
specified.
If they are specified in a block where back boring operation is not specified, the data
of addresses Q or I, J and R is not saved.
D-78 HOLE MACHINING CANNED CYCLE
Bored hole
+Y
+X
<F15 format>
Bored hole
+J
I, J
−I +I
+Y
−J
+X X and Y components of shift amount
HOLE MACHINING CANNED CYCLE D-79
Programming using G87 <F16 format (setting made before shipping the machine)>
Ex.
To carry out the back boring cycle (G87) at points 1 and 2.
+Y Rapid traverse
50 50 Cutting feed
Shift
2 1
30
+X
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G98 G87 Z−25.0 R−40.0 Q4.0 F100; . . Executing the back boring cycle (G87) at point 1
• Z−25.0 . . Z coordinate value of the point Z level
• R−40.0 . . Z coordinate value of the point R level
• Q4.0 . . . . Shift amount of tool: 4.0 mm
(Shifting tool nose by 4.0 mm in the +X
direction)
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the back boring cycle (G87) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the back boring canned cycle mode (G87)
D-80 HOLE MACHINING CANNED CYCLE
+Y Rapid traverse
Cutting feed
50 50
Shift
2 1
30
+X
O0001;
N1;
G90 G00 G54 X50.0 Y30.0; . . . . . . . . . Positioning at point 1 at a rapid traverse rate in the work
coordinate system called by G54
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction at 1000 min−1
G98 G87 Z−25.0 R−40.0 I4.0 F100; . . . Executing the back boring cycle (G87) at point 1
• Z−25.0 . . Z coordinate value of the point Z level
• R−40.0 . . Z coordinate value of the point R level
• I4.0 . . . . . Shifting tool nose by 4.0 mm in the +X
direction
• F100 . . . . Feedrate of 100 mm/min
X−50.0; . . . . . . . . . . . . . . . . . . . . . . . . . Executing the back boring cycle (G87) at point 2
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the back boring canned cycle mode (G87)
APPENDIX D-1
COMMAND
G90(G91) G300 A_ B_ C_ R_ Q_ H_ I1_ . . . I10_ ;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G300 . . . . . . . Calls the arc (equal intervals) pattern.
• A. . . . . . . . . . . (G90): X-coordinate of the center of arc to be defined
(G91): X component of distance and direction of the center of
arc to be defined from the present position
• B. . . . . . . . . . . (G90): Y-coordinate of the center of arc to be defined
(G91): Y component of distance and direction of the center of
arc to be defined from the present position
• C. . . . . . . . . . . Specifies the angle made between the first hole machining
position and the X-axis.
• R. . . . . . . . . . . Specifies the radius of the arc (without a sign)
• Q . . . . . . . . . . Pitch angle between the two adjacent holes
• H. . . . . . . . . . . Specifies the number of holes.
• I . . . . . . . . . . . Specifies the omit position numbers.
APPENDIX D-3
1. If addresses A and B are omitted, the center of arc is defined at the present position.
NOTE
2. Addresses R and H must not be omitted. If omitted, an alarm message (No. 3101) is
displayed on the screen.
3. For address R, specify a positive value. If R0 is specified or a negative value is
specified for address R, an alarm message (No. 3102) is displayed on the screen.
4. If address C is omitted, the angle of the first position from the X-axis is set to 0°.
5. If address Q is omitted, intervals between holes are set at 360°.
6. When specifying address Q, do not specify Q0. If Q0 is specified, an alarm
message (No. 3102) is displayed on the screen.
7. For address H (number of hole positions), specify a value of "1" or greater. If a value
of "0" or smaller is specified, an alarm message (No. 3102) is displayed on the
screen.
8. With address I, up to ten omission point numbers can be specified.
9. For address I, the value must include a decimal point; decimal fraction is ignored.
NOTE
1. In the illustration below, ( , ) indicates the coordinate values of (X, Y).
2. In the illustration below, indicates the positions where spot drilling cycle is not
carried out.
+Y
Rapid traverse
5 4
6 3 Cutting feed
7 2
20° 20°
20° 20° 1
8 20° 20°
20°
15° 5
+X
(80, 50) Z3.0 Z30.0
50 (Point R) (Initial point)
Movement by G81 at points 1 to 8
D-4 APPENDIX
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at X0, Y0 in the work coordinate system called
by G54
G43 Z30.0 H1 S1000 M03;. . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100 K0; . . . . . . Specifying the spot drilling cycle (G81)
Hole machining data is stored since "K0" is specified.
COMMAND
G90(G91) G301 A_ B_ R_ I1_ J1_ . . . I10_ J10_ ;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G301 . . . . . . . Calls the arc (random intervals) pattern.
• A. . . . . . . . . . . (G90): X-coordinate of the center of arc to be defined
(G91): X component of distance and direction of the center of
arc to be defined from the present position
• B. . . . . . . . . . . (G90): Y-coordinate of the center of arc to be defined
(G91): Y component of distance and direction of the center of
arc to be defined from the present position
• R. . . . . . . . . . . Specifies the radius of the arc (without a sign)
• I . . . . . . . . . . . Pitch angle between the two adjacent holes
• J . . . . . . . . . . . Specifies the number of holes.
1. If addresses A and B are omitted, the center of arc is defined at the present position.
NOTE
2. Addresses R, I, and J must not be omitted. If omitted, an alarm message (No. 3101)
is displayed on the screen.
3. For address R, specify a positive value. If R0 is specified or a negative value is
specified for address R, an alarm message (No. 3102) is displayed on the screen.
4. For address J (number of hole positions), specify a value of "1" or greater. If a value
of "0" or smaller is specified, an alarm message (No. 3102) is displayed on the
screen.
5. Concerning addresses I and J, up to ten pairs of them can be specified.
6. If a value other than "1" is specified for J (number of holes) with "0" specified for I
(angular interval), an alarm message (No. 3103) is displayed.
7. For address J, the value must include a decimal point; decimal fraction is ignored.
D-6 APPENDIX
+Y
Rapid traverse
4 3
Cutting feed
2
5 35° 1
35° 35°
15° 20°
6
20° 5
+X
(80, 50) Z3.0 Z30.0
50 (Point R) (Initial point)
Movement by G81 at points 1 to 6
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at X0, Y0 in the work coordinate system called
by G54
G43 Z30.0 H1 S1000 M03;. . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100 K0; . . . . . . Specifying the spot drilling cycle (G81)
Hole machining data is stored since "K0" is specified.
G301 A80.0 B50.0 R50.0 I20.0 J2.0 I35.0 J3.0 I15.0 J1.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the arc (random intervals) pattern
Executing the spot drilling cycle (G81) at points 1 to 6
• A80.0 . . . . X-coordinate of the center of arc
• B50.0 . . . . Y-coordinate of the center of arc
• R50.0 . . . . Radius of arc: 50 mm
• I20.0 . . . . . Angular interval for defining hole
positions 1 and 2: 20°
• J2.0. . . . . . Two holes in angular intervals of 20°
• I35.0 . . . . . Angular interval for defining hole
positions 3, 4, and 5: 35°
• J3.0. . . . . . Three holes in angular intervals of 35°
• I15.0 . . . . . Angular interval for defining hole position
6: 15°
• J1.0. . . . . . One hole in angular intervals of 15°
G80; . . . . . . . . . . . . . . . . . . . . . . . . . . . Canceling the spot drilling canned cycle mode (G81)
D-8 APPENDIX
+Y
With the G302 command, hole positions arranged on a
line in equal intervals are defined.
Reference point: (A, B)
Q
Start point: R (distance from the reference
Q H point)
Q 3 Angle to X-axis: C
R 2
Number of holes: H
1
Interval: Q
C
+X
Reference point (A, B)
COMMAND
G90(G91) G302 A_ B_ C_ R_ Q_ H_ I1_ . . . I10_ ;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G302 . . . . . . . Calls the line-at-angle (equal intervals) pattern.
• A. . . . . . . . . . . (G90): X-coordinate of the reference point to be defined
(G91): X component of distance and direction of the reference
point to be defined from the present position
• B. . . . . . . . . . . (G90): Y-coordinate of the reference point to be defined
(G91): Y component of distance and direction of the reference
point to be defined from the present position
• C. . . . . . . . . . . Specifies the angle of the line referenced to the X-axis.
• R. . . . . . . . . . . Specifies the distance from the reference point to the start point.
• Q . . . . . . . . . . Specifies the interval between holes (pitch).
• H. . . . . . . . . . . Specifies the number of holes.
• I . . . . . . . . . . . Specifies the omit position numbers.
1. If addresses A and B are omitted, the reference point is defined at the present
NOTE
position.
2. Addresses Q and H must not be omitted. If omitted, an alarm message (No. 3101) is
displayed on the screen.
3. If address C is omitted, the angle to X-axis is 0°.
4. If address R is omitted, the start point is defined on the reference point (A, B).
5. When specifying address Q, do not specify Q0. If Q0 is specified, an alarm
message (No. 3102) is displayed on the screen.
6. For address H (number of hole positions), specify a value of "1" or greater. If a value
of "0" or smaller is specified, an alarm message (No. 3102) is displayed on the
screen.
7. With address I, up to ten omission point numbers can be specified.
8. For address I, the value must include a decimal point; decimal fraction is ignored.
APPENDIX D-9
NOTE
1. In the illustration below, ( , ) indicates the coordinate values of (X, Y).
2. In the illustration below, indicates the positions where spot drilling cycle is not
carried out.
+Y
Rapid traverse
20
20 Cutting feed
5
20
20 4
3
40 2
1
30°
+X 5
(50, 30)
Z3.0 Z30.0
(Point R) (Initial point)
Movement by G81 at points 1 to 5
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at X0, Y0 in the work coordinate system called
by G54
G43 Z30.0 H1 S1000 M03;. . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100 K0; . . . . . . Specifying the spot drilling cycle (G81)
Hole machining data is stored since "K0" is specified.
COMMAND
G90(G91) G303 A_ B_ C_ I1_ J1_ . . . I10_ J10_ ;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G303 . . . . . . . Calls the line-at-angle (random intervals) pattern.
• A. . . . . . . . . . . (G90): X-coordinate of the reference point to be defined
(G91): X component of distance and direction of the reference
point to be defined from the present position
• B. . . . . . . . . . . (G90): Y-coordinate of the reference point to be defined
(G91): Y component of distance and direction of the reference
point to be defined from the present position
• C. . . . . . . . . . . Specifies the angle of the line referenced to the X-axis.
• I . . . . . . . . . . . Specifies the interval between holes (pitch).
• J . . . . . . . . . . . Specifies the number of holes.
1. If addresses A and B are omitted, the reference point is defined at the present
NOTE
position.
2. Addresses I and J must not be omitted. If omitted, an alarm message (No. 3101) is
displayed on the screen.
3. If address C is omitted, the angle to X-axis is 0°.
4. For address J (number of hole positions), specify a value of "1" or greater. If a value
of "0" or smaller is specified, an alarm message (No. 3102) is displayed on the
screen.
5. Concerning addresses I and J, up to ten pairs of them can be specified.
6. If a value other than "1" is specified for J (number of holes) with "0" specified for I
(angular interval), an alarm message (No. 3103) is displayed.
7. For address J, the value must include a decimal point; decimal fraction is ignored.
D-12 APPENDIX
+Y
Rapid traverse
20
20 Cutting feed
20 6
30 5
4
30 3
2
30°
+X 5
1
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at X0, Y0 in the work coordinate system called
by G54
G43 Z30.0 H1 S1000 M03;. . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100 K0; . . . . . . Specifying the spot drilling cycle (G81)
Hole machining data is stored since "K0" is specified.
2
V I
4
3
R 2
1 C
+X
U
+Y
2
V I
4
3
R 2
1 C
+X
1. If addresses A and B are omitted, the start point is defined at the present position.
NOTE
+Y
Rapid traverse
Cutting feed
9 10 11 12
60
8 7 6 5
70°
5
+X
1 2 3 4
Z3.0 Z30.0
120
(50, 30) (Point R) (Initial point)
Movement by G81 at points 1 to 12
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at X0, Y0 in the work coordinate system called
by G54
G43 Z30.0 H1 S1000 M03;. . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100 K0; . . . . . . Specifying the spot drilling cycle (G81)
Hole machining data is stored since "K0" is specified.
G304 A50.0 B30.0 (C0) U120.0 V60.0 I4.0 J3.0 R70.0 W2.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the grid pattern (G304)
Executing the spot drilling cycle (G81) at points 1 to 12
U
Start point: A, B
Y
V C
+X
+Y
X
Y V
C
+X
1. If addresses A and B are omitted, the start point is defined at the present position.
NOTE
+Y
Rapid traverse
11 12 13
Cutting feed
9 10
6 7 8
5
4 5
40
Z3.0 Z30.0
20 (Point R) (Initial point)
1 2 3
+X Movement by G81 at points 1 to 13
30
(50, 30) 60
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at X0, Y0 in the work coordinate system called
by G54
G43 Z30.0 H1 S1000 M03;. . . . . . . . . . Positioning at initial point (Z30.0) at a rapid traverse rate
Starting the spindle in the normal direction at 1000 min−1
G99 G81 Z−5.0 R3.0 F100 K0; . . . . . . Specifying the spot drilling cycle (G81)
Hole machining data is stored since "K0" is specified.
G305 A50.0 B30.0 (C0) X60.0 Y40.0 U30.0 V20.0 I5.0 J5.0 (W1.0);
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the staggered grid pattern (G305)
Executing the spot drilling cycle (G81) at points 1 to 13
The pattern cycles (G300 - G305) are used in combination with the hole machining canned cycles
(G73, G74, G76, G81 - G89).
In a program, a G code calling a hole machining canned cycle and the related machining data
should be specified first. Following these commands, a G code defining hole position pattern
(pattern cycle) and the hole position data should be specified.
1. If a pattern cycle (G300 - G305) is used, specify "K0" in the block where a hole
NOTE
machining canned cycle is specified. If a hole machining canned cycle is executed
without a K0 command, the specified cycle is executed at the present position.
2. A pattern cycle (G300 - G305) should be specified in a hole machining canned cycle
mode. If a pattern cycle (G300 - G305) is specified in other than the hole machining
canned cycle mode, hole machining is not executed although positioning is
executed.
3. A hole machining canned cycle is valid even after the execution of a pattern cycle
(G300 - G305). Therefore, if positioning data is specified, the hole machining cycle
is executed at the specified position.
4. A pattern cycle (G300 - G305) is valid only in the specified block. Therefore, the
hole position data is not stored.
5. Positioning from a defined hole position to the next is executed at a rapid traverse
rate.
APPENDIX D-23
T
Radius: R
C
+X
R Center of circle
(A, B)
COMMAND
G90(G91) G306 A_ B_ C_ R_ T_ D_ J_ E_ F_ ;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G306 . . . . . . . Calls the circle cutting inside (finishing) pattern.
• A. . . . . . . . . . . (G90): X-coordinate of the center of circle to be defined
(G91): X component of distance and direction of the center of
circle to be defined from the present position
• B. . . . . . . . . . . (G90): Y-coordinate of the center of circle to be defined
(G91): Y component of distance and direction of the center of
circle to be defined from the present position
• C. . . . . . . . . . . Specifies the angle of the line referenced to the X-axis.
• R. . . . . . . . . . . Specifies the radius of circle.
• T . . . . . . . . . . . Specifies the cutting allowance.
• D. . . . . . . . . . . Specifies the tool offset number.
• J . . . . . . . . . . . Specifies the approach relief amount.
• E. . . . . . . . . . . Specifies the approach feedrate.
• F . . . . . . . . . . . Specifies the cutting feedrate.
1. If addresses A and B are omitted, the center of arc is defined at the present position.
NOTE
50
6
45°
(0, 0)
O0001;
N1;
G90 G00 G54 X0 Y0; . . . . . . . . . . . . . . Positioning at X0, Y0 in the work coordinate system called
by G54
G43 Z30.0 H1 S700 M03;. . . . . . . . . . . Positioning at Z30.0 at a rapid traverse rate
Starting the spindle in the normal direction at 700 min−1
Z10.0;
APPENDIX D-25
C J
+X
R
COMMAND
G90(G91) G307 A_ B_ C_ R_ T_ D_ Q_ J_ E_ F_ ;
1. If addresses A and B are omitted, the center of arc is defined at the present position.
NOTE
+Y
11
(100, 30)
R20
25
30°
+X
(0, 0)
7
D-28 APPENDIX
O0001;
N1;
G90 G00 G54 X100.0 Y30.0; . . . . . . . . Positioning at X100.0, Y30.0 in the work coordinate
system called by G54
G43 Z30.0 H1 S700 M03;. . . . . . . . . . . Positioning at Z30.0 at a rapid traverse rate
Starting the spindle in the normal direction at 700 min−1
G00 Z−10.0;
G307 (A0) (B0) C30.0 R25.0 T4.0 D1.0 Q20.0 J7.0 (E500.0) F100.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Specifying the circle cutting outside (finishing) pattern
R C +X
Reference
point (A, B)
T Q
J
H−2.0 H2.0
H3.0 H−1.0
H−3.0 H1.0
H4.0 H−4.0
COMMAND
G90(G91) G308 A_ B_ C_ U_ V_ R_ H_ T_ D_ Q_ J_ E_ F_ ;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G308 . . . . . . . Calls the frame cutting inside (finishing) pattern.
• A. . . . . . . . . . . (G90): X-coordinate of the reference point to be defined
(G91): X component of distance and direction of the reference
point to be defined from the present position
• B. . . . . . . . . . . (G90): Y-coordinate of the reference point to be defined
(G91): Y component of distance and direction of the reference
point to be defined from the present position
• C. . . . . . . . . . . Specifies the angle of the line referenced to the X-axis.
• U. . . . . . . . . . . Specifies the length in the X-axis direction.
• V. . . . . . . . . . . Specifies the length in the Y-axis direction.
• R. . . . . . . . . . . Specifies the corner rounding R
• H. . . . . . . . . . . Specifies the cutting start position and direction
• T . . . . . . . . . . . Specifies the cutting allowance.
• D. . . . . . . . . . . Specifies the tool offset number.
• Q . . . . . . . . . . Specifies approach relief circle radius
• J . . . . . . . . . . . Specifies the approach relief amount.
• E. . . . . . . . . . . Specifies the approach feedrate.
• F . . . . . . . . . . . Specifies the cutting feedrate.
D-30 APPENDIX
1. If addresses A and B are omitted, the reference point is defined at the present
NOTE
position.
2. If address C is omitted, the angle to X-axis is 0°.
3. If address R is omitted, the offset amount of the tool offset number specified by
address D is used for corner rounding.
4. If address T is omitted, cutting allowance is 0.
5. If address J is omitted, approach relief amount is 5 mm.
6. If address E is omitted, approach feedrate is five times the feedrate specified with F.
7. If address F is omitted, the feedrate of modal value is used.
8. Meaning of the sign of address H is indicated below.
90
+Y
R10
25
(50, 50)
+X 50
8 5
O0001;
N1;
G90 G00 G54 X50.0 Y50.0; . . . . . . . . . Positioning at X50.0, Y50.0 in the work coordinate system
called by G54
G43 Z30.0 H1 S700 M03;. . . . . . . . . . . Positioning at Z30.0 at a rapid traverse rate
Starting the spindle in the normal direction at 700 min−1
Z10.0;
G01 Z−10.0 F1000;
D-32 APPENDIX
G308 (A50.0) (B50.0) (C0) U90.0 V50.0 R10.0 H−4.0 T3.0 D1.0 Q25.0 (J5.0) E200.0 F100.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the frame cutting inside (finishing) pattern
C +X
Reference
point (A, B)
T
J
H−2.0 H2.0
H3.0 H−1.0
H−3.0 H1.0
H4.0 H−4.0
COMMAND
G90(G91) G309 A_ B_ C_ U_ V_ R_ H_ T_ D_ Q_ J_ E_ F_ ;
• G90 . . . . . . . . Calls the absolute command mode.
• G91 . . . . . . . . Calls the incremental command mode.
• G309 . . . . . . . Calls the frame cutting outside (finishing) pattern.
• A. . . . . . . . . . . (G90): X-coordinate of the reference point to be defined
(G91): X component of distance and direction of the reference
point to be defined from the present position
• B. . . . . . . . . . . (G90): Y-coordinate of the reference point to be defined
(G91): Y component of distance and direction of the reference
point to be defined from the present position
• C. . . . . . . . . . . Specifies the angle of the line referenced to the X-axis.
• U. . . . . . . . . . . Specifies the length in the X-axis direction.
• V. . . . . . . . . . . Specifies the length in the Y-axis direction.
• R. . . . . . . . . . . Specifies corner rounding/corner chamfering
• H. . . . . . . . . . . Specifies the cutting start position and direction
• T . . . . . . . . . . . Specifies the cutting allowance.
• D. . . . . . . . . . . Specifies the tool offset number.
• Q . . . . . . . . . . Specifies approach relief circle radius
• J . . . . . . . . . . . Specifies the approach relief amount.
• E. . . . . . . . . . . Specifies the approach feedrate.
• F . . . . . . . . . . . Specifies the cutting feedrate.
D-34 APPENDIX
1. If addresses A and B are omitted, the reference point is defined at (0, 0).
NOTE
+Y
6
R10 25
50 +X
(0, 0) (80, 0)
5
50
O0001;
N1;
G90 G00 G54 X80.0 Y0;. . . . . . . . . . . . Positioning at X80.0, Y0 in the work coordinate system
called by G54
G43 Z30.0 H1 S700 M03;. . . . . . . . . . . Positioning at Z30.0 at a rapid traverse rate
Starting the spindle in the normal direction at 700 min−1
G00 Z10.0;
D-36 APPENDIX
G309 (A0) (B0) (C0) U50.0 V50.0 R10.0 H1.0 T1.0 D1.0 Q25.0 (J5.0) (E500.0) F100.0;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the frame cutting outside (finishing) pattern
Since there are a number of tool patterns which will be used for actual machining
NOTE
and they will differ among users, it is not possible to explain all of the tool patterns in
this manual. The explanation given in this chapter is concentrated on the basic
programming so that the readers will be able to acquire basic knowledge of the
cutter radius offset function.
For more details, please refer to the instruction manuals supplied by the NC unit
manufacturer.
CONTENTS
1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-1
3 TECHNICAL TERMS
USED IN THE EXPLANATION OF THE CUTTER RADIUS OFFSET FUNCTION. . . . . E-4
1 GENERAL
Generally, when cutting a pocket or carrying out contouring operation using an end mill, the cutter
radius offset function is used to finish the workpiece in the shape specified in the drawing.
How the shape in Fig. 1 is finished using the cutter radius offset function is briefly explained below.
3 4 Specify the required shape to be finished in the program:
Point 1 → 2 → 3 → 4
Workpiece
1
Fig. 1
1
Fig. 2
Tool
CAUTION
The programmer must thoroughly understand the nature of the G41 and G42 functions
as well as the tool paths to be generated. If the G41 and G42 commands are used
improperly, the cutting tool might be fed into or hit against the workpiece to be
machined to cause breakage of the cutting tool or defective machining.
CUTTER RADIUS OFFSET E-3
To use the cutter radius offset function (G40, G41, or G42), how the cutter radius offset data is
input must be understood correctly.
<Input of cutter radius offset amount>
Input the cutter radius offset amount on the TOOL OFFSET screen corresponding to the offset
number which is specified following address D.
E-4 CUTTER RADIUS OFFSET
The technical terms special to the cutter radius offset function and items to be observed when
using the cutter radius offset function are explained below.
Term Description
The first block in which the G41 or G42 command is specified
In the start-up operation, the center of the cutting tool is offset at the
Start-up
stopped position in right angle to the movement in the next block by
its radius.
The mode in which the tool nose radius offset function is valid after
Offset mode
the start-up
The state in which the tool nose radius offset function is canceled by
executing G40
Cancel mode The cancel mode starts from the end point of the block that precedes
the G40 block. The center of the cutting tool is positioned right angles
to the tool path programmed in the preceding block.
For the start-up and cancel mode operation, two types of operation are provided (type A
NOTE
and type B).
The following explanation is given for type A.
For the start-up and cancel mode operation of type B, refer to the instruction manuals
prepared by the NC unit manufacturer.
CUTTER RADIUS OFFSET E-5
Ex.
Offset mode
Start-up
Offset mode
Cancel mode
3-1 Start-up
The first block in which the G41 or G42 command is specified is called the start-up block.
In the start-up operation, the center of the cutting tool is offset at the stopped position in right angle
to the movement in the next block by its radius.
Ex.
1
+Y
Start-up
(This distance must be larger
than the cutter radius.)
3 2
50
+X
The mode in which the cutter radius offset function is valid, after the start-up, is called the offset
mode.
1. Behavior when the direction of tool offset (right, left) is not changed
The tool moves along the workpiece shape with its periphery in contact with the shape.
Ex.1
5 (X20.0, Y90.0) 4
(X45.0, Y90.0)
R25.0
(X70.0, Y65.0)
1. At the start-up and in the offset mode, two blocks of commands are buffered. In the
NOTE
offset mode, blocks not containing an axis movement command, a block only with an
M command or G04 dwell block, for example, must not be specified continuously. A
block containing 0 axis movement is not allowed, either. If such blocks are specified,
it will cause excessive or insufficient cutting since two blocks of commands cannot
be buffered. It will also cause overload to the tool and the tool might be damaged.
2. If an attempt is made to cut the inside of an arc whose radius is smaller than the
radius of the tool or to cut a groove whose width is smaller than the radius of the tool,
an alarm message is displayed to avoid excessive cutting. If this occurs while the
program is executed in the single block mode, excessive cutting occurs to produce a
defective workpiece since the program is executed to the end of the block causing
the alarm before it stops.
3. Do not change the plane with G17, G18, or G19 in the offset mode.
If changed, an alarm occurs, and an alarm message (No. 037) is displayed on the
screen and the machine stops operating.
2. Behavior when the direction of tool offset (right, left) is changed
If the direction of offset changes in a program, as illustrated below, i.e., if the G code calling
the cutter offset function changes between G41 and G42, the periphery will come into
contact with the workpiece shape that is defined in the two consecutive blocks where the G
code changes from G41 to G42, or vice versa.
Ex.2
2
1
(X70.0, Y40.0)
CAUTION
Changing the G code mode between G41 and G42 cannot be specified in the start-up
and the next block.
CUTTER RADIUS OFFSET E-9
The G40 command, specified in the offset mode, cancels the cutter radius offset function.
The cancel mode starts from the end point of the block that precedes the G40 block. The center of
the cutting tool lies at right angles to the tool path programmed in the preceding block.
Ex.
Cancel mode
(X40.0, Y20.0)
2
In the cancel mode, the following items must be carefully attended to:
NOTE
(RESET) key to cancel the cutter radius offset mode does not call for cancel
movements.
For the axis movement commands to be specified for canceling the cutter radius
offset mode, it is necessary to specify the position other than the present position in
the G00 or G01 mode so that axes actually move in the execution of the cancel
command.
CUTTER RADIUS OFFSET E-11
If the workpiece wall lies in a direction independent of the direction of tool motion specified by the
commands in the G40 block:
Specify the workpiece wall's direction (workpiece shape) with vectors (I, J). Use incremental
values for I and J commands.
The following gives an explanation assuming that the cutter radius offset function is used
NOTE
in the XY plane (G17). When executing the cutter radius offset function in the ZX plane
(G18) or YZ plane (G19), specify the direction of wall (workpiece shape) using vector (I, K)
or (J, K), respectively.
Wall
I,J G40
(100, 30)
(G42) Actual tool motion commands
+J 5 G40 G00 X100.0 Y30.0 I−4.0 J5.0;
+I
The workpiece is cut until the cutter periphery comes into contact with the wall.
E-12 CUTTER RADIUS OFFSET
1. The workpiece is cut until the cutter periphery comes into contact with the wall. The
NOTE
I and J commands, used to define the vectors that represent the workpiece wall
direction, should be specified in the G40 block that appears first after entry into the
offset mode.
• Valid • Invalid
G42 X_ Y_ ; G42 X_ Y_ ;
X_ Y_ ;
Offset mode
Cancel mode
2. If "I_ J_" is not specified in the G40 block, the offset mode cancel point is set at the
end point of the preceding block; at this end point, the center of the tool lies at right
angles to the tool path generated by the commands in the preceding block. This
causes an overcut on the wall.
G40 G00 X_ Y_ ;
G40
(G42)
Overcuts occur
CUTTER RADIUS OFFSET E-13
(G42)
60°
+Y
80
50
35
+X
I 80 I = AC = 15 × tan30° = 8.660
50
35
G01 X−80.0;
G40 G00 X−50.0 Y100.0 I−8.66 J15.0;
(I−1.0 J1.732)
Interchangeable
E-14 CUTTER RADIUS OFFSET
The cutter radius offset amount is usually changed when the cutting tool is changed in the cancel
mode.
If the cutter radius offset amount is changed while in the cutter radius offset mode, positioning at
the end point of a block is made using the cutter radius offset amount specified in that block.
N7
N8
N6
Ex.
When machining a mold, fine adjustment on taper can be made by changing the cutter radius
offset amount.
3 (X0, Y60.0)
+Y 2 (X50.0, Y40.0)
1 (X50.0, Y20.0)
+X
4-3 Positive (+) and Negative (−) Designation for Cutter Radius Offset Amount
and Tool Paths
Generally, a program is created assuming that the cutter radius offset amount is set in a positive
value.
If an offset amount is set in a negative value, tool paths are generated as if G41 and G42 are
entirely exchanged with each other. The paths having been generated outside the programmed
profile will be generated inside the profile and those having been generated inside the
programmed profile will be generated outside the profile.
If a negative value is set for the offset amount while the tool paths as shown in Fig. 1 are specified
in a program, the cutting tool moves along the paths shown in Fig. 2.
Conversely, if a negative value is set for the offset amount when the tool paths shown in Fig. 2 are
specified in a program, the cutting tool moves along the paths shown in Fig. 1.
Fig. 1 Fig. 2
E-16 CUTTER RADIUS OFFSET
1. Cutting the inside of arc whose radius is smaller than the cutter radius
If the specified arc radius is smaller than the cutter radius, offsetting inside the arc causes
overcut.
The alarm message is displayed on the screen just after the start of the block which
precedes the block containing the arc command, and the machine stops.
If a single block function is called during the execution of the preceding block, the axes are
NOTE
fed to the end point of that block, causing overcuts.
If the single block function is called during the execution of the preceding block, the axes
NOTE
are fed to the end point of that block, causing overcuts.
Machine stops
due to the alarm
Programmed tool path
3. Cutting an arc-shaped step whose height is smaller than the cutter radius
The tool path to be generated in ordinary offset processing might be reversed at the stepped
portion.
In such a case, the first vector is ignored and the tool path is generated for a second vector
that will move along a straight line.
Although the operation is continued without causing an alarm, undercut portion is left in the
workpiece.
Arc
Undercut portion
E-18 CUTTER RADIUS OFFSET
The cutter radius offset function is valid only for the X- and Z-axes in the ZX plane, and for
NOTE
the Y- and Z-axes in the YZ plane.
If there are two or more blocks, which contains neither X- nor Y-axis movement commands,
given in succession, overcut may occur since buffering is not possible.
(G42 mode)
X30.0 Y35.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [1]
Y55.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [2]
3 2 X10.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [3]
(X10.0, Y55.0) (X30.0, Y55.0) Offset is made correctly because two blocks of
commands can be buffered
1
(X30.0 Y35.0)
Overcuts occur as illustrated above. This is because the center of the tool is positioned, when the
preceding block [2] is executed, at the right angle to the tool path called by the commands in this
block.
CUTTER RADIUS OFFSET E-19
<Main program>
G41 G01 X_ Y_ D_ ;
M98 P1; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [1]
<Sub-program (O0001)>
O0001; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [2]
X_ Y_ ;
X_ Y_ ;
M99;
By the call of a sub-program from a main program, two blocks [1] and [2] are executed in
succession; these blocks do not contain X- or Y-axis movement commands.
Therefore, the program should be created in the following manner.
<Main program>
X_ Y_ ;
M98 P1 D_ ;
<Sub-program (O0001)>
O0001;
G41 G01 X_ Y_ ;
X_ Y_ ;
G40 X_ Y_ ;
M99;
E-20 CUTTER RADIUS OFFSET
5 EXAMPLE PROGRAMS
Several examples of programs where the cutter radius offset function (G40, G41, G42) is used are
given below.
Use these programs for your reference when creating a program.
R125
Workpiece
(X−40.0, Y0) 6
(X0, Y0) (X200.0, Y0) 5
2 (X0, Y−40.0)
1 , 7
(X−100.0, Y−100.0)
O0001;
N1;
G90 G00 G54 X−100.0 Y−100.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 [1]
G43 Z30.0 H1 S300 T2; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [2]
M03;
Z−30.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [3]
(G17) G41 G01 X0 Y−40.0 D1 F300; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 [4]
Y250.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
X200.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
[5]
G02 Y0 R125.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
G01 X−40.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
G40 G00 X−100.0 Y−100.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 [6]
[1] Positioning at point 1 at a rapid traverse rate in the work coordinate system called by G54.
[2] Positioning at Z30.0 at a rapid traverse rate
[3] Positioning of a cutting tool from Z30.0 to Z−30.0 at a rapid traverse rate
CUTTER RADIUS OFFSET E-21
40
2
• D1 . . . . . . Tool offset number where the
cutter radius is set.
Start-up
6 5
40
[6] Point 7: Cancel mode
In the block just preceding the cancel mode block,
positioning at the end point 6 is made at a position
located right angle to the tool path in that block.
After that, positioning is made at (X−100.0, Y−
Cancel mode
100.0).
7
E-22 CUTTER RADIUS OFFSET
3
4
2 r = 40
6 5
1 45°
<Machining sequence>
Arcs used for approach (3 → 4) and escape (4 → 5) must satisfy the following conditions.
Cutter radius < r (approach/escape circle radius) < R (radius of circle to be machined)
20 < r < 60
From the requirement indicated above, r is determined to be "40".
(r = 40)
CUTTER RADIUS OFFSET E-23
60 sin45° × 60
= 42.426
60 - 40 = 20 sin45° × 20
= 14.142
45° 45°
1 1
(X100.0, Y100.0) cos45° × 20 (X100.0, Y100.0) cos45° × 60
= 14.142 = 42.426
3
4
2 r = 40
6 5
1 45°
O0001;
N1;
G90 G00 G54 X100.0 Y100.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
G43 Z30.0 H1 S1000 T2;
M03;
G01 Z−_ F100;
X114.142 Y114.142; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 [1]
G42 Y154.142 D1; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 [2]
G02 X142.426 Y142.426 R40.0;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 [3]
I−42.426 J−42.426 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (Full circle) [4]
X154.142 Y114.142 R40.0;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 [5]
G40 G01 X114.142; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 [6]
CUTTER RADIUS OFFSET E-25
[3] Point 3 → 4
3
Approach along an arc to cut a circle
4
[4] Full circle
Execute cutting of a circle
[5] Point 4 → 5
Escape from a circle along an arc
4
[6] Point 6: Cancel mode
In the block just preceding the cancel mode block,
positioning at the end point 5 is made at a position
located right angle to the tool path in that block.
6 5 After that, positioning is made at (X114.142,
Y114.142).
E-26 CUTTER RADIUS OFFSET
R10
7 10
6
Point X Y
−15.0 0
45
1
3 2 2 −15.0 10.0
R10
90 3 −50.0 10.0
1
4 −50.0 −10.0
X0, Y0
5 −15.0 −10.0
4 5
35 15 30 6 30.0 45.0
7 20.0 45.0
8 20.0 −45.0
8 9 9 40.0 −45.0
10 40.0 45.0
<Machining sequence>
• Pocket cutting
Point 1 → 2 → 3 → 4 → 5 → 2 → 1
• Pocket cutting
Point 6 → 7 → 8 → 9 → 10 → 7 → 6
CUTTER RADIUS OFFSET E-27
O0001;
N1;
G90 G00 G54 X−15.0 Y0;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 [1]
G43 Z30.0 H1 S500 T2;
M03;
G01 Z3.0 F3000;
Z−5.0 F80;
G41 Y10.0 D1; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 [2]
X−50.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 [3]
G03 Y−10.0 R10.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 [4]
G01 X−15.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 [5]
G03 Y10.0 R10.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 [6]
G40 G01 Y0;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 [7]
G00 Z3.0;
X30.0 Y45.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 [8]
G01 Z−5.0;
G41 X20.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 [9]
Y−45.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 [10]
G03 X40.0 R10.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 [11]
G01 Y45.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 [12]
G03 X20.0 R10.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 [13]
G40 G01 X30.0; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 [14]
G00 Z30.0;
7 10
3 2 6
4 5
8 9
E-28 CUTTER RADIUS OFFSET
Undercut portion
If the program is executed without G40 in block [7], operation stops after the execution of block [6]
and the corresponding alarm message is displayed.
6
2 (8)
When block [7] is going to be executed, offset is made to position (8) in the illustration because
offset is made to the left side for both "point 2 → 1" (block [7]) and "point 1 → 6" (block [8]) due to
two-block buffering function.
However, since this motion causes overcut, an alarm occurs at position (6) and the corresponding
alarm message is displayed on the screen and machine stops.
CHAPTER F
T, S, AND F FUNCTIONS
This chapter describes the T function which calls a tool, the S function which specifies a
spindle speed, and the F function which specifies a feedrate.
CONTENTS
F : T, S, AND F FUNCTIONS
1 T FUNCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1
2 S FUNCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-11
3 F Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-13
1 T FUNCTION
T function calls a specified tool to the tool change position. A four-digit tool number entered
following address T specifies the tool to be called. In response to the specification of a tool
number, the magazine rotates to bring the specified tool to the tool transfer position and the
waiting pot receiving the called tool brings it to the tool change position.
The ATC (automatic tool changer) operation consists of:
T ; . . . . . . . . . . . . . . . Tool number
Programmable range: T1 to T9999
<8-digit tool number specification>
T ; . . . . . . Tool number
Programmable range: T1 to T99999999
CAUTION 1. With the 8-digit tool number specification, the settings to distinguish large,
medium, and small diameter tools and heavy tools are made on the tool
registration (sub-item) screen so there are none of the restrictions on tool
numbers that apply with 4-digit tool number specification.
Note that a tool for which the large tool diameter number "9000" has been set
using the technical memory random method with the 4-digit tool number
specification will not be recognized as a large diameter tool in the 8-digit tool
number specification.
F-2 T, S, AND F FUNCTIONS
CAUTION 2. When using the used tool list screen and conversational function, use tool
numbers with no more than 4 digits.
3. When checking the cutting tools stored in the magazine during setup, do not
change large diameter cutting tools continuously.
If tool change is attempted from a large diameter tool to another large diameter
tool, it causes overload to the ATC motor and the thermal relay may be tripped.
4. With the NH4000, NH5000, SH-633, SH5000, SH8000, and MH-1003, tool
change cycle time differs according to tool weight if the flag setting is changed to
achieve high-speed ATC operation.
Therefore, when registering the tools, it is necessary to add the attribute to
classify them according to tool weight (light, heavy) in addition to the tool size
group attribute. If a program presently used for the machining centers is used for
this machining center, there will be cases that a medium diameter, heavy tool is
changed at a faster speed. If this occurs, the ATC parts may be damaged.
Change the present program, referring to the information below to ensure safety.
When the machine is installed, the parameter is set so that tool change cycle is
executed at a low speed for all tools.
Tool No (T)
(when using
Tool Diameter Tool Weight ATC Speed
4-digit
specification)
0001 to 0999 Small diameter tool
Light tool High
1000 to 7999
Medium diameter tool
8000 to 8999
Heavy tool Low
9000 to 9999 Large diameter tool
<NH5000>
<SH5000>
<SH-633, SH8000>
<MH-1003>
Tool change cycle speed is automatically selected according to the weight of the
tools to be changed:
a. Tool change between light tools High-speed
b. Tool change between light tool and heavy tool Low-speed
c. Tool change between heavy tools Low-speed
3. The dimensions and mass of the tools used with the machine are restricted by
mainly the capacity of magazine. Use the tools which are within the limits.
For the limits on length, diameter, and mass, refer to the MAINTENANCE MANUAL
(MAINTENANCE INFORMATION) separately provided.
With the U-axis control specification machines, if the following commands are executed,
the adapter is indexed to the standby station and then the adapter is mounted to the
spindle. The same operation is executed by the M33 command.
T1 is the tool number assigned for the adapter.
T1;
(= M33;)
M06;
F-4 T, S, AND F FUNCTIONS
In the technical memory random method, the tools are first classified into one of the following tool
size groups when they are registered - large, medium, and small diameter tools.
In the tool change cycle, the magazine rotates to index an empty pot, which meets the tool size
group of the tool to be returned, located nearest to the tool change position. That is, when a large
diameter tool is returned from the spindle, the empty pot assigned to store a large diameter tool
and located nearest to the tool change position is indexed.
This method is adopted to shorten the tool change cycle time.
CAUTION 1. When mounting tools, check the restrictions on tools thoroughly and make sure
that the arrangement of tools will not cause interference at tool changes. If you
fail to observe the restrictions on tools, tools may interfere with each other when
tool changes are performed, and this will cause damage to the machine.
2. With the ATC of technical memory random method, make sure to set the pots at
both sides of the pot where a large-diameter tool that requires an empty pot at
both sides. If a tool change cycle is carried out with a tool stored in the pot next
to the large-diameter tool pot, an interference occurs between the large-diameter
tool and the tool stored in the pot, causing damage to the machine.
COMMAND <4-digit tool number specification>
T ;. . . . . . . . . . . . . . . . . . . Tool number
• part
• part
CAUTION ATC operation for changing the tools of different tool size groups differs from that for
changing the tools of the same tool size group.
For changing the tools belonging to different tool size groups, tool change cycle is
executed twice. Pay sufficient care when executing tool change operation in the MDI
mode in such cases.
If a large diameter tool mounted in the spindle is changed with a small diameter tool, for
example, the tool change operation is carried out in the following sequence:
a. Magazine rotation
(to index the empty pot where a large diameter tool is returned)
b. Tool change cycle
(large diameter tool is returned to the empty pot)
c. Magazine rotation
(to index the small diameter tool to be mounted to the spindle)
d. Tool change cycle
(small diameter tool is mounted to the spindle)
1. For face-contact tools (two-face constrained tools), face air blow is executed during
NOTE
tool change cycle (some models require timer setting for this type of air blow).
2. The 8-digit T code specification cannot be used for the technical-memory-random
specification ATC.
As explained above, the tools must be classified into large, medium, or small diameter tool to
avoid interference between tools stored in the magazine. Use the following to determine the tool
size group for individual tools.
• Large diameter > The maximum tool diameter with adjacent tools
The maximum diameter
of the tools to be used + Small diameter The maximum tool diameter
• ≤
2 with adjacent tools
The allowable maximum tool diameter of the tool that can be stored in a pot without
interference is indicated below. Set the tool in pot taking this maximum diameter into
consideration.
The diameter indicated above is the limit of the largest diameter of the tool including the
NOTE
tool holder.
<Determining tool size group>
With SH-403 (40-tool specification), the maximum tool diameter with adjacent tools is 80 mm.
Therefore, a tool exceeding 80 mm diameter is classified into the large diameter tool group.
Whether a tool is classified into the medium diameter group or small diameter group is determined
according to the diameter of the large diameter tool.
From the inequality above, it is known that tools of smaller than 40 mm diameter are classified into
the small diameter tool group.
Then, the range of each tool size group is determined as indicated below:
• Small diameter tools (T0001 to T0999) . . . . . . Tools of 40 mm diameter or smaller
• Medium diameter tools (T1000 to T8999) . . . . Tools of over 40 mm diameter and 80 mm
diameter or smaller
• Large diameter tools (T9000 to T9999) . . . . . . Tools of over 80 mm diameter and 120 mm
diameter or smaller
<Determining tool number>
Register the tool numbers which are determined according to the tool size group for the six tools.
The tools can be registered in the following two methods.
• When an empty pot can be set.
If it is possible to set empty pots in the magazine, leave the pots on both side of the pot
storing a large diameter tool empty or allocate these pots to small diameter tools. Set tool
number "0" when registering the tools, and the pot is set as an empty pot which is not used
in tool change operation.
• When an empty pot cannot be set.
If it is not possible to set an empty pot in the magazine, use the pots on both sides of the pot
storing a large diameter tool for storing small diameter tools.
<Program>
Execute the program indicated below, with T9001 (large diameter tool) mounted in the spindle.
O0001;
N1;
G90 G00 G54 X_ Y_ ;
G43 Z30.0 H1 S_ T2; . . . . . . . . . . . . . . Calling T2 (small diameter tool) to the tool change
position
M03;
Machining program
G91 G30 Z0 M05; . . . . . . . . . . . . . . . . . Second zero return of Z-axis; stopping the spindle rotation
G30 X0 Y0; . . . . . . . . . . . . . . . . . . . . . . Second zero return of X- and Y-axes
M01;
M06; . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing T9001 (large diameter tool) in the spindle with
T2 (small diameter tool)
N2;
G90 G00 G54 X_ Y_ ;
G43 Z30.0 H2 S_ T1003; . . . . . . . . . . . Calling T1003 (medium diameter tool) to the tool change
position
M03;
Machining program
G91 G30 Z0 M05; . . . . . . . . . . . . . . . . . Second zero return of Z-axis; stopping the spindle rotation
G30 X0 Y0; . . . . . . . . . . . . . . . . . . . . . . Second zero return of X- and Y-axes
M01;
M06; . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing T2 (small diameter tool) in the spindle with
T1003 (medium diameter tool)
F-8 T, S, AND F FUNCTIONS
In this method, the tool number is registered in relation with the pot number of the tool pot where
the tool is set. The tool and the pot are handled in a pair, therefore, the tool is always returned to
the same pot.
This means, if the tools stored in adjacent pots do not cause interference when storing them, it is
not necessary to worry about tool interference during automatic operation.
CAUTION When mounting tools, check the restrictions on tools thoroughly and make sure that the
arrangement of tools will not cause interference at tool changes. If you fail to observe
the restrictions on tools, tools may interfere with each other when tool changes are
performed, and this will cause damage to the machine.
1. With MH-403, SH-403 (60- and 120-tool specification), SH-503/40 and HVM630,
NOTE
although the tool is always returned to the magazine position where it was removed,
the pot position in the magazine changes as tool change cycle is executed (free-pot
fixed address method).
2. The allowable maximum tool diameter of the tool that can be stored in a pot without
interference is indicated below. Set the tools in pot taking this maximum diameter
into consideration.
3. For the U-axis control specification, since tool number 1 in pot number 1 is special
for the cap tool, this tool number must not be changed.
T, S, AND F FUNCTIONS F-9
On the TOOL ENTRY (detail information) screen, the tool numbers which are the same as
the pot numbers are set for the pot numbers.
Although the tool numbers can be changed, it is recommended to set the same tool
numbers to the pot numbers to facilitate setting as well as to avoid operation errors.
COMMAND <4-digit tool number specification>
T ; . . . . . . . . . . . . . . . . . . .Tool number
Programmable range: T1 to T9999
<8-digit tool number specification>
T ;. . . . . . . . . . .Tool number
Programmable range: T1 to T99999999
Machining program
G91 G30 X0 Y0 M05; . . . . . . . . . . . . . . 2nd zero return of X- and Y-axes; stopping the spindle
rotation
M01;
M06; . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing the spindle tool from T1 to T2
N2;
G90 G00 G54 X0 Y0;
G43 Z30.0 H2 S500 T3; . . . . . . . . . . . . Calling T3 tool to the tool change position
M03;
Machining program
G91 G30 X0 Y0 M05; . . . . . . . . . . . . . . 2nd zero return of X- and Y-axes; stopping the spindle
rotation
M01;
M06; . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing the spindle tool from T2 to T3
T, S, AND F FUNCTIONS F-11
2 S FUNCTION
COMMAND
S_ M03(M04);
• S. . . . . . . . . . . Specifies a spindle speed (min−1).
• M03(M04). . . . Specifies spindle rotation.
M03: Normal rotation.
M04: Reverse rotation.
Using S function
Ex.
O0001;
N1;
G90 G00 G54 X100.0 Y50.0;
G43 Z30.0 H1 S1000 T2;
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Rotating the spindle in the normal direction at 1000 min−1
1000V
N=
πD
πDN
V=
1000
1000 × 26
N= = 414 (min−1)
3.14 × 20
O0001;
N1;
G90 G00 G54 X80.0 Y70.0;
G43 Z30.0 H1 S414 T2;
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Rotating the spindle in the normal direction at 414 min−1
T, S, AND F FUNCTIONS F-13
3 F Function
COMMAND
F_ ; . . . . . . . . . . . . Specifies the feedrate of a tool. (mm/min)
1. The F function is used with G01, G02, G03, and the hole machining canned cycles.
2. Programmed cutting feedrate can be adjusted using the feedrate override dial on the
operation panel.
Note that the feedrate is fixed while the M49 command is executed in automatic
mode. In this case, it is not allowed to adjust the feedrate by using the feedrate
override dial.
3. Feedrate is calculated using the following formula.
F = fZN F: Feedrate (mm/min)
f: Feed per tooth (mm/tooth)
Z: Number of teeth (flutes)
N: Spindle speed (min−1)
4. Feedrate for tapping is calculated using the following formula.
F = PN F: Feedrate (mm/min)
P: Pitch (mm)
N: Spindle speed (min−1)
F-14 T, S, AND F FUNCTIONS
F = fZN
F: Feedrate (mm/min)
f: Feed per tooth (mm/tooth)
Z: Number of teeth (flutes)
N: Spindle speed (min−1)
Calculate the feedrate using the equation above.
F = 0.08 × 2 × 450 = 72 (mm/min)
F = PN
F: Feedrate (mm/min)
P: Pitch (mm)
N: Spindle speed (min−1)
Calculate the feedrate using the equation above.
F = 1.25 × 400 = 500 (mm/min)
T, S, AND F FUNCTIONS F-15
Using F function
Ex.
+Y
2 1
F200
160
F200
+X
−160 160
O0001;
N1;
G90 G00 G54 X160.0 Y160.0;
G43 Z30.0 H1 S440 T2;
M03;
G01 Z0 F3000; . . . . . . . . . . . . . . . . . . . At point 1, moving down to Z0 at feedrate of 3000
mm/min
X−160.0 F200; . . . . . . . . . . . . . . . . . . . Moving to point 2 at feedrate of 200 mm/min
N5;
G90 G00 G54 X160.0 Y160.0;
G43 Z30.0 H5 S1000 T6;
M03;
G99 G81 Z−20.0 R3.0 F50; . . . . . . . . . In the hole machining canned cycle G81 (spot drilling
cycle), cutting feed along the Z-axis is executed at
feedrate of 50 mm/min.
X−160.0;
If the G00 command is specified, axes are moved at a rapid traverse rate. An F command
is valid only in the cutting feed mode.
Even if the G00 mode is specified, the F value is not cleared or changed.
F-16 T, S, AND F FUNCTIONS
The rapid traverse rates of the individual axes are indicated below.
This chapter describes the D and H functions which are used to specify an offset number.
D code is used for cutter radius offset and tool position offset, while H code is used for tool
length offset.
CONTENTS
G : D AND H FUNCTIONS
1 D FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-1
2 H FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-4
D AND H FUNCTIONS G-1
1 D FUNCTION
1. On the TOOL OFFSET screen, the geometry and wear offset amount can be set
separately for the D function.
2. The cutter radius offset amount, when D0 is specified, is always zero.
When the power is turned on, the NC is in the same state as D0 is specified.
D AND H FUNCTIONS G-3
Using D function
Ex.
To machine the following shape 1 → 2 → 3 using a 10 mm dia. end mill.
+Y
80
3
40
2 1
+X
30 60 100 120
O0001;
N1;
G90 G00 G54 X150.0 Y120.0;
G43 Z30.0 H1 S440 T2;
M03;
Z−5.0;
G42 X120.0 Y40.0 D1; . . . . . . . . . . . . . 1
Executing the cutter radius offset function using the offset
amount D No. 1 on the TOOL OFFSET screen.
The cutter radius offset amount is the total amount of the
offset amount D (GEOMETRY) and offset amount D
(WEAR) set on the TOOL OFFSET
In this example, 5.000 mm + 0.015 mm = 5.015 mm is the
cutter radius offset amount.
G01 X60.0 F200; . . . . . . . . . . . . . . . . . 2
X30.0 Y80.0; . . . . . . . . . . . . . . . . . . . . . 3
G-4 D AND H FUNCTIONS
2 H FUNCTION
COMMAND
G43 Z_ H_ ;
G49;
• G43 . . . . . . . . Calls the tool length offset function.
• G49 . . . . . . . . Cancels the tool length offset mode.
• Z . . . . . . . . . . . Specifies the coordinate value for positioning in the Z-axis
direction.
• H. . . . . . . . . . . Specifies the offset number to be used.
1. If the G44 command is used for tool length offset, the sign for the tool length offset
amount should be reversed from the sign used with the G43 command.
Mori Seiki uses G43 instead of G44.
2. The tool length offset amount is always "0" when H0 is specified.
When the power is turned on, the NC is in the same state as H0 has been specified.
3. On the TOOL OFFSET screen, the geometry and wear offset amount can be set
separately for the H function.
D AND H FUNCTIONS G-5
Using H function
Ex.
O0001;
N1;
G90 G00 G54 X100.0 Y80.0;
G43 Z30.0 H1 S1000 T2; . . . . . . . . . . . Executing the tool length offset function using the offset
amount H No. 1 on the TOOL OFFSET screen.
The tool length offset amount is the total amount of the
offset amount H (GEOMETRY) and offset amount H
(WEAR) set on the TOOL OFFSET screen.
In this example, −150.000 mm + 0.135 mm = −149.865
mm is the tool length offset amount.
M03;
CHAPTER H
TOOL LIFE MANAGEMENT
FUNCTION (OPTION)
This chapter describes the tool life management function. The tool life management
function automatically selects an available tool in a registered tool group if the tool called in
the same group has been used to the preset life.
NOTE
1. The tool life management function is an optional function.
2. Two tool life management function types, tool life management type A and tool
life management type B, are available.
Differences between these two types are described in 1 "GENERAL".
3. It is not allowed to use type A and type B by switching over them.
CONTENTS
1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-1
2-1-3 Re-registration of Tool Life Data with All Group Deletion . . . . . . . . . . . . H-11
1 GENERAL
If a tool, registered as a group tool, has been used to the preset life (life-expiration status), the
function selects a spare tool in the same group. There are two tool life management function
types, type A and type B. Use of two types by switching over between the two types is not
allowed.
Type B differs from type A in the following points.
1. Setting range of tool usable life is expanded.
See the table given in <The tool usable life (tool life data)>.
3. If a value, other than "0", is set for REST CNT that is introduced newly, a signal
(life-expiration warning signal) is output to the PMC when the value of "SETTING -
CURRENT" reaches the set REST CNT value.
The tool usable life (tool life data) and the registration number of tools are shown below.
<The tool usable life (tool life data)>
TIMES
[Number of Times] TIME
Item (Number of Times the Tool [Length of Tool Use Time]
is Mounted to the Spindle (Tool Used Time)
or Used)
Unit Times Minutes
Type A 1 - 9999 times 1 - 4300 minutes
Setting range
Type B 1 - 999999 times 1 - 100000 minutes
Refer to 2-1-3 "Re-registration of Tool Life Data with All Group Deletion".
2. The correspondence between the "max. group number" and the "max. number of
tools/group" differs depending on the controllable number of tool life management
pairs.
TOOL LIFE MANAGEMENT FUNCTION (OPTION) H-3
This section describes the method of setting the tool life data.
The tool life data can be set manually using the TOOL LIFE screen, TOOL LIFE (DETAIL) screen,
etc. given below.
OFFSET
(OFFSET) [TOOL LIFE]
<Type A>
<Type B>
H-4 TOOL LIFE MANAGEMENT FUNCTION (OPTION)
<Contents of display>
On the TOOL LIFE screen, the information related with the tool life management function is
displayed for the registered tool groups. In one page of the TOOL LIFE screen, tool life
information is displayed for ten groups.
The display items are briefly explained below.
Item Contents
GROUP Display of tool group number
TYPE Display of the selected tool life counting condition for the individual groups
(TIMES, TIME)
SETTING Display of the initial setting of tool life data; setting is possible.
CURRENT Display of the current counted tool life data; setting is possible.
SELECT TOOL Display of the tool number of the tool presently used ("IN USE" status) in
each group, or the tool number of the tool to be called by the next T
command
REMAIN Display of the number of available tools ("USABLE" state) in each group,
excepting the tool assigned as "IN USE".
If "∗∗" is displayed in this column, it indicates that the number of remaining
available tools ("USABLE" state) in that group is "0".
GROUP NO. Display of a T command number that calls for a selected tool in the
(Type B) designated group; setting is possible. Setting is allowed in the range from
1 to 99999999.
REST CNT Display of the remaining tool life to output the life-expiration warning signal;
(Type B) setting is possible.
A value larger than the value set for "SETTING" cannot be set. If
NOTE
"0" is set, the life-expiration warning signal output function is
disabled.
TOOL LIFE MANAGEMENT FUNCTION (OPTION) H-5
<Key operation>
The cursor control keys are used to move the cursor. The vertical arrow
symbol keys move the cursor up and down within the selected column and the horizontal
arrow symbol keys move the cursor right and left across the columns in the range from
"SETTING" to "CURRENT" (Type A) or from "GROUP NO." to "REST CNT" (Type B).
Inputting of the data is possible at the field where the cursor exists.
2. Page selection keys
The page selection keys and are used to change the display page (range of
display tool groups).
The present page is displayed at the upper right area of the screen.
The function of the soft-keys are explained below.
Soft-keys Functions
[GROUP When this soft-key is pressed after inputting the group number to be
SEARCH] searched, the cursor moves to the specified group.
[GROUP When this soft-key is pressed, all data of the tool group on which the cursor
DELETE] is located is cleared.
[SKIP] To skip the "IN USE" tool, press this soft-key. The "IN USE" tool in the
cursor located group is skipped.
If the cursor is located at a group for which the "IN USE" tool is
NOTE
not displayed, the skip processing is not executed.
[TOOL DETAIL] When this soft-key is pressed, the TOOL LIFE (DETAIL) screen of the
present cursor located group is displayed.
For details of the TOOL LIFE (DETAIL) screen, refer to page
H-7 (2-1-2).
H-6 TOOL LIFE MANAGEMENT FUNCTION (OPTION)
1) Move the cursor to the data input field using the cursor control keys.
2) Input the data by data entry keys.
OFFSET
(OFFSET) [TOOL LIFE] [TOOL DETAIL]
<Type A>
<Type B>
<Contents of display>
On the TOOL LIFE (DETAIL) screen, tool number (SELECT TOOL), status (COND.) and H and D
codes (H, D) are displayed for the spare tools registered to the specified tool group. The tool life
related data, "TYPE", "SETTING", "CURRENT", "GROUP NO." (only for Type B) and "REST CNT"
(only for Type B), is also displayed for the displayed tool group.
On the TOOL LIFE (DETAIL) screen, one display page shows information of the tools for
the allowable maximum number of tools per group. For the maximum number of tools/
group, refer to <Max. number of tool groups and max. number of tools> on page H-1 (1).
H-8 TOOL LIFE MANAGEMENT FUNCTION (OPTION)
<Key operation>
The cursor control keys are used to move the cursor. The cursor moves
vertically in the ENTRY column and horizontally in the SELECT TOOL, H, and D columns.
Data can be input at the cursor located data field.
2. Page selection keys
The display page (tool group) is changed by pressing the page selection keys and .
TOOL LIFE MANAGEMENT FUNCTION (OPTION) H-9
3. Soft-keys
The functions of soft-keys are explained below.
Soft-keys Functions
[GROUP When this soft-key is pressed after inputting the group number to be
SEARCH] searched, the tool life management detail data of the specified group is
displayed.
[TYPE SET] This soft-key is used to change the tool life conditions.
[GROUP When this soft-key is pressed, the data of the group presently displayed is
DELETE] cleared.
[NEW GROUP] When this soft-key is pressed after inputting a new group number, the
specified group number is registered and tool number of the first tool is set.
To display the [ALL CLEAR], [GROUP DELETE], and [NEW GROUP] soft-keys, press
NOTE
the menu selection key [>].
H-10 TOOL LIFE MANAGEMENT FUNCTION (OPTION)
3. If a number in the range from 1 to 9899 is input for SELECT TOOL, the tool state is
changed to "USABLE".
4. If "0" is input for SELECT TOOL, the tool number is cleared.
1) Move the cursor to the SELECT TOOL, H, or D column of the tool for which the COND.
should be changed by pressing the cursor control keys.
2) Press the [COND. ALTER] soft-key. The soft-key display changes.
3) Press the soft-key of the required tool state ([USABLE], [LIFE], [SKIP]).
The state of the cursor specified tool state is changed to the selected state.
1. If the tool state is changed to "USABLE", the tool use data (TIMES or TIME) is
NOTE
initialized.
2. If the tool state is changed to "LIFE", the tool use data (TIMES or TIME) is changed
to the same value as the SETTING value.
4) Press the [CANCEL] soft-key.
The screen returns to the previously displayed screen.
When the state is changed, the screen automatically returns to the previous screen.
1. When changing the state, it is allowed to change the state only to "USABLE" or
NOTE
"LIFE". For the tool for which the state is "IN USE", it is not allowed to change the
state.
2. For the tool group in which all tools have been used to the set life, it is not allowed to
change the state. To restore the operation after changing the tools, press the
[GROUP RESET] soft-key to initialize the tool data.
TOOL LIFE MANAGEMENT FUNCTION (OPTION) H-11
Tool life data can be re-registered using a program after all the existing tool life data has been
deleted.
COMMAND
G10 L3;
P_ L_ ;
T_ H_ D_ ;
(T_ H_ D_ ;)
P_ L_ ;
T_ H_ D_ ;
G11;
• G10 . . . . . . . . Starts tool life data registration.
• L3 . . . . . . . . . . Selects initialization mode at tool registration (all groups).
• P. . . . . . . . . . . Specifies a tool group number.
• L . . . . . . . . . . . Specifies tool life data.
• T . . . . . . . . . . . Specifies a tool number.
• H. . . . . . . . . . . Specifies the tool offset designation code (H code).
• D. . . . . . . . . . . Specifies the tool offset designation code (D code).
• G11. . . . . . . . . Ends tool life data registration.
H-12 TOOL LIFE MANAGEMENT FUNCTION (OPTION)
This section describes the method of specifying the tool life management function in the machine
program.
In response to the tool group command (T command), the function calls one of the tools registered
to the specified tool group and manages the tool life data of the called tool.
WARNING
When the NC is reset by such as pressing the RESET (RESET) key, T codes
designating the tool life management groups are canceled.
If a program is executed although a tool life management group
designation T code has been canceled, interference occurs between the
tool and the workpiece since the tool length offset and tool radius offset
functions cannot be executed correctly, causing serious injuries or
damage to the machine.
After resetting the NC, always execute the T code that designates a tool
life management group.
In a tool group, tools are called in the order they were registered.
NOTE
T99 ;
• . . . . . . . . Specifies a group number.
Range: 01 - 99 (only registered groups)
2. Fixed address shorter route access method (No. 6810 = 1000)
Technical memory random method with 8-digit tool number specification (No. 6810
= 1000)
T1 ;
• . . . . . . . Specifies a group number.
Range: 001 - 999 (only registered groups)
1. NH5000 (30-, 40-, 50-tool specification) uses the technical memory random method
NOTE
for magazine operations, however, the format of T commands differs between 4-digit
and 8-digit specifications. T commands are specified as "T99 ;" for 4-digit
specification and as "T1 ;" for 8-digit specification. 8-digit specification is set
for NH5000 as the default.
TOOL LIFE MANAGEMENT FUNCTION (OPTION) H-13
2. T numbers larger than the value set for NC parameter No. 6810 are recognized as
NOTE
the group number of the tool life management function. If the setting for this
parameter is changed, specify a group number command (T command) according to
the expression shown below.
Group number command (T command)
= Setting at NC parameter No. 6810 + Group number
COMMAND <Type B>
T_ ;
• T . . . . . . . . . . . Arbitrary tool group numbers registered to the individual tool
groups.
Range: 1 - 99999999 (Max. 8 digits)
If a tool number, belonging to none of registered tool groups, is specified, the tool is not
NOTE
controlled by the tool life management function.
H-14 TOOL LIFE MANAGEMENT FUNCTION (OPTION)
Specify "H99;" to set the tool length offset data in the state the tool life management function is
used.
When "H99;" is executed, the H code registered as the tool life management data of the tool
mounted in the spindle presently is selected.
To set the cutter radius offset data, specify "D99;".
When "D99;" is executed, the D code registered as the tool life management data of the tool
mounted in the spindle presently is selected.
Specify "H99;" or "D99;" after the M06 command. If an H or a D number other than "H99;"
NOTE
or "D99;" is specified after M06, an H or a D code of the tool life management data is not
selected.
Machining program
TOOL LIFE MANAGEMENT FUNCTION (OPTION) H-15
<Counting the tool life by the number of times the tool has been used for cutting (TIMES)>
1. The TIMES data is counted "1" for the tool groups that have been called during the
execution of a machining program (from the cycle start to the end of the program (NC is
reset)). Counter data increases "1" even if the same tool group has been called more than
one time during the execution of a machining program.
2. The function checks whether or not a tool group has been called and it does not check if the
called tool has been used for machining.
3. The maximum value for "SETTING" is 9999 times (Type A) or 999999 times (Type B).
<Counting the tool life by the length of time (TIME)>
1. In this mode, the length of time the tool has been used in the cutting mode (G01, G02, G03,
etc.) is counted in units of 4 seconds. Length of time less than 4 seconds, spent at changing
tool groups, etc., is not counted.
2. The length of time spent in single-block stop, feed hold, rapid traverse, dwell and waiting for
the completion of commands during tool use is disregarded.
3. Tool use time is not counted in the machine lock state, auxiliary function lock state, and dry
run state.
4. The length of time is set and displayed in units of minutes.
5. The maximum value for "SETTING" is 4300 minutes (Type A) or 100000 minutes (Type B).
H-16 TOOL LIFE MANAGEMENT FUNCTION (OPTION)
5 SKIP COMMAND
The skip command skips the presently selected tool in the present group and updates the selected
tool to the next one.
COMMAND
M66; . . . . . . . . . . . Tool skip ON
Skips the presently selected tool in the present group.
TOOL LIFE MANAGEMENT FUNCTION (OPTION) H-17
This section describes the new tool selection flag and tool life expired flag.
1. If a new tool is selected in the specified tool group, the new tool selection flag is set ("1" is
set) at the same time the tool group command (T command) is executed.
2. This flag can be used to execute the automatic measuring of the offset data of the newly
called tool, for example.
3. The new tool selection flag remains valid until the next T command is specified or the NC is
reset.
4. The new tool selection flag is output to system variable #1003 of the custom macro.
1. If all tools in the specified tool group have been used to the life, the tool life expired flag is set
("1" is set).
The tool life expired flag cannot be reset to "0" unless the tool life expired state of all the
NOTE
tools in that group is cleared by an operation at the screen.
2. The tool life expired flag is output to system variable #1002 of the custom macro.
3. The tool life expired flag is output to PMC, too. The PMC executes the following processing
when it receives the tool life expired flag.
• Displays the message, indicating that tool life has been expired.
• Prohibits cycle start of automatic operation (set for PC parameter "K12.3").
It is possible to set the timing at which the life-expiration warning signal is output for "REST CNT".
The value to be set for this item represents the remaining length of time before the presently used
tool is change to a new tool.
When the value of ["SETTING" - "CURRENT"] reaches the value set for "REST CNT", the
life-expiration warning signal is output to the PMC.
CHAPTER I
B FUNCTIONS
This chapter describes the B function which controls the rotation of the table.
CONTENTS
I : B FUNCTIONS
1 B FUNCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-1
1 B FUNCTION
The B function controls the table rotation in the automatic operation. When table rotation angle is
specified with address B, the corresponding axis (B) is unclamped, indexed to the specified
angular position and clamped.
COMMAND
B_.; . . . . . . . . . . . . Specifies table rotation angle.
CAUTION Pay sufficient care when rotating the table so that the workpiece and the fixture on the
table will not cause interference. If the table is rotated carelessly, it will cause damage
to the machine.
13. With MH-503, 503/U, 633, and 633/U, an index command in units of 0.001° can be
NOTE
executed even when the arbitrary angle index specification is not selected. In this
case, however, index accuracy is not high since indexing is made in the simplified
positioning mode.
14. With the HVM series, the arbitrary angle index (0.001°) specification is standard and
simultaneous 4-axis control possible.
Using B function
Ex.
O0001;
N1;
G90 G00 G54 B0;. . . . . . . . . . . . . . . . . Indexing the B-axis at 0° position
X0 Y0;
G43 Z30.0 H1 S400 T2;
M03;
Machining program
Machining program
I-4 B FUNCTIONS
2 ABSOLUTE/INCREMENTAL COMMANDS
1. In the absolute mode, the B-axis position reached by the machine zero return
NOTE
operation is taken as the 0° position if the work coordinate system is not set for the
B-axis.
2. In the absolute mode, no B-axis movement occurs if the same position is specified.
G90 B90.0; . . . . . Rotation of B-axis to 90° position
B90.0; . . . . . . . . . Since the specified position is the same position as specified in
the previous block, the B-axis does not move.
3. In the absolute mode, if a B-axis is first specified in the negative rotation range and
then if the same position is specified in the positive rotation range, the B-axis does
not move. Similarly, if the same position is specified in the positive rotation range
first and then in the negative rotation range, the B-axis does not move.
G90 B−270.0; . . . Rotation of B-axis to −270° position
B90.0; . . . . . . . . . Since the specified position is the same position as specified in
the previous block, the B-axis does not move.
4. With the 1° index specification, B-axis rotation is controlled so that the target position
is reached along the shorter path. Therefore, if "G90 B270.0;" is specified in the
absolute programming mode, the B-axis rotates 90° in the negative direction instead
of rotating 270° in the positive direction.
In the absolute mode, it is recommended to specify the B-axis position in the positive
rotation range to avoid errors.
B FUNCTIONS I-5
3 APC POSITION
Pallet change position (APC position) and the programming for positioning at the APC position are
described below.
<SH series, NH5000, NH4000>
Z-axis is at the second zero point and B-axis is at the machine zero point.
Z-axis is at the machine zero point or the second zero point, X-axis is at the third zero point, and
B-axis is at the machine zero point.
G91 G28(G30) Z0 M05; . . . . . . . . . . . . Machine zero return or second zero return of Z-axis
G30 P3 X0; . . . . . . . . . . . . . . . . . . . . . . Third zero return of X-axis
G28 B0;. . . . . . . . . . . . . . . . . . . . . . . . . Machine zero return of B-axis
M02(M30); . . . . . . . . . . . . . . . . . . . . . . Pallet change and work number search
<HVM630>
Z-axis is at the machine zero point, X-axis is at the machine zero point or the second zero point,
and B-axis is at the machine zero point.
Z-axis is at the machine zero point or the second zero point and both X- and B-axes are at the
machine zero point.
G91 G28(G30) Z0 M05; . . . . . . . . . . . . Machine zero return or second zero return of Z-axis
G28 X0;. . . . . . . . . . . . . . . . . . . . . . . . . Machine zero return of X-axis
G28 B0;. . . . . . . . . . . . . . . . . . . . . . . . . Machine zero return of B-axis
M62; . . . . . . . . . . . . . . . . . . . . . . . . . . . A-pallet loading
G91 G28(G30) Z0 M05; . . . . . . . . . . . . Machine zero return or second zero return of Z-axis
G28 X0;. . . . . . . . . . . . . . . . . . . . . . . . . Machine zero return of X-axis
G28 B0;. . . . . . . . . . . . . . . . . . . . . . . . . Machine zero return of B-axis
M63; . . . . . . . . . . . . . . . . . . . . . . . . . . . A-pallet unloading
M02(M30); . . . . . . . . . . . . . . . . . . . . . . Work number search
I-6 B FUNCTIONS
<MH-1003 (B-pallet)>
Z-axis is at the machine zero point or the second zero point, X-axis is at the third zero point, and
B-axis is at the machine zero point.
G91 G28(G30) Z0 M05; . . . . . . . . . . . . Machine zero return or second zero return of Z-axis
G30 P3 X0; . . . . . . . . . . . . . . . . . . . . . . Third zero return of X-axis
G28 B0;. . . . . . . . . . . . . . . . . . . . . . . . . Machine zero return of B-axis
M60; . . . . . . . . . . . . . . . . . . . . . . . . . . . B-pallet loading
G91 G28(G30) Z0 M05; . . . . . . . . . . . . Machine zero return or second zero return of Z-axis
G30 P3 X0; . . . . . . . . . . . . . . . . . . . . . . Third zero return of X-axis
G28 B0;. . . . . . . . . . . . . . . . . . . . . . . . . Machine zero return of B-axis
M61; . . . . . . . . . . . . . . . . . . . . . . . . . . . B-pallet unloading
M02(M30); . . . . . . . . . . . . . . . . . . . . . . Work number search
<ULTIMILL H3000>
4 ALARM TABLE
If an alarm occurs with a B command for the rotary table of 1° index specification, a message is
displayed. When an alarm message is displayed, locate the cause of the alarm by using the alarm
table below.
Macro
Program
Message Description
Alarm
No.
3001 B COMMAND ERROR A B command value of other than an
integer (multiple of 1°) is specified.
3002 OTHER AXIS ARE COMMANDED A numerically controlled axis (X, Y, Z) is
specified with a B command in the same
block.
3003 M WAS COM WITH B When a B code is read during the execution
of a hole machining canned cycle, an M
code is specified with the B code in the
same block.
3004 COM ERR K OR L NOT 1 OR 0 When a B code is during the execution of a
hole machining canned cycle, other than
K1, K0, L1, or L0 is specified for the number
of repetitions.
3005 G-CODE COMMAND ERROR A G code other than those indicated below
is specified.
G00, G10 G17 - G19, G27 - G30, G30.1,
G40, G50.1, G51.1, G52, G54 - G59, G60,
G80, G90, G91, G92, G92.1, G98, G99
3006 IMPROPER ADDRESS An address that cannot be used is
specified.
Other than G, B, K, L, M, S, T, X, Y, Z, P, F
3007 B-COMMAND OUT OF RANGE The specified B-axis rotation target position
is outside the travel range.
3008 INDEX COM NOT IN G00 MODE A B-axis rotation command is specified in
other than the G00 mode.
3009 WORK OFFSET DATA ERROR The B-axis work offset data of the
coordinate system that is used or specified
is not a multiple of "1".
3010 PARAMETER ERROR There is an error in parameter setting.
Although the 4th-axis call is not prohibited
by the parameter, the setting of the index
parameter is on.
CHAPTER J
A FUNCTIONS
This chapter describes the A function which specifies the tilting angle of the table.
J : A FUNCTIONS
1 A FUNCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J-1
1 A FUNCTION
Following explains the functions related to the tilting axis of the table.
A function specify the tilting angle and the rotation angle of the table by addresses A.
COMMAND
(M69;) . . . . . . . . . A-axis unclamp.
G00 A_.; . . . . . . Specifies table tilting angle in the rapid feed mode.
CAUTION Pay sufficient care when rotating or tilting the table so that the workpiece or the fixture
on the table will not cause interference. If interference occurs due to table rotation or
tilting, it will cause machine damage.
The M68 and M69 commands are used to clamp and unclamp the A-axis.
By clamping the A-axis, rigidity during cutting can be increased for the operation to be preformed
without controlling the A-axis. To operate the A-axis, unclamp it before executing an A-axis
command.
COMMAND
M68; . . . . . . . . . . A-axis clamp
Before specifying an A-axis rotation command, unclamp the A-axis by specifying M69.
NOTE
This chapter describes the programming procedure using several example programs.
CONTENTS
K : EXAMPLE PROGRAMS
1) Drawing
a) Study the fixture and chucking method
b) Determine the machining method and tooling
c) Determine the workpiece zero point
Offset Number
Spindle
Tool Feedrate Tool Length Cutter Radius
Speed
Process Number Tool Name (S) (F) Offset Offset
(T) (mm/min)
(min−1) Number Number
(H) (D)
N1 1 Center drill 1500 100 1
2 EXAMPLE PROGRAMS
A variety of machining methods and programming methods are used when machining workpieces.
This section describes programs which will be used frequently in actual production.
Study these example programs and then create programs which better suit your actual production
requirements. Note that the programming methods and values shown in the example programs
may not apply to your specific needs.
WARNING 1. Workpiece materials and shapes vary widely among machine users.
Mori Seiki cannot predict the workpiece clamping method, spindle
speed, feedrate, depth of cut, and width of cut, etc., that will be
required in each case and it is therefore the user's responsibility to
determine the appropriate settings.
If you have difficulty determining these conditions, consult the
fixture and tool manufacturers. Machining under inappropriate
machining conditions can cause the workpiece or cutting tool to fly
out during machining, causing serious injuries or damage to the
machine. It will also adversely affect machining accuracy.
2. The programs given in this section are not applicable to all types of
machining centers. Programs must be written while taking the
performance of the machine into consideration and be executed with
due consideration given to safety. If the machine's capacity is not
taken into account when writing the program, the workpiece or
cutting tool may fly out during machining, causing serious injuries
or damage to the machine.
1. The program given below is for SH-503. For MH series (includes U-axis control
NOTE
specification), SH-403 and 633, since the tool change position differs from that of
SH-503, the tool change position should be changed when reading the programs.
Since technical random method is used for the 30 or 40-tool specification of SH
series and NH5000, tools should be classified into large-, medium-, and
small-diameter tools according to the diameter of the tools to be used; tool numbers
should be changed according to the tool classification.
For the tool change position, refer to page B-39 (11) and for the tool number,
refer to page F-4 (1-1).
2. In the case of U-axis control specification, tool No. 1 is specially used for the cap
tool. Therefore, "T1" cannot be used for the tool number in the examples of program
given below. Use a tool number other than T1.
EXAMPLE PROGRAMS K-3
2-1 Hole Machining Canned Cycle Program (G81, G76, G84) and Sub-program
(M98, M99)
+0.03
φ 20 0
6 − M10 P = 1.5
Through-hole
Prepared hole 8.5 dia.
50
200
50
50
300
1C 0.5C
30
<Procedure>
+Y
+X
(X0, Y0)
Z0
Fixture
Plate
Workpiece
Fixture
Reference block
4 clamping plates
Reference block
K-4 EXAMPLE PROGRAMS
Machining Tool
Tool Name Portions to Be Machined
Order Number
25 mm dia. chamfering
N5 T5 400 80 5
mill
Point Z (Z−5.0)
Point R
(Z3.0) Initial point
(Z50.0)
Z0
Z0
G43 Z50.0 H3 S440;. . . . . . . . . . . . . . . Positioning at Z50.0 at a rapid traverse rate while Z-axis
position is offset by offset data set for tool length offset
number 3
Specifying spindle speed of 440 min−1
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction
(G98) G81 Z−38.0 R3.0 F90; . . . . . . . . Executing the spot drilling cycle (G81)
• Z−38.0 . . Z coordinate value of the point Z
• R3.0 . . . . Z coordinate value of the point R
• F90 . . . . . Feedrate of 90 mm/min
G80 G91 G30 X0 Y0 M05; . . . . . . . . . . Canceling hole machining canned cycle
Second zero return of X- and Y-axes and spindle stops
rotating.
M01; . . . . . . . . . . . . . . . . . . . . . . . . . . . Optional stop
M06; . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool change between T3 in the spindle and T4
(G98) G84 Z−32.0 R10.0 F375 K0; . . . Executing the tapping cycle (G84)
Feedrate
= Pitch (mm) × Spindle speed (min−1)
= 1.5 × 250 = 375 mm/min
M98 P2; . . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0002
Tapping cycle (G84) is executed at the positions specified
in O0002.
G80 G91 G30 X0 Y0 M05; . . . . . . . . . . Canceling hole machining canned cycle
Second zero return of X- and Y-axes and spindle stops
rotating.
M01; . . . . . . . . . . . . . . . . . . . . . . . . . . . Optional stop
M06; . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool change between T6 in the spindle and T7
/(G98) G76 Z−5.0 R3.0 Q0.5 F150; . . . Executing the fine boring cycle (G76)
• Z−5.0 . . . Z coordinate value of the point Z
• R3.0 . . . . Z coordinate value of the point R
• Q0.5 . . . . Shift amount of 0.5 mm (+X direction)
• F150 . . . . Feedrate of 150 mm/min
Sub-program (O0002)
Cutting allowance is 5 mm
φ 90
200
200
φ 100
Material: Cast iron (JIS FC25)
20
K-12 EXAMPLE PROGRAMS
<Procedure>
1) Determine the workpiece zero point and the workpiece clamping method.
110
10
Z0
4 clamping plates
3 positioning pins
Machining Tool
Tool Name Portions to Be Machined
Order Number
*
NOTE For the cutter radius offset amount, set 12.5 mm for (D) GEOMETRY of No. 1 on the
TOOL OFFSET screen.
EXAMPLE PROGRAMS K-13
+Y
(0, 30.0)
4
5
+X
(0, 0) (20.0, 0) (50.0, 0)
2
1
(0, −30.0)
Mount the workpiece shown in the previous section 2-2 on each face of the angle plate and create
the program as follows.
1) Determine the workpiece zero point and workpiece clamping method.
Angle plate
20
10
50
Z0 Clamping plates
X0, Y0
EXAMPLE PROGRAMS K-15
Sub-program (O0101)
+Y
(0, 30.0)
4
5
+X
(0, 0) (20.0, 0) (50.0, 0)
2
1
(0, −30.0)
2-4 Facing, Side Cutting (G42), Hole Machining Canned Cycle (G81, G73, G76)
5 - φ 28.5
150 150 Depth 25 mm
100
300
100
400
25
Z0
EXAMPLE PROGRAMS K-19
Machining Tool
Tool Name Portions to Be Machined
Order Number
N11;
G90 G55 G00 B180.0; . . . . . . . . . . . . . Selecting work coordinate system G55
Indexing B-axis to 180° position
M98 P52; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0052
M98 P51; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0051
Tool change between T1 in the spindle and T2
N21;
G90 G54 G00 B0; . . . . . . . . . . . . . . . . . Selecting work coordinate system G54
Indexing B-axis to 0° position
M98 P53; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0053
M98 P51; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0051
Tool change between T2 in the spindle and T3
N31;
G90 G55 G00 B180.0; . . . . . . . . . . . . . Selecting work coordinate system G55
Indexing B-axis to 180° position
M98 P54; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0054
M98 P51; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0051
Tool change between T3 in the spindle and T4
EXAMPLE PROGRAMS K-21
N41;
G90 G54 G00 B0; . . . . . . . . . . . . . . . . . Selecting work coordinate system G54
Indexing B-axis to 0° position
M98 P55; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0055
M98 P51; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0051
Tool change between T4 in the spindle and T5
N51;
G90 G55 G00 B180.0; . . . . . . . . . . . . . Selecting work coordinate system G55
Indexing B-axis to 180° position
M98 P56; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0056
M98 P51; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0051
Tool change between T5 in the spindle and T6
N61;
G90 G54 G00 B0; . . . . . . . . . . . . . . . . . Selecting work coordinate system G54
Indexing B-axis to 0° position
M98 P57; . . . . . . . . . . . . . . . . . . . . . . . Calling sub-program O0057
G91 G28 X0 Y0 Z0 M05; . . . . . . . . . . . Machine zero return of X-, Y-, and Z-axes and spindle
stops rotating.
M30; . . . . . . . . . . . . . . . . . . . . . . . . . . . Program end
K-22 EXAMPLE PROGRAMS
Sub-program 1 (O0051)
Sub-program 2 (O0052)
Sub-program 3 (O0053)
Sub-program 4 (O0054)
Sub-program 5 (O0055)
Sub-program 6 (O0056)
O0056 (28.5 BORING SUB);
G90 G00 X0 Y0; . . . . . . . . . . . . . . . . . . Positioning of X- and Y-axes at the workpiece zero point
at a rapid traverse rate
G43 Z30.0 H5 S1000 M08;. . . . . . . . . . Positioning at Z30.0 at a rapid traverse rate while Z-axis
position is offset by offset data set for tool length offset
number 5
Specifying spindle speed of 1000 min−1 and starting
coolant discharge
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction
G99 G76 Z−25.0 R2.0 Q0.5 F80; . . . . . Executing the fine boring cycle (G76)
Relief amount 0.5 mm in the +X direction
Sub-program 7 (O0057)
O0057 (SUB);
G90 G00 X240.0 Y250.0; . . . . . . . . . . . Positioning of X- and Y-axes at X240.0, Y250.0 at a rapid
traverse rate
G43 Z30.0 H6 S250 M08;. . . . . . . . . . . Positioning at Z30.0 at a rapid traverse rate while Z-axis
position is offset by offset data set for tool length offset
number 6
Specifying spindle speed of 250 min−1 and starting
coolant discharge
M03; . . . . . . . . . . . . . . . . . . . . . . . . . . . Starting the spindle in the normal direction
Z−40.0;
G42 Y150.0 D32; . . . . . . . . . . . . . . . . . Specifying the cutter radius offset number 32
G01 X−200.0 F50;
Y−150.0;
X200.0;
Y200.0;
G40 G00 X240.0 Y250.0; . . . . . . . . . . . Canceling cutter radius offset
Z200.0 M09; . . . . . . . . . . . . . . . . . . . . . Stopping coolant discharge
M99; . . . . . . . . . . . . . . . . . . . . . . . . . . . Sub-program end (Returning to main program)
INDEX
Page
A
A FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J-1
Absolute Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-25
ABSOLUTE/INCREMENTAL COMMANDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-4
Accurate Circle Cutting (Cutter Radius Offset) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-11
Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-13
AFM2400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-19
ALARM TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-7
APC POSITION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-5
AXIS CONTROL AND DIRECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-15
B
B FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-1
BASIC PATTERN OF PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-31
Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-14
C
Calculating the feedrate (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-14
Calculating the feedrate (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-14
Calculating the spindle speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-12
Calculating the wall direction (blank workpiece shape) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-13
Cancel Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-9
CAUTIONS FOR CREATING A PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-32
CHANGING OFFSET BY SWITCHING PRE-LOAD LEVELS . . . . . . . . . . . . . . . APPENDIX B-1
Changing the Cutter Radius Offset Amount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-14
Changing the Pre-load Level Switching Offset by G10 . . . . . . . . . . . . . . . . . . . . APPENDIX B-3
Check Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
COUNTING THE TOOL LIFE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-15
Cutter radius offset in the XY plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-2
D
D FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-1
Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-13
E
EXAMPLE PROGRAMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-20, K-2
Expressing Axis Movement in Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-20
-i-
INDEX
Page
F
F Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-13
Facing, Side Cutting (G42), Hole Machining Canned Cycle (G81, G73, G76) . . . . . . . . . . . K-18
Fixed Address Shorter Route Access Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-8
Flow of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-5
FLOW UNTIL THE PRODUCT IS COMPLETED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-5
FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-30
G
G CODE LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1
G00 POSITIONING THE TOOL AT A RAPID TRAVERSE RATE . . . . . . . . . . . . . . . . . . . . B-28
G01 MOVING THE TOOL ALONG A STRAIGHT PATH AT A CUTTING FEEDRATE . . . . B-30
G02, G03 CUTTING HELIX (HELICAL INTERPOLATION) . . . . . . . . . . . . . . . . . . . . . . . . . B-48
G02, G03 MOVING THE TOOL ALONG A CIRCULAR ARC
AT A CUTTING FEEDRATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-32
G02.2, G03.2 CUTTING SPIRAL (INVOLUTE INTERPOLATION) . . . . . . . . . . . . . . . . . . . . B-55
G04 SUSPENDING PROGRAM EXECUTION (DWELL) . . . . . . . . . . . . . . . . . . . . . . . . . . . B-37
G08 LOOK AHEAD CONTROL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-113
G09 ACCURATELY POSITIONING AT THE END POINT OF LINEAR MOVEMENT . . . . . B-59
G10 CHANGING THE TOOL OFFSET AMOUNT WITH PROGRAM COMMAND . . . . . . . . B-62
G10 CHANGING WORK COORDINATE SYSTEM BY PROGRAMMED COMMAND . . . . . B-16
G17, G18, G19 SELECTING PLANE FOR MACHINING . . . . . . . . . . . . . . . . . . . . . . . . . . . B-24
G22, G23 SETTING THE TOOL ENTRY INHIBITED AREA . . . . . . . . . . . . . . . . . . . . . . . . . B-63
G28, G30 RETURN THE AXES TO THE MACHINE ZERO POINT,
OR SECOND (THIRD OR FOURTH) ZERO POINT AUTOMATICALLY . . . . . . . . . . . . . . . B-39
G31 SKIP FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-66
G40, G41, G42 CUTTER RADIUS OFFSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-46
G43, G44, G49 TOOL LENGTH OFFSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-19
G45 - G48 TOOL POSITION OFFSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-70
G50, G51 PROGRAMMABLE MIRROR IMAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-76
G50, G51 REDUCING AND ENLARGING THE SHAPE (SCALING) . . . . . . . . . . . . . . . . . . B-73
G50.1, G51.1 PROGRAMMABLE MIRROR IMAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-80
G52 SETTING THE LOCAL COORDINATE SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-83
G53 SELECTING THE MACHINE COORDINATE SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . B-85
G54 - G59 SETTING THE WORK COORDINATE SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . B-9
G54, G54.1 SETTING THE ADDITIONAL WORK COORDINATE SYSTEM . . . . . . . . . . . . B-86
G60 UNI-DIRECTIONAL POSITIONING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-89
G65, G66, G66.1, G67 USING MACRO PROGRAMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-92
G68, G69 COORDINATE SYSTEM ROTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-101
G72.1 COPY BY ROTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-105
G72.2 COPY BY SHIFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-109
-ii-
INDEX
Page
G
G73 - G89 HOLE MACHINING CANNED CYCLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-41
G73 HIGH-SPEED DEEP HOLE DRILLING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-30
G74 REVERSE TAPPING CYCLE (LEFT-HAND THREAD) . . . . . . . . . . . . . . . . . . . . . . . . . D-40
G76 FINE BORING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-71
G80 HOLE MACHINING CANNED CYCLE CANCEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-16
G81 SPOT DRILLING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-18
G82 COUNTER BORING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-20
G83 DEEP HOLE DRILLING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-32
G84 TAPPING CYCLE (RIGHT-HAND THREAD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-38
G85 BORING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-22
G86 BORING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-24
G87 BACK BORING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-76
G88 BORING CYCLE (MANUAL TOOL EXTRACTION) . . . . . . . . . . . . . . . . . . . . . . . . . . . D-26
G89 BORING CYCLE (DWELL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-28
G90, G91 DIMENSIONING MODES
(ABSOLUTE COMMANDS AND INCREMENTAL COMMANDS) . . . . . . . . . . . . . . . . . . . . . . B-6
G300 Arc (Equal Intervals) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-2
G301 Arc (Random Intervals) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-5
G302 Line-at-angle (Equal Intervals) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-8
G303 Line-at-angle (Random Intervals) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-11
G304 Rectangle/Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-14
G305 Staggered Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-18
G306 Circle Cutting Inside (Finishing) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-23
G307 Circle Cutting Outside (Finishing) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-26
G308 Frame Cutting Inside (Finishing) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-29
G309 Frame Cutting Outside (Finishing) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-33
GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-1, E-1, H-1
GENERAL CAUTIONS ON THE OFFSET FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-11
Group Command (T Commands) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-12
H
H FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-4
Hole Machining Canned Cycle Program (G81, G76, G84) and Sub-program (M98, M99) . . . K-3
HVM630 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-18
HVM630, AFM2400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-23
-iii-
INDEX
Page
I
If a Wall Lies at the End of Cutting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-11
Incremental Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-26
Inputting a Decimal Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-33
INPUTTING THE PROGRAM TO THE MACHINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
M
M CODE LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
M00, M01 PROGRAM STOP AND OPTIONAL STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7
M02, M30 PROGRAM END, PROGRAM END AND REWIND . . . . . . . . . . . . . . . . . . . . . . . C-10
M03, M04, M05 SPINDLE START AND STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-12
M06 TOOL CHANGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-14
M07, M55, M09 OIL SHOT START AND STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-26
M08, M09 COOLANT DISCHARGE ON/OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-16
M19 SPINDLE ORIENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-43
M20 AUTOMATIC POWER SHUTOFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-24
M29 G74, G84.3 DEEP HOLE REVERSE RIGID TAPPING CYCLE
(LEFT-HAND THREAD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-66
M29 G74, G84.3 HIGH-SPEED DEEP HOLE REVERSE RIGID TAPPING CYCLE
(LEFT-HAND THREAD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-62
M29 G74, G84.3 REVERSE RIGID TAPPING CYCLE (LEFT-HAND THREAD) . . . . . . . . . D-58
M29 G84, G84.2 DEEP HOLE RIGID TAPPING CYCLE (RIGHT-HAND THREAD) . . . . . . D-53
M29 G84, G84.2 HIGH-SPEED DEEP HOLE RIGID TAPPING CYCLE
(RIGHT-HAND THREAD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-49
M29 G84, G84.2 RIGID TAPPING CYCLE (RIGHT-HAND THREAD) . . . . . . . . . . . . . . . . . D-45
M33 TOOL STORING CYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-18
M48, M49 FEEDRATE OVERRIDE CANCEL ON/OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-37
M50, M09 OIL-HOLE DRILL COOLANT DISCHARGE ON/OFF . . . . . . . . . . . . . . . . . . . . . C-28
M51, M59 AIR BLOW START AND STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-34
M52, M58 DUST COLLECTOR AIR BLOW START AND STOP . . . . . . . . . . . . . . . . . . . . . C-35
M68, M69 A-AXIS CLAMP AND UNCLAMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J-1
M72, M77 CHIP FLUSH-AWAY COOLANT DISCHARGE ON/OFF . . . . . . . . . . . . . . . . . . . C-31
M73, M74, M75, M76 MIRROR IMAGE ON/OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-39
M80, M81 SHOWER COOLANT DISCHARGE ON/OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . C-33
M92, M09 OIL MIST DISCHARGE ON/OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-30
M98, M99 SUB-PROGRAM CALL AND RETURN FROM SUB-PROGRAM . . . . . . . . . . . . C-19
M108, M109 IN-MACHINE FIXTURE CLAMP/UNCLAMP . . . . . . . . . . . . . . . . . . . . . . . . . . C-44
M119 SPINDLE SPECIFIED-POSITION STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-43
M166, M167 Cs CONTOURING CONTROL (OPTION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-45
M237 G83 SMALL-DIAMETER DEEP HOLE DRILLING CYCLE . . . . . . . . . . . . . . . . . . . . . D-34
Machining Multiple Workpieces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-14
MAXIMUM SPINDLE SPEED DURING RIGID TAPPING OPERATION . . . . . . APPENDIX D-37
-iv-
INDEX
Page
M
MH Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-20
MH Series (Includes U-axis Control Specification) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-15
Movement along the Controlled Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-15
N
New Tool Selection Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-17
NEW TOOL SELECTION FLAG, TOOL LIFE EXPIRED FLAG,
AND TOOL LIFE-EXPIRATION WARNING SIGNAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-17
O
Offset Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-7
Operation Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J-1
Overcut in the Cutter Radius Offset Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-16
P
Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX B-4
Part Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-13
PATTERN CYCLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-1
Positive (+) and Negative (−) Designation
for Cutter Radius Offset Amount and Tool Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-15
Precautions on Using G300 to G305 Commands . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-22
Pre-load Level Switching and Changing Offset by S Codes . . . . . . . . . . . . . . . . APPENDIX B-2
PROGRAM CREATION PROCEDURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-1
Program Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-11, A-32
Programming for the fixed address shorter route access method . . . . . . . . . . . . . . . . . . . . . . F-9
Programming for the technical memory random method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-6
Programming using G00 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-29
Programming using G02 and G03 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-34
Programming using G02 and G03 (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-35
Programming using G02 or G03 (Helical interpolation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-50
Programming using G02.2 or G03.2 (Involute interpolation) . . . . . . . . . . . . . . . . . . . . . . . . . B-58
Programming using G04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-38
Programming using G08 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-114
Programming using G09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-61
Programming using G10 L2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-17
Programming using G10 L10 - L13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-62
Programming using G17, G18, or G19 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-25
Programming using G17, G18, or G19 (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-26
Programming using G22 and G23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-65
-v-
INDEX
Page
P
Programming using G31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-67
Programming using G40, G41, and G42 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-20
Programming using G40, G41, and G42 (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-22
Programming using G40, G41, and G42 (3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-26
Programming using G43 and G49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-22
Programming using G45 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-72
Programming using G46 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-72
Programming using G47 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-72
Programming using G48 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-72
Programming using G50 and G51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-78
Programming using G50 and G51 (scaling) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-75
Programming using G50.1 and G51.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-81
Programming using G52 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-84
Programming using G53 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-85
Programming using G54 or G54.1 (Additional work coordinate system) . . . . . . . . . . . . . . . . B-88
Programming using G54 to G59
(Workpiece zero point set at the center of table rotation) (1) . . . . . . . . . . . . . . . . . . . . . . . . . B-14
Programming using G54 to G59
(Workpiece zero point set at the center of table rotation) (2) . . . . . . . . . . . . . . . . . . . . . . . . . B-15
Programming using G54 to G59
(Workpiece zero point set at the end face of workpiece) (1) . . . . . . . . . . . . . . . . . . . . . . . . . B-11
Programming using G54 to G59
(Workpiece zero point set at the end face of workpiece) (2) . . . . . . . . . . . . . . . . . . . . . . . . . B-12
Programming using G60 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-90
Programming using G65, G66 and G67 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-96
Programming using G68 and G69 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-104
Programming using G72.1 (Copy by rotation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-108
Programming using G72.2 (Copy by shift) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-111
Programming using G73 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-31
Programming using G74 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-41
Programming using G76 <F15 format> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-75
Programming using G76 <F16 format (setting made before shipping the machine)> . . . . . . D-74
Programming using G80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-17
Programming using G81 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-19
Programming using G82 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-21
Programming using G83 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-33
Programming using G84 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-39
Programming using G84.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-48
Programming using G84.2 (Deep hole rigid tapping cycle) . . . . . . . . . . . . . . . . . . . . . . . . . . D-57
Programming using G84.2 (High-speed deep hole rigid tapping cycle) . . . . . . . . . . . . . . . . D-52
Programming using G84.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-61
-vi-
INDEX
Page
P
Programming using G84.3 (Deep hole reverse rigid tapping cycle) . . . . . . . . . . . . . . . . . . . D-70
Programming using G84.3 (High-speed deep hole reverse rigid tapping cycle) . . . . . . . . . . D-65
Programming using G85 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-23
Programming using G86 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-25
Programming using G87 <F15 format> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-80
Programming using G87 <F16 format (setting made before shipping the machine)> . . . . . . D-79
Programming using G88 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-27
Programming using G89 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-29
Programming using G90 and G91 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-7
Programming using G90 and G91 (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-7
Programming using G90 and G91 (3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-8
Programming using G300 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-3
Programming using G301 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-6
Programming using G302 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-9
Programming using G303 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-12
Programming using G304 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-16
Programming using G305 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-20
Programming using G306 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-24
Programming using G307 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-27
Programming using G308 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-31
Programming using G309 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX D-35
Programming using M00 or M01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-9
Programming using M02 or M30 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-11
Programming using M03, M04, and M05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-13
Programming using M06 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-15
Programming using M07 or M09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-27
Programming using M08 and M09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-17
Programming using M20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-25
Programming using M29 G74 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-60
Programming using M29 G74 (Deep hole reverse rigid tapping cycle) . . . . . . . . . . . . . . . . . D-69
Programming using M29 G74 (High-speed deep hole reverse rigid tapping cycle) . . . . . . . D-64
Programming using M29 G84 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-47
Programming using M29 G84 (Deep hole rigid tapping cycle) . . . . . . . . . . . . . . . . . . . . . . . D-56
Programming using M29 G84 (High-speed deep hole rigid tapping cycle) . . . . . . . . . . . . . . D-51
Programming using M33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-18
Programming using M48 and M49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-38
Programming using M50 or M09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-29
Programming using M51 and M59 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-34
Programming using M52 and M58 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-36
Programming using M72 and M77 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-32
Programming using M73, M74, M75 and M76 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-40
-vii-
INDEX
Page
P
Programming using M80 and M81 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-33
Programming using M92 and M09 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-30
Programming using M98 or M99 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-21
Programming using M98 or M99 (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-22
Programming using M98 or M99 (3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-23
Programming using M98 or M99 (4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-23
Programming using M237 G83 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-37
Programming using the counter boring cycle (G82) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-44
R
REQUIREMENT FOR USING THE CUTTER RADIUS OFFSET FUNCTION . . . . . . . . . . . . E-3
Re-registration of Tool Life Data with All Group Deletion . . . . . . . . . . . . . . . . . . . . . . . . . . . H-11
S
S FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-11
Sequence Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-12
Setting the Tool Length Offset Data (Type 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-20
Setting the Tool Length Offset Data (Type 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-21
SETTING THE TOOL LIFE DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-3
Setting the Tool Life Data by Manual Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-3
Setting the Workpiece Zero Point (Center of Table Rotation) . . . . . . . . . . . . . . . . . . . . . . . . B-13
Setting the Workpiece Zero Point (Workpiece End Face) . . . . . . . . . . . . . . . . . . . . . . . . . . . B-10
SH Series, NH5000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-16, A-21
Signs and Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-32
SKIP COMMAND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-16
Space between the Words in the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-32
SPECIFICATION IN MACHINING PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-12
Specifying a tool group command and tool offset command . . . . . . . . . . . . . . . . . . . . . . . . . H-14
Specifying the absolute commands (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-25
Specifying the absolute commands (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-26
SPECIFYING THE CUTTING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-29
SPECIFYING THE DIMENSIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-25
Specifying the incremental commands (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-27
Specifying the incremental commands (2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-27
Start-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-6
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-14, A-28
-viii-
INDEX
Page
T
T FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1
Table of Rapid Traverse Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-16
Technical Memory Random Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-4
TECHNICAL TERMS
USED IN THE EXPLANATION OF THE CUTTER RADIUS OFFSET FUNCTION . . . . . . . . . E-4
TERMS FOR PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-11
Tool Life Expired Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-17
Tool Life Management Detail Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-7
Tool Life Management Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-3
Tool Life-Expiration Warning Signal (Type B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-17
Tool Offset Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-14
U
Using B function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I-3
Using D function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-3
Using F function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-15
Using H function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-5
Using S function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-11
Using the hole machining canned cycle (G82) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-4
W
WHAT IS A PROGRAM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
WHAT IS "CREATING A PROGRAM"? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
WHAT IS REQUIRED OF PROGRAMMERS? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-14
WORKPIECE ZERO POINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-24
-ix-
Comment Form Date:
To improve this manual, we invite you to make comments on any insufficient description or errors in this
manual. We want to know how you think we can make this manual better. Please restrict your comments to
those concerning this manual only. Comments can also be submitted using the company website at
http://www.moriseiki.com.
Name Company
Department Telephone
Address
MORI SEIKI MEXICO, S.A. DE C.V. MORI SEIKI (SHANGHAI) CO., LTD.
Head Office & Technical Center
Head Office & Technical Center
Montecito 38 Piso 12-38 Col. Napoles 03810 México D.F.
No. 200, Fu Te Road (North) Wai Gao Qiao Free Duty Zone, Shanghai, China
Phone: (52)-55-5488-3276 Fax.: (52)-55-5488-3279
Phone: (86)-21-5868-0310 Fax.: (86)-21-5868-0282
Technical Beijing: Room 20D, Block B King Wing Hot Spring Hotel, No.17
MORI SEIKI BRASIL LTDA. Center Dong Sanhuan South Road, Chaoyang District, Beijing 100021
Head Office & Technical Center Phone: (86)-10-6768-3691 Fax.: (86)-10-6768-8635
Rua República do Iraque, 1432 2 and, Campo Belo 04611-002 São Paulo, Brasil Tianjin: Room 702B, Building Bohai Coastal Region Development Center, 9
Phone: (55)-11-5543-1762 Fax.: (55)-11-5543-1948 Added Binshui Road, Hexi District, Tianjin 300061
Phone: (86)-22-282-08410 Fax.: (86)-22-282-08255
MORI SEIKI GmbH Dalian: 1108 Shenegshi Building, 35 Luxun Rd, Three Eight squire, Zhongshan
District, Dalian, China.116001
Head Office Antoniusstrasse 14, 73249 Wernau, Germany
Phone: (86)-(0)411-8271-8611 Fax.: (86)-(0)411-8272-6562
Phone: (49)-7153-934-0 Fax.: (49)-7153-934-220
Shenzhen: 1/F Block 206, Honghua Road, Futian Free Trade Zone, Shenzhen
Technical Stuttgart: Antoniusstrasse 14, 73249 Wernau, Germany
City, Guangdong Province, China
Centers Phone: (49)-7153-934-0 Fax.: (49)-7153-934-220
Phone: (86)-755- 8359-1997 Fax.: (86)-755- 8359-1375
Istanbul: Abdi Ipekci Caddesi No: 129 Kat 5, Bayrampasa, Istanbul
Phone: (90)-212-613-4141 Fax.: (90)-212-612-4603
Hamburg: Merkurring 63-65 22143 Hamburg, Germany MORI SEIKI KOREA CO., LTD.
Phone: (49)-40-69-458-0 Fax.: (49)- 40-69 458-200 Head Office & Technical Center
A-101, 2 SK TWIN TECH TOWER, 345-9 Kasan-dong, Kumcheon-Ku, Seoul,
Korea
MORI SEIKI (UK) LTD. Phone: (82)-2-862-0925 Fax.: (82)-2-862-0928
Head Office & Technical Center
202 Bedford Avenue, Slough SL1 4RY, England
Phone: (44)-1753 526518 Fax.: (44)-1753 524695
PT. MORI SEIKI INDONESIA
Head Office & Technical Center
Komplek Gading Bukit Indah Blok M/01 J1. Bukit Gading Raya, Kalapa Gading,
MORI SEIKI FRANCE S.A. Jakarta Utara, 14240 Indonesia
Head Office & Technical Center Phone: (62)-21-453-1199 Fax.: (62)-21-4585-7414
Rue des Châtaigniers, Zone Industrielle d'Ormes-Saran, 45140 ORMES, France
Phone: (33)-2-38-74-88-99 Fax.: (33)-2-38-74-72-56
MORI SEIKI AUSTRALIA PTY LTD
Head Office & Technical Center
MORI SEIKI ITALIANA S.R.L. 6/6 Garden Road Clayton VIC 3168, Australia
Head Office & Technical Center Phone: (61)-3-8545-0900 Fax.: (61)-3-9561-4999
Via Riccardo Lombardi N. 10, 20153 Milano, Italy Technical Melbourne: 6/6 Garden Road Clayton VIC 3168, Australia
Phone: (39)-02-4894921 Fax.: (39)-02-48914448 Centers Phone: (61)-3-8545-0900 Fax.: (61)-3-9561-4999
Sydney: 6/287 Victoria Road Rydalmere NSW 2116, Australia
Phone: (61)-2-8844-9700 Fax.: (61)-2-9638-6111
The export of this product is subject to an authorization from the government of the exporting country. Printed in Japan
Check with the government agency for authorization.
041116