question

Unax Urrutia avatar image
0 Likes"
Unax Urrutia asked Jeanette F commented

Pull items from racks by labels to different ports in different times?

In my simulation model the items are created through a Scheduled Arrival. These items are assigned a label and according to the label are stored in racks.

Back to the topic, I want to output them or move them at a specific time of the simulation from the racks to different destinations according to the labels. How can I do this? Do the lists allow me to specify the moment (time) at which to output different items with different labels?

FlexSim 23.2.2
rackspull item
· 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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered
  1. int requestedType = 3;
  2. string queryStr = "WHERE Type = $1";
  3. Storage.Slot.Item myItem = Storage.system.findItem(queryStr,0,requestedType);
  4. if(myItem) moveobject(myItem.item,Model.find("Queue5"),1);

myItem.item evaluates storage slot item into an object. You need this reference to move items in tasksequences or other properties.

Attached is your model enhanced by somes objects to create an event and to execute this above code in an On Message trigger.

eika-almazena_JV.fsm


eika-almazena-jv.fsm (173.5 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.