21
G-Code, CAD, and CAM discussions / Re: How to make a Macro Modal in Mach3
« on: June 17, 2015, 06:46:01 PM »
Thanks for fast reply :-)
-------------------
I need a P (pause) after M5 to allow for spindle coast to stop, before the spindle reverse. Hard on machine and trips breaker if I do a reverse spindle (m3 to m4) while still spinning fast.
This sequence works in the real world for one hole with a tension compression tapping head:
g0
z.2
m3
g1 z-.3 f2.25
m5
g4 p1.5
m4
g1 z.1
m5
I have hundreds of holes to tap, so I wanted something modal. If it was modal I can use lazycam etc to generate a list of x,y hole coordinates for a G81 and then just copy & paste that list for the tapping cycle......if it comes down to it i guess i can use some other utility/method (spreadsheet ?) to generate the REPETITIVE code in lieu of a MODAL solution.
-------------------
I need a P (pause) after M5 to allow for spindle coast to stop, before the spindle reverse. Hard on machine and trips breaker if I do a reverse spindle (m3 to m4) while still spinning fast.
This sequence works in the real world for one hole with a tension compression tapping head:
g0
z.2
m3
g1 z-.3 f2.25
m5
g4 p1.5
m4
g1 z.1
m5
I have hundreds of holes to tap, so I wanted something modal. If it was modal I can use lazycam etc to generate a list of x,y hole coordinates for a G81 and then just copy & paste that list for the tapping cycle......if it comes down to it i guess i can use some other utility/method (spreadsheet ?) to generate the REPETITIVE code in lieu of a MODAL solution.