The double word for the counter mode has the following structure:
Byte
Bit 7 ... 0
0
n
Bit 2 ... 0: Signal evaluation
–
000b = Counter de-activated
At de-activated counter the further parameter settings for this counter
are ignored and the according I/O channel is set as "normal" output if
this should be used as output.
–
001b = Encoder 1-tier (at counter
X
(A
X
) and counter
X
(B
X
))
–
010b = Encoder 2-tier (at counter
X
(A
X
) and counter
X
(B
X
))
–
011b = Encoder 4-tier (at counter
X
(A
X
) and counter
X
(B
X
))
–
100b = Pulse/direction (pulse at counter
X
(A
X
) and direction at
counter
X
(B
X
))
n
Bit 6 ... 3: C
X
Input (function of the counter input as gate, latch or reset)
–
0000b = de-activated (counter starts at set SW gate)
–
0001b = Gate
X
The input of counter
X
serves as gate. High level at gate activates the
HW gate. The counter may only start when HW and SW gate are set.
–
0010b = Monoflop *
–
0100b = Latch
X
(edge 0-1 at input saves counter value of counter
X
)
–
1000b = Reset
X
(positive level at input resets counter
X
)
n
Bit 7: Gate function (internal gate)
–
0 = abort (count process starts again at load value)
–
1 = interrupt (count process continues with counter value)
1
n
Bit 2 ... 0: Output set
(OUT
X
of counter
X
is set when condition is met)
–
000b = never
–
001b = counter value
³
comparison value
–
010b = counter value
£
comparison value
–
100b = counter value = comparison value
n
Bit 3: Count direction
–
0 = Count direction inverted: OFF (count direction at B
X
not inverted)
–
1 = Count direction inverted: ON (count direction at B
X
inverted)
n
Bit 7 ... 4: reserved
2
n
Chap. 6.11 ‘Counter - Functions’ page 120
–
000000b = count endless
–
000001b = once: forward
–
000010b = once: backwards
–
000100b = once: no main direction
–
001000b = periodic: forward
–
010000b = periodic: backwards
–
100000b = periodic: no main direction
n
Bit 7 ... 6: C
X
In-/Output
(Function of the counter I/O as OUT, Latch or Reset)
–
00b = O: OUT
X
(at comparison function)
–
01b = I: Latch
X
(edge 0-1 saves counter value of counter
X
)
–
10b = I: Reset
X
(Positive level resets counter
X
)
VIPA System 300S
+
Deployment I/O periphery
Counter - Parametrization
HB140 | CPU | 314-6CF23 | en | 19-01
116