Standard Method 2
Task:
–
The input channels are to be operated in different configurations.
The channels are to be configured first (4x00
After configuration, the measured values are to be read (0x00
–
Configuration of the channels:
Parameter
Filtering by mean-
value generation:
Format:
Measuring range: 0 V to 50 V
Procedure:
1
Install the terminal.
2
Connect the voltage (power up).
3
Configure each individual channel in the terminal in turn (initialization phase; e.g., in the
initialization phase of the application program).
4
Read the measured value for each channel in turn.
Initialization phase:
The appearance of the process data output word OUT[0] is as follows for all channels:
Bit
15
Assignment
0
bin
0
hex
The process data output word OUT[1] indicates the parameters for each channel according to the
task: For channel 1, it looks like this:
Bit
15
Assignment
0
bin
0
hex
6226B_GE
ANALOG IN 15 BIT VOLTAGE/CURRENT 8CH IC220ALG221
Channel 1
No filtering
16-sample average
(01
, 1
)
(00
bin
dec
IB IL
IB IL
(000
, 0
)
(000
bin
dec
±5 V
(0110
, 6
)
(0011
bin
dec
14
13
12
11
Command
1
0
0
0
4
14
13
12
11
0
0
0
0
0
0
0
0
0
).
hex
Channel 2
4-sample average
, 0
)
(10
bin
dec
IB IL
, 0
)
(000
bin
dec
4 mA to 20 mA
, 3
)
(1010
bin
dec
OUT[0]
10
9
8
7
0
Z
Z
Z
0
2
1
0
x
OUT[1]
10
9
8
7
0
Filter
0
0
0
1
0
1
).
hex
Channel 3
, 2
)
bin
dec
, 0
)
bin
dec
, 10
)
bin
dec
6
5
4
3
0
0
0
0
0
0
0
0
0
6
5
4
3
Format
Measuring range
0
0
0
0
0
...
...
...
...
2
1
0
0
0
0
0
0
0
0
2
1
0
1
1
0
6
33