question

Stéphane Jaubert avatar image
0 Likes"
Stéphane Jaubert asked Stéphane Jaubert commented

Set the "Target quantity" of a combiner as a global parameter

In the attached template, I'd like the target quantity to be a parameter in the Combiner1 properties, so that I can change it easily. I can't do it, it won't accept that I set "Model.parameters.quantity_tote".


prélèvement_pieces.fsm

FlexSim 24.1.0
combinerparameters
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Stéphane Jaubert commented

You can use the onSet of the parameter to set the targetcomponentsum variable and the target quantity of each port.

Take a look at the entry trigger's option to update the component list for the syntax you need to use. Unfortunately these are not object properties that would allow you to use setProperty().

· 4
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

The "componentlist" has the structure of a node table and stores the target quantity per input port and the "targetcomponentsum" stores the total target sum.

capture1.png

See the attached model for an example of how they can be set if the combiner only pulls items from one input (port 2).

Edit: Re-uploaded file

prelevement-pieces-fm.fsm

0 Likes 0 ·
Stéphane Jaubert avatar image Stéphane Jaubert Felix Möhlmann commented ·

Sorry, but the attached model is not available.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Stéphane Jaubert commented ·
Thank you for the note. It should be attached properly now.
0 Likes 0 ·
Show more comments