82
Counter Function
WAGO-SPEEDWAY 767
767-5803/000-800 8DIO 24V DC 0.5A IF (8xM12)
Manual
Version 1.1.0
9.2
Controlling and Monitoring of the Counter via the
Process Data
The control byte and status byte used for counter controlling and monitoring are
listed below:
9.2.1
Control Byte
The control byte allows the configuration of the counter via the process data:
Table 49: Control byte
7
0
Control byte
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set counter value
1
B
: The value defined in the process image is
loaded as actual counter value
on the selected counter channel.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gate function
Control of the gate function if it is not controlled via
a physical input.
0
B
: Reset the gate (counter is blocked)
1
B
: Set the gate (counter is released)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Count direction
Control of the count direction if this is not controlled via
an input.
0
B
: up
1
B
: down
|
|
|
|
|
|
|
|
Limit value status
1
B
: reset limit value status
|
|
|
|
|
|
|
|
|
Set start/limit value
1
B
: The value defined in the process image is loaded as start/limit
value on the selected counter channel.
|
|
Reserved
|
|
|
Selection of the counter
0
B
: counter 1
1
B
: counter 2
Control mode
0
B
: control mode deactivated (setting of bits 0 … 6 has no effect)
1
B
: control mode activated
Gate function:
Both counter values and status information remain unchanged
("frozen") as long as the gate is inactive.
Control mode:
The counter value remains unchanged ("frozen"), including status
information, as long as the control mode is active.