What's new
What's new

Mazatrol Nexus - EIA - Bar Pull and Parting-off?

Isak Andersson

Aluminum
Joined
Nov 3, 2021
Hi. I am trying to make a macro to make the bar-pulling and parting-off operations a bit more optimized and automated. I based my macro on the code example in this post:

I have a few questions about the M-Codes:
1. What does M360 do? The example says (S.S ORIENT CLAMP) but in the M-Code List its Function is left blank.
2. Same thing with M359.
3. In M502 (MAIN AND SUB SYNC) the program locks up. Do I need a different M-Code or do I need to prepare it with other M or G-Codes?

The machine is a QT Nexus 250-II MS




This is my macro so far: (The variables will be replaced by arguments later)

#2 = -522.5 (B = W AXIS PART LOCATION)
#22 = 49. (V = PART LENGTH + PARTING-OFF TOOL WIDTH + FACE CUT*2)
#26 = 48.5 (Z = PARTING-OFF Z LOCATION)
#24 = 56. (X = PARTING-OFF X LOCATION START)
#21 = 19. (U = PARTING-OFF X LOCATION END)
#9 = 0.12 (F = FEED RATE)
#19 = 130. (S = CUTTING SPEED)

T0404.04(GROOVE OUT 3. D)
M306 (SUB OPEN)
G99 G18 G0 G40 G28 U0.
G0 Z[#22 - #26]

M360 (SUB ORIENT CLAMP ?)
M319 S250 (SUB SPINDLE ORIENT S=DEG)
M16 (MAIN SPINDLE ORIENT)
G0 B[#2 + 2.] (RAPID 2MM IN FRONT OF PART)
G1 G98 B#2 F500. (FEED TO GRAB PART WITH SUB)
M307 (SUB CLOSE)
G98 G4 P500
M206 (MAIN OPEN)
G98 G4 P500
G1 B[#2 + #22] F1000. (FEED PART OUT)
G98 G4 P500
M207 (MAIN CLOSE)
M502 (MAIN AND SUB SYNC - THIS LOCKS THE MACHINE. WHY?)
M359 (?)

G96 M3 M8 S#19 F#9
G0 Z[#22 + #26]
G0 X#24
G1 X#21
G0 X#24
G28 B0.
G28 U0.
M5 (MAIN SPINDLE STOP)
M505 (MAIN AND SUB SYNC CANCEL)

M99 (RETURN TO MAIN PROGRAM)
 
Hi. I am trying to make a macro to make the bar-pulling and parting-off operations a bit more optimized and automated. I based my macro on the code example in this post:

I have a few questions about the M-Codes:
1. What does M360 do? The example says (S.S ORIENT CLAMP) but in the M-Code List its Function is left blank.
2. Same thing with M359.
3. In M502 (MAIN AND SUB SYNC) the program locks up. Do I need a different M-Code or do I need to prepare it with other M or G-Codes?

The machine is a QT Nexus 250-II MS




This is my macro so far: (The variables will be replaced by arguments later)

#2 = -522.5 (B = W AXIS PART LOCATION)
#22 = 49. (V = PART LENGTH + PARTING-OFF TOOL WIDTH + FACE CUT*2)
#26 = 48.5 (Z = PARTING-OFF Z LOCATION)
#24 = 56. (X = PARTING-OFF X LOCATION START)
#21 = 19. (U = PARTING-OFF X LOCATION END)
#9 = 0.12 (F = FEED RATE)
#19 = 130. (S = CUTTING SPEED)

T0404.04(GROOVE OUT 3. D)
M306 (SUB OPEN)
G99 G18 G0 G40 G28 U0.
G0 Z[#22 - #26]

M360 (SUB ORIENT CLAMP ?)
M319 S250 (SUB SPINDLE ORIENT S=DEG)
M16 (MAIN SPINDLE ORIENT)

G0 B[#2 + 2.] (RAPID 2MM IN FRONT OF PART)
G1 G98 B#2 F500. (FEED TO GRAB PART WITH SUB)
M307 (SUB CLOSE)
G98 G4 P500
M206 (MAIN OPEN)
G98 G4 P500
G1 B[#2 + #22] F1000. (FEED PART OUT)
G98 G4 P500
M207 (MAIN CLOSE)
M502 (MAIN AND SUB SYNC - THIS LOCKS THE MACHINE. WHY?)
M359 (?)

G96 M3 M8 S#19 F#9
G0 Z[#22 + #26]
G0 X#24
G1 X#21
G0 X#24
G28 B0.
G28 U0.
M5 (MAIN SPINDLE STOP)
M505 (MAIN AND SUB SYNC CANCEL)

M99 (RETURN TO MAIN PROGRAM)
The program you used as an example is for picking off a milled part. If you are picking off a round part you can eliminate some of the code. The red is not needed. M360 tells my machine (at least 2 generations older than yours) to clamp the sub spindle C axis when positioned. M319 Sxxx tells sub to position to 250 degrees. M16 orients main to 0 deg. M359 unclamps sub C axis.

I just ran this last week

T1212G0G40G99G18(CUT-OFF)
M306
M358
G99G18
G28U0.
G0Z0.
G0B-16.7
G1G98B-17.933F50.
M307
G4P0500
M6
G4P0500
G1B-14.975
G4P0500
M7
M502

T1212G0G40G99
M8
G96M3S700
G0X1.4Z.18
G1X-.03F.008
G0X3.0
G28B0.
G28U0.
G0Z7.
M5
M505
M1
 
I have not ran a Nexus control so I have nothing. You said you are trying to optimize the pull and cut off. Do you have an example of a pull and cut off that works on that machine?
 
Never mind, I figured it out. It needed M511 (Synchronized rotation with main as master) instead of M502. I assume M512 (Synchronized rotation with the sub as master) would work as well but I don't know how.
 








 
Back
Top