question

tristan-dionis avatar image
0 Likes"
tristan-dionis asked tristan-dionis answered

how don't program constant quantity for combiner with scrap rate on processor ?

question_combiner_no_constant_quantity.fsm

Model Simulation :

I have a production line with products arriving on pallets, the products go through the processor and are re-stacked on the pallet after the process.

Problem : Combiner needs constant quantity but the processor have scrap rate and so there aren't the same quantity to re-stack everytime.

the combiner must always take only the products present in the queue at the time the pallet is finished and continue on the conveyor even if the pallet is not complete.

I tried with custom code, but the model doesn't work and I don't understand the evolution of the values that the combiner takes.

If you have solution ... THANK YOU !!!!

1709116546344.png

1709116482800.png


FlexSim 23.2.3
queuecombinercustom codescrap
5 |100000

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

Paula LG avatar image
0 Likes"
Paula LG answered

Hi Tristan,

Although some parameters on the triggers were wrongly set on your model, I think the whole approach can't work because of the order in which the events involving the queue and the combiner take place. However, I've thought of an easier way to accomplish what you want.

The combiner comes with a predefined OnEntry trigger called "Update Combiner Component List With Labels". Since this code is prepared to read the quantities to combine from a table, I slightly modified it to refer directly to the queue's content:

1709124917033.png

I also attach the model with these changes: question-combiner-no-constant-quantity.fsm

I hope it helps!


5 |100000

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

tristan-dionis avatar image
0 Likes"
tristan-dionis answered

Thank you a lot, yes it works 1709125982795.png



1709125982795.png (3.0 KiB)
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.