Chapter 5 238-2BC00 - Combination module Manual VIPA System 200V
5-20 HB97E - SM-AIO - Rev. 12/32
The parameters for the counter 1 (C1) to 3 (C3) consist of 3 identical
parameter groups with each a size of 19byte.
For every counter you may set a function and start data.
Byte Description
0 Function
00h = counting continuously
01h = once without main counting direction
02h = once with main counting direction up
03h = once with main counting direction down
04h = periodically without main counting direction
05h = periodically with main counting direction up
06h = periodically with main counting direction down
07h = counter off
If the counter is deactivated, the further parameters of this counter are ignored and the
according I/O channel is set as "normal" output if you want to use this channel as
output.
At the main counting direction "up" the counter counts from the load value to the
parameterized end value in positive direction and jumps then back again to the load
value with the next following encoder pulse.
At the main counting direction "down" the counter counts from the load value to the
parameterized end value in negative direction and jumps then back again to the load
value with the next following encoder pulse.
1 Signal evaluation
Bit 1...0: 00b = Impulse/Direction (Impulse at A1 / Direction at B1)
01b = Rotary encoder single (at A1 and B1)
10b = Rotary encoder double (at A1 and B1)
11b = Rotary encoder quadruple (at A1 and B1)
Counter direction inverted
Bit 7: 0 =Off (Count direction at B1 not inverted)
1 = On (Count direction at B1 inverted)
2 Gate function (Behavior at interruption and gate restart)
Bit 0: 0 = abort (counter process starts with load value)
Bit 0: 1 = interrupt (counter process continues with counter value)
HW gate (Hardware gate via input E.6)
Bit 7: 0 = Off (Counter starts with set SW gate)
1 = On (Counter only starts with set HW and SW gate)
3 Behavior of the output
0 = no comparison (Output is not influenced by counter)
1 = if counter value ≥ comparison value, set output
2 = if counter value ≤ comparison value, set output
3 = gives a pulse to the output as soon as the comparison value has been reached.
The pulse duration is configured via byte 9.
continued ...
Counter parameter
Record set 81h : C1
Record set 82h : C2
Record set 83h : C3