Siemens EN 50295 Benutzerhandbuch

Seite von 152
Siemens IK PI · 2004
6/98
AS-Interface Slaves
Counter modules
Modules with special functions
6
Overview
This module is used to transfer hexadecimal coded counter val-
ues (LSB=D0, MSB=D3) to a higher-level controller. Each valid 
count pulse on terminal 8 causes the counter value to be incre-
mented. The module counts from 0 up to 15 and then starts 
again at 0. The control system then loads the current value and 
determines the number of pulses between two host calls by gen-
erating the difference. The total number of counter pulses is de-
termined by summation of these differences.
To ensure that valid values are transferred, no more than 15 
count values must be applied to terminal 8 between two host or 
ASI master calls. The maximum permissible transfer frequency 
is calculated as follows from these times:
f
Tmax 
= 15 / T
max
T
max
: Maximum possible transfer time from slave to host.
Another restriction on the maximum frequency is the required 
pulse shape. To ensure that the counter loads a pulse as valid, 
a low value must be applied to the input for at least 300 µs, while 
a high value must be applied for at least 1 ms. This results in a 
maximum frequency for the counter module independent of the 
controller of 
f
FCmax
 = 1 / 1.3 ms = 769 Hz for the counter module 
(see diagram nsa00084).
 
In the event of non-compliance with the time criterion shown in 
the adjacent diagram, the counter value is rejected.
The counter is only active for the reset parameter P2 (default). By 
setting P2, the counter is erased, but incoming pulses are only 
registered when P2 has been reset.
Note: 
A customer-specific function block is required 
or must be programmed.
 
Typical connections
N S A 0 0 0 8 4
U
I N 1
³   1   m s
³   3 0 0       s
t
N
S
A
0
_
0
0
0
8
5
I N 1
A S i
A D D R
A S i +
A S i -
I N 1
-
+
T e r m i n a l   4 :       B u s   c o n n e c t i o n   A S i +
T e r m i n a l   5 :       B u s   c o n n e c t i o n   A S i -
T e r m i n a l   6 :       u n u s e d
T e r m i n a l   7 :       S e n s o r   s u p p l y +
T e r m i n a l   8 :       C o u n t e r   i n p u t
T e r m i n a l   9 :       S e n s o r   s u p p l y -