4Soft keys (option)The soft keys have various functions,
5Address and numeric keys
N
6SHIFT key
SHIFT key
(Full MDI keyboard)
7INPUT key
4
(
SHIFT
INPUT
Press this key to reset the CNC, to cancel an alarm, etc.
This key is used to start MDI operation
or automatic operation, depending on
the machine. Refer to the manual provided by the machine tool builder. This
key is also used to output data to an input/output device.
according to the applications. The soft
key functions are displayed at the bottom of the CRT screen.
Soft key of left edge :
Soft key of right edge :
Continuous menu key
Press these keys to input alphabetic,
numeric, and other characters.
…
Some keys have two characters on
their keytop. Pressing the <SHIFT>
key switches the characters. Special
character is displayed on the screen
when a character indicated at the bottom right corner on the keytop can be
entered.
When an address or a numerical key is
pressed, the data is input to the buffer,
and it is displayed on the CRT screen.
To copy the data in the key input buffer
to the offset register, etc., press the
key.
INPUT
Return menu key
9
This key is also used to input data from
an input/output device.
NumberExplanationName
8Cancel key
CAN
Press this key to delete the input data
or the last character in the key input
buffer.
1
9Program edit keys
INSRT
ALTER
10Function keys
POSPRGRM
11Cursor move keys
DELET
CURSOR
12Page change keys
PAGE
13MMC/CNC change key
MMC/
CNC
Press these keys when editing the program.
ALTER
: Alteration
: Insertion
INSRT
DELET
: Deletion
Press these keys to switch display
screens for each function.
…
There are two different cursor move
keys.
: This key is used to move
the cursor in an upward or
reverse direction.
: This key is used to move
the cursor in a downward
or forward direction.
Two kinds of page change keys are
available.
: This key is used to
changeover the page on
the CRT screen in the reverse direction.
: This key is used to
changeover the page on
the CRT screen in the forward direction.
Selects whether the MMC screen or
CNC screen is displayed on the CRT.
2
3
4
5
6
7
8
9
10
10
1. CRT/MDI PANEL
1.6Key Input
For standard MDI keyboard
On the standard MDI keyboard, the same key is used to input both an
address and a numeric value.
When “ADRS.” is displayed on the top of the key input buffer , addresses can
be input.
When “NUM.” is displayed on the top of the key input buffer, numeric values
can be input.
Press
ADRS.
[ ][ ]
4
X
NUM. X
[ ][ ]
key
Press
NUM. X
[ ][ ]
4
X
NUM. X 4
[ ][ ]
key
The following keys are used for inputting multiple addresses. They may be
not displayed on the screen depending on the options used.
T series
B
A
NO.
V
Y
C
K
I
H
J
Q
P
CA B
IKY
H
JQ P
D
L
V
M series
11
D
4th
B
K
J
I
L
P
NO.
Q
DB4th
IJK
PQL
For full MDI keyboard
A “<” is displayed at the end of the key input buffer indicating the input
position of the next character.
1
Key input
buffer
display
T o input the symbol indicated at the lower part of a key top, press the
key to change the prompt < to ƞ. Then press the key.
N001X100Z<
[ ] [ ] [ ] [ ] [ ]
Key input buffer display
2
3
SHIFT
4
5
6
7
8
9
10
12
2. CRT/MDI OPERA TION
2.1Screen Transition Triggered by the Each Function Key
If a variable is null, the corresponding value
field is left blank. If the absolute value is
greater than 99999999, the corresponding
value field contains ********.
SINGLE BLOCK :OFFJON
MACHINE LOCK :OFFJON
DRY RUN:OFFJON
PROTECT KEY :PROTECT JRELEASE
FEED HOLD :JOFFON
ACTUAL POSITION (ABSOLUTE)
X 0.000Y 0.000
Z 0.000
04:00:18MDI
[ ALARM ] [ OPR ] [ MSG ] [ ] [ ]
**************
Press the
the target screen.
CURSORorCURSOR
S 0 T
******
S0 T
S 0 T
The switches and controls on the CRT/MDI panel can be used in place of the
counterparts on the machine operator’s panel. (F ANUC MPC is required.)
D Use the buttons shown below for jog feed operations.
23
8
N
5
4
Y
X
1
H
2
F
9
G
6
Z
2.3CRT/MDI Operation and Display (M Series)
Current position display
Function button
POS
1
Press (page) or the corresponding soft key to cause any of the
following three types of displays to appear.
(1) Absolute coordinates
Distance from the programmed zero point
POS
ACTUAL POSITION (ABSOLUTE)
O0010 N0000
X123.456
Y363.233
Z0.000
RUN TIME 0H 1MCYCLE TIME 0H 1M33S
ACT.F3000 MM/M S 0 T
01:35:22BUF AUTO
[ ABS ] [ REL ] [ ALL ] [ HNDL ] [ ]
PART COUNT1
(2) Relative coordinates
Any tool position can be set to 0 by
CAN
. This holds true also of Y and Z.
ACTUAL POSITION (RELATIVE)
O0010 N0000
X123.456
Y363.233
Z0.000
RUN TIME 0H 1MCYCLE TIME 0H 1M33S
ACT.F3000 MM/M S 0 T
01:36:12BUF AUTO
[ ABS ] [ REL ] [ ALL ] [ HNDL ] [ ]
(3) General coordinates
ACTUAL POSITIONO1000 N00010
(RELATIVE)
X 246.912
Y 913.780
Z 1578.246
(MACHINE)
X 0.000
Y 0.000
Z 0.000
RUN TIME 0H 4MCYCLE TIME 0H 1M38S
ACT.F 0 MM/M S 0 T
01:54:57MDI
[ ABS ] [ REL ] [ ALL ] [ HNDL ] [ ]
PART COUNT1
Absolute coordinates
(ABSOLUTE)
X 123.456
Y 456.890
Z 789.123
(DISTANCE TO GO)
X 0.000
Y 0.000
Z 0.000
PART COUNT1
X
Relative coordinates
Machine coordinates
2
3
4
5
6
7
8
9
The target screen can
be selected directly
by the corresponding
soft key.
The operating time and parts count are displayed.
Two types of operating time and parts count are
displayed on the coordinate display screen.
(position)
10
24
2. CRT/MDI OPERA TION
Setting data display/setting
Function button
DGNOS
PARAM
(Parameter pages 1 and 2 are the setting data screens.)
When the title parameter is not on the screen,
press the key or
DGNOS
PARAM
the corresponding soft
key to select the parameter screen.
[Setting]
MDI mode
CURSORorCURSOR
Numeral
INPUT
Display
Item
REVXX–axis mirror image OFFX–axis mirror image ON
REVYY–axis mirror image OFFY–axis mirror image ON
TVONNo TV check is made.A TV check is made.
ISOEIA code output
PWEParameter writing is disabled. Parameter writing is enabled.
REV4Fourth–axis mirror image OFF Fourth–axis mirror image ON
TAPEFF10/11 table format is not used F10/11 table format is used
(during punch)
mode)
serted automatically when a
program is entered from the
MDI.
Sequence numbers are inserted automatically when a
program is entered from the
MDI.
NOTE See Page 33 for details.
27
2.5CRT/MDI Operation and Display (with MMC)
(1) Operation
Key operation can only be done when the CNC screen is displayed on
the CRT display of the CRT/MDI panel. Address keys and numerical
keys are independently arranged on 00–C. However, inputting data is
exactly the same as that of 0–C. The page key
, and selection key on the software operator’s
panel are of combined use with the function key. Press the
corresponding key for use as a page key , cursor key , and selection key
on the software operator’s panel. Press the corresponding key while
pressing the “FUNC” key as the function key.
Five keys on the right half ten keys are effective for the variable section,
and the other five keys on the left half are effective for selecting position
display data in the fixed section.
When the number is specified by a method like the parameter screen,
because there is no NO. key use the cursor key
(2) Display
MMC/
Press
key on the CRT/MDI panel to display the CNC screen
CNC
when the MMC screen is displayed on the CRT display of the CRT/MDI
panel.
The CNC screen consists of a variable section and a fixed section. The
variable section is the part that is surrounded by the frame at the bottom
right, and its display contents are the same as displayed on the 9” CRT
display of 0–C. Therefore, the screen selected by function key, page
key, cursor key, and soft key is displayed.
The fixed section is the rest of the above variable section, and its display
contents are position data, operation time (optional), modal data, and
S, T command value, as shown on the screen. Display items of this
section cannot be changed by the screen selection operation. However,
its display contents are always renewed.
, cursor key
instead.
1
2
3
4
5
6
7
Fixed section
ACTUAL POSITION (ABSOLUTE)
X0.000O0009
Y0.000
Z0.000N0009
(MODAL)
G64 G00 F
G17 R
G91 P
G22 Q
G94 H
G21 M
G40 S
G49 T
G80
G98
G67
G54
Z 0.000
NO. 013 =S 0 T
03:22:13MDI
[ OFFSET ] [ MACRO ] [ MENU ] [ WORK ] [ TOOLLF ]
1
2
3
4
5
5 Press the
INPUT
key, and input begins.
Conversational mode data input
[M series]
1 Select the EDIT mode.
2 Locate the beginning of the file.
3 Disable program protection (KEY=1).
PRGRM
4 Press the
5 Key in address 0.
6 Key in any program number.
7 Press the
8 Select the AUTO mode.
9 A program entered before is executed.
* Be cautious about the following parameter.
PRM, No. 015
CAUTION
When a decimal point is omitted from an address in which it can be
used:
1 : mm, inch, and s units (usually)
0 : Least input increment (at data input time)
key several times to select the program list screen.
INPUT
key, and input begins.
Caution
*******
6
7
8
9
10
32
2. CRT/MDI OPERA TION
Function
Parameters related to data input/output
To use the FANUC floppy cassette, set the parameters as follows:
Setting:I/O = 0 (Note)
Parameter: ISO = 1
PRM, No. 002
1****0*1
PRM, No. 552
PRM, No. 010
10(4800BPS)
***Note****
NOTE1 1 : Protects program numbers 9000s (9000 to 9999).
0 : Enables editing of program numbers 9000s (9000 to 9999).
PRM, No. 038
01**Note***
NOTE2 1 : A full keyboard is used.
0 : A standard keyboard is used.
NOTE3 I/O = selects a device used for data input/output through a reader/
punch interface.
Related parameter No.
I/O=0I/O=1I/O=2I/O=3
Feed (NFED)2.712.750.751.7
20 mA current loop
(ASR33)
Stop bit (STP2)2.012.050.051.0
I/O device model
specification
Baud rate552553250251
Connector number
2.212.2Unusable
38.7
38.6
M5
Channel 1M5Channel 1
38.7
38.6
38.5
38.4
M74
Channel 2
38.2
38.1
M77/M73
Channel 3
For M77, either RS–232–C or RS–422 can be selected by parameter No.
55.3.
The connector number is M73 when RS–422 is used with an external clock.
33
Displaying the directory of floppy disk files
1
Press the EDIT switch on the machine operator’s panel.
2
Press function
3
Press soft key [FLOPPY].
4
Press page key or .
5
The screen below appears.
PRGRM
key .
1
2
DIRECTORY (FLOPPY)
NO. FILE NAME
0001 PARAMETER
0002 ALL. PROGRAM
0003 O0001
0004 O0002
0005 O0003
0006 O0004
0007 O005
0008 O0100
0009 O0555
19:36:51EDIT
SRHFIL
[][][][][]
6
Press a page key again to display another page of the directory.
READPUNCHDELETE
O0555 N0000
(METER) VOL
65.6
1.9
1.3
1.3
1.3
1.3
1.3
1.9
1.3
S0 T
Reading files
1
Press soft key [READ] after directry is displayed.
DIRECTORY (FLOPPY)
NO. FILE NAME
READ
_FILE NO. =PROGRAM NO. =
NUM.S0 T
19:38:35
EXEC
[][][][][]
CANSTOP
O0555 N0000
(METER) VOL
EDIT
3
4
5
6
7
8
9
2
Enter a file number, then press function
3
T o modify the program number , enter the program number , then press
function
4
Press soft key [EXEC].
5
Press soft key [CAN] to return to the soft key display shown in
the screen of directory display.
INPUT
key.
INPUT
key .
10
34
2. CRT/MDI OPERA TION
Outputting programs
1
Press soft key [PUNCH] after directry is displayed.
DIRECTORY (FLOPPY)
NO. FILE NAME
PUNCH
_FILE NO. =_ PROGRAM NO. =
NUM.S0 T
19:39:17
[][][][][]
2
Enter a program number. To write all programs into a single file, enter
PRG–NOEXEC
CANSTOP
O0555 N0000
(METER) VOL
EDIT
–9999 in the program number field. In this case, the file name
“ALL.PROGRAM” is registered.
Then press function
3
Press soft key [EXEC].
4
Press soft key [CAN] to return to the soft key display shown in
INPUT
key.
the screen of directry display.
Deleting files
1
Press soft key [DELETE] after directry is displayed.
DIRECTORY (FLOPPY)
NO. FILE NAME
O0555 N0000
(METER) VOL
DELETE
_FILE NO. =
NUM.S0 T
19:39:56
EXEC
[][][][][]
2
Specify the file to be deleted.
CANSTOP
EDIT
When specifying the file with a file number, type the number and
press function
3
Press soft key [EXEC].
4
Press soft key [CAN] to return to the soft key display shown in
INPUT
key.
the screen of directry display.
35
Procedure for changing the file name
1
Press soft key [RENAME] after directry is displayed.
2
Position the cursor to FILE NO. then enter the number of the file whose
name is to be changed. Press the
3
Position the cursor to NAME and key in a new file name. Then, press
INPUT
the
4
Press soft key [EXEC].
5
To return to the previous screen, press the [CAN] soft key.
G27Reference position return check
G28Return to reference position
G2900Return from reference position
G302nd, 3rd and 4th reference position return
G31Skip function
G3301Thread cutting
G37
G39
G40
G41
G42Cutter compensation right
G43
G44
G45Tool offset increase
G46
G47
G48Tool offset double decrease
G49
G50
G51
G52
G53
Positioning
Linear interpolation
01
Circular interpolation/Helical interpolation CW
Advanced preview control
Exact stop
Polar coordinates command cancel
17
Polar coordinates command
XpYp plane selection Xp: X axis or its parallel axis
02ZpXp plane selection Yp: Y axis or its parallel axis
YpZp plane selection Zp: Z axis or its parallel axis
Input in inch
Input in mm
Stored stroke check function on
Direct constant–dimension plunge grinding cycle
(0–GSC)
Continuous–feed surface grinding cycle (0–GSC)
Canned cycle cancel/external operation function cancel
Drilling cycle, spot boring cycle or external operation
function
Peck drilling cycle
09
Absolute command
Increment command
Setting for work coordinate system or clamp at maxi-
mum spindle speed
Feed per minute
05
Feed per rotation
Constant surface speed control
Constant surface speed control cancel
Return to initial point in canned cycle
10
Return to R point in canned cycle
1
2
3
4
5
6
7
8
9
10
44
4. G CODE LIST
G code list (M series)(3/3)
G codeGroupFunction
G150
G151
G152Normal direction control right side on
G160
G16120In–feed control function (0–GSC)
CAUTION
1. Multiple G codes of different groups can be specified in a single
block. When multiple G codes of one group are specified in a block,
the G code specified last is effective.
2. If any G code of group 01 is specified in a canned cycle mode, the
canned cycle is automatically cancelled and the G80 condition is
entered. However, a G code of group 01 is not af fected by any of
the canned cycle G codes.
NOTE
1. Modal G codes have the following initial conditions when the power is
turned on or the system is reset to the clear state (bit 6 of parameter No.
045).
1) Those G codes marked in Table 3 are specified automatically.
2) G20 and G21 retain their original conditions.
3) When the power is turned on, G22 is specified automatically. When
the system is reset, G22 and G23 retain their original conditions.
4) G00 or G01 is automatically selected depending on the setting of
bit 6 of parameter No. 011.
5) G90 or G91 is automatically selected depending on the setting of
bit 7 of parameter No. 030.
2. The G codes of group 00, except G10 and G11, are one–shot G codes.
3. If a G code that does not appear in the G code list is specified, or a G
code whose options are not supported is specified, alarm No. 010 is
displayed.
G83G83G83Cycle for face drilling
G84G84G84Cycle for face tapping
G86G86G86
G87G87G87Cycle for side drilling
G88G88G88Cycle for side tapping
G89G89G89Cycle for side boring
G90G77G20
G92G78G21
G94G79G24Endface turning cycle
G96G96G96
G97
G97 G97
G98G94G94
G99
G95 G95
—
G90 G90
—
G91G91
—G98G98
—G99G99
G107 G107 G107
G112 G112 G112
G113
G113 G113
G250
G250
G251 G251 G251
GroupFunction
Finishing cycle
(other than 0–GCC or 00–GCC)
Stock removal in turning
(other than 0–GCC or 00–GCC)
Stock removal in facing
(other than 0–GCC or 00–GCC)
Pattern repeating
(other than 0–GCC or 00–GCC)
Peck drilling on Z axis
(other than 0–GCC or 00–GCC)
Grooving on X axis
(other than 0–GCC or 00–GCC)
Multiple threading cycle
(other than 0–GCC or 00–GCC)
Traverse direct constant dimension grinding
cycle (0–GCC, 00–GCC)
01
Oscillation grinding cycle
(0–GCC, 00–GCC)
Oscillation direct constant–dimension grinding cycle (0–GCC, 00–GCC)
Canned cycle for drilling cancel
10
Cycle for face boring
Outer diameter/internal diameter cutting
cycle
Thread cutting cycle
Constant surface speed control
Constant surface speed control cancel
Per minute feed
Per revolution feed
Absolute programming
03
Incremental programming
Return to initial level
Return to R point level
1. A number of G codes can be specified in the same block. When
more than one G code of the same group is specified, the G code
specified later is effective.
2. If any G code of group 01 is specified in a canned cycle mode, the
canned cycle is automatically cancelled and the G80 condition is
entered. However a G code of group 01 is not affect4ed by any of
the canned cycle G codes.
NOTE
1. G codes marked
For G20 and G 21, the G code before turning power off remains. G00
or G01 can be selected by parameter setting.
2. G codes of group 00 are not modal. They are only effective in the block
in which they are specified.
3. If a G code not listed on the table of G codes is inputted, or optional G
code not specified in the system is commanded, an alarm (No. 010) is
displayed.
4. A G code is displayed from each group.
5. G code system B and C are options. Whether G code system B or C is
set by parameter No. 0036: GSPC.
are initial G codes when turning power on.
1
2
3
4
5
6
7
48
8
9
10
5. PROGRAM FORMAT
FunctionsExplanation
Positioning (G00)
Start point
Linear interpolation
(G01)
Start point
Circular interpolation
(G02, G03)
P
P
Start point
Helical cutting
(G02, G03)
Center
(x, y)
Center
Start
point
R
J
I
G03
R
I
Z
G02
Start point
J
End point
End point
(x, y)
Tool path
YX
49
The feedrate along the circumference
of two circular interpolated axes is the
specified feedrate.
G00P__ ;
Tape format
T
seriesMseries
ff
1
G01P__ ;
G02R__
G17Xp__Yp__F__ ;
G03I__J__
G02R__
G18Xp__Zp__F__ ;
G03I__K__
G02R__
G19Yp__Zp__F__ ;
G03I__K__
Synchronously with arc of XpYp plane
G02I__J__
G17Xp__Yp__α__ F__ ;
G03R__
Synchronously with arc of ZpYp plane
G02I__K__
G18Xp__Zp__α__ F__ ;
G03R__
Synchronously with arc of YpZp plane
G02J__K__
G19Yp__Zp__α__ F__ ;
G03R__
Any one axis where circular interpolation is
Specify G05 only in a block using normal NC
command format. Then specify move data in the
special format explained next page. When zero is specified as the travel distance along all axes, normal NC
command format can be used again for
subsequent command specification.
High-speed remote
buffer B (G05)
Advanced preview
control (G08)
51
High-speed remote buffer A uses binary data.
On the other hand, high-speed remote buffer B can directly use NC language coded with equipment such as
an automatic programming unit to perform
high-speed machining.
This function can minimize the delay caused by acceleration/deceleration, which increases together with the
feedrate, as well as the delay in the servo system. Tool
movement can thus faithfully follow the command values, reducing the degree of error in the machined figure.
Tape format
X__
G04 ; Dwell by second
P__
G04 ;
G09
P
;
T
seriesMseries
ff
f
1
2
3
G05 P10 ×××L∆∆∆ ;
××× :Start program number of called programs
∆∆∆: Repetition time of machining cycle
⋅Binary input operation enabled: G05;
⋅Binary input operation disabled: The travel distance along
⋅Data format for binary input operation
Data
sequence
All data must be specified in binary.
G05P01; Start high-speed machining
X__Y__Z__;
G05P00; End high-speed machining
Byte
High byte
Low byte
High byte
Low byte
:
:
High byte
Low byte
Check byte
all axes are set to zero.
1st axis
2nd axis
Nth axis
ff
ff
4
5
6
7
8
f
9
G08 Pp;
p=1:Advanced preview control mode on
p=0:Advanced preview control mode off
f
10
52
5. PROGRAM FORMAT
FunctionsExplanation
Change of offset value by
program (G10)
Change of offset value by
program (G10)
The tool compensation amount can be set or changed
with the G10 command.
When G10 is used in absolute input (G90), the
compensation amount specified in the command
becomes the new tool compensation amount.
When G10 is used in incremental input (G91), the
compensation amount specified in the command is
added to the amount currently set.
The parameter value can be changed by the
machining program.
Y
x
y
Y
G17
(I, J, K)
X
X
G18G19
Z
Z
(X, Y, Z)
X>I, Y>J, Z>K
X
Y
53
Tape format
G10P__X (U)__Y (V)__Z (W)__R (C)__Q__;
For geometry offset amount
P=10000+geometry offset number
For offset amount
P= wear offset number
R : Tool nose radius offset value
Q : Imaginary tool nose number
T
seriesMseries
f
1
2
G10L__PpRr;
p : Offset No.
r : T ool compensation amount
Format
(1) For tool compensation memory A
G10 L11 P__R__;
(2) For tool compensation memory B
Setting/changing the geometric compensation amount
G10 L10 P__R__;
Setting/changing the wear compensation amount
G10 L11 P__R__;
G10 L50 ;
N__P__ ;
G11
N : Parameter number
P : Parameter value
G16 ; Polar coordinate command
Xx
Yy ;
x: radius, y: angle (*)
G15 ; Polar coordinate command cancel
G17 ;
G18 ;
G19 ;
G20 ; Inch input
G21 ; Metric input
G22X__Y__Z__I__J__K__ ; on
G23 ; off
(X, Z, I and K only for T series)
ff
ff
ff
ff
f
3
4
5
f
6
7
8
9
10
54
5. PROGRAM FORMAT
FunctionsExplanation
Spindle speed
fluctuation detection
on (G26)
Spindle speed
fluctuation detection
off (G25)
(Example)
(1) When an alarm is raised after a specified spindle speed is reached
Spindle speed
Reference for spindle speed at which
check is started
Specified
r
speed
Fluctuation at which
alarm is raised (r)
Check
Specification of
another speed
(2) When an alarm is raised before a specified spindle speed is
reached
Spindle speed
Specification of
another speed
Reference position
return check (G27)
Spindle speed specified by q
q
Check
No check
Alarm
Start of check
Spindle speed specified by r
P
No check
Start of check
Start point
CheckCheck
Alarm
Actual speed
(detected by position
coder)
Time
r
Actual
speed
Time
Reference position
Specified
speed
P
55
Tape format
G26PpQqRr ; spindle fluctuation detection on
p: Time (in ms) from the issue of a new spindle rotation
command (S command) to the start of checking whether
the actual spindle speed is so fast that an overheat can
occur. (When a specified speed is reached within the time
period of P, a check is started at that time.)
q: Tolerance (%) of a specified spindle speed (If a specified
spindle speed lies within this range, it is regarded as
having reached the specified value. Then, the checking
of an actual spindle speed is started.)
q = (1 – actual spindle speed/specified spindle speed)
× 100
r: Spindle speed fluctuation (%) at which the actual spindle
speed is so fast that an overheat can occur
r = (1 – speed that can cause overheat/specified spindle
speed) × 100
G26 enables the spindle speed fluctuation detection
function, and G25 disables the spindle speed fluctuation
detection.
G25 ; Spindle fluctuation detection off
T
seriesMseries
f
1
2
3
4
5
6
G27P__ ;
7
8
9
10
ff
56
5. PROGRAM FORMAT
F: Lead
FunctionsExplanation
Reference position
return (G28)
2nd, 3rd, 4th reference
position return (G30)
Reference poisition
Intermediate point
P
Start point
Return to reference
position return start
position (G29)
Skip function (G31)
Multi-step skip function
(G31)
Equal lead thred cutting
(G32)
Thread cutting (G33)
Variable lead thread
cutting
Automatic tool compensation (G36, G37)
Reference position
Start point
Starting point
Specified position
(Xa or Za)
Intermediate position
Skip signal
Measured position
reach signal
Offset value set
by this command
P
P
Measured
position
57
G28P__ ;
P2
G30P3
P4
G29P__ ;
Tape format
P2: 2nd reference position return
P
__ ;
P3: 3rd reference position return
P4: 4th reference position return
T
seriesMseries
ff
f
1
2
3
G31P__F__ ;
Move command
G31
P
__F__P__;
F__: Feedrate
P__: P1-P4
Dwell
G04X (U, P)__(Q__);
X(U, P)__: Dwell time
Q__: Q1-Q4
G32P__F__ ;
G33P__F__ ;
G34P__FfKf ;
f: Longer axis lead at the start position
k: increase/decrease value per spindle revolution
G36X xa ;
G37Z za
;
X xa, Z za: Specified position
ff
GCC
f
f
f
4
5
f
6
7
8
9
10
58
5. PROGRAM FORMAT
ÇÇ
ÇÇ
FunctionsExplanation
Automatic tool length
measurement (G37)
Tool nose radius
compensation
(G40, G41, G42)
Cutter compensation B
(G39 to G42)
Cutter compensation
(G40 to G42)
Tool length
compensation A, B, C
(G43, G44, G49)
Z
Rapid
traverse
Measurement
feedrate
0
Compensation value = (Current compensation value)
+ [(Coordinates of the point at which the tool is
stopped) – (Coordinates of the programmed
measurement position)]
G40
G40 : Programmed path
G41 : Left of programmed path
G42 : Right of programmed path
G40
G40 : Programmed path
G41 : Left of programmed path
G42 : Right of programmed path
A (Start position)
Measurement position is
commanded with G37
B (Deceleration position)
C (Measurement position)
The tool stops when the
approach end signal
goes on.
X
G41
G42
G41
G42
59
G43: + offset
G44: – offset
Offset
Z
Tape format
G92P__;Sets the workpiece coordinate system. (It can be
set with G54 to G59.)
Hff; Specifies an offset number for tool length offset.
G90 G37P__; Absolute command
⋅G37 is valid only in the block in which it is
specified.
P__ indicates the X-, Y-, Z-, or fourth axis.
T
seriesMseries
f
1
2
3
G40
G41
P
G42
G39X(I)__Y(J)__ ;
Corner offset circular interpolation
(Cutter compensation B only)
G17G40
G18G41 D(H)__ ;
G19G42
D(H): Tool offset number
G43
G44
G17X__
G18 Y__H__ ;
G19Z__
G43 α__H__ ; Tool length compensation C
G44
H: Offset number
α: Arbitrary one axis
G49 ; T ool length compensation cancel
__ ;
(Z__)H__ ; T ool length compensation A
G43
G44
Tool length compensation B
f
4
5
f
6
7
f
8
9
10
60
5. PROGRAM FORMAT
FunctionsExplanation
Tool offset
(G45 – G48)
Coordinate system
setting
Spindle speed setting
(G50)
G50X__Z__ ; Coordinate system setting
G50S__ ; Spindle speed setting
G51X__Y__Z__P__(or I__J__K__) ;
G50 ; Cancel
X, Y, Z: Scaling center
P: Magnification
(I, J, and K are the scaling magnifications for the X-, Y-, and
Z-axes respectively.)
G52P__ ;Local coordinate system setting
G52
P
0 ;Local coordinate system cancel
f
3
4
f
5
6
7
ff
8
9
G53P__ ;
10
ff
62
5. PROGRAM FORMAT
FunctionsExplanation
Work coordinate
system 1 – 6
selection
(G54 – G59)
Workpiece
coordinate
system 1
ZOFS1: Reference position offset for workpiece coordinate system 1
ZOFS2: Reference position offset for workpiece coordinate system 2
ZOFS3: Reference position offset for workpiece coordinate system 3
ZOFS4: Reference position offset for workpiece coordinate system 4
ZOFS5: Reference position offset for workpiece coordinate system 5
ZOFS6: Reference position offset for workpiece coordinate system 6
Additioonal work
coordinate system
selection (G54P)
Spindle direction
positioning (G60)
Exact stop mode (G61)
Workpiece
coordinate
system 2
ZOFS2ZOFS3ZOFS4
ZOFS1
Machine reference
position
(Example)
G54P12 ;
Selecting additional work coordinate system 12
G73, G74, G76, G80 – G89
Specifies the hole position by an
incremental or absolute value.
Specifies the distance from point R to the
bottom of the hole.
Specifies the distance from the initial
level to point R.
Specifies each cut-in value with G73 and
G83 or the shift value with G76 and G87.
(Always specified with an incremental
value.)
Specifies the dwell time at the bottom of
the hole.
Specifies the feed rate.
Specifies the number of repeats for a
series of operation 1 to 6.
Explanation
7
8
9
10
70
5. PROGRAM FORMAT
FunctionsExplanation
Canned grinding cycle
(G75, G77, G78, G79)
(Example)
X
I
J
G75 I__J__K__X (Z)__R__F__P__L__ ;
I:Depth-of-cut 1 (A sign in the command specifies the direction of cutting.)
J:Depth-of-cut 2 ( A sign in the command specifies the direction of cutting.)
K:Total depth of cut
X (Z): Range of grinding (A sign in the command specifies the direction of
grinding.)
R:Feedrate for I and J
F:Feedrate for X (Z)
P:Dwell time
L:Grinding-wheel wear compensation (Note 1)
Canned cycle for
drilling (G80 to G89)
(Example)
G83 (G87) (G99 mode)
(Ma)
G75: Plunge grinding cycle
G77: Direct constant-dimension plunge
G83: Front drilling cycle
G84: Front tapping cycle
G85: Front boring cycle
G87: Side drilling cycle
G88: Side tapping cycle
G89: Side boring cycle
G80: Drilling cycle cancel
G90__ ; Absolute command
G91__ ; Incremental command
G90__G91__ ; Change of workpiece coordinate system
G92P__ ;f
T
seriesMseries
f
(G code
system
B, C)
f
1
2
3
G94F__ ;. . . . . .
G95F__ ;. . . . . .
(T series
<G code system B, C>
M series)
G96 Ss ;
G97 ; Cancel
s: Surface speed (m/min or feet/min)
G96 Ss Pα ;
G97; Cancel
α: 1 – 3
(X axis, Y axis, Z axis)
s: Surface speed (m/min or feet/min)
G98__ ;
G99__ ;
G107 Cr;
Cylindrical interpolation mode
C: Rotary axis name
r: Radius of cylinder
G107 CO;
Cylindrical interpolation mode cancel
or
G98F__ ;. . . . . .
G99F__ ;. . . . . .
(T series
<G code system A>
ff
f
f
(G
coed
system
B, C)
ff
4
5
6
f
7
8
f
9
10
74
5. PROGRAM FORMAT
FunctionsExplanation
Polar coordinate
interpolation mode
(G112, G113)
C
C axis
X axis
Normal direction control
(G140, G141, G142)
Infeed control (G160,
G161)
Polygon turning
(G250, G251)
Tool
(Example)
Y
C axis
Normal direction
(proceeding direction)
rrr r
Start point
Z
Workpiece
C axis
Tool
Workpiece
Programmed
path
End point
Tool
75
Tape format
G112 ;
Polar coordinate interpolation mode
G113 ;
Polar coordinate interpolation mode cancel
T
seriesMseries
ff
1
2
G140 ; Normal direction control cancel
G141 ; Normal direction control left
G142 ; Normal direction control right
G160 ;Cancel
G161 Rr
;
r: Cut in depth
G250 ;
Polygon turning cancel
G251P__Q__ ;
Polygon turning
P, Q: Potation ratio of spindle and workpiece
f
3
4
0–GSC
5
6
f
7
8
9
10
76
5. PROGRAM FORMAT
FS0–TC/FS15–T A format comparison table
Function comparison
A : Both models have the same functions and formats.
B : Both models have the same functions, but different formats.
C : Both models have the same formats, but different functions.
D : The models have different functions and formats.
A––P––Q––;
A threading method (P)
can be selected only from
P1 (single–edge cutting
with constant cutting
amount) and P2 (jigzag
cutting with constant cutting amount). It is impossible to specify an arbitrary
angle for the tool tip (A). If
an angle other than those
that can be specified in
Series 0 (0, 29, 30, 55, 60,
or 80 degrees) is specified,
alarm P/S 062 is generated.
G8*X (Z)––C––Z (X)––R––
Q––P––F––L––;
L : Repetition count
It is impossible to select
an arbitrary drill axis.
If a number with more than
three digits is specified in
calling a subprogram, the
lower three digits are regarded as a subprogram
number (address P). If the
number of repetitive calls
is not specified, it is assumed to be 1.
Function
comparison
D (C)
D (C)
B (A)
1
2
3
4
5
6
7
8
9
10
82
5. PROGRAM FORMAT
FS0–MC/FS15–MA format comparison table
Function comparison
A : Both models have the same functions and formats.
B : Both models have the same functions, but different formats.
C : Both models have the same formats, but different functions.
D : The models have different functions and formats.
151st reference position returnG28P––;
16Return form reference position G29P––;
17nth reference position returnG30P2/3/4P––;
18Skip cuttingG31P––;
19Thread cuttingG33P––F––Q––;
49Absolute commandG90
50Increment commandG91
51Coordinate system setting(G90) G92P––;
52Feed per minuteG94
53Feed per revolutionG95
54Constant surface speed control G96S––;
55Constant surface speed control
K : Number of repeat
G90A
G91A
(G90) G92P––;A
G94A
G95A
G96S––;A
G97S––;A
FS0–MC tape
format conversion
G**X––Y––Z––R––Q––
P––F––L––;
L : Number of repeat
M**S––;
G84X––Y––Z––R––Q––
P––F––L––;
L : Number of repeat
Function
comparison
D (C)
B (A)
1
2
3
4
5
6
7
8
M98P––;M98P––L––;
If a number with more than
three digits is specified in
calling a subprogram, the
lower three digits are regarded as a subprogram
number (address P). If the
number of repetitive calls
is not specified, it is assumed to be 1.
B (A)
9
10
86
6. CUSTOM MACRO
6.1Custom Macro A
6.1.1 Types of variables
Type of variableVariable number
Common variable#100 – #149
System variable#1 – #99
6.1.2 System variable
Variable numberContentsPurposeSeries
#1000 – #1015Corresponds to UI000 to
#1032Unified input of UI000 to
#1100 – #1115Corresponds to UO000
#1132Unified output of UO000
#1133Unified output of UO100
#2001 – #2032Wear offset value
#2701 – #2732Geometry offset value
#2101 – #2132Wear offset value
#2801 – #2832Geometry offset value
#2201 – #2232Wear offset value
#2901 – #2932Geometry offset value
#2301 – #2332Wear offset value
#2301 – #2332Geometry offset value
#2401 – #2432Wear offset value
#2451 – #2432Geometry offset value
#2001 – #2200
(#1 – #99)
#3011Year, month, day
#3012Hour, minute, second
#3901No. of parts machined
#3902No. of parts machined
#i=#j+#kSum
#i=#j–#kSubtraction
#i=#jOR#kLogical sum (at every bit of 32 bits)
#i=#jXOR#kExclusive OR (at every bit of 32 bits)
#i=#j*#kProduct
#i=#j/#kQuotient
#i=#jAND#kLogical product (at every bit of 32 bits)
#i=SIN [#j]Sine (degree unit)
#i=COS [#j]Cosine (degree unit)
#i=TAN [#j]Tangent (degree unit)
#i=ATAN [#j]Arctangent (degree unit)
#i=SQRT [#j]/[#k]Square root
#i=ABS [#j]Absolute value
#i=BIN [#j]Conversion from BCD to BIN
#i= BCD [#j]Conversion from BIN to BCD
#i=ROUND [#j]Rounding off
#i = FIX [#j]Discard fractions less than 1
#i = FUP [#j]Add 1 for fractions less than 1
—The above arithmetic operations and
functions can be combined. The order
of priority in an arithmetic operation is
function, multiplication arithmetic then
addition arithmetic.
1
2
3
4
5
6
6.2.5 Control command
PurposeExpressionKind of operation
Conditional
branchGOTO n
IterationWHILE [<conditional expression>]
IF [<conditional expression>]
.
DO m
=
If omitted conditional expression,
blocks from DO m to END m are