question

Gary Q avatar image
0 Likes"
Gary Q asked Gary Q commented

rack configuration

How to make a detrminated rack position does not contain an item ?? for example the position 1-1 or 1-2

FlexSim 18.2.2
rack
· 7
5 |100000

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

Gary Q avatar image Gary Q commented ·

@steven.hamoen

@Jörg Vogel

Thank you very much, I already achieved what I was looking for, thanks for the advice they helped me a lot

1 Like 1 ·
Steven Hamoen avatar image Steven Hamoen commented ·

@Gary Q Could you post your model. Otherwise we have no clue what you have done.

0 Likes 0 ·
Gary Q avatar image Gary Q Steven Hamoen commented ·

Here is the model, in this I want that in cell 1,3 of the rack does not contain any item rack.fsm

0 Likes 0 ·
rack.fsm (21.4 KiB)
tannerp avatar image tannerp Gary Q commented ·

Are you wanting to exclude cell 1,3 from the rack altogether? As in cell 1,3 will never accept an item put into it? If this is the case, I would recommend shortening your rack one cell for simulation purposes. Otherwise, it might prove to be a lot of coding. May I ask why you'd like to exclude cells in this case?

0 Likes 0 ·
Gary Q avatar image Gary Q commented ·

@Tanner Poulton @steven.hamoen that position is supposed to be a tunnel,where a taskexecuter passes,so there should not be an item in that position, Any recommendation to achieve the aforementioned?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Gary Q commented ·

If you let FlexSim manage the amount of the rack cells, you can set the content cell of the content table in the attributes tree to contain a value that tells FlexSim that a rack cell is full. This will falsify the statistic. But FlexSim won't try to fill this cell with items. If you have chosen the same cell to be left out that is used to fill the rack when there isn't any capacity left in the rack cells (max content > number of cells) then this tweak won't work.

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen commented ·
@Gary Q

You can also simply remove the cell by changing the Racking. That way you change the rack both physically and visually. See this picture:

0 Likes 0 ·
rackwithtunnel.png (89.7 KiB)

1 Answer

tannerp avatar image
3 Likes"
tannerp answered Gary Q commented

To ascertain that a designated cell in a rack is empty, you can use the following code:

rackgetcellcontent(obj rack, num bay, num level)

An example of this in a script window would look like the below image. In this example, it will return the contents of Rack1 in the 1st bay on the 3rd level.

Hope this is helpful!


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

Gary Q avatar image Gary Q commented ·
thanks for the info @Tanner Poulton
0 Likes 0 ·