How do I Hold Entities Until a Condition is Satisfied?

Only allow one part at a time to enter a section of the process.

Suggested Technique

1. Create a global variable.

2. Increment the variable when a part enters the capacity limited section of the process.

3. Decrement the variable when a part leaves the capacity limited section of the process.

4. Use a Wait Until statement to limit the number of parts that enter the capacity limited section of the process.

Example: To avoid clogging a production system, one part at a time is allowed to enter a section of the process that has recursive loops.

Holding Entities Until a Condition is Satisfied

TO DO: Create a global variable named Counter (this can be any name). Increment the counter when the entity enters the section of the process you want to limit. Decrement the counter when the entity leaves the section of the process you want to limit. Use a Wait Until statement to hold entities until the proper condition exists.

  •  To learn more about the Wait Until statement, see WAIT UNTIL.
Was this article helpful?

Related Articles

Go to Top