question

Zach B3 avatar image
0 Likes"
Zach B3 asked Lin Ray commented

Unable to Update Batch Size of Queue during Model Run

Hello, I am trying to create a queue (palletizer) that changes batch sizes halfway during the model run, even if the last batch isn't completed yet. I want to destroy all components out the queue and start a brand new batch with a new batch size. When I do that (see the process flow logic in my model attached), the new batch size gets set, but the queue no longer produces batches. Any ideas on how to get the new batch size queue to create batches? Thanks!

palletizertesterror.fsm

FlexSim 20.0.0
queuebatchchange batch size
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

·
Lin Ray avatar image
1 Like"
Lin Ray answered Lin Ray commented

Hello, I think the problem is you've forgotten to clean the "currentbatchsize" in the "CartonPackPalletizerBatch4".

· 2
5 |100000

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

Zach B3 avatar image Zach B3 commented ·

thanks for your reply! is there one line of code that will clean the current batch size? I cant figure out the right syntax for it.

0 Likes 0 ·
Lin Ray avatar image Lin Ray Zach B3 commented ·

setvarnum(Model.find("CartonPackPalletizerBatch4"), "currentbatchsize", 0);

It's similar with updating the "batchsize".

0 Likes 0 ·

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.