Range- And Comparison Data - Omron CS1W-CT041 Operation Manual

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

Advertisement

3&44)"'#.-@;A9J@;9EI@*+'"&$'()*+
4-5-2

Range- and Comparison data

Item
Data Range 00 – Data Range 31
Data Comparison Value 00 – Data Comparison
Value 31
Example:
The High-speed Counter Unit is assigned Machine Number 6. You want to change
the Maximum Count Value of Circular Counter 3. The new Maximum Count Limit
consists of 2 words, is located in Data-Memory at address D0050 and D0051 and
is equal to 2710
(=10,000 decimal).
H
IOWR(223)
#3C03
CC1= 3C (= Counter 3), CC2= 03
D0050
S= D0050 (first word with new Maximum Count Value)
#00020006
D= #0006 (Machine Number) and D+1= #0002 (# words)
Example:
The High-speed Counter Unit is in Range Mode and is assigned Machine Number
3. You want to read the Range Enable Data of Counter 2 and write it to D1800 in
the PLC memory.
IORD(222)
#2B03
CC1= 2B (= Counter 2), CC2= 03
#00020003
S= #0003 (Machine Number) and S+1= #0002 (# words)
D1800
D= D1800 (write Range Enable Data to D1800 and D1801)
The Unit can be in Range or Comparison Mode (refer to 3-5-1 "Range Mode" and
3-5-2 "Comparison Mode"). IOWR- and IORD-instructions can be used respec-
tively to change Range/Comparison Data inside the Unit or to read Range/Com-
parison Data from the Unit, during actual operation. Depending on the mode of the
Unit (Range or Comparison mode) the Control Code is interpreted accordingly by
the High-speed Counter Unit.
c = Counter Number (1, 2, 3 or 4)
1
M = Number of Ranges, 1 ≤ M ≤ 21
*
2
M = Number of Comparison Values, 1 ≤ M ≤ 12
*
IOWR
IORD
Control Code
CC1
Y
Y
cA
Y
Y
cA
Section 4-5
No. of
Words
CC2
1
00-31
6 x M*
2
00-31
10 x M*
$%,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-ct021

Table of Contents