3&44)"'#.-@;A9J@;9EI@*+'"&$'()*+
Section 4-5
$&%
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.
4-5-3
Special data
4-5-3-1
Captured Counter Value
The Counter Value can be captured into the Capture Register by using a Digital
Input (Function 07 or 08) or by using the “Capture Counter Value bit” in CIO (refer
to 3-4
for more information). For this purpose every
Counter is equipped with a Capture Register inside the High-speed Counter Unit.
If you want to use the captured Counter Value in the PLC ladder program you have
to use the IORD-instruction that reads the value from the Capture Register of the
specific Counter.
c = Counter Number (1, 2, 3 or 4)
Example:
The High-speed Counter Unit is assigned Machine Number 8. You want to read
the Captured Counter Value of Counter 3 and write it to D0300 in the PLC mem-
ory.
Note
Reading the Captured Counter Value with IORD is also supported for Simple
Counters (refer to 3-2-1
4-5-3-2
Rate History Log File data
The Rate History Log File, inside the Unit, contains up to a maximum of 64 most
recent Rate Values. If you want to use one or multiple Rate Values from the Rate
History Log File in the PLC ladder program, you have to use an IORD-instruction.
The IORD-instruction returns the specified number of Rate Values starting from
the youngest Rate Value.
IOWR(223)
#4A00
CC1= 4A (= Counter 4), CC2= 00 (= first CV Number)
D0200
S= D0200 (first word with new CV Data)
#000A0003
D= #0003 (Machine Number) and D+1= #000A (# words)
Item
IOWR
IORD
Control Code
No. of
Words
CC1
CC2
Captured Counter Value
N
Y
cC
02
2
IORD(222)
#3C02
CC1= 3C (= Counter 3), CC2= 02
#00020008
S= #0008 (Machine Number) and S+1= #0002 (# words)
D0300
D= D0300 (write Captured Counter Value to D0300 and
D0301)
W902-E2-03.book Seite 132 Donnerstag, 7. Oktober 2004 2:06 14
Содержание CS1W-CT021
Страница 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Страница 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Страница 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Страница 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Страница 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Страница 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Страница 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...