FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 259

 

  Index      Manuals     FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) B-64693EN-1/01

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     257      258      259      260     ..

 

 

 

FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 259

 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2026 - 

G code system 

Group 

Function 

G19 

G19 

G19 

16 

YpZp plane selection 

G20 

G20 

G70 

06 

Input in inch 

G21 

G21 

G71 

06 

Input in mm 

G22 

G22 

G22 

09 

Stored stroke check function on 

G23 

G23 

G23 

09 

Stored stroke check function off 

G25 

G25 

G25 

08 

Spindle speed fluctuation detection off 

G26 

G26 

G26 

08 

Spindle speed fluctuation detection on 

G27 

G27 

G27 

00 

Reference position return check 

G28 

G28 

G28 

00 

Return to reference position 

G28.2 

G28.2 

G28.2 

00 

In-position check disable reference position return 

G29 

G29 

G29 

00 

Movement from reference position 

G30 

G30 

G30 

00 

2nd, 3rd and 4th reference position return 

G30.2 

G30.2 

G30.2 

00 

In-position check disable 2nd, 3rd, or 4th reference position 
return   

G31 

G31 

G31 

00 

Skip function 

G32 

G33 

G33 

01 

Threading 

G34 

G34 

G34 

01 

Variable lead threading 

G35 

G35 

G35 

01 

Circular threading CW 

G36 

G36 

G36 

01 

Circular threading CCW (When bit 3 (G36) of parameter No. 
3405 is set to 1) or Automatic tool offset (X axis) (When bit 3 
(G36) of parameter No. 3405 is set to 0) 

G37 

G37 

G37 

01 

Automatic tool offset (Z axis) (When bit 3 (G36) of parameter 
No. 3405 is set to 0) 

G37.1 

G37.1 

G37.1 

01 

Automatic tool offset (X axis) (When bit 3 (G36) of parameter 
No. 3405 is set to 1) 

G37.2 

G37.2 

G37.2 

01 

Automatic tool offset (Z axis) (When bit 3 (G36) of parameter 
No. 3405 is set to 1) 

G38 

G38 

G38 

01 

Tool radius/tool nose radius compensation: with vector held 

G39 

G39 

G39 

01 

Tool radius/tool nose radius compensation: corner rounding 
interpolation 

G40 

G40 

G40 

07 

Tool radius/tool nose radius compensation : cancel 

G41 

G41 

G41 

07 

Tool radius/tool nose radius compensation : left 

G42   

G42   

G42   

07 

Tool radius/tool nose radius compensation : right 

G40.1 

G40.1 

G40.1 

19 

Normal direction control cancel mode 

G41.1 

G41.1 

G41.1 

19 

Normal direction control left on 

G42.1 

G42.1 

G42.1 

19 

Normal direction control right on 

G43 

G43 

G43 

23 

Tool length compensation +   
(Bit 3 (TCT) of parameter No. 5040 must be 1.) 

G44 

G44 

G44 

23 

Tool length compensation -   
(Bit 3 (TCT) of parameter No. 5040 must be 1.) 

G43.7 

(G44.7) 

G43.7 

(G44.7) 

G43.7 

(G44.7) 

23 

Tool offset   
(Bit 3 (TCT) of parameter No. 5040 must be 1.) 

G49 

(G49.1) 

G49 

(G49.1) 

G49 

(G49.1) 

23 

Tool length compensation cancel   
(Bit 3 (TCT) of parameter No. 5040 must be 1.) 

G50 

G92 

G92 

00 

Coordinate system setting or max spindle speed clamp 

G50.3 

G92.1 

G92.1 

00 

Workpiece coordinate system preset 

G50.1 

G50.1 

G50.1 

22 

Programmable mirror image cancel 

G51.1 

G51.1 

G51.1 

22 

Programmable mirror image 

G50.2 

(G250) 

G50.2 

(G250) 

G50.2 

(G250) 

20 

Polygon turning cancel 

G51.2 

(G251) 

G51.2 

(G251) 

G51.2 

(G251) 

20 

Polygon turning 

G50.4 

G50.4 

G50.4 

00 

Cancel synchronous control 

G50.5 

G50.5 

G50.5 

00 

Cancel composite control 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2027 - 

G code system 

Group 

Function 

G50.6 

G50.6 

G50.6 

00 

Cancel superimposed control 

G51.4 

G51.4 

G51.4 

00 

Start synchronous control 

G51.5 

G51.5 

G51.5 

00 

Start composite control 

G51.6 

G51.6 

G51.6 

00 

Start superimposed control 

G52 

G52 

G52 

00 

Local coordinate system setting 

G53 

G53 

G53 

00 

Machine coordinate system setting 

G53.1 

G53.1 

G53.1 

00 

Tool axis direction control 

G53.2 

G53.2 

G53.2 

00 

Selecting a machine coordinate system with feedrate 

G53.6 

G53.6 

G53.6 

00 

Tool center point retention type tool axis direction control 

G54 

(G54.1) 

G54 

(G54.1) 

G54 

(G54.1) 

14 

Workpiece coordinate system 1 selection 

G55   

G55   

G55   

14 

Workpiece coordinate system 2 selection 

G56 

G56 

G56 

14 

Workpiece coordinate system 3 selection 

G57 

G57 

G57 

14 

Workpiece coordinate system 4 selection 

G58 

G58 

G58 

14 

Workpiece coordinate system 5 selection 

G59 

G59 

G59 

14 

Workpiece coordinate system 6 selection 

G61 

G61 

G61 

15 

Exact stop mode 

G63 

G63 

G63 

15 

Tapping mode 

G64 

G64 

G64 

15 

Cutting mode 

G65 

G65 

G65 

00 

Macro call 

G66 

G66 

G66 

12 

Macro modal call A 

G66.1 

G66.1 

G66.1 

12 

Macro modal call B 

G67 

G67 

G67 

12 

Macro modal call A/B cancel 

G68 

G68 

G68 

04 

Mirror image on for double turret or balance cutting mode 

G68.1 

G68.1 

G68.1 

17 

Coordinate system rotation start or 3-dimensional coordinate 
system conversion mode on 

G68.2 

G68.2 

G68.2 

17 

Tilted working plane indexing 

G68.3 

G68.3 

G68.3 

17 

Tilted working plane indexing by tool axis direction 

G68.4 

G68.4 

G68.4 

17 

Tilted working plane indexing (incremental multi-command) 

G69 

G69 

G69 

04 

Mirror image off for double turret or balance cutting mode 
cancel 

G69.1 

G69.1 

G69.1 

17 

Coordinate system rotation cancel or 3-dimensional 
coordinate system conversion mode off 

G70 

G70 

G72 

00 

Finishing cycle 

G71 

G71 

G73 

00 

Stock removal in turning 

G72 

G72 

G74 

00 

Stock removal in facing 

G73 

G73 

G75 

00 

Pattern repeating cycle 

G74 

G74 

G76 

00 

End face peck drilling cycle 

G75 

G75 

G77 

00 

Outer diameter/internal diameter drilling cycle 

G76 

G76 

G78 

00 

Multiple-thread cutting cycle 

G71 

G71 

G72 

01 

Traverse grinding cycle 

G72 

G72 

G73 

01 

Traverse direct sizing/grinding cycle 

G73 

G73 

G74 

01 

Oscillation grinding cycle 

G74 

G74 

G75 

01 

Oscillation direct sizing/grinding cycle 

G80 

G80 

G80 

10 

Canned cycle cancel for drilling 
Electronic gear box : synchronization cancellation 

G80.4 

G80.4 

G80.4 

28 

Electronic gear box: synchronization cancellation 

G80.5 

G80.5 

G80.5 

27 

Electronic gear box 2 pair: synchronization cancellation 

G81 

G81 

G81 

10 

Spot drilling (FS15-T format) 
Electronic gear box : synchronization start 

G81.4 

G81.4 

G81.4 

28 

Electronic gear box: synchronization start 

G81.5 

G81.5 

G81.5 

27 

Electronic gear box 2 pair: synchronization start 

G82 

G82 

G82 

10 

Counter boring (FS15-T format) 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2028 - 

G code system 

Group 

Function 

G83 

G83 

G83 

10 

Cycle for face drilling 

G83.1 

G83.1 

G83.1 

10 

High-speed peck drilling cycle (FS15-T format) 

G83.5 

G83.5 

G83.5 

10 

High-speed peck drilling cycle 

G83.6 

G83.6 

G83.6 

10 

Peck drilling cycle 

G84 

G84 

G84 

10 

Cycle for face tapping 

G84.2 

G84.2 

G84.2 

10 

Rigid tapping cycle (FS15-T format) 

G85 

G85 

G85 

10 

Cycle for face boring 

G87 

G87 

G87 

10 

Cycle for side drilling 

G87.5 

G87.5 

G87.5 

10 

High-speed peck drilling cycle 

G87.6 

G87.6 

G87.6 

10 

Peck drilling cycle 

G88 

G88 

G88 

10 

Cycle for side tapping 

G89 

G89 

G89 

10 

Cycle for side boring 

G90 

G77 

G20 

01 

Outer diameter/internal diameter cutting cycle 

G92 

G78 

G21 

01 

Threading cycle 

G94 

G79 

G24 

01 

End face turning cycle 

G91.1 

G91.1 

G91.1 

00 

Maximum specified incremental amount check 

G96 

G96 

G96 

02 

Constant surface speed control 

G96.1 

G96.1 

G96.1 

00 

Spindle indexing execution (waiting for completion) 

G96.2 

G96.2 

G96.2 

00 

Spindle indexing execution (not waiting for completion) 

G96.3 

G96.3 

G96.3 

00 

Spindle indexing completion check 

G96.4 

G96.4 

G96.4 

00 

SV speed control mode ON 

G97 

G97 

G97 

02 

Constant surface speed control cancel 

G98 

G94 

G94 

 

Feed per minute 

G99 

G95 

G95 

 

Feed per revolution 

G90 

G90 

03 

Absolute programming 

G91 

G91 

03 

Incremental programming 

G98 

G98 

11 

Canned cycle : return to initial level 

G99 

G99 

11 

Canned cycle : return to R point level 

 

12.2.2 

G Code List in the Machining Center System 

M

 

Table 12.2.2 (a)  G code list 

G code 

Group 

Function 

G00 

01 

Positioning (rapid traverse) 

G01 

01 

Linear interpolation (cutting feed) 

G02 

01 

Circular interpolation CW or helical interpolation CW 

G03 

01 

Circular interpolation CCW or helical interpolation CCW 

G04   

00 

Dwell 

G05 

00 

AI contour control (high-precision contour control compatible command) 

G05.1 

00 

AI contour control / Smooth tolerance

+

 control 

G05.4 

00 

HRV3 on/off 

G07.1 (G107) 

00 

Cylindrical interpolation 

G08 

00 

AI contour control (advanced preview control compatible command) 

G09 

00 

Exact stop 

G10 

00 

Programmable data input 

G10.6 

00 

Tool retract and recover 

G10.8 

00 

Programmable internal data change 

G11 

00 

Programmable data input mode cancel 

G15 

17 

Polar coordinates command cancel 

G16 

17 

Polar coordinates command   

G17 

02 

XpYp plane selection 

Xp: X axis or its parallel axis 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2029 - 

G code 

Group 

Function 

G18 

02 

ZpXp plane selection 

Yp: Y axis or its parallel axis 
Zp: Z axis or its parallel axis 

G19 

02 

YpZp plane selection 

G20 (G70) 

06 

Input in inch 

G21 (G71) 

06 

Input in mm 

G22 

04 

Stored stroke check function on 

G23 

04 

Stored stroke check function off 

G25 

19 

Spindle speed fluctuation detection off 

G26 

19 

Spindle speed fluctuation detection on 

G27 

00 

Reference position return check 

G28 

00 

Automatic return to reference position 

G28.2 

00 

In-position check disable reference position return 

G29 

00 

Movement from reference position 

G30 

00 

2nd, 3rd and 4th reference position return 

G30.2 

00 

In-position check disable 2nd, 3rd, or 4th reference position return   

G31 

00 

Skip function 

G31.8 

00 

EGB-axis skip 

G33 

01 

Threading 

G37   

00 

Automatic tool length measurement 

G38 

00 

Tool radius/tool nose radius compensation : preserve vector 

G39 

00 

Tool radius/tool nose radius compensation : corner circular interpolation 

G40 

07 

Tool radius/tool nose radius compensation : cancel 

G41 

07 

Tool radius/tool nose radius compensation : left 

G42 

07 

Tool radius/tool nose radius compensation : right 

G40.1 

18 

Normal direction control cancel mode 

G41.1 

18 

Normal direction control on : left 

G42.1 

18 

Normal direction control on : right 

G43 

08 

Tool length compensation + 

G44 

08 

Tool length compensation - 

G43.7 

08 

Tool offset 

G45 

00 

Tool offset : increase 

G46 

00 

Tool offset : decrease 

G47   

00 

Tool offset : double increase 

G48 

00 

Tool offset : double decrease 

G49 (G49.1) 

08 

Tool length compensation cancel 

G50 

11 

Scaling cancel 

G51 

11 

Scaling 

G50.1 

22 

Programmable mirror image cancel 

G51.1 

22 

Programmable mirror image 

G50.4 

00 

Cancel synchronous control 

G50.5 

00 

Cancel composite control 

G50.6 

00 

Cancel superimposed control 

G51.4 

00 

Start synchronous control 

G51.5 

00 

Start composite control 

G51.6 

00 

Start superimposed control 

G52 

00 

Local coordinate system setting 

G53 

00 

Machine coordinate system setting 

G53.1 

00 

Tool axis direction control 

G53.2 

00 

Selecting a machine coordinate system with feedrate 

G53.6 

00 

Tool center point retention type tool axis direction control 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2030 - 

G code 

Group 

Function 

G54 (G54.1) 

14 

Workpiece coordinate system 1 selection 

G55   

14 

Workpiece coordinate system 2 selection 

G56 

14 

Workpiece coordinate system 3 selection 

G57 

14 

Workpiece coordinate system 4 selection 

G58 

14 

Workpiece coordinate system 5 selection 

G59 

14 

Workpiece coordinate system 6 selection 

G60 

00 

Single direction positioning 

G61 

15 

Exact stop mode 

G62 

15 

Automatic corner override 

G63 

15 

Tapping mode 

G64 

15 

Cutting mode 

G65 

00 

Macro call 

G66 

12 

Macro modal call A 

G66.1 

12 

Macro modal call B 

G67 

12 

Macro modal call A/B cancel 

G68 

16 

Coordinate system rotation start or 3-dimensional coordinate conversion mode on 

G69 

16 

Coordinate system rotation cancel or 3-dimensional coordinate conversion mode off 

G68.2 

16 

Tilted working plane indexing 

G68.3 

16 

Tilted working plane indexing by tool axis direction 

G68.4 

16 

Tilted working plane indexing (incremental multi-command) 

G70.7 

00 

Finishing cycle 

G71.7 

00 

Outer surface rough machining cycle 

G72.7 

00 

End rough machining cycle 

G73.7 

00 

Closed loop cutting cycle 

G74.7 

00 

End cutting off cycle 

G75.7 

00 

Outer or inner cutting off cycle 

G76.7 

00 

Multiple threading cycle 

G72.1 

00 

Figure copying (rotary copy) 

G72.2 

00 

Figure copying (linear copy) 

G73 

09 

Peck drilling cycle 

G74 

09 

Left-handed tapping cycle 

G75 

01 

Plunge grinding cycle 

G76 

09 

Fine boring cycle 

G77 

01 

Plunge direct sizing/grinding cycle 

G78 

01 

Continuous-feed surface grinding cycle 

G79 

01 

Intermittent-feed surface grinding cycle 

G80 

09 

Canned cycle cancel 
Electronic gear box : synchronization cancellation 

G80.4 

34 

Electronic gear box: synchronization cancellation 

G80.5 

24 

Electronic gear box 2 pair: synchronization cancellation 

G81 

09 

Drilling cycle or spot boring cycle 
Electronic gear box : synchronization start 

G81.4 

34 

Electronic gear box: synchronization start 

G81.5 

24 

Electronic gear box 2 pair: synchronization start 

G82 

09 

Drilling cycle or counter boring cycle 

G83 

09 

Peck drilling cycle 

G84 

09 

Tapping cycle 

G84.2 

09 

Rigid tapping cycle (FS15 format) 

G84.3 

09 

Left-handed rigid tapping cycle (FS15 format) 

G85 

09 

Boring cycle 

G86 

09 

Boring cycle 

G87 

09 

Back boring cycle 

G88 

09 

Boring cycle 

G89 

09 

Boring cycle 

G90 

03 

Absolute programming 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2031 - 

G code 

Group 

Function 

G91 

03 

Incremental programming 

G91.1 

00 

Checking the maximum incremental amount specified 

G92 

00 

Setting for workpiece coordinate system or clamp at maximum spindle speed 

G92.1 

00 

Workpiece coordinate system preset 

G93 

05 

Inverse time feed 

G94 

05 

Feed per minute 

G95 

05 

Feed per revolution 

G96 

13 

Constant surface speed control 

G97 

13 

Constant surface speed control cancel 

G96.1 

00 

Spindle indexing execution (waiting for completion) 

G96.2 

00 

Spindle indexing execution (not waiting for completion) 

G96.3 

00 

Spindle indexing completion check 

G96.4 

00 

SV speed control mode ON 

G98 

10 

Canned cycle : return to initial level 

G99 

10 

Canned cycle : return to R point level 

G107 

00 

Cylindrical interpolation 

G160 

20 

Infeed control cancel 

G161 

20 

Infeed control 

 

Parameter 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

3401 

 

GSC 

GSB 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#6  GSB

  The G code system is set. 

 

#7  GSC

   

GSC 

GSB 

G code 

G code system A 

G code system B 

G code system C 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

3402 

 

G23 

CLR 

 

FPM 

G91 

 

 

G01 

 

G23 

CLR 

G70 

 

G91 

G19 

G18 

G01 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#0  G01

  Mode entered when the power is turned on or when the control is cleared 

0: 

G00 mode (positioning) 

1: 

G01 mode (linear interpolation) 

 

 

#1  G18

  Plane selected when power is turned on or when the control is cleared 

0: 

G17 mode (plane XY) 

1: 

G18 mode (plane ZX) 

 

 

#2  G19

  Plane selected when power is turned on or when the control is cleared 

0: 

The setting of bit 1 (G18) of parameter No. 3402 is followed. 

1: 

G19 mode (plane YZ) 

When this bit is set to 1, set bit 1 (G18) of parameter No. 3402 to 0. 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2032 - 

 

 

#3  G91

  When the power is turned on or when the control is cleared   

0: 

G90 mode (absolute programming) 

1: 

G91 mode (incremental programming) 

 

 

#4  FPM

  At power-on time or in the cleared state: 

0: 

G99 or G95 mode (feed per revolution) is set. 

1: 

G98 or G94 mode (feed per minute) is set. 

 

 

#5  G70

  The commands for inch input and metric input are: 

0: 

G20 (inch input) and G21 (metric input). 

1: 

G70 (inch input) and G71 (metric input). 

 

 

#6  CLR

  Reset button on the MDI unit, external reset signal, reset and rewind  signal, and 

emergency stop signal 
0: 

Cause reset state. 

1: 

Cause clear state. 

For the reset and clear states, refer to Appendix in the OPERATOR’S MANUAL. 
 

 

#7  G23

  When the power is turned on 

0: 

G22 mode (stored stroke check on) 

1: 

G23 mode (stored stroke check off) 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

4902 

 

 

 

 

 

 

 

 

G26 

 

 

 

 

 

 

 

 

G26 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#0  G26

  When power is turned on or when the control is cleared: 

0: 

G25 mode (spindle speed fluctuation detection is disabled) is selected. 

1: 

G26 mode (spindle speed fluctuation detection is enabled) is selected. 

 

Alarm and message 

Number 

Message 

Description 

PS0010 

IMPROPER G-CODE 

An unusable G code is specified. 

 

Note 

NOTE 

1  When the power is turned on or the cleared state is set by a reset (bit 6 (CLR) of 

parameter No. 3402 is set to 1), modal G codes are placed in the following 
states: 
(1) G codes marked with      in G code lists are enabled. 
(2) When the system is cleared due to power-on or reset, whichever specified, 

either G20 or G21, remains effective. 

(3) Bit 7 (G23) of parameter No. 3402 is used to specify whether G22 or G23 is 

to be selected upon power-on. The selection of G22 or G23 is not, however, 
changed when the CNC is cleared upon a reset. When the system is cleared 
due to reset, whichever specified, either G22 or G23, remains effective. 

2  G codes of group 00 except G10 and G11 are single-shot G codes. 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2033 - 

NOTE 

3  Alarm PS0010 is displayed when a G code not listed in the G code list is 

specified or a G code without a corresponding option is specified. 

4  G codes of different groups can be specified in the same block. 
 

If G codes of the same group are specified in the same block, the G code 
specified last is valid. 

5  If a G code of group 01 is specified in a canned cycle for drilling, the canned 

cycle is canceled in the same way as when a G80 command is specified. G 
codes of group 01 are not affected by G codes for specifying a canned cycle. 

6  When G code system A is used for a canned cycle for drilling, only the initial 

level is provided at the return point. 

7  G codes are displayed for each group number. 

 

Reference item 

Manual name 

Item name 

OPERATOR’S MANUAL (B-64694EN) 

Preparatory function (G function) 
SETTINGS ATPOWER-ON, IN THE CLEAR STATE, OR IN TH 
ERESET STATE 

 

12.3 

PROGRAM CONFIGURATION 

Overview 

A program consists of the following components: 
 

Table 12.3 (a)  Program components 

Components 

Descriptions 

Program code start 

Symbol indicating the start of a program file 

Leader section 

Used for the title of a program file, etc. 

Program start 

Symbol indicating the start of a program 

Program section 

Commands for actual machining 

Comment section 

Comments or directions for the operator 

Program code end 

Symbol indicating the end of a program file 

 

 

Program code start 

%   

TITLE 

O0001 ; 

M30  ; 

%   

(COMMENT) 

Program 
section 

Leader section 

Program start 

Comment section 

Program code end 

;

 

 

Fig. 12.3 (a)  Program configuration 

 

Parameter 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

0100 

 

 

 

 

 

 

 

CTV 

 

 

 

 

 

 

 

 

 

Content      ..     257      258      259      260     ..