Siemens 840D 5-Axis Preference Tilt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am currently in the process of adapting a PP for a 5-axis machine for simultaneous machining. Unfortunately, I have the problem that the preferred direction is not taken into account.
Code in PP:
if (true) { // 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:1, tcp:useTCP});
machineConfiguration = new MachineConfiguration(aAxis, cAxis);
CYCLE800 Code in PP:
if (machineConfiguration.isMultiAxisConfiguration()) {
var machineABC = abc.isNonZero() ? getWorkPlaneMachineABC(currentSection.workPlane, false, false) : abc;
DIR = turn ? (machineABC.x > 0 || machineABC.y > 0) ? 1 : -1 : 0;
if (useABCPrepositioning) {
writeBlock(
gMotionModal.format(0),
aOutput.format(machineABC.x),
bOutput.format(machineABC.y),
cOutput.format(machineABC.z)
);
}
setCurrentABC(machineABC); // required for machine simulation
}
He turns me over every time [-1]. Say the C-axis by 180°
N185 CYCLE800(1,"TISCH_AC",200000,57,0,0,0,0,0,0,0,0,0,-1)
I don't use any machine configuration in Fusion.