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
69
Operating manual ZX09/20/21-Series
For this purpose the signals of the light barriers are first debounced with 200 ms. This
ensures that only passing components activate the light barrier.
The status bit of the respective sorting is now set via an IF query. If the component is
too high and passes the light barrier, Fail1 is set to 1, otherwise Fail1 is set to 0. A
similar condition is set for the second sorting. If the color is wrong and the light barrier
is passed, Fail2 is set to 1, otherwise Fail2 is set to 0.
Finally, the output signals are assigned. For this, the outputs are switched over a
defined period of time.
In the last part of the program, marked by "TIMERS", the different timers are defined.
Via "timerDoor1" the first trap door is controlled. As soon as Fail1 is activated, the trap
door is opened for a period of 1200 ms and then closed again.
timerDoor2" is defined in the same way. "timerHigh" and "timerColor" are timers that
maintain a faulty sorting signal until the corresponding component arrives at the trap
door.
PROGRAM Sorting
PLC_NAME = "Good/Bad";
PLC_TYPE = "ZX20T";
(*************************DECLARATION*******************)
VAR_INPUT
High AT In_01;
Light1
AT In_02;
Colour
AT In_03;
Light2
AT In_04;
END_VAR;
VAR_OUTPUT
Door1Open
AT Out_01;
Door2Open
AT Out_02;
END_VAR;
VAR
Fail1;
Fail2;
END_VAR;
VAR_TIMER
timerHigh;
timerColor;