Figure 12-39:
signal A
(counter signal)
signal B
(direction)
counter pulses
up counting
counter pulses
down counting
up counting
down counting
Technology modules
D300529 0115 - BL67 I/O modules12-74
Load value
Load counter in preparation
The counter module can be assigned with a load value in prepa
ration. This value can either be set via
the connected controller (see Register bank of the module, register no. 40 "REG_LOAD_VALUE") or
via the software I/O-ASSISTANT V3 (PACTware + BL67-DTM).
The preconditions for loading the load value are the following:
a completed synchronization with Z
a module
reset
If the parameterized load value exceeds the parameterized count
limits of
the module, the respective
count limit is loaded.
The following values can be changed using the load function during operation by means of the respec-
tive registers (see Register bank of the module):
count value (REG_COUNTER_VALUE, register no. 32)
lower limit (REG_LOWER_LIMIT, register no. 36)
upper limit (REG_UPPER_LIMIT,
re
gister no. 40)
load value (REG_LOAD_VALUE, register no. 44)
set digital outputs
read digital inputs
Load counter directly
The counter can be loaded directly.
In this case, the load value is direct
ly
written into the counter-value-register (register no. 0 "REG_CNT_-
POS", see Register bank of the module) and accepted immediately from the module as the new counter
value.
If the parameterized load value exceeds the parameterized count
limits of
the module, the respective
count limit is loaded.
Changing the
counter status on
counter signal
and direction sig-
nal