Omron CS1W-CT041 Operation Manual page 146

High-speed counter units
Hide thumbs Also See for CS1W-CT041:
Table of Contents

Advertisement

3&44)"'#.-@;A9J@;9EI@*+'"&$'()*+
Comparison Data
Comparison Data
Note
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.
15 14 13 12 11 10 9 8
15 14 13 12 11 10 9
8
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9
8
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9
8
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9
8
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
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
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.
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
7
6 5
4
3
2
1 0
7
6
5
4 O3 O2 O1 O0
7
6
5
4 O3 O2 O1 O0
7
6
5
4 O3 O2 O1 O0
7
6
5
4
O3 O2 O1 O0
Section 4-5
Comparison Value
+Set Pattern
+Reset Pattern
-Set Pattern
-Reset Pattern
$&$

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-ct021

Table of Contents