Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: ynnek on April 24, 2015, 08:56:18 AM

Title: Add G and / or M codes to M6Start - How to?
Post by: ynnek on April 24, 2015, 08:56:18 AM
How would one add codes for specific movements to happen before & then after the tool change routine in the M6Start file. What I am trying to do is this: I have a 17 tool ATC & it is working great. I want to install a vacuum shoe on the spindle, & I don't have room above the tool rack to accommodate this, so I would like to "park" the boot before the tool change occurs, then re-acquire it before the machining resumes. I have the mechanics and design of this done, I just need help integrating this into the macro.
Title: Re: Add G and / or M codes to M6Start - How to?
Post by: BR549 on April 24, 2015, 11:13:05 PM
Code"G00 X0.000 Y0.000"   will tell the Machine to move to X0 Y0 at rapid speed

Code"G01 X0.000 Y0.000 F20"    Move to 0,0 at feedrate of 20

Code" G53 X10.000 Y10.000"   Move to machine coords X10 Y10

Does that help?

(;-) TP