Author Topic: Really need Mach4 post-processor for Cambam  (Read 13077 times)

Offline sranta

  • Ewok
  • *
  • Posts: 5
    • View Profile
Really need Mach4 post-processor for Cambam
« on: February 07, 2022, 02:16:01 am »
Hello, whoever said the Mach3 post-processor will work for Mach4 is WRONG!  Mach4 will not process the G81 commands that the Mach3 post-processor spits out.  Mach3 post-processor produces the first G81 line correctly but if there is more than one hole in the canned cycle operation, it prefixes "G81" on each line after until the G80 command.  While this may have worked on Mach3...it causes big issues for Mach4 with errors that don't hint at the issue going on.  In Mach4, there can only be ONE G81 command before G80.  Any holes after the first must be X/Y coordinates only...not proceeded by G81!
As an example of several holes that need to be drilled with a canned cycle, Mach3 post-processor generates (with the extra G81 codes causing Mach4 problems in RED):

( Make Screw Hole )
G17
M3 S18000
G0 X2.5 Y77.875
G98
G81 X2.5 Y77.875 Z-0.7 R0.0 F87.0
G81 X13.5313 Z-0.7
G81 X24.5625 Z-0.7
G81 X35.5938 Z-0.7
G80

A Mach4 post-processor (Centroid post-processor also does this) needs to output the same gcode as follows:

( Make Screw Hole )
G17
M3 S18000
G0 X2.5 Y77.875
G98
G81 X2.5 Y77.875 Z-0.7 R0.0 F87.0
X13.5313 Z-0.7
X24.5625 Z-0.7
X35.5938 Z-0.7
G80

Hopefully a wiz at Cambam post-processor writing can help the community out with a proper post-processor for Mach4.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5333
  • Made in England
    • View Profile
Re: Really need Mach4 post-processor for Cambam
« Reply #1 on: February 07, 2022, 07:09:52 am »
Try this one.
I copied this from the Centroid post and added it to the MOP section, <Drill>{$_g81} {$_x} {$_y} {$_z} {$_r} {$_f}</Drill>
making G81 modal.

« Last Edit: February 07, 2022, 07:17:49 am by EddyCurrent »
Filmed in Supermarionation