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
68
Operating manual ZX09/20/21-Series
14.2
Step 1: Program creation in EX_PRESS 5
In the following the program for application is shown. In the first part of the program,
marked by "DECLARATION", all necessary variables are declared.
Under "VAR_INPUT" 4 digital input variables for the four sensors are declared for this
purpose. Here the variable "High" corresponds to the sensor at position 1, "Light1" to
the light barrier at position 2, "Color" to the sensor at position 3 and "Light2" to the light
barrier at position 4. These are assigned to specific input terminals, namely 1, 2, 3 and
4, via the command "AT".
The output signals are declared under "VAR_OUTPUT". This is the control of trap door
1 and 2, "Door1Open" and "Door2Open". If these are active, the components are
sorted out at the respective position.
Under "VAR" the variables within the program are declared. These are two status
variables "Fail1" and "Fail2", which activate the Controlling trap doors. Under
"VAR_TIMER" all required timers of the program are declared. A total of 4 timers are
required for these, two for each sorting step.
The actual program is written in the logic part of the program, marked by "LOGIC-
PART". For this, the signals of the light barriers are first debounced with 200 ms. This
ensures that only passing components activate the light barrier.
Fig. 34. Principle Diagram of good/bad part sorting
Pos. 1
Pos. 2
Pos. 3
Pos. 4
Light barrier
Light barrier
Height control
Pos. 5
Colour sensor