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.

Joerg Vogel avatar image Joerg Vogel commented ·

@Unax Urrutia, you place probably your items by a findslot query method into your rack. You get items out of a rack by methods called findItem or queryItems.

Perhaps you are able to attach a model, wherein we can find your method of placing items by labels in your warehouse and some of your first tests retrieving them from the storage objects.

0 Likes 0 ·
Unax Urrutia avatar image Unax Urrutia Joerg Vogel commented ·

@Joerg Vogel Here I attach my model for you. You will see three different locations (pavillions). The thing I want is move material within the three locations and also send them to sink directly. As I said before, always taking into account the label and doing it in different times/amounts.

EIKA_Almazena.fsm

0 Likes 0 ·
eika-almazena.fsm (198.1 KiB)
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Unax Urrutia, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered
int requestedType = 3;
string queryStr = "WHERE Type = $1"; Storage.Slot.Item myItem = Storage.system.findItem(queryStr,0,requestedType); 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.