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)
Need lathe EIA example with live tools and subspindle
Recently purchased a lathe with Fusion 640T control. I'm a Fanuc guy and I can't find any information in our EIA manual about codes for either live tools or subspindle work. Can someone please share an example program that will get me going? It will be greatly appreciated!
www.practicalmachinist.com
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)