question

Fakhrusy Sf avatar image
0 Likes"
Fakhrusy Sf asked Jason Lightfoot commented

Conditional Decide : Decide to release token when the machine is idling

Hi Everyone,

I have a question that I want to ask. How to set the conditional decide when the machine(In this case, premixer_Gear and Premixer_Hydraulic) is idling.

1655965090277.png

When premixer is filling, the premixer for gear and hydraulic must wait for process on the premixer_engine to be finished..

My current conditional decide is " token.Mixer.as(FlowMixer).step == 0 " . I want to insert "AND" statement.How?

I just want that coding statement that says "Premixer_Gear is not running" AND "Premixer_Hydraulic"

FlexSim 18.2.3
processflowFloWorksconditional decide
1655965090277.png (65.5 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.

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered

Hello @Fakhrusy Sf,

One way is to write the code like follows.

  1. Model.find("Processor1").as(Object).stats.state().value == 1 && Model.find("Processor2").as(Object).stats.state().value == 1

The 1 refers to the index that state is in the state profile list.

1656386950921.png

idel state conditional decide.fsm Version 22.1 (Sorry I do not have 18.2). Let me know if you you didn't get enough from the info I provided and I can remake my example model in 18.2.


5 |100000

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