- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Folks:
We have a Hurco 5 axis machine with a U(currently using as 3+2) and I'm modifying Post Processor code for it. One remaining issue is that calls for A axis rotation move the U in the opposite direction that that which is expected. We can move 110 degrees positive in A and 30 degrees negative in A. The way the work is setup in Fusion360 CAM and the tool orientation lead me to believe the A axis should rotate positive 90 degrees. Instead it tries to go negative (away from the front of the machine) and causes a machine limit error in A, due to the 30 degree rotation limit in that direction. Below are code snippets for axis setup and rotation commands.
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[110,-30], preference:1, resolution:0.001});
var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360*10,360*10], resolution:0.001});
*Executing the code snippet below generates negative numbers for the A axis.
The question is why is this occuring and what to look for to fix it?
Thanks!
writeBlock( // Angles for G68.2
gFormat.format(68.2),
"X" + xyzFormat.format(currentSection.workOrigin.x),
"Y" + xyzFormat.format(currentSection.workOrigin.y),
"Z" + xyzFormat.format(currentSection.workOrigin.z),
"A" + abcFormat.format(abc.x),
conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(abc.y)),
"C" + abcFormat.format(abc.z)
); // set frame
Solved! Go to Solution.
Fusion