I'm just looking for a way to make the post processor for a generic mach3 mill add a 4 second pause automatically..
Example down below
POSTED
(BORE1)
M5
M9
T1 M6
S10000 M3
G54
FIXED
(BORE1)
M5
M9
T1 M6
S10000 M3
G4 P4
G54
Solved! Go to Solution.
Solved by LibertyMachine. Go to Solution.
Go into your post processor and find this line:
if (insertToolCall || isFirstSection() || (rpmFormat.areDifferent(tool.spindleRPM, sOutput.getCurrent())) || (tool.clockwise != getPreviousSection().getTool().clockwise)) { if (tool.spindleRPM < 1) { error(localize("Spindle speed out of range.")); return; } if (tool.spindleRPM > 99999) { warning(localize("Spindle speed exceeds maximum value.")); } writeBlock( sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4) ); }
We are going to add a line at the end (in red):
if (insertToolCall || isFirstSection() || (rpmFormat.areDifferent(tool.spindleRPM, sOutput.getCurrent())) || (tool.clockwise != getPreviousSection().getTool().clockwise)) { if (tool.spindleRPM < 1) { error(localize("Spindle speed out of range.")); return; } if (tool.spindleRPM > 99999) { warning(localize("Spindle speed exceeds maximum value.")); } writeBlock( sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4) ); writeBlock(gFormat.format(4), "P" + "4"); }
This is a "dumb" fix, in that it will always post out the 4 second dwell. If you want it to be ignored if the spindle speed is below a certain point, this will require additional code.
You will want to save this post to a new location on your computer, not the OEM post location, as it gets overwritten each update
Can't find what you're looking for? Ask the community or share your knowledge.