question

Conner F avatar image
0 Likes"
Conner F asked Conner F commented

Struggling stacking in rack by item type

I am currently working on stacking things in a rack by item type and the code I am using doesn't seem to be working the way it was intended. I believe the issue is that the function rackgetitembybaylevel does not get a reference to the item.type. Is that correct? And if so how would I go about checking a bay/level in a rack if the item to be stacked has the same item type

FlexSim 18.1.2
stacking logic
· 3
5 |100000

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

Emily Hardy avatar image Emily Hardy ♦ commented ·

Is it possible to attach the model so we can see what's happening?

0 Likes 0 ·
Conner F avatar image Conner F commented ·

The other issue I am having is that I need the stacks to only go to a certain height as well as being stacked by item type which is why I didn't use the by expression logic

0 Likes 0 ·

1 Answer

·
Joshua S avatar image
2 Likes"
Joshua S answered Conner F commented

This model should work for what you are doing.13717-cuserscfutadownloadsstackingsimulation.fsm


· 3
5 |100000

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

Conner F avatar image Conner F commented ·

Awesome thank you! Would you be able to tell me what I was doing wrong/what you did to fix it so that I can learn from it?

0 Likes 0 ·
Joshua S avatar image Joshua S Conner F commented ·

All the code I added is found in the exit trigger of the queue. Part of it was you were trying to compare an Object against an Object.Type, but also I've had issues dealing with the level and bay codes separately, so I just wrote code that would assign both Bay and Level in the code I added to the exit trigger of the Queue.

0 Likes 0 ·
Conner F avatar image Conner F commented ·

Thank you for your help

0 Likes 0 ·

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.