question

RUCU17 avatar image
0 Likes"
RUCU17 asked RUCU17 commented

Which logic to use to work with a transfer batch?

logicTransferBatch.fsm

In the model uploaded here I want to work with the transfer batch indicated in the Global Table. I'm ussing the trigger "Close and Open Ports" but as the second processor is slower than the processor1&2, the queue that goes before this processor doesn't do the logic correctly.


The firsts queues work correctly with the transfer batch. Otherwise, the queue that goes before the last processor, as this one is much slower than the other processors, the items accumulate on the queue and the transfer batch is exceeded. Running the model shows that at one point the "QueueToprocessor3" exceeded the transfer batch.


The goal is to transport from the queues only when these reach the content of the transfer batch. Until the queues reach the content of the transfer batch, the items they contain cannot be transported. The responsibles for the transport are 2 transporters.

FlexSim 23.1.0
queuetriggerstransfer batch transport
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

·
Kavika F avatar image
0 Likes"
Kavika F answered RUCU17 commented

Hey @RUCU17, in the "Queue" section of the quick properties of a Queue, you can reduce the max content of the queue to not exceed the batch size.

1713886749767.png

You can also click the check box next to "Perform Batching" to do what you want automatically without the triggers you setup.


1713886749767.png (7.1 KiB)
· 5
5 |100000

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

RUCU17 avatar image RUCU17 commented ·
Thank you for your response. The problem is that I have to get that without changing the queue max content. I need to obtain the corresponding trigger's logic in order to transport the items by a transfer batch.


An example: until the queue doesn't reach the transfer batch, for example 20 items, any item can go out the queue. When content is 20, then the transporter can take the 20 items and move them to the next station.


Thank you for the help.

0 Likes 0 ·
Kavika F avatar image Kavika F ♦ RUCU17 commented ·

@RUCU17, I don't think I understand. Are you saying that you don't want QueueToprocess3 to exceed 20 items?

1713901950526.png

Do you want to close the input port so nothing can be passed in until the queue size is 0?

What you say here is confusing:

The goal is to transport from the queues only when these reach the content of the transfer batch. Until the queues reach the content of the transfer batch, the items they contain cannot be transported.

Which queues? All of the queues? Please be more specific if you're asking for specific behavior, otherwise we're just guessing.

0 Likes 0 ·
1713901950526.png (91.0 KiB)
RUCU17 avatar image RUCU17 Kavika F ♦ commented ·

For example, look this file uploaded on this comment. batch.fsm

What I want is to have a transfer batch of 20 items. This means, in the queues where "use transport" is checked, the number of items transported to the next step must be 20. I want to get this without changing the queues max content or the capacity of the transporter.


Near the second 1065, instead of waiting for the Q3 to have 20 items, the carrier takes them one at a time. I can't get the transport of items between queues that need transport to be 20 at a time.


I hope you have understand me. Thank you.

0 Likes 0 ·
batch.fsm (33.5 KiB)
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.