3&44)"'#.-@;A9J@;9EI@*+'"&$'()*+
Section 4-5
$&$
Comparison Data
If the Unit is in Comparison Mode for every Counter the Comparison Data of one
or multiple Comparison Values can be read or written. For every Comparison
Value the CV Data is contained in 10 words. Every IORD- and IOWR-instruction
can transfer up to a maximum of 128 words. Thus per IORD- or IOWR-instruction
you can read or write CV Data of up to a maximum of 12 Comparison Values.
In the Control Code, CC1 specifies the Counter number (1, 2, 3, or 4) from which
the CV Data is to be read or written. CC2 specifies the first CV number (00-31).
Depending on the number of CV’s that you want to read the CV Data from or over-
write with new CV Data, you have to specify the number of words to be transferred.
This number of words is equal to the number of CV’s x 10.
Note
When transferring new Comparison Data to the High-speed Counter Unit, you
should make sure that the Comparison Values written do not already exist for that
particular counter. Since Comparison Values must be unique (refer to 3-5-2-2
"Configuration and operation in Comparison Mode"), IOWR will generate an error
if the Comparison Value already exists (refer to 5-2-2 "IOWR/IORD-instruction
errors" for detailed error codes). If you want to transfer an existing Comparison
Value to the High-speed Counter Unit, you have to replace the Comparison Data
that contains the same Comparison Value with the new Comparison Data, even if
you replace a complete set of Comparison Data.
Example:
The High-speed Counter Unit, with Machine Number 3, operates in Comparison
Mode and Counter 4 uses 4 Comparison Values (CV 00 to CV 03). You want to
Comparison Value
15 14 13 12 11 10 9
8
7
6
5
4 O3 O2 O1 O0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
+Set Pattern
15 14 13 12 11 10 9
8
7
6
5
4 O3 O2 O1 O0
Comparison Data
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
+Reset Pattern
15 14 13 12 11 10 9
8
7
6
5
4 O3 O2 O1 O0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-Set Pattern
15 14 13 12 11 10 9
8
7
6
5
O3 O2 O1 O0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-Reset Pattern
In the +/- Set and Reset Patterns the Outputs are represented by:
= Digital Outputs 0-3
(corresponding with Physical Digital Outputs O0, O1, O2 and O3)
= Soft Outputs 4-31
On reaching the Comparison Value:
+ and – Set Patterns:
+ and – Reset Patterns:
0 = No Change
0 = No Change
4
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
W902-E2-03.book Seite 131 Donnerstag, 7. Oktober 2004 2:06 14
Содержание CS1W-CT021
Страница 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Страница 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Страница 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Страница 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Страница 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Страница 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Страница 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...