HI @tdtcps ,
Yes, You can configure the post to 4 axis also. Just change the codes as shown below.
if (properties.has5Axis) { // note: setup your machine here
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-115, 115], cyclic:true});
// var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-115, 300], cyclic:true, preference:1});
machineConfiguration = new MachineConfiguration(aAxis);
// machineConfiguration = new MachineConfiguration(cAxis);
setMachineConfiguration(machineConfiguration);
optimizeMachineAngles2(1); // TCP mode
}
Also change has5Axis as true or You can select/change it while post processing the codes from post Properties.
has5Axis: true, // specifies if multi-axis toolpath should be output
But If you go through "How to set up a 4/5 axis machine configuration link" then you will know how each code plays its role and where to modify it.
thanks,
Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation