question

Enara avatar image
0 Likes"
Enara asked Jeanette F commented

Counter of products

Hello,

I want simulate a model that creates different references from the diferent raw material, with the products created create other ones. For that, I have created a Process Flow for each component that will be created, each one with a different counters, Partition ID, Label...

I want to limit the demand of each product created for that I have tried to defined in the process flow of each product in the conditional decide, for example, I want the product K create just 945 item, M 9160 and so on..

PBL FINAL level 1 CONTADOR.fsm

Than You.

FlexSim 21.1.5
process flowcountcounter
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Enara, was Felix Möhlmann'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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The condition in the first Decide activity contains errors.

token.Combiner.Counter <= 10 and current.CntK <= 945

First off, "and" and "or" are only used as part of query strings. The logical operators for coding are "&&" and "||" respectively.

Furthermore, you try to read the "CntK" label on "current" which is the Process Flow itself in this case. I found the label on the queue "K", so you should access it there (Model.find("K").CntK).

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.