question

Helen avatar image
0 Likes"
Helen asked Jeanette F commented

wait for an event by condition

Hello,

I've created an object process flow, that triggers when a box covers a PE. Based on some conditions, the box stops or sinks. The box resumes when a model variable reaches a threshold. I've managed to resume the object after a time, but I'm don't know how to write a variable-based condition.


1648741561674.png

Thank you,

FlexSim 22.1.0
wait for eventconditional decide
1648741561674.png (89.5 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.

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F commented

Hello @Myriam Srdg

I wrote two examples of a decide conditionally examining a variable. One is a global variable. The other is a tracked variable.

Varaible_Based_Condition_JF.fsm


· 5
5 |100000

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

Helen avatar image Helen commented ·

Thank you both for the examples. I think I didn't express myself correctly or I'm not able to interpret them right. I achieved to make a decision based on a variable. What I'm struggling with if with resuming the item once the condition that made it stop changes. In the example that I upload, what I want to stop the object in the first PE and only resume it when the number of items between the PEs is less that 2.

varaible-based-condition-jf-ms.fsm

Thank you

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Helen commented ·

Hello @Myriam Srdg,

This will work if you use a tracked variable instead of a global variable. The tracked variables can be referenced in a wait for event.

1648849210983.png

varaible-based-condition-jf-ms_1.fsm

1 Like 1 ·
Helen avatar image Helen Jeanette F ♦♦ commented ·
Thank you very much! Discovering tracked variables was awesome ))


0 Likes 0 ·
Show more comments
Marcello Rosadini avatar image
0 Likes"
Marcello Rosadini answered

Hi Myriam,

probably the easiest way is by using a label on the item.

Hope this model can help

support mondragon.fsm


5 |100000

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