Hi @vaishnavinambiarr ,
You can use Mach3Mill post processor And add following codes in your post processor.
function onOpen() {
if (getProperty("useRadius")) {
maximumCircularSweep = toRad(90); // avoid potential center calculation errors for CNC
}
//update the logic from here to..
if (true) {
var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], offset:[0, 0, 0], range:[-180.00, 180.00]});
var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360.00, 360.00], cyclic:false});
machineConfiguration = new MachineConfiguration(bAxis, cAxis);
setMachineConfiguration(machineConfiguration);
optimizeMachineAngles2(1); // map tip mode - we compensate below
}
//here
if (!machineConfiguration.isMachineCoordinate(0)) {
aOutput.disable();
}
Please Add the offset value of the rotary axis in offset[0, 0, 0].
What if offset ? : Defines the rotational position of the axis in the format of a coordinate, i.e. [0, 0, 0]. For machines that support TCP the offset parameter can be omitted. The offset values for tables are based on the part origin defined in the Setup. The offset value for the rider or primary rotary head is based on the distance from the tool stop (or spindle face) position to the pivot point of the rotary head. The offset value for the carrier rotary head (when the machine has a head/head configuration) is based on the pivot point of the rider axis to the pivot point of the carrier axis. The default is [0, 0, 0].
You can set the workplane at top of you chuck or resting face of the Job.
Thanks,
Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation