Hi @sislana
You definition need to be slightly improved.
As I don't want to guide you through modifying the post, in twenty different places, the easiest will be that one:7
The kinematic definition and the axis output are related thru the coordinates variable.
It is driven by the three lines like that one:
if (!machineConfiguration.isMachineCoordinate(0)) {
aOutput.disable();
}
What we will do is defining your first axis as an axis rotating aroung Z, or else the c Axis.
var aAxis = createAxis({coordinate:2, table:false, axis:[0,0,1], offset:[-0.3,149.84,0], range:[-280,30], cyclic:false, preference:0, tcp:useTCP});
var bAxis = createAxis({coordinate:1, table:false, axis:[0,0.766672327695,0.64203858291067], offset:[0,0,0], range:[-280,30], cyclic:false, preference:0, tcp:useTCP});
machineConfiguration = new MachineConfiguration(aAxis, bAxis);
setMachineConfiguration(machineConfiguration);
optimizeMachineAngles2(3); // optimize for head head machine
I changed two elements, the coordinate for the aAxis definition, and the optimizeMachineAngles2, as your machine does NOT support RTCP, and it's a head / head configuration.
Then we need to change the prefix for the axis, as the cOutput variable will be using a C prefix, but this aggregate is not managing a C axis, but an A axis. (Not respecting the usual axis denomination)
We have to edit that line, near the beginning of the file:
var cOutput = createVariable({prefix:"A"}, abcFormat); // changing the prefix to A
Regards
______________________________________________________________
If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!