question

stefano L avatar image
0 Likes"
stefano L asked stefano L commented

Assign a value to each cell in the rack using a global table

Hi,

Can a value taken from a global table be assigned to each cell in the rack? If yes, how? This value should be multiplied by a label of the item corresponding to that position. For example, in the image below, the value in the global table in the Level4 and Bay1, that is 5, should be assigned to level 4 and bay 1 in the rack as shown by the red and yellow boxes.

Thank you in advance for your answer.

FlexSim 19.0.0
global tablerackitem
table.jpg (20.7 KiB)
rack.jpg (80.6 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.

1 Answer

·
tannerp avatar image
1 Like"
tannerp answered stefano L commented

Hi @stefano L,

I'm not sure if this is exactly what you were hoping for, but here's an example that should achieve a similar functionality. Basically, when an item enters the rack, the table is used to identify what value to use as a multiplier based on the item's location in the rack. I'll explain each piece:

1) When an item is created at Source1, it is given 3 labels: "row", "col", and "toMultiply" for the row, column, and value to multiply, respectively.

2) The item enters the rack and is sorted based on its labels, "row" and "col".

3) A trigger on the rack adds a label, "value", to the item. To do this, it multiplies "toMultiply" by the value in the Global Table representing the location of the item based on "row" and "col". So even though label is not stored on the rack itself, you can still identify the value based on the row and column (or Bay and Level) of the rack. Hopefully this makes sense how I've explained it.

Example:

1) Item enters the system and is assigned a "row", "col", and "toMultiply" label.

2) Item is assigned to Bay 1 and Level 1.

3) Rack "On Entry" trigger calculates a label based on the Global Table value for Bay 1 and Level 1.

4) The label "value" is added to the item.

Let me know if you have questions.

Model: rack-multiplication-example.fsm


to-multiply.png (22.4 KiB)
item-labels.png (140.9 KiB)
bay-1-level-1.png (224.4 KiB)
expected-36.png (12.5 KiB)
actual-36.png (262.9 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.

stefano L avatar image stefano L commented ·
@Tanner Poulton

Yes thank you, that's exactly what I wanted to do.

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.