
E(2('%<-@*4&'-,&*$'()*+
Section 3-4
)-
Gate Function
The Gate Function should be assigned to a Digital Input in case you want to use
that Digital Input as a Gate. When the Gate is open, the Counter is able to count
pulses. When the Gate is closed, the Counter will not count pulses. The Positive
Gate Function (01) results in an open Gate when the level of the signal applied to
the Digital Input is high and a closed Gate when the level of the signal applied to
the Digital Input is low. For the Negative Gate Function (02) the same functionality
is applied to the Counter for inverted signals.
The Gate of a Counter can also be opened and closed by using the “Open Gate
Bit” and “Close Gate Bit” in CIO.
Note
Initially, at power up or restart of the Unit, for all counter types (i.e. Simple-, Circu-
lar-, and Linear Counters) the Gate is closed and counting is disabled. In order to
enable counting you must open the Gate first.
Preset Function
A Digital Input configured to have Preset functionality will preset the Counter with
the Preset Value on a rising edge (Preset Rising Edge, Function 03) or falling edge
(Preset Falling Edge, Function 04) of the Digital Input signal. This will cause the
Counter Value to be overwritten with the Preset Value.
The Unit is equipped with a Preset Register for every Counter that contains the
Preset Value. To change the Preset Value you can change the (32-bits) Preset
Value in CIO of the corresponding Counter. The Counter Value is overwritten with
Function 01:
Gate Positive
Function 02:
Gate Negative
Gate Closed
Gate Open
Gate Closed
Gate Closed
Gate Open
Gate Closed
CNT1:
CNT2:
CNT3:
CNT4:
n+2
n+5
n+8
n+11
Open Gate:
0
→
1 = Open Gate
Close Gate:
0
→
1 = Close Gate
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
A rising edge of the "Open Gate Bit" opens the Gate regardless of the state of the "Close Gate
Bit". A rising edge of the "Close Gate Bit" closes the Gate regardless of the state of the "Open
Gate Bit". At a simultaneous rising edge of both bits, the state of the Gate is unchanged.
Load Counter with
Preset Value
Load Counter with
Preset Value
Function 03:
Preset Rising Edge
Function 03:
Preset Rising Edge
W902-E2-03.book Seite 60 Donnerstag, 7. Oktober 2004 2:06 14
Summary of Contents for CS1W-CT021
Page 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Page 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Page 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Page 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Page 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Page 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Page 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...