Supported IOWR/IORD-Instructions
Section 4-5
84
occur when the IOWR-instruction is executed. Refer to section 3-5-2-2
ration and operation in Comparison Mode"
and 5-2-2
for details.
Range Data
If the Unit is in Range Mode for each Counter the Range Data of one or multiple
Ranges can be read from the Unit or written to the Unit. For every Range the
Range Data is contained in 6 words. Per IORD- or IOWR-instruction you can read
or write Range Data of up to a maximum of 4 Ranges.
In the Control Code CC1, c specifies the Counter number (c = 1, 2, 3 or 4) from
which the Range Data is to be read or written. CC2 specifies the first Range
number (00-03). Depending on the number of Ranges that you want to read the
Range Data from or overwrite with new Range Data, you have to specify the
number of words to be transferred. This number of words is equal to the number
of Ranges x 6.
Example:
The Counter Unit, with Machine Number 1, operates in Range Mode and Counter
2 uses 4 Ranges (Range 00 to Range 03). You want to change the Range Data of
Ranges 02 and 03. The new Range Data, consisting of 12 words (= 6 words x 2
Ranges), is located in Data-Memory starting from D0100.
Lower Range Limit
Range Data
Upper Range Limit
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
Output Pattern
In the Output Pattern the Outputs are represented by:
= Soft Outputs 0-31
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
IOWR(223)
#2A02
CC1= 2A (= Counter 2), CC2= 02 (= first Range Number)
D0100
S= D0100 (first word with new Range Data)
#000C0001
D= #0001 (Machine Number) and D+1= #000C (# words)