Hello everyone,
I´m at a beginners level with the software and am trying to figure out how to open and close a Queue Port based on the amount of Items in the Queue.
First I added a tracked variable (Warteschlangeee), which is supposed to be monitored by Set Tracked Variable. Herefore I added Set Tracked Variable on Entry with increment by 1. I did the same thing for the Exit -> Set tracked variable and added decrement by 1. This should give me the amount in the Queue. If the Amount is 0 (or less), the Port (out Kasse 2) should be closed. If there are 20 items or more in the Queue it should open, so that those items distribute evenly.
Problems:
1. Somehow tho it only decrements the variable.
2. The port doesn`t open or close.
I would really appreciate feedback. If there`s another wa to tackle this, I´m open to use which ever way (process flow etc.).
Thanks in Advance
Paul