question

Glenson G avatar image
0 Likes"
Glenson G asked Glenson G commented

FlowItems stays queues and do not get sent to the sink

Hi @Felix Möhlmann ,
With the same model, I realized that at core 2, 3 and 4, the trolleys unloaded do not go to the sink. I have checked the parameters with core 1 and they seem to match. May I ask what could be the reason?

Also, is it possible to allow the bulk of trolleys unloaded at KitchenReturn, to only be sent to the sink at one time?

Thank you so much!

liftusage-221110-4.fsm

FlexSim 18.2.3
agvqueueagvpath
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Glenson G commented

1668086438965.png

These don't look the same to me. ;-) (Core1 on the left, Core3 on the right)

The message has to be send to the from the item to the queue (current), because the message trigger is defined on the queue (nothing happens when sending a message to the sink, which doesn't have the trigger set). And the 'fromObject' is used to identify which object to move in the trigger code. Thus, the message has to come from the item.


To move the trolley in bulk, remove the message and entry trigger from the KitchenReturn queue. Draw an a-connection from it to the sink and set the "On Reset" trigger of the queue to close its output. Then you can define a small block of process flow activities that open the output. Either on a regular schedule or based on the entry of items.

The concept is demonstrated in the attached example model. The queue's content is flushed every 10 minutes.

RegularFlush.fsm


1668086438965.png (23.7 KiB)
regularflush.fsm (20.0 KiB)
· 11
5 |100000

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

Glenson G avatar image Glenson G commented ·

Hi Felix, thank you for your reply!

Would just want to clarify what do you mean by "the 'fromObject' is used to identify which object to move in the trigger code."
And so with the flushed concept, if I want to control the flushing of different queues, I would just have to add new operator to the trigger right?
Thank you Felix!

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Glenson G commented ·

In the message trigger, you have access to four parameters: the three msgparams and the fromObject. The msgparams are optional parameters that can be added to the sendmessage()/senddelayedmessage() command. For a delayed message, these can only be numerical values. So to now which item has to be moved, it is used as the sender of the message, so a reference to the item is available through fromObject in the message trigger.

1668150622481.png

To flush other queues, you would repeat the same steps described above; make a connection to the sink, close the output on reset and add new activities to the process flow that refer to those queues.

0 Likes 0 ·
1668150622481.png (8.6 KiB)
Glenson G avatar image Glenson G Felix Möhlmann commented ·

Hi @Felix Möhlmann ,


There seems to be an error when I tried to do it for other queues (MMD, Linen & Pharmacy). May I ask what could be the mistake here?

Thank you!

liftusage-221114-flushing.fsm

0 Likes 0 ·
Show more comments

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.