at the entrance of the Line you add a sensor with the Method:
if ?.numMU >= 10 then
?.exitLocked := false;
elseif ?.numMU <= 1 then
?.exitLocked := true;
? is the Line object.
The filling level of the Line can show by the Diagram, which is used as a Plotter.
thanks for your answer.
I want also to ask another thing. I want that when the exit of the machine is locked, the machine is paused. How I write it in the Method?
Then the method that Peter gave you should be written as:
if ?.numMU >= 10 then ?.pause:=false; ?.exitLocked := false; elseif ?.numMU <= 1 then ?.exitLocked := true; ?.pause:=true; end;
I recommend you check in the help the step by step section to get a fast and easy introduction of most topics.