question

laitriminh avatar image
0 Likes"
laitriminh asked laitriminh commented

How can use round robin?

Hi FlexSim team,


How can I set the output of a queue by round robin and the target batch size is 150 pieces, and bring 150 pieces to the first queue until reaches 6000 pieces, and move on to the next queue with 6000 pieces also?


I mean, when the pieces are sent to the queue are divided between all the queues connected. I want to send one complete batch of 150 pieces to one QueueA until reaches 6000, and then keep bringing 150 pieces to QueueB until reaches 6000, and QueueC also.

Thank you

laitriminh

Round robin with conditional.fsm

FlexSim 19.0.0
round robintarget batch siee
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
1 Like"
Joerg Vogel answered laitriminh commented

Count and address, that is it.

There is not a template, which you can easily adjust.
you will count for example in a label, based on this result you change a value of different label and this value is read by a send to port function to release items to different destinations. Once your counting label value reach your limit, then you reset this value and you change also the value for the destination address.

· 20
5 |100000

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

laitriminh avatar image laitriminh commented ·

Thank you so much. And can you choose an illustration for me or make a model for me so I can visualize it better? I'm very sorry because I just know how to use flexsim and I hope you can help me.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann laitriminh commented ·

I posted an example of model about this in the comments here just two days ago. The code currently reads the batch size setting of the queue and uses that to determine after how outputs the port changes. But you can just edit this to be a different number in the Send to Port code.

0 Likes 0 ·
laitriminh avatar image laitriminh Felix Möhlmann commented ·

Thank you, Felix, I have tried and set up exactly the same but in send to port code I got an error in the picture that I attached. And all goods gather only in the first queue. Hope you can help, thank you so much5.png

0 Likes 0 ·
5.png (95.1 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.