How to change the combiner's componentlist dynamically?

How to change the combiner's componentlist dynamically?

zhun_z
Not applicable
31 Views
7 Replies
Message 1 of 8

How to change the combiner's componentlist dynamically?

zhun_z
Not applicable

[ FlexSim 22.0.16 ]

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

0 Likes
Accepted solutions (1)
32 Views
7 Replies
Replies (7)
Message 2 of 8

joerg_vogel_HsH
Mentor
Mentor
@Zhun Z, when do you change components list values by global table lookup: before or during combining components?
0 Likes
Message 3 of 8

zhun_z
Not applicable

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

0 Likes
Message 4 of 8

joerg_vogel_HsH
Mentor
Mentor
Accepted solution
@Zhun Z, you want to update target quantity involved data in a source code. Please look for answers dealing with these combined keywords.
0 Likes
Message 5 of 8

zhun_z
Not applicable

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
Message 6 of 8

moehlmann_fe
Explorer
Explorer
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
Message 7 of 8

zhun_z
Not applicable

Get it,Thanks!

0 Likes
Message 8 of 8

Jeanette_Fullmer
Community Manager
Community Manager

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