question

CHANDRAVAMSI G avatar image
0 Likes"
CHANDRAVAMSI G asked CHANDRAVAMSI G answered

How can we skip processing flow items at a station which have NCM labels on it?

ncm.fsm

FlexSim 17.2.1
rework flownon confirming
ncm.fsm (30.5 KiB)
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·

@CHANDRAVAMSI G

Can you send in your model or a small sample model showing the problem area? There are many ways you can usually use to accomplish what you describe. If we had your model and could see what you are trying to accomplish, it would help us give you the best answer for your situation.

0 Likes 0 ·
CHANDRAVAMSI G avatar image CHANDRAVAMSI G Jeff Nordgren commented ·

Hi Jeff,

I have attached my model. ncm.fsm

0 Likes 0 ·
CHANDRAVAMSI G avatar image CHANDRAVAMSI G CHANDRAVAMSI G commented ·

I am using objectexists(label(item,"NCM"))==0 in the station's processing condition. I would like to know if there is any other way.

Thank you.

0 Likes 0 ·
Show more comments
David Seo avatar image
0 Likes"
David Seo answered David Seo edited

@CHANDRAVAMSI G

You can skip the flow item at the station according to the label value of 'NCM'.

Source create the label NCM and set the value as 0.

And the station processes the flow item only when NCM == 0.

The station process condition is 'item.NCM == 0'.

If the value of NCM is not zero, the flow item is processed at the station.

I attached the model of it.

ncm-seo.fsm

Do I understand your meaning right?


ncm-seo.fsm (30.2 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.

Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered
@CHANDRAVAMSI G

If I am understanding your model correctly, you only want it to process at Station3 if the label "NCM" on the flowitem does not exist. Is that correct? If so, an easier way than checking for the existence of a label would be to check to see if it's value is 0. So, in Station1, I added an "else" clause to your 'if" statement to set the label to zero if false. Which is weird in itself because that "if" statement will always be false, the way you have it written. Anyway, in Station3, you can then check to see if the value of the label is zero to process rather than if it exists or not. I hope that makes some sense? Here is the modified model:

ncm-jn1.fsm


ncm-jn1.fsm (30.1 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.

CHANDRAVAMSI G avatar image
0 Likes"
CHANDRAVAMSI G answered

Thank you @david.seo and @Jeff Nordgren.

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.