Omron CJ1W-CT021 Operation Manual page 143

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

Advertisement

Supported IOWR/IORD-Instructions
Range Data
Range Data
Example:
Note When transferring new Comparison Values to the Unit, be sure that the same
Comparison Value is not used more than once in the same Counter. If the same
Comparison Value exists more than once in the same Counter, an error will
occur when the IOWR-instruction is executed. Refer to 3-5-2-2 "Configuration
and operation in Comparison Mode" and 5-2-2 "IOWR/IORD-instruction errors"
for details.
If the Unit is in Range Mode for each Counter the Range Data of one or multiple
Ranges can be read from the Unit or written to the Unit. For every Range the
Range Data is contained in 6 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 Range Data of up to a maximum of 21 Ranges.
15 14 13 12 11 10 9
15 14 13 12 11 10 9
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
In the Output Pattern the Outputs are represented by:
= Digital Outputs 0-1
(corresponding with Physical Digital Outputs O0 and O1)
= Soft Outputs 2-31
In the Control Code, CC1 specifies the Counter number (c = 1 or 2) from which the
Range Data is to be read or written. CC2 specifies the first Range number (00-31).
Depending on the number of Ranges that you want to read the Range Data from
or overwrite with new Range Data, you have to specify the number of words to be
transferred. This number of words is equal to the number of Ranges x 6.
The High-speed Counter Unit, with Machine Number 1, operates in Range Mode
and Counter 2 uses 5 Ranges (Range 00 to Range 04). You want to change the
Range Data of Ranges 03 and 04. The new Range Data, consisting of 12 words
(= 6 words x 2 Ranges), is located in Data-Memory starting from D0100.
IOWR(223)
#2A03
D0100
#000C0001
8
7
6
5
4
3
2
1
7
7
6
5
4
3
2 O1 O0
CC1= 2A (= Counter 2), CC2= 03 (= first Range Number)
S= D0100 (first word with new Range Data)
D= #0001 (Machine Number) and D+1= #000C (# words)
0
Lower Range Limit
Upper Range Limit
Output Pattern
Section 4-5
123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents