
A-78656E/01 FANUC Series 16i/18i-TB Compound Machining Function
11/127
Nov.14.2001 Edition 1
2.2.1
G code
Modal G codes for both command modes are independent and never
affect each other on changing them.
For example, the modal G codes for turning mode are to be stored
internally on changing to milling mode. They are to be restored on
changing back to turning mode.
Though the following G codes are handled in the same manner, the
system must be cancelled (switching to OFF) before changing
command modes. Otherwise, the P/S alarm 5253 occurs.
G10/G11 Programmable data input ON/OFF
G12.1/G13.1 Polar coordinate interpolation ON/OFF
G15/G16 Polar coordinate command ON/OFF
G22/G23 Stored stroke check function ON/OFF
G25/G26 Spindle speed fluctuation detection ON/OFF
G40.1/G41.1/G42.1 Normal direction control ON/OFF
G40/G41/G42
Tool nose radius compensation, Cutter compensation
ON/OFF
G43/G44/G49 Tool length compensation ON/OFF
G50/G51 Scaling ON/OFF
G50.2/G51.2 Polygon turning ON/OFF
G68/G69 Coordinate system rotation ON/OFF
G66/G67 Macro modal call ON/OFF
G96/G97 Constant surface speed control ON/OFF
G73 - G89 Canned cycle for drilling ON/OFF
Example)
O0001 ;
N10 M80 ;
←
Turning mode start
N20 M03 S300 ;
N30 G01 X100. Z100. F10. ;
←
G01 for turning mode
N40 M81 ;
←
Milling mode start
N50 G00 X200. ;
←
G00 for milling mode
N60 M80 ;
←
Turning mode start
N70 Z200. ;
←
G01 movement
Example)
O0002 ;
N10 M80 ;
←
Turning mode start
N20 M03 S300 ;
N30 G01 G42 X100. Z100. F10. ;
←
Tool nose R compensation valid
(G42 mode)
N40 X200. Z200. ;
N50 M81 ;
←
Milling mode start
P/S alarm 5253 occurs
because tool nose R
compensation is
still effective.
N60 Z200. ;