24
•
750-404 [Up/Down Counter /100 kHz]
Examples
WAGO-I/O-SYSTEM
750
I/O
Modules
6.
The cyclic period measurement is running. Stopping the cyclic recording
was requested. The process data supply the counter reading, which was
registered in the previous cycle.
Control byte
Input bit
B7
B6
B5
B4
B3
B2
B1
B0
Value
0 0 0 0 X X 0 0
Status byte
Output bit
B7
B6
B5
B4
B3
B2
B1
B0
Value
0 0 1 0 X X 1 X
7.
The cyclic period measurement is stopped. The counter reading is reset.
The process data supply the value 0.
Control byte
Input bit
B7
B6
B5
B4
B3
B2
B1
B0
Value
0 0 0 0 X X 0 0
Status byte
Output bit
B7
B6
B5
B4
B3
B2
B1
B0
Value
0 0 0 0 X X 1 0
2.1.2.8.3 750-404/000-004
Set the digital output DO 1 after 4.000 pulses have been counted. There are
several possibilities to set an output.
If DO 1 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 U/D input. Furthermore, activate bit 0 in the control
byte. After 4000 pulses, the counter reading of 0x80000000 is reached and
output DO 1 activated.
If you wish the counter to count down, pre-set
0x80 4000 = 0x80000FA0
and apply 0V to U/D. After 4000 pulses the counter reading 0x80000000 is
reached and output DO 1 deactivated.
If DO 2 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 DO 2. 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.