09 00.11.21 K.Yamamuro Revised to edition 09
08 00.06.22 T.Watanabe Revised to edition 08 T.Endo
01 99.03.10 K.Yamamuro New-registered T.Endo
A-63537E
ED DATE DESIG.
DESCRIPTION 9/134
SHEET
TITLE
FANUC Series 16i/18 i -TA
Compound Machining Function
TITLE
CUST.DRAW.NO.
2.2 On changing command modes
2.2.1 G code
On changing modes between turning and milling, the information for the
modes is handled as follows.
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.
Note
Basically, the information is independent for each mode. Therefore,
changing data for one mode does not affect the other’s. In other words,
when the mode is switched, the one of the mode after it is switched
becomes effective as for modal information and so on. That is to say,
they are switched from the one at the previous state of the switch and
changes into the following one.
So, beware not to cause any unexpected situation on changing modes.
Data kind On changing modes
G, F, S and D/H codes Data are independent for each mode.
The data for the current mode are to
be saved and the other’s to be
validated.
T code Tool selection number is common for
modes.
Coordinate system Coordinate system data are
independent for each mode.
When axes are moved by motion
commands, coordinate positions for
both modes are to be updated.
Reference point Common for modes.
Spindle control Selectable by a parameter whether
spindles stop or keep the current
rotation on changing modes.
Tool offset Tool offset must be cancelled before
changing modes.
Not affected on changing modes. The
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