question

Guldberg avatar image
0 Likes"
Guldberg asked Jason Lightfoot commented

Find rotation on item exiting conveyor

Im creating a lib of some components for a pallet conveyor system. Attached is a simple version containing a pallet turn table a stacker and a destacker.


The challenge is that to properly handle the pallets I need to know their rotation when entering the fixed ressource and when the on pallet entry is triggered in the object process flow of the fixed ressource, the pallet has already left the conveyor.


I could add a table on the pallet itself on exit, but that seems like a clumpsy solution and I would rather that there were a more elegant solution to get position and rotation at exit?


To test it out in the attached model, if the entry direction for the first conveyor is changed the turntable is not turning it correctly - Palletstacker.fsm


1707134348057.png



FlexSim 24.0.1
conveyor
1707134348057.png (193.5 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Guldberg, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

As far as I know the item rotation always gets reset to (0, 0, 0) when exiting a conveyor. So I don't think you can get around storing the orientation somewhere before the item leaves the conveyor.

The Conveyor.Item class has an orientation property that represents the item's orientation as a single number between 1 and 24. Whether using that or the rotation vector is easier will depend on the specific use case and probably also personal preference.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Guldberg avatar image Guldberg commented ·
Hmm. Fair. My though was that there might be something that could be used in the port handover. I wonder if my trigger action for the processflow could be the OnExit of the current.inbound[1] that is the ExitTransfer of the upstream conveyor.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Guldberg commented ·

It would have to be the OnExit of the conveyor since the event does not actually trigger for the transfer. But other than that; yes that would work.

item-orientation-on-exit.fsm

0 Likes 0 ·