Omron CJ1W-CT021 Operation Manual page 144

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

Supported IOWR/IORD-Instructions
Comparison Data
Comparison Data
124
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
7
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9
7
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9
7
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9
7
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-1
(corresponding with Physical Digital Outputs O0, and O1)
= Soft Outputs 2-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 or 2) from which the CV
Data is to be read or written. CC2 specifies the first CV number (00-31). Depend-
ing on the number of CV's that you want to read the CV Data from or overwrite 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.
Example:
The High-speed Counter Unit, with Machine Number 3, operates in Comparison
Mode and Counter 1 uses 4 Comparison Values (CV 00 to CV 03). You want to
change the Comparison Data of CV 00. The new Comparison Data, consisting of
10 words (= 10 words x 1 CV), is located in Data-Memory starting from D0200.
IOWR(223)
#1A00
CC1= 1A (= Counter 1), CC2= 00 (= first CV Number)
D0200
S= D0200 (first word with new CV Data)
#000A0003
D= #0003 (Machine Number) and D+1= #000A (# words)
7
6
5
4
3
2
1
0
7
6
5
4
3
2 O1 O0
7
6
5
4
3
2 O1 O0
7
6
5
4
3
2 O1 O0
7
6
5
4
3
2 O1 O0
Section 4-5
Comparison Value
+Set Pattern
+Reset Pattern
-Set Pattern
-Reset Pattern

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents