Problem with machine alignment after component position adjustment

Problem with machine alignment after component position adjustment

marcus.toepke
Advisor Advisor
403 Views
5 Replies
Message 1 of 6

Problem with machine alignment after component position adjustment

marcus.toepke
Advisor
Advisor

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.

Screenshot_3.png

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.

Screenshot_4.png

 

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");
}

 

 

0 Likes
Accepted solutions (1)
404 Views
5 Replies
Replies (5)
Message 2 of 6

a.laasW8M6T
Mentor
Mentor

Hi

 

The Machine rotating isn't really an issue, the Part is still correctly aligned to the machine, the view just ends up aligned to the Model Z instead, its quite annoying but shouldn't be affecting any output.

 

You have obviously customized your post processor to write the preset based on the table attachment point.

Its quite possible that your machine Model has been setup correctly but that it was done in a way that affects the output of the coordinates.

The machine model in Machine Builder should be aligned with the Model orientation, but you can also just use the orient Machine Model Function to align it which may be having unintended effects.

alignmachine.png

 

Its also possible that you may need to orient the part in model space(unlikely but may be worth a shot)

Andrew Laas
Senior Machinist, Scott Automation


EESignature

0 Likes
Message 3 of 6

marcus.toepke
Advisor
Advisor

Yes, if the machine is aligned so that it does not rotate after the workpiece has been set, it works well!
But that would mean I would need several machines for parts with more than one clamping, if I understand correctly.
For now, I have helped myself by adding the option to enter the position manually in the post-processor setup. I will continue to experiment with the machine alignment and report back.

0 Likes
Message 4 of 6

rosie_lucas1
Autodesk
Autodesk

Hello @marcus.toepke,

Did the information provided by @a.laasW8M6T help you and answer your question?

If yes, please click on the "Accept Solution" button on the post(s) that solved your problem. This will assist other community users in finding and benefiting from this information.

If not, please do not hesitate to give an update in this thread so all community members receive an update on the progression of your question, and can suggest next steps that may be helpful for you to achieve what you're looking for.

All the best,

Rosie | Community Manager

Rosie | Community Manager
0 Likes
Message 5 of 6

marcus.toepke
Advisor
Advisor

@a.laasW8M6T 

I have now tried a few more things.

If I realign the workpiece for each setup in the design and the machine axes correspond to the Fusion World axes, then it works!

 

However, I believe that this should also work with a rotated machine, as I am referring to the theoretical workpiece mounting position when calculating the position.

 

var tableAttachPoint = machineConfiguration.getTableAttachPoint();
	msc = toWCSPosition(tableAttachPoint)

 

Since the rest of the program is output correctly regardless of how the setup is aligned, the error must be in my postprocessor.

 

If I find out more, I will report back.

0 Likes
Message 6 of 6

marcus.toepke
Advisor
Advisor
Accepted solution

Okay, I think I've found a solution, even though it doesn't really make sense to me.
When I insert the machine table as a clamping device in my design and set the part attachment point on the table, everything works as it should.
But if I only move the part in the setup on the simulation machine, it doesn't work.

So it was another typical E70 error!
The error was sitting about 70 cm in front of the monitor!

 

I always feel so stupid when that happens! 😩