Omron CJ1W-CT021 Operation Manual page 146

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

Advertisement

Supported IOWR/IORD-Instructions
Item
Rate History Log File data
4-5-3-3
Counter Value
Item
Counter Value
126
c = Counter Number (1 or 2)
* R = Number of Rate Values, 1 ≤ R ≤ 64
Example:
The High-speed Counter Unit is assigned Machine Number 7. You want to read
the youngest Rate Value from the Rate History Log File of Counter 1 and write it
to D0500 in the PLC memory.
IORD(222)
#1F01
#00020007
D0500
The Counter Value of every Counter can be overwritten and read by using the
IOWR- and IORD-instructions, during actual operation of the Unit.
c = Counter Number (1 or 2)
Example:
The High-speed Counter Unit is assigned Machine Number 5. You want to over-
write the Counter Value of Counter 2 with 500 (= 01F4 (hex)).
IOWR(223)
#2C01
D0100
#00020005
Note
Reading/writing the Counter Value with IORD/IOWR is also supported for Simple
Counters (refer to 3-2-1 "Simple Counter").
IOWR
IORD
N
Y
CC1= 1F (= Counter 1), CC2= 01
S= #0007 (Machine Number) and S+1= #0002 (# words)
D= D0500 (write youngest Rate Value to D0500 and D0501)
IOWR
IORD
Y
Y
CC1= 2C (= Counter 2), CC2= 01
S= D0100 (= new Counter Value = #000001F4)
D= #0005 (Machine Number) and D+1 = #0002 (# words)
Control Code
CC1
CC2
cF
01
Control Code
CC1
CC2
cC
01
Section 4-5
No. of
Words
2 x R*
No. of
Words
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents