question

Rex R. B avatar image
0 Likes"
Rex R. B asked tannerp commented

Sending message from one queue to another queue

demand-pallet-item-2.fsm

Hi,

I'm trying to simulate a an event where I need to send 200 a queue (Whse1 Queue) when its content goes down to less than or equal to 100. I made a trigger On Exit of Whse1 Queue to send the message to Dispatch1 Pallet to have a pallet ready to be combined with 200 items from Dispatch1 Queue. On Dispatch1 Pallet, I made a trigger On Message to open input port and a trigger On Exit to close input port. When I run the simulation I noticed that the condition of the message is satisfied but the amount sent is doubled. I can't figure out where in the model it set to double. Attach is the screenshot of the run and the model.

FlexSim 19.1.0
sending message
2eibq.png (177.4 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.

David Seo avatar image David Seo commented ·

@Rex R. B

Your model is correct not wrong and the flowed items are not double. The quantity is 200 per flow.

Make the processing time slower set and check it again.

0 Likes 0 ·

1 Answer

·
Benjamin W2 avatar image
1 Like"
Benjamin W2 answered

Hi @Rex R. B,

I noticed that since your condition to send a message from Whse1 Queue is "current.subnodes.length <= 100", it will send a message to Dispatch1 Pallet every time an item leaves when Whse 1 Queue content is less than 100. Simply change this to "current.subnodes.length == 100" to send only one message when it drops below 100.

After I made that change, Combiner2 was only packing 200 items onto a pallet. Check out the attached demo model and let me know if you have any further questions.

sendmessageconditions.fsm


5 |100000

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

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.