Help with Mach4 Post Processor

Help with Mach4 Post Processor

Bernic
Participant Participant
740 Views
1 Reply
Message 1 of 2

Help with Mach4 Post Processor

Bernic
Participant
Participant

Hi

 

I've made the decision to setup continuous 4th axis on my Sherline and BF46mill. So, I drew the part and downloaded the Mach4 post processor, but when posting the g-code all Brackets gives  is a "1" at the top of the page and this was the same issue with Mach3(then realising Mach3 can't do it), no g-code.

 

Is there someone out there that knows how and what to fix? Or can Mach4 not do 4th axis continuous?

 

Thank you 

0 Likes
741 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni

The Mach3 post does have an option for a 4th axis table.  You define which axis the table rotates about using the 'Fourth axis mounted along' property.Rotary.png

The Mach4 post does not have this simple property, but t can also easily be setup as a 4th axis by modifying the following code in the onOpen function.  The 'axis' parameter defines the vector that the table rotates about, for example for a B-axis it will be '0,1,0' or '0,-1,0'.  You will also need to change 'coordinate:0' to 'coordinate:1' if you are defining a B-axis instead of an A-axis.

 if (true) { // change to 'true'
    var aAxis = createAxis({coordinate:0, table:true, axis:[-1, 0, 0], cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }

 

 



Bob Schultz
Sr. Post Processor Developer

0 Likes