I/O modules • 115
Counter modules 750-404/000-004
Modular I/O System
ETHERNET TCP/IP
With the control and status byte the following tasks are possible:
Setting the counter:
Put Bit 5 into the control byte. The counter with the 32 bit value is loaded into
output bytes 0-3. As long as the bits are set, the counter can stop and informa-
tion is stored. The ensuing data of the counter will be conveyed to bit 5 of sta-
tus byte.
Blocking the counter:
Bit 4 is set into the control byte, then the count process is suppressed. Bit 4 in
the status byte communicates the suppression of the counter.
Setting the outputs:
Bits 2 and 3 set the additional two outputs of the counter module.
Switching the outputs dependent of the counter:
The bits 0 and 1 activate the function: output dependent setting of binary out-
puts. If the counter reading 0x80000000 is exceeded, output A1 is activated.
For the output A2 only the bottom 16 bits of the counter reading are taken into
account which means that output A2 is activated as soon as the counter read-
ing 0x8000 is exceeded. Having reached 0 again, the outputs are reset. If bits 2
or 3 are also set, they have priority, so that the corresponding output is set in-
dependent of the counter reading.
The result of the counter is in binary.
Example how to activate the digital outputs:
Set the digital output after 4.000 pulses have been counted. There are several
possibilities to set an output.
If A1 is used as an automatic switching output and if the counter is to count
up, set the counter to
0x80000000 - 4000 = 0x7FFFF060
and apply + 24V to the V/R input. Furthermore, activate bit 0 in the control
byte. After 4000 pulses, the counter reading of 0x80000000 is reached and
output A1 activated.
If you wish the counter to count down, pre-set
0x80 4000 = 0x80000FA0
and apply 0V to V/R. After 4000 pulses the counter reading 0x80000000 is
reached and output A1 deactivated.
If A2 is to be used as a switching output, load the counter with
0x8000 - 4000 = 0x7060 or
4000 = 0x8FA0
respectively, because only the bottom 16 bits of the counter are used for
switching output A2. Instead of bit 0 now activate bit 1 in the control byte.
The binary output not involved each time can be directly addressed by the
controls via bit 2 and 3.