• All specifications and designs are subject to change without notice.
Foreign Exchange and
The export from Japan may be subject to an export license by the
Should you wish to export or re-export these products, please contact FANUC for advice.
to safety.
regarded as “impossible”.
• No part of this manual may be reproduced in any form.
The products in this manual are controlled based on Japan’s “
Foreign Trade Law”.
government of Japan. Further, re-export to another country may be subject to the license
of the government of the country from where the product is re-exported. Furthermore, the
product may also be controlled by re-export regulations of the United States government.
The products in this manual are manufactured under strict quality control. However, when
a serious accident or loss is predicted due to a failure of the product, pay careful attention
In this manual we have tried as much as possible to describe all the various matters.
However, we cannot describe all the matters which must not be done, or which cannot be
done, because there are so many possibilities.
Therefore, matters which are not especially described as possible in this manual should be
B-64694EN-1/01 SAFETY PRECAUTIONS
SAFETY PRECAUTION
This section describes the safety precautions related to the use of CNC units.
It is essential that these precautions be observed by users to ensure the safe operation of machines
equipped with a CNC unit (all descriptions in this section assume this configuration). Note that some
precautions are related only to specific functions, and thus may not be applicable to certain CNC units.
Users must also observe the safety precautions related to the machine, as described in the relevant manual
supplied by the machine tool builder. Before attempting to operate the machine or create a program to
control the operation of the machine, the operator must become fully familiar with the contents of this
manual and relevant manual supplied by the machine tool builder.
DEFINITION OF WARNING, CAUTION, AND NOTE
This manual includes safety precautions for protecting the user and preventing damage to the machine.
Precautions are classified into Warning and Caution according to their bearing on safety. Also,
supplementary information is described as a Note. Read the Warning, Caution, and Note thoroughly
before attempting to use the machine.
WARNING
Used if a danger resulting in the death or serious injury of the user is expected to
occur if he or she fails to observe the approved procedure.
CAUTION
Used if a danger resulting in the minor or moderate injury of the user or
equipment damage is expected to occur if he or she fails to observe the
approved procedure.
NOTE
Used if a supplementary explanation not related to any of WARNING, and
CAUTION is to be indicated.
Read this manual carefully, and store it in a safe place.
s-1
SAFETY PRECAUTIONSB-64694EN-1/01
WARNING
or injury to the user.
GENERAL WARNINGS AND CAUTIONS
1 Never attempt to machine a workpiece without first checking the operation of the
2 Before operating the machine, thoroughly check the entered data.
Operating the machine with incorrectly specified data may result in the machine
3 Ensure that the specified feedrate is appropriate for the intended operation.
The appropriate feedrate varies with the intended operation. Refer to the manual
If a machine is run at other than the correct speed, it may behave unexpectedly,
4 When using a tool compensation function, thoroughly check the direction and
5 The parameters for the CNC and PMC are factory-set. Usually, there is not need
Failure to set a parameter correctly may result in the machine behaving
machine. Before starting a production run, ensure that the machine is operating
correctly by performing a trial run using, for example, the single block, feedrate
override, or machine lock function or by operating the machine with neither a tool
nor workpiece mounted. Failure to confirm the correct operation of the m achine
may result in the machine behaving unexpectedly, possibly causing damage to
the workpiece and/or machine itself, or injury to the user.
behaving unexpectedly, possibly causing damage to the workpiece and/or
machine itself, or injury to the user.
Generally, for each machine, there is a maximum allowable feedrate.
provided with the machine to determine the maximum allowable feedrate.
possibly causing damage to the workpiece and/or machine itself, or injury to the
user.
amount of compensation.
Operating the machine with incorrectly specified data may result in the machine
behaving unexpectedly, possibly causing damage to the workpiece and/or
machine itself, or injury to the user.
to change them. When, however, there is not alternative other than to change a
parameter, ensure that you fully understand the function of the param et er before
making any change.
unexpectedly, possibly causing damage to the workpiece and/or machine itself,
s-2
B-64694EN-1/01SAFETY PRECAUTIONS
CAUTION
1 Immediately after switching on the power, do not touch any of the keys on the
unexpectedly.
2 The OPERATOR’S MANUAL and programming manual supplied with a CNC
machine if in doubt.
3 Some functions may have been implemented at the request of the machine-tool
machine-tool builder for details of their use and any related cautions.
4 The liquid-crystal display is manufactured with very precise fabrication
phenomenon is a common attribute of LCDs and is not a defect.
NOTE
non-volatile memory at registration, modification, or deletion of program s.
MDI unit until the position display or alarm screen appears on the CNC unit.
Some of the keys on the MDI unit are dedicated to maintenance or other special
operations. Pressing any of these keys may place the CNC unit in other than its
normal state. Starting the machine in this state may cause it to behave
unit provide an overall description of the machine's functions, including any
optional functions. Note that the optional functions will vary from one machine
model to another. Therefore, some functions described in the manuals may not
actually be available for a particular model. Check the specification of the
builder. When using such functions, refer to the manual supplied by the
technology. Some pixels may not be turned on or may remain on. This
Programs, parameters, and macro variables are stored in non-volatile memory in
the CNC unit. Usually, they are retained even if the power is turned off.
Such data may be deleted inadvertently, however, or it may prove necessary to
delete all data from non-volatile memory as part of error recovery.
To guard against the occurrence of the above, and assure quick restoration of
deleted data, backup all vital data, and keep the backup copy in a safe place.
The number of times to write machining programs to the non-volatile memory is
limited.
You must use "High-speed program management" when registration and the
deletion of the machining programs are frequently repeated in such case that the
machining programs are automatically downloaded from a personal computer at
each machining.
In "High-speed program management", the program is not saved to t he
s-3
SAFETY PRECAUTIONSB-64694EN-1/01
WARNING
1
Coordinate system setting
damage the tool, the machine itself, the workpiece, or cause injury to the user .
4
Inch/metric conversion
to the user.
5
Constant surface speed control
machine itself, the workpiece, or cause injury to the user.
6
Stroke check
workpiece, or causing injury to the user.
WARNINGS AND CAUTIONS RELATED TO PROGRAMM ING
This section covers the major safety precautions related to programming. Before attempting to perform
programming, read the supplied OPERATOR’S MANUAL carefully such that you are fully f amiliar with
their contents.
If a coordinate system is established incorrectly, the machine may behave
unexpectedly as a result of the program issuing an otherwise valid move
command. Such an unexpected operation may damage the tool, the machine
itself, the workpiece, or cause injury to the user.
2
Positioning by nonlinear interpolation
When performing positioning by nonlinear interpolation (positioning by nonlinear
movement between the start and end points), the tool path must be caref ully
confirmed before performing programming. Positioning involves rapid travers e. If
the tool collides with the workpiece, it may damage the tool, the machine itself,
the workpiece, or cause injury to the user.
3
Function involving a rotation axis
When programming polar coordinate interpolation or normal-direction
(perpendicular) control, pay careful attention to the speed of the rotat ion axis.
Incorrect programming may result in the rotation axis speed becoming
excessively high, such that centrifugal force causes the chuck to lose its grip on
the workpiece if the latter is not mounted securely. Such mishap is likely to
Switching between inch and metric inputs does not convert the measurement
units of data such as the workpiece origin offset, parameter, and current
position. Before starting the machine, therefore, determine which measur ement
units are being used. Attempting to perform an operation with invalid data
specified may damage the tool, the machine itself, the workpiece, or cause injury
When an axis subject to constant surface speed control approaches the origin of
the workpiece coordinate system, the spindle speed may become excessively
high. Therefore, it is necessary to specify a maximum allowable speed.
Specifying the maximum allowable speed incorrectly may damage the tool, the
After switching on the power, perform a manual reference position return as
required. Stroke check is not possible before manual reference position return is
performed. Note that when stroke check is disabled, an alarm is not issued even
if a stroke limit is exceeded, possibly damaging the tool, the machine itself, the
s-4
B-64694EN-1/01SAFETY PRECAUTIONS
WARNING
7 I
nterference check for each path
automatic operation and specify the tool number of the tool to be used.
8
Same address command in same block
program command”)
CAUTION
1
Absolute/incremental mode
versa, the machine may behave unexpectedly.
2
Plane selection
descriptions of the respective functions for details.
3
Torque limit skip
be executed without performing a skip.
4
Programmable mirror image
mirror image is enabled.
5
Compensation function
compensation function mode.
Interference check for each path function is perform ed bas ed on t he tool data
specified during automatic operation. If the tool specification does not match the
tool actually being used, the interference check cannot be made correctly,
possibly damaging the tool or the machine itself, or causing injury to the user.
After switching on the power, or after selecting a tool post manually, always start
The G code or M code including the same address cannot be commanded on
the same block. If you use the same address, it may result in t he m ac hine
behaving unexpectedly, possibly causing damage to the workpiece and/or
machine itself, or injury to the user. Command on separate block.(About
address P, refer to the appendix “List of functions include address P in the
If a program created with absolute values is run in incremental mode, or vice
If an incorrect plane is specified for circular interpolation, helical interpolation, or
a canned cycle, the machine may behave unexpectedly. Refer to the
Before attempting a torque limit skip, apply the torque limit. If a torque limit skip
is specified without the torque limit actually being applied, a move command will
Note that programmed operations vary considerably when a programmable
If a command based on the machine coordinate system or a reference position
return command is issued in compensation function mode, compensation is
temporarily canceled, resulting in the unexpected behavior of the machine.
Before issuing any of the above commands, therefore, always cancel
s-5
SAFETY PRECAUTIONSB-64694EN-1/01
WARNING
1
Manual operation
injury to the user.
6
Workpiece coordinate system shift
workpiece, or causing injury to the operator.
WARNINGS AND CAUTIONS RELATED TO HANDLING
This section presents safety precautions related to the handling of machine tools. Before attempting to
operate your machine, read the supplied OPERATOR’S MANUAL carefully, such that you are fully
familiar with their contents.
When operating the machine manually, determine the current position of the tool
2
After switching on the power, perform manual reference position return as
3
In manual handle feed, rotating the handle with a large scale factor, such as 100,
4
If override is disabled (according to the specification in a macro variable) during
5
Basically, never attempt an origin/preset operation when the machine is
and workpiece, and ensure that the movement axis, direction, and feedrate have
been specified correctly. Incorrect operation of the machine may damage the
tool, the machine itself, the workpiece, or cause injury to the operator.
Manual reference position return
required.
If the machine is operated without first performing manual reference posit ion
return, it may behave unexpectedly. Stroke check is not possible before manual
reference position return is performed.
An unexpected operation of the machine may damage the tool, the machine
itself, the workpiece, or cause injury to the user.
Manual handle feed
applied causes the tool and table to move rapidly. Careless handling may
damage the tool and/or machine, or cause injury to the user.
Disabled override
threading, rigid tapping, or other tapping, the speed cannot be predicted,
possibly damaging the tool, the machine itself, the workpiece, or causing injury
to the operator.
Origin/preset operation
operating under the control of a program. Otherwise, the machine may behave
unexpectedly, possibly damaging the tool, the machine itself, the tool, or causing
Manual intervention, machine lock, or mirror imaging may shift the workpiece
coordinate system. Before attempting to operate the machine under the c ont rol
of a program, confirm the coordinate system carefully.
If the machine is operated under the control of a program without making
allowances for any shift in the workpiece coordinate system, the machine may
behave unexpectedly, possibly damaging the tool, the machine itself, the
s-6
B-64694EN-1/01SAFETY PRECAUTIONS
WARNING
7
Software operator's panel and menu switches
use the emergency stop button instead of the RESET key to ensure security.
CAUTION
1
Manual intervention
command mode.
2
Feed hold, override, and single block
machine in this case.
3
Dry run
sometimes be higher than the programmed feed rate.
4
Program editing
modify, insert, or delete commands from a machining program while it is in use.
5
PS alarm
the axis movement stops.
Using the software operator's panel and menu switches, in combination with the
MDI unit, it is possible to specify operations not supported by the machine
operator's panel, such as mode change, override value change, and jog feed
commands.
Note, however, that if the MDI unit keys are operated inadvertently, the machine
may behave unexpectedly, possibly damaging the tool, the machine itself, the
workpiece, or causing injury to the user.
8
RESET key
Pressing the RESET key stops the currently running program. As a result, the
servo axes are stopped. However, the RESET key may fail to function for
reasons such as an MDI unit problem. So, when the motors must be stopped,
If manual intervention is performed during programmed operation of the
machine, the tool path may vary when the machine is restarted. Before
restarting the machine after manual intervention, therefore, c onf ir m the settings
of the manual absolute switches, parameters, and absolute/incremental
The feed hold, feedrate override, and single block functions can be disabled
using custom macro system variable #3004. Be careful when operating the
Usually, a dry run is used to confirm the operation of the machine. During a dry
run, the machine operates at dry run speed, which differs from the
corresponding programmed feedrate. Note that the dry run speed may
If the machine is stopped, after which the machining program is edited
(modification, insertion, or deletion), the machine may behave unexpectedly if
machining is resumed under the control of that program. Basically, do not
When a PS alarm is occurred during executing a blolck, the axis movement of
the block is continued to the end of block. After finishing the executing the block,
s-7
SAFETY PRECAUTIONSB-64694EN-1/01
WARNING
electric shock hazard.
NOTE
replacement procedure.
WARNING
electric shock hazard.
NOTE
details of the battery replacement procedure.
WARNINGS RELATED TO DAILY MAINTENANCE
1
Memory backup battery replacement
When replacing the memory backup batteries, keep the power to the machine
(CNC) turned on, and apply an emergency stop to the machine. Because this
work is performed with the power on and the cabinet open, only those personnel
who have received approved safety and maintenance training may perform this
work.
When replacing the batteries, be careful not to touch the high-voltage circuits
(marked and fitted with an insulating cover).
Touching the uncovered high-voltage circuits presents an extremely dangerous
The CNC uses batteries to preserve the contents of its memory, because it must
retain data such as programs, offsets, and parameters even while external
power is not applied.
If the battery voltage drops, a low battery voltage alarm is displayed on the
machine operator's panel or screen.
When a low battery voltage alarm is displayed, replace the batteries within a
week. Otherwise, the contents of the CNC's memory will be lost.
Refer to the Section “Method of replacing battery” in the OPERATOR’S
MANUAL (Common to Lathe/Machining Center System) for details of the batter y
2
Absolute pulse coder battery replacement
When replacing the memory backup batteries, keep the power to the machine
(CNC) turned on, and apply an emergency stop to the machine. Because this
work is performed with the power on and the cabinet open, only those personnel
who have received approved safety and maintenance training may perform this
work.
When replacing the batteries, be careful not to touch the high-voltage circuits
(marked and fitted with an insulating cover).
Touching the uncovered high-voltage circuits presents an extremely dangerous
The absolute pulse coder uses batteries to preserve its absolute position.
If the battery voltage drops, a low battery voltage alarm is displayed on the
machine operator's panel or screen.
When a low battery voltage alarm is displayed, replace the batteries within a
week. Otherwise, the absolute position data held by the pulse coder will be lost.
Refer to the FANUC SERVO AMPLIFIER
i
series Maintenance Manual for
α
s-8
B-64694EN-1/01SAFETY PRECAUTIONS
WARNING
electric shock hazard.
3
Fuse replacement
Before replacing a blown fuse, however, it is necessary to locate and remove the
cause of the blown fuse.
For this reason, only those personnel who have received approved safety and
maintenance training may perform this work.
When replacing a fuse with the cabinet open, be careful not to touch the
high-voltage circuits (marked and fitted with an insulating cover).
Touching an uncovered high-voltage circuit presents an extremely dangerous
A.1 LIST OF FUNCTIONS INCLUDE ADDRESS P IN THE ARGUMENT
OF G CODE .............................................................................................. 351
A.2 LIST OF FUNCTIONS INCLUDE ADDRESS P IN THE ARGUMENT
OF M AND S CODE .................................................................................. 354
c-4
I. GENERAL
B-64694EN-1/01GENERAL 1. GENERAL
NOTE
machine tool builder.
Model name
Abbreviation
NOTE
1 For an explanatory purpose, the following descriptions may be used according to
- 0i-TF Plus : Lathe system (T series)
2 Some functions described in this manual may not be applied to some products.
For details, refer to the DESCRIPTIONS (B-64692EN).
1 GENERAL
This manual consists of the following parts:
About this manual
I. GENERAL
Describes chapter organization, applicable models, related manuals, and notes for reading this
manual.
II. PROGRAMMING
Describes each function: Format used to progr am functions in the NC language, characteristics, and
restrictions.
III. OPERATION
Describes the manual operation and automatic operation of a machine, procedures for inputting and
outputting data, and procedures for editing a program.
APPENDIX
Describes supplementary materials.
1 This manual describes the functions that can operate in the lathe system path
control type. For other functions not specific to the lathe system, r efer to the
OPERATOR'S MANUAL (Common to Lathe System/Machining Center System)
(B-64694EN).
2 Some functions described in this manual may not be applied to some products.
For detail, refer to the DESCRIPTIONS manual (B-64692EN).
3 This manual does not detail the parameters not mentioned in the text. For details
of those parameters, refer to the PARAMETER MANUAL (B-64700EN).
Parameters are used to set functions and operating conditions of a CNC
machine tool, and frequently-used values in advance. Usually, the machine tool
builder factory-sets parameters so that the user can use the machine t ool easily.
4 This manual describes not only basic functions but also optional functions. Look
up the options incorporated into your system in the manual written by the
Applicable models
This manual describes the following models that are 'Nano CNC'.
'Nano CNC system' which realizes high precision machining can be constructed by combining these
models and high speed, high precision servo controls.
In the text, the abbreviations indicated below may be used.
FANUC Series 0i-TF Plus 0i-TF Plus Series 0i-F Plus Series 0i
the CNC model :
- 3 -
1. GENERALGENERALB-64694EN-1/01
Manual name
Specification number
DESCRIPTIONS
B-64692EN
CONNECTION MANUAL (HARDWARE)
B-64693EN
CONNECTION MANUAL (FUNCTION)
B-64693EN-1
OPERATOR’S MANUAL (Common to Lathe System/Machining Center System)
B-64694EN
OPERATOR’S MANUAL (For Lathe System)
B-64694EN-1
*
OPERATOR’S MANUAL (For Machining Center System)
B-64694EN-2
MAINTENANCE MANUAL
B-64695EN
PARAMETER MANUAL
B-64700EN
Programming
Macro Executor PROGRAMMING MANUAL
B-63943EN-2
Macro Compiler PROGRAMMING MANUAL
B-66263EN
C Language Executor PROGRAMMING MANUAL
B-63943EN-3
PMC
PMC PROGRAMMING MANUAL
B-64513EN
Network
PROFIBUS-DP Board CONNECTION MANUAL
B-63993EN
Fast Ethernet / Fast Data Server OPERATOR’S MANUAL
B-64014EN
DeviceNet Board CONNECTION MANUAL
B-64043EN
FL-net Board CONNECTION MANUAL
B-64163EN
CC-Link Board CONNECTION MANUAL
B-64463EN
Operation guidance function
MANUAL GUIDE i (Common to Lathe System/Machining Center System)
OPERATOR’S MANUAL
MANUAL GUIDE i (For Machining Center System) OPERATOR’S MANUAL
B-63874EN-2
MANUAL GUIDE i (Set-up Guidance Functions) OPERATOR’S MANUAL
B-63874EN-1
MANUAL GUIDE 0i OPERATOR’S MANUAL
B-64434EN
Dual Check Safety
Dual Check Safety CONNECTION MANUAL
B-64483EN-2
Special symbols
This manual uses the following symbols:
- IP_
Indicates a combination of axes such as X_ Y_ Z_
In the underlined position following each address, a numeric value such as a coordinate value is placed
(used in PROGRAMMING.).
- ;
Indicates the end of a block. It actually corresponds to the ISO code LF or EIA code CR.
Related manuals of Series 0i-F Plus
The following Table 1(a) lists the manuals related to Series 0i-F Plus. This manual is indicated by an
asterisk(*).
Table 1 (a) Related manuals of Series 0i-F Plus
- 4 -
B-63874EN
B-64694EN-1/01GENERAL 1. GENERAL
Manual name
Specification number
FANUC AC SERVO MOTOR αi series DESCRIPTIONS
FANUC AC SPINDLE MOTOR αi-B / βi-B series DESCRIPTIONS
B-65452EN
FANUC AC SERVO MOTOR βi series DESCRIPTIONS
FANUC SERVO AMPLIFIER αi-B series DESCRIPTIONS
B-65412EN
FANUC SERVO AMPLIFIER βi-B series DESCRIPTIONS
B-65422EN
FANUC AC SERVO MOTOR αi series
MAINTENANCE MANUAL
MAINTENANCE MANUAL
FANUC AC SERVO MOTOR αi series
PARAMETER MANUAL
PARAMETER MANUAL
Related manuals of SERVO MOTOR αi/βi series
The following Table 1(b) lists the manuals related to SERVO MOTOR αi/βi series
Table 1 (b) Related manuals of SERVO MOTOR αi/βi series
FANUC AC SERVO MOTOR αi-B series
FANUC AC SERVO MOTOR βi-B series
FANUC AC SPINDLE MOTOR αi series
FANUC SERVO AMPLIFIER αi series
FANUC AC SERVO MOTOR βi series
FANUC AC SPINDLE MOTOR βi series
FANUC SERVO AMPLIFIER βi series
FANUC AC SERVO MOTOR βi series
FANUC LINEAR MOTOR LiS series
FANUC SYNCHRONOUS BUILT-IN SERVO MOTOR DiS series
FANUC AC SPINDLE MOTOR αi/βi series,
BUILT-IN SPINDLE MOTOR Bi series
B-65262EN
B-65302EN
B-65285EN
B-65325EN
B-65270EN
B-65280EN
The above servo motors and the corresponding spindles can be connected to the CNC covered in this
manual.
This manual mainly assumes that the FANUC SERVO MOTOR αi series of servo motor is used. For
servo motor and spindle information, refer to the manuals for the servo motor and spindle that are actually
connected.
- 5 -
1. GENERALGENERALB-64694EN-1/01
CAUTION
attempted.
CAUTION
non-volatile memory at registration, modification, or deletion of program s.
1.1 NOTES ON READING THIS MANUAL
1 The function of an CNC machine tool system depends not only on the CNC, but on
the combination of the machine tool, its magnetic cabinet, the servo system, the
CNC, the operator's panels, etc. It is too difficult to describe the function,
programming, and operation relating to all combinations. This manual generally
describes these from the stand-point of the CNC. So, for details on a particular
CNC machine tool, refer to the manual issued by the machine tool builder, which
should take precedence over this manual.
2 In the header field of each page of this manual, a chapter title is indicated so that
the reader can reference necessary information easily.
By finding a desired title first, the reader can reference necessary parts only.
3 This manual describes as many reasonable variations in equipment usage as
possible. It cannot address every combination of features, options and commands
that should not be attempted.
If a particular combination of operations is not described, it should not be
1.2 NOTES ON VARIOUS KINDS OF DATA
Machining programs, parameters, offset data, etc. ar e s t ored in the CNC unit
internal non-volatile memory. In general, these contents are not lost by the
switching ON/OFF of the power. However, it is possible that a state can occur
where precious data stored in the non-volatile memory has to be deleted,
because of deletions from a maloperation, or by a failure restoration. In order to
restore rapidly when this kind of mishap occurs, it is recommended that you
create a copy of the various kinds of data beforehand.
The number of times to write machining programs to the non-volatile memory is
limited.
You must use "High-speed program management" when registration and the
deletion of the machining programs are frequently repeated in such case that the
machining programs are automatically downloaded from a personal computer at
each machining.
In "High-speed program management", the program is not saved to t he
- 6 -
II. PROGRAMMING
B-64694EN-1/01PROGRAMMING 1. GENERAL
Workpiece
Standard
tool
Rough
cutting
tool
Finishing
tool
Grooving
tool
Threading
tool
1 GENERAL
1.1 OFFSET
Explanation
- Tool offset
Usually, several tools are used for machining one workpiece. The tools have different tool length. It is
very troublesome to change the program in accordance with the tools.
Therefore, the length of each tool used should be measured in advance. By setting the differ ence between
the length of the standard tool and the length of each tool in the CNC (see Chapter, “Setting and
Displaying Data” in the OPERATOR’S MANUAL (Common to Lathe System/Machining Center
System)), machining can be performed without altering the program even when the tool is changed. This
function is called tool offset. (Refer to the section of Section 5.1 “TOOL OFFSET”.)
Fig. 1.1 Tool offset
- 9 -
PROGRAMMINGB-64694EN-1/01
2. PREPARATORY FUNCTION
(G FUNCTION)
Type
Meaning
One-shot G code
The G code is effective only in the block in which it is specified.
Modal G code
The G code is effective until another G code of the same group is specified.
(Example)
G01 and G00 are modal G codes in group 01.
G01 X_ ;
Z_ ; G01 is effective in this range.
X_ ;
G00 Z_ ; G00 is effective in this range.
X_ ;
G01 X_ ;
:
2 PREPARATORY FUNCTION (G FUNCTION)
A number following address G determines the meaning of the command for the concerned block.
G codes are divided into the following two types.
There are three G code systems in the lathe system : A,B, and C (Table 2 (a) ). Select a G code system
using bits 6 (GSB) and 7 (GSC) parameter No. 3401.
Generally, OPERATOR’S MANUAL describes the u se of G code system A, except when the described
item can use only G code system B or C. In such cases, the use of G code system B or C is described.
Explanation
1. When the clear state (bit 6 (CLR) of parameter No. 340 2) is set at power-up or reset, the modal G
codes are placed in the states described below.
(1) The modal G codes are placed in the states marked wit h
(2) G20 and G21 remain unchanged when the clear state is set at power-up or reset.
(3) Which status G22 or G23 at power on is set by bit 7 (G23) of parameter No. 3402. However,
G22 and G23 remain unchanged when the clear state is set at reset.
(4) The user can select G00 or G01 by setting bit 0 (G01) of parameter No. 3402.
(5) When G code system B or C is used, setting bit 3 (G91) of parameter No. 3402 determines
which code, either G90 or G91, is effectiv e.
2. G codes other than G10 and G11 are one-shot G codes.
3. When a G code not listed in the G code list is specified, or a G code that has no corresponding
option is specified, alarm PS0010, “IMPROPER G-CODE” occurs.
4. Multiple G codes can be specified in the same block if each G code belongs to a different group. If
multiple G codes that belong to the same group ar e specified in th e same block, only the last G cod e
specified is valid.
5. If a G code belonging to group 01 is specified in a for drilling, the canned cycle for drilling is
cancelled. This means that the same state set by specifying G80 is set. Note that the G codes in
group 01 are not affected by a G code specifying a canned cycle.
6. When G code system A is used, absolute or incr emental programming is specified not by a G code
(G90/G91) but by an address word (X/U, Z/W, C/H, Y/V). Only the initial level is provided at the
return point of the canned cycle for drilling..
7. G codes are indicated by group.
as indicated in Table 2(a).
- 10 -
B-64694EN-1/01PROGRAMMING
2. PREPARATORY FUNCTION
Table 2(a) G code list
G code system
A B C
G00
G00
G00
Positioning (Rapid traverse)
G01
G01
G01
Linear interpolation (Cutting feed)
G02
G02
G02
Circular interpolation CW or helical interpolation CW
G03
G03
G03
Circular interpolation CCW or helical interpolation CCW
G04
G04
G04
Dwell
G04.1
G04.1
G04.1
G code preventing buffering
contour control)
G05.1
G05.1
G05.1
AI contour control
G05.4
G05.4
G05.4
HRV3 on/off
(G107)
(G107)
(G107)
command)
G09
G09
G09
Exact stop
G10
G10
G10
Programmable data input
G10.6
G10.6
G10.6
Tool retract and recover
G11
G11
G11
Programmable data input mode cancel
(G112)
(G112)
(G112)
(G113)
(G113)
(G113)
G17
G17
G17
XpYp plane selection
G18
G18
G18
ZpXp plane selection
G19
G19
G19
YpZp plane selection
G20
G20
G70
Input in inch
G21
G21
G71
Input in mm
G22
G22
G22
Stored stroke check function on
G23
G23
G23
Stored stroke check function off
G25
G25
G25
Spindle speed fluctuation detection off
G26
G26
G26
Spindle speed fluctuation detection on
G27
G27
G27
Reference position return check
G28
G28
G28
Return to reference position
G28.2
G28.2
G28.2
In-position check disable reference position return
G29
G29
G29
Movement from reference position
G30
G30
G30
2nd, 3rd and 4th reference position return
return
G31
G31
G31
Skip function
G31.8
G31.8
G31.8
EGB-axis skip
G32
G33
G33
Threading
G34
G34
G34
Variable lead threading
G35
G35
G35
Circular threading CW
(G36) of parameter No. 3405 is set to 0)
No. 3405 is set to 0)
No. 3405 is set to 1)
No. 3405 is set to 1)
Group Function
01
(G FUNCTION)
G05 G05 G05
G07.1
G08 G08 G08
G12.1
G13.1
G07.1
G12.1
G13.1
G07.1
G12.1
G13.1
00
21
16
06
09
AI contour control (command compatible with high precision
Cylindrical interpolation
AI contour control (advanced preview control compatible
Polar coordinate interpolation mode
Polar coordinate interpolation cancel mode
G30.2 G30.2 G30.2
G36 G36 G36
G37 G37 G37
G37.1 G37.1 G37.1
G37.2 G37.2 G37.2
08
00
01
In-position check disable 2nd, 3rd, or 4th reference position
Circular threading CCW (When bit 3 (G36) of param eter No.
3405 is set to 1) or Automatic tool offset (X axis) (When bit 3
Automatic tool offset (Z axis) (When bit 3 (G36) of parameter
Automatic tool offset (X axis) (When bit 3 (G36) of parameter
Automatic tool offset (Z axis) (When bit 3 (G36) of parameter
- 11 -
PROGRAMMINGB-64694EN-1/01
2. PREPARATORY FUNCTION
(G FUNCTION)
Table 2(a) G code list
G code system
A B C
G38
G38
G38
Tool radius/tool nose radius compensation: with vector held
interpolation
G40
G40
G40
Tool radius/tool nose radius compensation : cancel
G41
G41
G41
Tool radius/tool nose radius compensation : left
G42
G42
G42
Tool radius/tool nose radius compensation : right
G40.1
G40.1
G40.1
Normal direction control cancel mode
G41.1
G41.1
G41.1
Normal direction control left on
G42 .1
G42 .1
G42 .1
Normal direction control right on
(G44.7)
(G44.7)
(G44.7)
(Bit 3 (TCT) of parameter No. 5040 mus t be "1".)
G50
G92
G92
Coordinate system setting or max spindle speed clamp
G50.3
G92.1
G92.1
Workpiece coordinate system preset
G50.1
G50.1
G50.1
Programmable mirror image cancel
G51.1
G51.1
G51.1
Programmable mirror image
G50.2
(G250)
G50.2
(G250)
G50.2
(G250)
(G251)
(G251)
(G251)
G50.4
G50.4
G50.4
Cancel synchronous control
G50.5
G50.5
G50.5
Cancel composite control
G50.6
G50.6
G50.6
Cancel superimposed control
G51.4
G51.4
G51.4
Start synchronous control
G51.5
G51.5
G51.5
Start composite control
G51.6
G51.6
G51.6
Start superimposed control
G52
G52
G52
Local coordinate system setting
G53
G53
G53
Machine coordinate system setting
G53.1
G53.1
G53.1
Tool axis direction control
G53.2
G53.2
G53.2
Selecting a machine coordinate system with feedrate
G53.6
G53.6
G53.6
Tool center point retention type tool axis direction contr ol
(G54.1)
(G54.1)
(G54.1)
G55
G55
G55
Workpiece coordinate system 2 selection
G56
G56
G56
Workpiece coordinate system 3 selection
G57
G57
G57
Workpiece coordinate system 4 selection
G58
G58
G58
Workpiece coordinate system 5 selection
G59
G59
G59
Workpiece coordinate system 6 selection
G61
G61
G61
Exact stop mode
G63
G63
G63
Tapping mode
G64
G64
G64
Cutting mode
G65
G65
G65
00
Macro call
G66
G66
G66
Macro modal call A
G66.1
G66.1
G66.1
Macro modal call B
G67
G67
G67
Macro modal call A/B cancel
G68
G68
G68
04
Mirror image on for double turret or balance cutting mode
system conversion mode on
G68.2
G68.2
G68.2
Tilted working plane indexing command
G68.3
G68.3
G68.3
Tilted working plane indexing command by tool axis direction
multi-command)
Group Function
G39 G39 G39
G43.7
G51.2
G43.7
G51.2
G43.7
G51.2
01
07
19
00
22
20
Tool radius/tool nose radius compensation: corner roundi ng
Tool offset
Polygon turning cancel
Polygon turning
G54
G68.1 G68.1 G68.1
G54
G54
00
Workpiece coordinate system 1 selection
14
15
12
Coordinate system rotation start or 3-dimensional coordinate
G68.4 G68.4 G68.4
17
Tilted working plane indexing command (incremental