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
61
Operating manual ZX09/20/21-Series
filling process (hopper), the control of the conveyor belts 1 and 2 (belt 1 / belt 2) and
the error signal.
Under "VAR_ADC" the analog input "pressure sensor" is declared. This is the pres-
sure sensor, which should continuously record the filling status.
Under "VAR" the declaration of internal variables takes place. These are a status bit
"filled" for the filling status, an error bit "error" and an initial bit "initial". These variables
are all initialized with "0".
Finally, the internal clock of the controller is declared under "VAR_TIMER".
The actual program is written in the logic part, marked by "LOGIC PART". Via various
"IF...ELSE" queries the control of the plant is implemented. This depends on the de-
scribed process sequence of the plant.
In the last part, marked by "TIMERS", the timer is initialized and the individual varia-
bles are clocked.
PROGRAM Plant
PLC_NAME = "Filling process";
PLC_TYPE = "ZX09A";
(*--------------------DECLARATION--------------------*)
VAR_INPUT
Lightbarrier1
AT In_01;
Lightbarrier2
AT In_03;
Pushbuttonswitch
AT In_05;
Proxswitch
AT In_07;
END_VAR;
VAR_OUTPUT
Funnel
AT Out_01;
Belt1
AT Out_02;
Belt2
AT Out_03;
Mistake
AT Out_04;
END_VAR;
VAR_ADC
Pressure sensor;
END_VAR;
VAR
filled:
BIT:=0;
Error:
BIT:=0;
initial:
BIT:=0;
END_VAR;
VAR_TIMER
timer1;