question

Marcin S5 avatar image
0 Likes"
Marcin S5 asked Ryan Clark commented

How to change the rotation of the objects stored on Rack?

Hello,

I have a problem with the rotation of the Boxes being transffered to the Rack by Transporters. The Boxes are laid in such a position:

wrong2.png

As can be seen above, they are laid in parallel, max. 2 in one Bay.

I wish they were arranged this way:

correct2.png

I mean perpendicular, max. 3 in one bay.

In both of these Racks I have the same dimensions, yet one boxes are arranged as expected and the other boxes are not. I don't know what is causing this. Can you advise me on how to make these brown boxes stack like the colored ones? Thank you in advance for your help!

FlexSim 21.2.4
rackrotationobjectsbay
wrong2.png (586.5 KiB)
correct2.png (478.2 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.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Marcin S5, was one of Krzysztof J's or Jason Lightfoot's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

This could be due to the rotation of the object when you assign the position in the slot. Can you post your model so we can illustrate the solution specifically for your model?

· 4
5 |100000

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

Marcin S5 avatar image Marcin S5 commented ·

model1.fsm

Thank you for your answer. Sure, I've uploaded the model. The problem with rotation is on the Rack15, Rack16, Rack17, Rack18.

Could you also look at Operators (Operator1, Operator2, Operator3)? I gave them an animation with the boxes, when the boxes arrive at the Station on the Conveyor, but the animation doesn't last until the end of the stay at the Station. Do you know how to make the animation last until the end? Thank you very much in advance for your help!

0 Likes 0 ·
model1.fsm (1.8 MiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Marcin S5 commented ·

Okay there are other problems with this model.

I recommend you remove these non-object nodes from the tree.Not sure how you've added those there.

1643026625924.png

Next you should reload the default workspace - there's a problem with window docking or something that prevents the use of the debugger and is preventing you from seeing error messages in the system console.

When you do that you will see you have errors at this decision activity:

MODEL:/Tools/ProcessFlow/Wydanie/Next day?>variables/decision

The reason is that you have a conditional decide referencing a label that does not exist. It looks like it should be testing count==3 or something.

It's easier to correct the size of the object and have its rotation at zero in the flowitem bin than to try and assign a rotation to the item while it's on a conveyor (to account for the correct slot space), so I've changed that in your model (attached).

To get the operators to animate while working you will want to uncheck "Wait Until Complete" and change the repeat type to "Run Indefinitely", then add a detection of process complete followed by a Custom Code to stop the Animation.

model1_rackRotation_jl.fsm

0 Likes 0 ·
1643026625924.png (34.6 KiB)
Marcin S5 avatar image Marcin S5 Jason Lightfoot ♦ commented ·

Hi,

Thank you very much for your help, but to be honest, I still do not understand what to do to get these boxes change of rotation after transporting to the Racks... I opened your model, but it does not work for me - during the simulation it freezes and doesn't finish the process. You mentioned some bugs in my model - will removing them cause the objects to change their rotation?

0 Likes 0 ·
Show more comments
Krzysztof J avatar image
0 Likes"
Krzysztof J answered Jason Lightfoot commented

Wystarczy jak dodasz do trigera "On Slot Entry" opcję set rotation. I w osi Z obracasz o 90 stopni.

· 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 ·

The problem with this approach is that the space is not correctly calculated:

1643036349848.png

0 Likes 0 ·
1643036349848.png (114.4 KiB)