question

Avantasia2012 avatar image
0 Likes"
Avantasia2012 Suspended asked Joerg Vogel commented

release flowitem lifo from rack

hello everyone

i want release flowitems LIFO from rack, how can i acheive this.thanks a lot.

FlexSim 7.7.4
rack
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

You have answers where I have described how to hold items in the rack and how to release an defined item. LIFO releases the last item entered the rack.

Dot syntax for new versions

Object myRack = Model.find(“Rack1”);
releaseitem(myRack.last,1);

Older versions

treenode myRack = node(“/Rack1”,model());
releaseitem(last(myRack),1);

Please consider, a released item is ready for transport. If an item is entering the rack while another item is waiting for transport, you won’t establish a straight LIFO. If something like this occurs, you must bring the taskexecuter really near to the LIFO item before you release the item.

· 2
5 |100000

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

Avantasia2012 avatar image Avantasia2012 commented ·

lifo.fsmthanks a lot

i bult a model, i write some code in the pull requirement of rack outobject:

but i found that the flowitem output sequence is 2,8,25, from small to big, not the 25,8,2,why this happen?would you please help me ?thanks.

0 Likes 0 ·
lifo.fsm (16.8 KiB)
baijf.png (21.6 KiB)
Joerg Vogel avatar image Joerg Vogel Avantasia2012 commented ·

This approach hasn't got any relation to the origninal question. You are pulling items by their rank, not LIFO. Please ask a new question! Regards Jörg

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.