question

Johnson Hu avatar image
0 Likes"
Johnson Hu asked Johnson Hu commented

Settablenum function can't work in Pull Requirement trigger

Hello everyone,

I want to realize a material flow when queue pull item from source,the number of global table "demand" first row first col will reduce 1.

Although it will pull items according to number of "demand",the number of demand won't reduce.I don't know where the problem is, please help to solve it.

Thank you very much! Best regards.

FlexSim 18.0.10
triggers
code.png (69.7 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.

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Johnson Hu commented

Please swap the source code lines. No code lines are executed AFTER an executed return statement. It is totally independent on the block curled braces.

· 1
5 |100000

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

Johnson Hu avatar image Johnson Hu commented ·

Thanks!It really helps a lot!

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.