question

YIMY ALEXANDER AYALA DAZA avatar image
0 Likes"
YIMY ALEXANDER AYALA DAZA asked Brandon Peterson commented

BAY, LEVEL, CELLCAP, IN RACK

Goodnight, I have the following code to define the specific bay depending on the itemtype, but I can not define that cell capacity is one, the rack is filled with empty fields and overflow flowitem

ATTACHMENT MODEL

modelo.fsm

CODE PLACE BAY:

/**Custom Code*/

treenode item = param(1);

treenode current = ownerobject(c);

int cellcap = 1;

int baynum=0;

if (getitemtype(item)==1)

{ baynum=duniform(1,3); }

if (getitemtype(item)==2)

{ baynum=duniform(4,6); }

if (getitemtype(item)==3)

{ baynum=duniform(7,9); }

return max(1, min(rackgetnrofbays(current), baynum));

FlexSim 16.2.1
rackbaylevelcellcap
modelo.fsm (18.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

jing.c avatar image
1 Like"
jing.c answered Brandon Peterson commented

Hi, YIMY

I have modified your code and the specified type item will find the bay which has enough capacity when it get in the rack. The item will go to the first bay and level of its storage zone if full. But Your model has an important problem that you can not ensure the first 27 item can fit the whole cells of rack every time.(the queue is FIFO)

So I suggest you to use different rack for different itemtype, you can edit the capacity of every rack.

You can find this two approaches in the attach model, and may it helps.

modelv162chj.fsm


modelv162chj.fsm (25.7 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.

YIMY ALEXANDER AYALA DAZA avatar image YIMY ALEXANDER AYALA DAZA commented ·

very very Thanks

0 Likes 0 ·