Supported IOWR/IORD-Instructions
Section 4-5
85
Comparison Data
If the Unit is in Comparison Mode for every Counter the Comparison Data of one
or multiple Comparison Values can be read or written. For every Comparison
Value the CV Data is contained in 10 words. Per IORD- or IOWR-instruction you
can read or write CV Data of up to a maximum of 8 Comparison Values.
In the Control Code CC1, c specifies the Counter number (1,2, 4 or 4) from which
the CV Data is to be read or written. CC2 specifies the first CV number (00-03).
Depending on the number of CV’s that you want to read the CV Data from or over-
write with new CV Data, you have to specify the number of words to be transferred.
This number of words is equal to the number of CV’s x 10.
Example:
The Counter Unit, with Machine Number 3, operates in Comparison Mode and
Counter 1 uses 4 Comparison Values (CV 00 to CV 03). You want to 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.
Comparison Value
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
+Set Pattern
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Comparison Data
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
+Reset Pattern
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-Set Pattern
15 14 13 12 11 10 9
8
7
6
5
3
2
1
0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
-Reset Pattern
In the +/- Set and Reset Patterns the Outputs are represented by:
= Soft Outputs 0-31
On reaching the Comparison Value:
+ and – Set Patterns:
+ and – Reset Patterns:
0 = No Change
0 = No Change
4
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
IOWR(223)
#1A00
CC1= 1A (= Counter 1), CC2= 00 (= first CV Number)
D0200
S= D0200 (first word with new CV Data)
#000A0003
D= #0003 (Machine Number) and D+1= #000A (# words)