
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
I have got my post (for a litz 3+1 VMC)working pretty well now, but there is one remaining issue.
I changed the post to only output A axis moves if that toolpath requires it, as the 4th axis is only used occasionally, and locking and unlocking the 4th axis takes a fair bit of time.
The issue is that if the 4th axis is moved by the first toolpath and the second toolpath uses the default 4th axis position - 0 deg, then this is not posted.
ie: 1st toolpath machines part at 90deg, post rotates A from current position to 90.
2nd toolpath machines part at 0deg, no A move is posted.
It seems like the safest way to address this is for the post to output a A axis move for every toolpath *IF* there are any A axis moves in the program?
Can someone please help me get this working?
i believe the following code controls what is posted: Entire post attached also.
if (abc.isNonZero()) { onCommand(COMMAND_UNLOCK_MULTI_AXIS); if (useMultiAxisFeatures) { if (abc.isNonZero()) { writeBlock(gFormat.format(68.2), "X" + xyzFormat.format(0), "Y" + xyzFormat.format(0), "Z" + xyzFormat.format(0), "I" + abcFormat.format(abc.x), "J" + abcFormat.format(abc.y), "K" + abcFormat.format(abc.z)); // set frame writeBlock(gFormat.format(53.1)); // turn machine } else { writeBlock(gFormat.format(69)); // cancel frame } } else { gMotionModal.reset(); writeBlock( gMotionModal.format(0), conditional(machineConfiguration.isMachineCoordinate(0), "A" + abcFormat.format(abc.x)), conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(abc.y)), conditional(machineConfiguration.isMachineCoordinate(2), "C" + abcFormat.format(abc.z)) ); } onCommand(COMMAND_LOCK_MULTI_AXIS); currentWorkPlaneABC = abc; }
Thankyou
Solved! Go to Solution.