04/03 AWB2725-1452GB
Function summary
27
Function summary
A counter channel has the function of either a linear counter or a
ring counter, depending on the setting of the operating mode
switch on the module.
Linear counter
The counting range of the linear counter starts at the value 0 and
ends at the value 4294967295 (FFFFFFFF
hex
). If the counter is
enabled, it starts at 0 and counts all incoming pulses up or down
– depending on the count direction. If the count reaches the end
value it starts again at 0.
Parameterizing the comparison value, setting module
outputs
You can set a comparison value, so that an action can be
performed when a defined count value has been reached. The
actual value of the count is continuously compared with the
comparison value. If they are identical, two types of output can be
activated. The outputs are led out directly from the module, for a
fast response.
The “Latch” output (=), Equal flag:
The “Latch” output is set when equality is achieved. It is indicated
by the “=” symbol. The Equal flag serves as the internal marker
for the “Latch” output. The output and flag remain set until you
reset them.
The “Level” output (>):
The “Level” output is set to “1” if the actual value is larger than
the comparison value. If the actual value falls below the
comparison value, then it is reset to “0”. The “Level” output is
indicated by the “>” symbol.
You can set the comparison value at the “Counter
n
Enable” input,
either at the start or during operation. This does not depend on the
counter being enabled.
Example
• Count direction: up
• Comparison value: 4294967200
Overflow flag
The Overflow flag is set when the actual value changes from
FFFFFFFF
hex
to 0. You can reset it by using the CLEAROVERFLOW
command.
Change actual value
You can change the actual value during counting. This does not
depend on the counter being enabled.
Use of the reference input
Incremental encoders send a reference marker signal once per
turn. This can be used to overwrite the actual value by a preset
value that was defined as part of the parameter settings. In order
to be able to process the reference signal, the reference input must
be enabled.
Figure 37:
Counting range of the linear counter
4294967294
0
1
2
*295
0
1
4294967295
0
*294
0
*295
1
1
Counting up
* = 4294967
Figure 38:
Setting module outputs
*198
*199
*200
*295
0
1
2
*201
1
0
1
0
1
0
Latch output (=)
Equal flag
Level output (>)
Overflow flag
* = 4294967
For Immediate Delivery call KMParts.com at (866) 595-9616
Summary of Contents for XIOC
Page 4: ...II For Immediate Delivery call KMParts com at 866 595 9616...
Page 8: ...04 03 AWB2725 1452GB 4 For Immediate Delivery call KMParts com at 866 595 9616...
Page 24: ...04 03 AWB2725 1452GB 20 For Immediate Delivery call KMParts com at 866 595 9616...
Page 52: ...04 03 AWB2725 1452GB 48 For Immediate Delivery call KMParts com at 866 595 9616...