3&44)"'#.-@;A9J@;9EI@*+'"&$'()*+
Section 4-5
$&&
* 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.
4-5-3-3
Counter Value
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, 2, 3 or 4)
Example:
The High-speed Counter Unit is assigned Machine Number 5. You want to over-
write the Counter Value of Counter 4 with 500 (= 01F4 (hex)).
Item
IOWR
IORD
Control Code
No. of
Words
CC1
CC2
Rate History Log File data
N
Y
cF
01
2 x R*
Rate Value 1
Rate Value 2
Rate Value 3
Rate Value R
Rate History Log F ile:
R <= 64
Youngest Rate Value
Oldest Rate Value
(The Rate Values occupy 2 words each)
IORD(222)
#1F01
CC1= 1F (= Counter 1), CC2= 01
#00020007
S= #0007 (Machine Number) and S+1= #0002 (# words)
D0500
D= D0500 (write youngest Rate Value to D0500 and D0501)
Item
IOWR
IORD
Control Code
No. of
Words
CC1
CC2
Counter Value
Y
Y
cC
01
2
IOWR(223)
#4C01
CC1= 4C (= Counter 4), CC2= 01
D0100
S= D0100 (= new Counter Value = #000001F4)
#00020005
D= #0005 (Machine Number) and D+1 = #0002 (# words)
W902-E2-03.book Seite 133 Donnerstag, 7. Oktober 2004 2:06 14
Summary of Contents for CS1W-CT021
Page 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Page 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Page 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Page 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Page 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Page 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Page 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...