Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The following situation:
I have a setup.
When I go to the settings and change the component position,
the entire machine rotates after confirming the settings.
Can anyone help me figure out what I'm doing wrong?
Is my machine model set up incorrectly?
My actual problem is that the workpiece position is also rotated in the postprocessor output.
However, this only applies to the WCS output relative to the table clamping point.
this is my postprocessor code for this section:
It works good as long the machine dont rotate 😒
function toWCSPosition(mcsPosition) {
var partAttachPoint = currentSection.getPartAttachPoint();
var tableAttachPoint = machineConfiguration.getTableAttachPoint();
var wcsPosition = Vector.sum(partAttachPoint, Vector.diff(mcsPosition, tableAttachPoint));
return wcsPosition;
}
//
// Preset für Werkstück schreiben, auf Grund der Ausrichtung im CAM auf Maschine
function writePreset(){
var tableAttachPoint = machineConfiguration.getTableAttachPoint();
msc = toWCSPosition(tableAttachPoint)
writeBlock("* - LBL - " + "BASIS_PRESET");
writeBlock("LBL " + quote("BASIS_PRESET"));
writeBlock("CYCL DEF 391 PRESET Tabelle ~" + EOL
+ "Q305=+0 ;NR. IN TABELLE ~" + EOL
+ "Q381=" + xyzFormat.format(msc.getX()*-1) + " ;X-PRESET ~" + EOL
+ "Q382=" + xyzFormat.format(msc.getY()*-1) + " ;Y-PRESET ~" + EOL
+ "Q383=" + xyzFormat.format(msc.getZ()*-1) + " ;Z-PRESET ~" + EOL
+ "Q384=+0 ;A-PRESET ~" + EOL
+ "Q385=+0 ;C-PRESET ~" + EOL
+ "Q386=+0 ;PRESET, Maschinennullpunkt, SPA SPB SPC ~" + EOL
+ "Q387=+1 ;PRESET aktivieren ~" + EOL
+ "Q388=+0 ;B-PRESET ~" + EOL
+ "Q389=+1 ;+1=TNC7 / -1=iTNC530"
);
writeBlock("FN 0: QR30 = +0 ;Basisparameter schreiben ausschalten");
// writeBlock("LBL " + quote("NO_BASIS_PRESET"));
writeBlock("LBL 0");
}
Solved! Go to Solution.