I have some problem with waituntil. What I try to do is too control when i Unit is allowed to enter the next step and that is only allowed if the conditions are meet. Every thing works when the first unit passes but when unit 2 triggers the metod one of the condition is not true and insted of waiting until it is true it crashes. What have i done wrong? I have also noticed that when the condition been diffrent that the unit never was moved and the metod was triggerd a secondtime.
waituntil Process.NUMMU + B3.NUMMU < Limit and (Process.entranceFree and Process.entranceOpen) prio 1;
if @ /= void then
the problem is that the attribute 'EntranceFree' is not watchable.
You can see this when you open the 'Show Attributes and Methods' dialog for the object Process:
You can see that the * in the column Watchable is missing.
The first time this doesn't cause a problem since the waituntil doesn't have to wait since the condition evaluates to true.
Yes, this would be a viable solution.