
5. BACK MACHINING FUNCTIONS
FOR A LATHE WITH
A SUB–SPINDLE
B–63284EN/03
TYPES OF MACHINING
PROGRAMS
488
The M code for changing the sub–spindle gear and the function to call the
M codes for enabling and disabling the sub–spindle can be used to control
the sub–spindle.
(1) M code for changing the sub–spindle gear
Parameter No. 9893 (GERM1S): M code for selecting a low gear
Parameter No. 9894 (GERM2S): M code for selecting medium
gear 1
Parameter No. 9895 (GERM3S): M code for selecting medium
gear 2
Parameter No. 9896 (GERM4S): M code for selecting a high gear
The maximum speed of each gear, which determines which gear is
selected, is the same as that specified in the corresponding parameter
for the main spindle.
(2) Calling the M codes for enabling and disabling the sub–spindle
At the beginning of a process for machining with the sub–spindle,
a subprogram for enabling the sub–spindle is automatically called.
At the beginning of a process for machining with the main spindle,
a subprogram for disabling the sub–spindle is automatically called.
The O9028 subprogram is called to enable the sub–spindle. The
O9027 subprogram is called to disable the sub–spindle.
When the program is converted to an NC program, the above block
is converted as a block for calling the M code.
– Enabling the sub–spindle : Mm1
; (m1 is the M code for calling
a subprogram.)
– Disabling the sub–spindle : Mm2
; (m2 is the M code for calling
a subprogram.)
– Machining menu parameters
Machining menus can be displayed separately by specifying
parameter Nos. 9791 (for tool post 1 or the main spindle) and 9792
(for tool post 2 or the sub spindle) accordingly–.
For details, see the parameter descriptions.
NOTE
By setting an M code in parameter No. 9093 (SUBSPM), the
M code can be simply executed without the need to call the
O9028 subprogram. Similarly, by setting an M code in
parameter No. 9094 (MANSPM), the M code can be
executed without having to call the O9027 subprogram.
5.7
AUTOMATIC OUTPUT
OF THE M CODE FOR
CONTROLLING THE
SUB–SPINDLE
(AND THE M CODES
FOR CALLING
SUBPROGRAMS)