Billet Program

Mc2

AzB Silver Member
Silver Member
Hey guys. On my way up to visit with KJ today, I came up with a simple billet program that is adjustable. You will have to press cycle start in Mach3 for every pocket but it is simple to set up. You could get creative. Create six pockets of one size, index the a axis 30 degrees. Re-zero a axis and then run an additional 6 pockets of onother diameter. Please let me know if this is of interest to you.

Jim.

Copy and paste past this point
(PROGRAM WRITTEN BY JAMES BABCOCK @ Mc2 )
(ANY MODIFICATION SHOULD ONLY BE DONE BY SOMEONE THAT KNOWS WHAT THE HELL THEY ARE DOING)
(WE ASSUME NO RESPONSABILITY OF ANY HARM OR DAMAGE THAT THIS PROGRAM MAY CAUSE)

#500=12 (Number of stitches in billet)
#501=.050 (Width of each pocket and must be larger than cutter)
#502=.0312 (Diameter of cutter and must be smaller than pocket)
#503=6.0 (Length of pocket)
#504=.125 (Depth of pocket)
#505=15 (Feed rate of cutter)

(Do not change anything below this line)

#506=[360/#500] (Math for indexing do not change)
#507=[#501-#502](Math for offset)
#508=[#507/2] (Math for offset)

G0 X0 Y0 Z.1

G1 Z[#504/-1] F#505
G1 Y#508 F#505
G1 X#503 F#505

G1 Y[#508/-1] F#505
G1 X0.0 F#505

G0 Z.1
G0 Y0

G91
G0 A#506
G90
M30
 
Last edited:
Hey guys. On my way up to visit with KJ today, I came up with a simple billet program that is adjustable. You will have to press cycle start in Mach3 for every pocket but it is simple to set up. You could get creative. Create six pockets of one size, index the a axis 30 degrees. Re-zero a axis and then run an additional 6 pockets of onother diameter. Please let me know if this is of interest to you.

Jim.

Copy and paste past this point
(PROGRAM WRITTEN BY JAMES BABCOCK @ Mc2 )
(ANY MODIFICATION SHOULD ONLY BE DONE BY SOMEONE THAT KNOWS WHAT THE HELL THEY ARE DOING)
(WE ASSUME NO RESPONSABILITY OF ANY HARM OR DAMAGE THAT THIS PROGRAM MAY CAUSE)

#500=12 (Number of stitches in billet)
#501=.050 (Width of each pocket and must be larger than cutter)
#502=.0312 (Diameter of cutter and must be smaller than cutter)
#503=6.0 (Length of pocket)
#504=.125 (Depth of pocket)
#505=15 (Feed rate of cutter)

(Do not change anything below this line)

#506=[360/#500] (Math for indexing do not change)
#507=[#501-#502](Math for offset)
#508=[#507/2] (Math for offset)

G0 X0 Y0 Z.1

G1 Z[#504/-1] F#505
G1 Y#508 F#505
G1 X#503 F#505

G1 Y[#508/-1] F#505
G1 X0.0 F#505

G0 Z.1
G0 Y0

G91
G0 A#506
G90
M30

Looks interesting. Can't wait to try it. Thanks for sharing. I'm not quite sure I understand line 502.
Should that read "must be smaller than pocket"?
 
Just wanted to post an updated program. This program will index a axis the number of times set in the macro vaeribles area. This program will most likely work with just Mach3. Let me know what you think. Jim.

(PROGRAM WRITTEN BY JAMES BABCOCK @ Mc2 )
(ANY MODIFICATION SHOULD ONLY BE DONE BY SOMEONE THAT KNOWS WHAT THE HELL THEY ARE DOING)
(WE ASSUME NO RESPONSABILITY OF ANY HARM OR DAMAGE THAT THIS PROGRAM MAY CAUSE)

#500=12 (Number of stitches in billet)
#501=.05 (Width of each pocket and must be larger than cutter)
#502=.031 (Diameter of cutter and must be smaller than total cut but at least half diamet of the cut)
#503=6.0 (Length of pocket)
#504=.125 (Depth of pocket)
#505=65 (Feed rate of cutter)
#509=0.0 (Start angle of first pass)
#510=1.0 (Z safe zone away from the billet)
#511=0.1 (Rapid plane for Z axis)

(Do not change anything below this line)

#506=[360/#500] (Math for indexing do not change)
#507=[#501-#502](Math for offset)
#508=[#507/2] (Math for offset)

G0 X0 Y0 Z#510
G0 A#509
G0 Z#511
M98 P1000 L#500

Z#510
M30

O1000 (Sub program that can be modified)

G1 Z[#504*-1] F#505
G1 Y#508 F#505
G1 X#503 F#505

G1 Y[#508*-1] F#505
G1 X0.0 F#505

G0 Z#511
G0 Y0
G91
G0 A#506
G90

M99
 
Back
Top