question

Zachory L avatar image
0 Likes"
Zachory L asked tannerp commented

Wait for Event Based on Zone Content

I am trying to use a Wait for Event process that releases a token when there are greater than 0 contents in a zone. I know there is a command to make the token release when a zone is entered, but I do not know how to release the token if there are existing tokens in a zone. Is this possible?

FlexSim 19.2.3
wait for event
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

Regan Blackett avatar image
1 Like"
Regan Blackett answered Regan Blackett edited

Have your Wait for Event activity listen for the On Content Change event on the Zone and set the change rule to be Increase to or Through Value, setting the value to 1 and that should give you what you are looking for. Also check the box that says Fire if Initial value meets rule. That way tokens will only stay at the wait for event if the Zone is empty. If something arrives, or if something is already in the Zone when the token gets to the wait for event it will be released.

wait-for-event.fsm


wait-for-event.fsm (29.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.