
WAGO-SPEEDWAY 767
Counter function
77
767-5401 4DIO 24V DC 0.2A HS (4xM12)
Manual
Version 1.1.0
9.2.3
Example of Controlling the Counter via the Process Data
Prerequisite:
For the module in DTM, you have set the operating mode "DIO
counter." For control of the counter via the output data, the parameter
"Simulation" must also be deactivated for the counter.
For the following example, heed the descriptions of the control byte
(section “Control Byte”).
To control the counter via the process data (output data), the control mode
(set bit 7) must be activated. In this mode, the counter is stopped. Only with a set
control mode can you set the other bits individually or simultaneously. To check
the configuration, the control mode bit of the status byte is then read via the
process data (input data). When setting the start or limit value, the value must
remain in the output process image after resetting the control mode (at least one
cycle).
Table 45: Example of controlling the counter via control byte
Binary
Hexadecimal
Description
10010010
92
Set limit value and gate function for
counter release.
0xxxxxxx
0
Counter is released.
10000110
86
Set count direction "down" and gate
function for counter release.
0xxxxxxx
0
Counter is released.
Pos: 40 /D okumentation allgemei n/Glieder ungselemente/---Seitenwechsel--- @ 3\mod_1221108045078_0.docx @ 21810 @ @ 1