HI @Anthony.Williamson2G362 ,
This is a known issue for the head-head machines. It will be fixed soon.(March release)
The reason behind here is the post engine expects the rotary head rider (A/B axis) should come first and then the rotary head carrier (C axis) for the head-head machine. but the machine's head chain is interpreted in reverse order on the postprocessor side, but in forward order on the fusion side.
For the Time being to get it to work, Please add the following code in the function defineMachine()
function defineMachine() {
var useTCP = true;
if (false) { // note: setup your machine here
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120, 120], preference:1, tcp:useTCP});
var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360, 360], preference:0, tcp:useTCP});
machineConfiguration = new MachineConfiguration(aAxis, cAxis);
setMachineConfiguration(machineConfiguration);
if (receivedMachineConfiguration) {
warning(localize("The provided CAM machine configuration is overwritten by the postprocessor."));
receivedMachineConfiguration = false; // CAM provided machine configuration is overwritten
}
}
// To correct the order of Rotary axis in Head-Head machines
// Add the following code from here to
if (machineConfiguration.isHeadConfiguration() && machineConfiguration.getAxisU().getCoordinate() == 2) {
var axis1 = machineConfiguration.getAxisU();
var axis2 = machineConfiguration.getAxisV();
machineConfiguration.setAxisV(axis1);
machineConfiguration.setAxisU(axis2);
}
// to here
if (!receivedMachineConfiguration) {
// multiaxis settings
Save the post modification and test the code.
Thanks,
Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation