H. ZANDER GmbH & Co. KG • Am Gut Wolf 15 • 52070 Aachen • Germany • Phone +49 241 9105010
Fax +49 241 91050138 • [email protected] • www.zander-aachen.de
37
Operating Manual ZX20T/TP/TC
In the logic part of the program, marked by "LOGIC-PART", the actual program is
written. Here, the signals of the light barriers are debounced with 200 ms first. This
ensures that only passing components activate the light barrier.
Through an IF query the status bit of the respective sorting is set. 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 purpose, the outputs are switched
over a defined period of time.
In the last part of the program, marked by „TAKTUNG“, the different timers are
defined. The first trapdoor is controlled via "timerDoor1". As soon as Fail1 is
activated, the trapdoor is opened for a period of 1200 ms and then closed again.
"timerDoor2" is defined similarly.
„timerHigh“ and „timerColor“ are timers which maintain a faulty sorting signal until the
corresponding component arrives at the trap door.
PROGRAM Sort
PLC_NAME = "Good / Bad";
PLC_TYPE = "ZX20T";
(*************************DECLARATION*******************)
VAR_INPUT
High
AT In_01;
Licht1
AT In_02;
Color
AT In_03;
Licht2
AT In_04;
END_VAR;
VAR_OUTPUT
Door1Open
AT Out_01;
Door2Open
AT Out_02;
END_VAR;