What's new
What's new

Mazatrol Nexus - Can't change to G59 Offset in Sub-Program?

Isak Andersson

Aluminum
Joined
Nov 3, 2021
Hello. I'm trying to write a macro to flush out chips from the chucks before doing a part transfer. To do this I need to move the offset to where the sub is. My idea was to use G59 as the default offset for the sub-chuck when it's in the home position. The problem is that I can't seem to change the offset from Mazatrol to G59. Why is that?

Edit:
I figured out that G53.5 Z517. can move the Mazatrol offset. Probably best to avoid G54-G59 altogether.

This is my macro so far:

(#9 F = FEED)
(#19 S = SPEED)
(#24 X = X MAIN)
(#26 Z = Z MAIN)
(#21 U = X SUB)
(#23 W = Z SUB)

G53 B0. X0.
T0501.04 G0 G40 G99 G18 (GENERAL IN 32 D)
M8
G96 M3 S#19 F#9

G0 Z10.
G0 X#24
G1 Z#26
G0 Z10.

T0501.01 G0 G40 G99 G18 (GENERAL IN 32 A)

G59 (SUB CHUCK FACE Z 517 - DOESN'T WORK!)

M902 (SUB SPINDLE SELECT)
M307 (CLOSE CHUCK)
G96 M304 R2 S#19 F#9

#33 = #23 - 85.

G0 Z#33 X#21
G1 Z#23
G0 Z#33

M302 (MILL END)
M305 (SUB STOP)
M306 (OPEN CHUCK)

G53 B0. X0.
M99
 
Last edited:
You stumbled onto the correct answer. While it is technically possible to use work offsets with a Mazak lathe its a whole can of worms that really doesn't work particularly well. Best to use G53.5 and shift the offset as needed.

As far as chuck wash cycles, I almost exclusively use G53 machine coordinates for those moves. That way nothing gets screwy in the sub program call or in the main program when the offset needs to be accurate. Just my $.02
 








 
Back
Top