What's new
What's new

sync sub spindle with main

weav6385

Plastic
Joined
Mar 14, 2023
Hello, I am trying to machine the front of this part with the main and the second side with the sub. This is a Samsung lathe with a sub spindle and live tooling. 3 hole chamfers are being put in on the 1st side 120 degrees apart. Then on the second side we are drilling through at the chamfer locations and chamfering that side. Both chamfers and the thru hole need to be concentric withing .001". We cant seem to get it better than .002 and sometimes its as bad as .01! (not repeating) Ill post my transfer hole chamfering sections of the program. If anyone cares to take a look and see if were doing something wrong here we would be so appreciative! Thanks for taking the time to read.

N5(CUT OFF)
(TRANSFER TO SUB)
G54
M70G18
M5T0505
G28U0.V0.B0.
Z-.377
M73
G4X.5
B-11.0
G4X.5
M111
G4X1.0
M74
M15
C0.0
M105
M15
A0.0
M131
G4X.5
B-19.0
G01G98B-20.848F175.
M110
(CUT OFF)
G50S2100
G96S325M3
G00X2.5Y0.0Z-.377M8
G01G99X1.3F.05
X.75F.005
X.15F.002
X-.04F.001
G00X1.35M9
B-20.0
G28U0.B0.
(SUB SPINDLE RETURN)
M132
M5
M105

N22
(CHAMFER .0787/.0945 HOLES)
G55
M70G18
M105
M119
G97S3200M13T0222
A0.0
M68
(CHAMFER CENTER HOLE)
G00X0.0Y0.0Z-.1
G01G98Z-.02F50.M8
Z.044F5.0
G00Z-.1
(CHAMFER HOLES)
X.826
Z.2
G01Z.305
G00Z.2
M69
A144.
M68
G01Z.305
G00Z.2
M69
A264.
M68
G01Z.305


M98P2
 

Orange Vise

Titanium
Joined
Feb 10, 2012
Location
California
Can you edit your code above and add comments next to all the M-codes?

It's going to be hard to figure out what's going on if we have to guess at what the M-codes do, some of which are unique to your machine.

Which M-code is spindle sync? Also did you command a phase sync or a speed sync?

Both chamfers and the thru hole need to be concentric withing .001".
Even if your code is perfect, that could be difficult if your drill is drifting.
 

weav6385

Plastic
Joined
Mar 14, 2023
Below is the same program with the M codes labeled. Sorry I didnt think about that. We are trying to sync the spindles using the M119 function which is explained in the book as "spindle synchronous control on" "In the specification having sub. spindle, the rotation mode is used by synchronizing the main spindle and sub. spindle, and reconsiling the phase.

I also see another option maybe I should be using? M131 "spindle synchronous control on / off" "In the specification having sub. spindle, the rotation mode is used by synchronizing the main spindle and sub. spindle, and reconciling the phase.

Tell me what you think! Please and thank you guys so much.

N5(CUT OFF)
(TRANSFER TO SUB)
G54
M70G18 (BAR FEED PUSH) (FRONT PLANE SELECTION)
M5T0505 (STOP SPINDLE)
G28U0.V0.B0.
Z-.377
M73 (PARTS CATCH)
G4X.5
B-11.0
G4X.5
M111 (UNCLAMP SUB)
G4X1.0
M74 (RETRACT PARTS CATCH)
M15 (STOP MILL SPINDLE)
C0.0
M105 (STOP SUB SPINDLE)
M15 (MILL SPINDLE STOP)
A0.0
M131 (SPINDLE SYNCHRONOUS CONTROL ON)
G4X.5
B-19.0
G01G98B-20.848F175.
M110 (CLAMP SUB CHUCK)
(CUT OFF)
G50S2100
G96S325M3
G00X2.5Y0.0Z-.377M8
G01G99X1.3F.05
X.75F.005
X.15F.002
X-.04F.001
G00X1.35M9
B-20.0
G28U0.B0.
(SUB SPINDLE RETURN)
M132 (SPINDLE SYNCHRONOUS CONTROL OFF)
M5 (STOP SPINDLE)
M105 (SUB SPINDLE STOP)

N22
(CHAMFER .0787/.0945 HOLES)
G55
M70G18 (BAR FEED PUSH) (FRONT PLANE SELECTION)
M105(SUB SPINDLE STOP)
M119 (SUB SPINDLE ORIENTATION)
G97S3200M13T0222
A0.0
M68(C AXIS BRAKE HIGH)
(CHAMFER CENTER HOLE)
G00X0.0Y0.0Z-.1
G01G98Z-.02F50.M8
Z.044F5.0
G00Z-.1
(CHAMFER HOLES)
X.826
Z.2
G01Z.305
G00Z.2
M69 (C AXIS BRAKE LOW)
A144.
M68(C AXIS BRAKE HIGH)
G01Z.305
G00Z.2
M69 (C AXIS BRAKE LOW)
A264.
M68 (C AXIS BRAKE HIGH)
G01Z.305
 
Last edited:

escapethewrmhole

Aluminum
Joined
Dec 10, 2017
I don't see where the main spindle get set to C0. But on your machine it may just do that while in synchronous mode.

Are you sure your drill is not wandering?
Are you sure the C0. points of both spindles are aligned?
 

guythatbrews

Stainless
Joined
Dec 14, 2017
Location
MO, USA
After the drilling operation can you go to each hole position and confirm location with a test indicator. Then reach througj and confirm location on far side to make sure drill is no wandering.
 








 
Top