1. The workpiece is cut off from the main spindle and transferred to the sub-spindle
If the main and sub-spindle phase synchronization is required, insert a separate segment (M07) below the program segment containing M32 in the following program
N____; Sequence number and additional information in brackets
G10 P0 Z-____; Input workpiece offset from the program
G97 S____M14 P1; Set spindle speed and direction
M98 P1; Call safety subroutine
T____; Specify tool position and tool compensation
X____Z____M32; Rapidly move to the starting point, main and sub-spindle synchronization
G50 S____; Limit the maximum speed of the sub-spindle
G96 S____; Set the surface speed
M56; Release the sub-spindle chuck
G0 E____; Rapid positioning of the sub-spindle
M77; Low torque of the sub-spindle drive
G1 G98 E-____F____; Feed to the transfer setting point
G4 U0.2; Pause M57; Clamp the sub-spindle chuck
G4 U0.2; Pause M76; Sub-spindle drive off
M78; Sub-spindle drive normal torque
G1 G99 X____F_____; Cut off
G53 E#5025; E-axis position confirmation
G4 U0.2; Pause
G0 G53 E_____; Sub-spindle returns to origin
X____; Tool X direction blank out
M98 P1; Call safety subroutine
M1; Select stop
Xinfa CNC tools have the characteristics of good quality and low price. For details, please visit: CNC Tools Manufacturers – China CNC Tools Factory & Suppliers (xinfatools.com)
2. The workpiece is transferred from the main spindle to the sub-spindle
N____; Sequence number and additional information in brackets
G10 P0 Z-____; Enter workpiece offset from the program
G97 S____M14 P1; Set spindle speed and direction
M98 P1; Call safety subroutine
M32; Main and sub-spindle synchronization M56; Sub-spindle chuck release
G0 E-____; Quickly to the transfer setting point
M77; Sub-spindle drive low torque
G4 U0.2; Pause
M57; Sub-spindle chuck clamping
G4 U0.2; Pause
M76; Sub-spindle drive off
M21; Spindle chuck release
G4 U0.2 Pause
M78; Sub-spindle drive normal torque
G53 E#5025; E-axis position confirmation
G0 G53 E_____; Sub-spindle returns to origin
M98 P1; Call safety subroutine
M1; Select stop
3. The workpiece is transferred from the sub-spindle to the main spindle
N____; Sequence number and additional information in brackets
G10 P0 Z-____; Enter workpiece offset from the program
G10 P0 E-____; Enter workpiece offset from the program
G97 S____M14 P1; Set spindle speed and direction
M98 P1; Call safety subroutine
M32; Main and sub-spindle synchronization
M21; Spindle chuck release
M36; Spindle air blowing on
G0 E-____; Quickly transfer to the set point
M77; Sub-spindle drive low torque
G4 U0.2; Pause
M22; Clamp the spindle chuck
G4 U0.2; Pause
M37; Spindle air blow off
M76; Sub-spindle drive off
M56; Sub-spindle chuck release
G4 U0.2; Pause M78; Sub-spindle drive normal torque G53 E#5025; E axis position confirmation G0 G53 E_____; Sub-spindle return to origin M98 P1; Call safety subroutine M1; Select stop
Post time: Nov-18-2024