A register can be preset using record set (9A+x)h. The current counter value is replaced
by the register value by setting bit 5 of the output status word without any influence to the
load value.
Byte
Bit 15...0
0...1
n
Module selection
–
0000h = Digital/analog part activated (default)
–
0001h = Digital part activated
–
0002h = Analog part activated
n
Using this record set you can de-activate the digital respectively analog part.
n
Please regard that in spite of the de-activation of the digital respectively analog part,
the process image for both components remains reserved.
6.11 Counter - Functions
You may count forward and backwards and choose between the following counter func-
tions:
n
Count endless, e.g. distance measuring with incremental encoder
n
Count once, e.g. count to a maximum limit
n
Count periodic, e.g. count with repeated counter process
In the operating modes "Count once" and "Count periodic" you may define a counter
range as start and end value via the parameterization. For every counter additional
parameterizable functions are available like gate function, comparison, hysteresis and
process interrupt.
Via the parameterization you have the opportunity to define a main counting direction for
every counter. If "none" is chosen, the complete counting range is available:
Limits
Valid value range
Lower count limit
-2 147 483 648 (-2
31
)
Upper count limit
+2 147 483 647 (2
31
-1)
Main counting direction forward
Upper restriction of the count range. The counter counts 0 res.
load value
in positive
direction until the parameterized
end value
-1 and jumps then back to the load value with
the next following encoder pulse.
Main counting direction backwards
Lower restriction of the count range. The counter counts from the parameterized start-
res.
load value
in negative direction to the parameterized
end value
+1 and jumps then
back to the start value with the next following encoder pulse.
If the HW gate is enabled, only the HW gate may be influenced by the gate functions. An
opening and closing of the SW gate aborts or interrupts the count process.
Abort count process
The count process starts after closing and restart of the gate beginning with the
load
value
.
Interrupt count process
Record set 9A ... 9Dh - Set
counter value temporary
Record set 9Eh - Module
selection
Overview
Main counting direction
Gate function abort/inter-
rupt
VIPA System 300S
+
Deployment I/O periphery
Counter - Functions
HB140 | CPU | 314-6CF23 | en | 19-01
120