20
•
750-404 [Up/Down Counter /100 kHz]
Process
Image
WAGO-I/O-SYSTEM
750
I/O
Modules
2.1.2.7.3 Control- / Status byte 750-404/000-004
The control byte C0 serves for setting and locking the counter and for setting
the outputs dependent or independently on the counter reading. The status byte
S0 shows the status of the counter and the inputs and outputs.
Control byte
B7
B6
B5
B4
B3
B2
B1
B0
0 0 Set
counter
Lock
Counter
Set
output
DO 2
Set
output
DO 1
Output
O2
activated
dependin
g of the
counter
value
Output
O1
activated
dependin
g of the
counter
value
0
This constant must be set to zero.
Status byte
B7
B6
B5
B4
B3
B2
B1
B0
X X
Counter
is set
Counter
is
blocked
actual
signal at
output
DO 2
actual
signal at
output
DO 1
actual
signal at
input
U/D
actual
signal at
input
CLOCK
X
This value is not evaluated.
With the control and status byte the following tasks are possible:
Set 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
information is stored. The ensuing data of the counter will be conveyed to the
status byte.
Lock 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.
Switching the outputs dependent of the counter:
The bits 0 and 1 activate the function: output dependent setting of binary
outputs. If the counter reading 0x80000000 is exceeded, output DO 1 is
activated. For the output DO 2 only the bottom 16 bits of the counter reading
are taken into account, which means that output DO 2 is activated as soon as
the counter reading 0x8000 is exceeded. Having reached 0 again, the outputs
are reset.