H. ZANDER GmbH & Co. KG • Am Gut Wolf 15 • 52070 Aachen • Germany • Tel +49 241 9105010
Fax +49 241 91050138 • [email protected] • www.zander-aachen.de
62
Operating manual ZX09/20/21-Series
END_VAR;
(*The input signals of the light barrier are debounced here. Therefore the container can be detected
by the sensor. The 1000ms correspond to the time the container needs to be transported past the
sensor.*)
Lightbarrier1.TDB
:=1000ms;
Lightbarrier2.TDB
:=1000ms;
(*--------------------LOGIC PART--------------------*)
(* in the first IF statement the initial state of the installation is defined. Here, volume 1 should be in
operation so that a new container can be delivered. Initial is then also set to 1 so that this condition
no longer applies.*)
IF initial=0 THEN
Belt1 :=1;
Initial
:=1;
(*If the signal is applied to light barrier 1, belt 1 is stopped so that no further container is conveyed
into the system.*)
ELSIF Lightbarrier1=1 THEN;
Belt1 :=0;
(*As soon as light barrier 2 is activated, belt 1 is reactivated so that a new container is conveyed to
the plant.*)
ELSIF Lightbarrier2=1 THEN;
Belt1 :=1;
(*The following two conditions contain two specific error states which must be defined. These are:
Case 1: Filling is started via "hopper" without a container being at the required position.
Case 2: New containers are transported to the system via belt 1, although a container is at the filling
position.
In both cases an error is set and the corresponding outputs are set.*)
ELSIF Proxswitch=0 AND Funnel=1 THEN
Belt2 :=1;
Error
:=1;
Funnel
:=0;
ELSIF Belt1=1 AND Proxswitch=1 THEN
Error :=1;
Belt1 :=0;
Belt2 :=1;
(*This condition allows continuous replenishment within the plant. As long as there is no container at
the filling position and the push-button has not been operated, the belt will convey 2.*)
ELSIF Proxswitch=0 AND Pushbuttonswitch=0 AND Funnel=0 THEN
Belt2 :=1;