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
38
Operating Manual ZX20T/TP/TC
VAR
Fail1;
Fail2;
END_VAR;
VAR_TIMER
timerHigh;
timerColor;
timerDoor1;
timerDoor2;
END_VAR;
(*************************LOGIC-PART*******************)
(*Debouncing of the input signals of the light barriers*)
Licht1.TDB:=200ms;
Licht2.TDB:=200ms;
(*If 1. light barrier 2 is activated and 2. the component is detected as too high, Fail1 is set*)
IF Licht1=1 AND timerHigh=1 THEN
Fail1:=1;
ELSE
Fail1:=0;
END_IF;
(*If 1. light barrier 2 is activated and 2. the component had the wrong color, Fail2 is set*)
IF Licht2=1 AND timerColor=1 THEN
Fail2:=1;
ELSE
Fail2:=0;