110
9.14.2. The counter
MTProg has 8 counters of this type. The example illustrates a counter counting 10
activations of I1. Upon reaching the count of PV_C1 the flag C1 rises. Line 2 copies the
state of C1 to output Q1. Change of Q1 may be used in the rule defining the data or sms
transmission or in further programming. The counter is reset (line 3) upon reaching the
pre-set value of 10.
9.14.3. Pulse generator
Simple example of pulsing output Q1. The interval of switching on/off is 1 second.
9.14.4. 2 pumps alternating action
Next example illustrates alternating work of 2 pumps activated by respective Q1 and Q2
output. When water level makes sensor on input I3 close (start level), the program turns
resting output Qx on. If the water level does not decrease and the sensor on I4 gets
activated, the resting pump is switched on and stays on until the level drops to under stop
level (I2). There is an auxiliary security measure in the program in case of the I2 sensor
hanging, where the program turns both pumps off if Dry run (I1) level is crossed.
Note that in order to start the pump, I1 and I2 have to be ON when I3 gets activated.
Содержание MT-101
Страница 1: ......
Страница 129: ...126 11 7 Drawings and dimensions ...