question

Alexis B avatar image
0 Likes"
Alexis B asked Alexis B answered

Rotate FlowItem after Conveyor in Queue

Hello everyone.

I have a little problem with my flowitem after my conveyor.

In fact, I would like only my green box ( label : box2) make a 90°, after the conveyor, in my Queue.

I already tried with a label or an ItemType but doesn't work in ExitTrigger Conveyor or EntryTrigger Queue.

ps: try with no processflow.

Thanks for answer.



ex7.fsm

FlexSim 18.1.1
conveyorqueueflowitemrotate
10.png (356.5 KiB)
ex7.fsm (30.0 KiB)
5 |100000

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

Joshua S avatar image
1 Like"
Joshua S answered

Here's an update to your model. I added code to rotate the items on entry. I also had to change one of the label creation on one of your sources, it was creating a label named "boxl". The picture below is showing how the boxes are stacking now.12734-ex7.fsm


pic1.png (287.4 KiB)
12734-ex7.fsm (121.7 KiB)
5 |100000

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

Alexis B avatar image
0 Likes"
Alexis B answered

@Joshua S @Jeff Nordgren

Thanks for answers. It is working. I'm really not familiar with manual code....

As you said Jeff, now, I'll use the same way for locate my Box2 in Queue and integrate this logic in my principal model.

Have a nice day.

5 |100000

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

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered
@Alexis B

In your OnEntry code in Queue4, you were trying to use a flowitem label (item.box == 2) instead of using an item (object) name. That's why you were getting errors. You can't use a label comparison statement when it is asking for an object name.

I modified your code (manual code) in the OnEntry trigger of the queue and deleted the code that you had in the OnExit trigger of the conveyor. It works as you describe but certainly makes a mess in how the flowitems get stacked in the queue. Not sure this is what you are after but this is what you are describing you want to happen in your question. If there is something that I'm missing, please give further information on how you want it to work.

Thanks.

ex7-jn1.fsm


ex7-jn1.fsm (29.5 KiB)
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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