question

Zhun Z avatar image
0 Likes"
Zhun Z asked Jeanette F commented

How to change the combiner's componentlist dynamically?

I try to change the combiner's componentlist value dynamically, but when i change the value, the model seems unnormal , could you help me find the solution?Combiner.fsm

1718246449561.png

FlexSim 22.0.16
combiner
1718246449561.png (127.1 KiB)
combiner.fsm (31.1 KiB)
· 3
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
@Zhun Z, when do you change components list values by global table lookup: before or during combining components?
0 Likes 0 ·
Zhun Z avatar image Zhun Z Joerg Vogel commented ·

During combining components:(After pallet be created,before items be combined)

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Zhun Z, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered
@Zhun Z, you want to update target quantity involved data in a source code. Please look for answers dealing with these combined keywords.
· 3
5 |100000

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

Zhun Z avatar image Zhun Z commented ·

Thx, When I add the code :

treenode TheSum=getvarnode(current, "targetcomponentsum");

setnodenum(TheSum,PalletSize); the model run what I want. At first , I have just set the Table("componentlist")[1][1], why I also need to set the targetcomponentsum value?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Zhun Z commented ·
The "targetcomponentsum" variable is used to check if the combiner has pulled the needed total quantity and can thus start the process. Probably so it doesn't have to iterate through each row of the component list after each pull for this check.
0 Likes 0 ·
Zhun Z avatar image Zhun Z Felix Möhlmann commented ·

Get it,Thanks!

0 Likes 0 ·