1
General Mach Discussion / Re: mach3 pneumatic z axis setup
« Last post by ZASto on May 05, 2026, 11:37:51 PM »Or, you can use DIR signal for Z axis to control your cylinder.
eg.
G0 X100 Y100 // gantry moves to coordinate for drilling
G1 Z-10 // your cylinder gets energized and your drill goes down
G0 Z0 // your cylinder gets deenergized and your drill goes up
G4 P1.0 // wait a certain amount of time for the drill to clear the material surface
proceed to next hole
...
You can easily implement it in your postprocessor of your CAM software, or whatever you use to generate G-code
No switches, no aditional M codes, no extra configuration in Mach3
eg.
G0 X100 Y100 // gantry moves to coordinate for drilling
G1 Z-10 // your cylinder gets energized and your drill goes down
G0 Z0 // your cylinder gets deenergized and your drill goes up
G4 P1.0 // wait a certain amount of time for the drill to clear the material surface
proceed to next hole
...
You can easily implement it in your postprocessor of your CAM software, or whatever you use to generate G-code
No switches, no aditional M codes, no extra configuration in Mach3

Recent Posts