Configuration of analog value display
Description
The product offers the possibility to display the digitalized value in different formats.
The following settings are available:
Resolution
Alignment
Data format
Resolution
The product can display the digitalized values with different resolutions in the process data. The resolution can be set independently for each port:
10 Bit
12 Bit
14 Bit
16 Bit
Alignment
The digitalized data is always sent or received in 16-bit units. If the resolution is less than 16 bits, it is possible to set the alignment of the data. This setting then applies to all ports.
Left-aligned data for different resolutions:
Bit |
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
MSB 10 bit data |
||||||||||||||||
MSB 12 bit data |
||||||||||||||||
MSB 14 bit data |
||||||||||||||||
MSB 16 bit data |
||||||||||||||||
Right-aligned data:
Bit |
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
MSB 10 bit data |
||||||||||||||||
MSB 12 bit data |
||||||||||||||||
MSB 14 bit data |
||||||||||||||||
MSB 16 bit data |
||||||||||||||||
Data format
The digitalized value can be represented in three data formats. Either as an N-bit unsigned or signed value (two’s complement) or as a value with the unit of millivolt [mV] or microampere [µA].
Note
If the unit (millivolt [mV] or microampere [µA]) is selected for the display, then the resolution and alignment settings have no effect on the process data.
Calculation of the digitalized value
To determine the exact value of the input and output signal, digitalized values must be calculated using different formulas depending on the data setting and port type.
Formula for voltage signals 0…10V, −10…+10V, 0…+5V, −5…+5V, signed format
For positive values (MSB = 0):
For negative values (MSB = 1):
N: Resolution 16, 14, 12 or 10 bit (depending on configuration)
Digitalized value: 16, 14, 12 or 10-bit value in the process data
V: Maximum input voltage for the selected input max range (measuring range). e.g. +11.759V for a nominal range of 0…10V
Formula for voltage signal 5…10V, 1…5V, signed format
N: Resolution 16, 14, 12 or 10 bit (depending on configuration)
Digitalized value: 16, 14, 12 or 10-bit value in the process data
Vmax: Maximum input voltage for the selected input max range (measuring range). e.g. +11.759V for a nominal range of 5…10V
Vmin: Minimum input voltage for the selected nominal input range. e.g. +5V for a range of 5…10V
Formula for current signal 0…20mA, 4…20mA, signed format
N: Resolution 16, 14, 12 or 10 bit (depending on configuration)
Digitalized value: 16, 14, 12 or 10-bit value in the process data
Imax: Maximum input current for the selected input max range (measuring range). e.g. 22mA for a nominal range of 0…20mA
Imin: Minimum input current for the selected nominal input. e.g. 4mA for a nominal range of 4…20mA
Note
Nominal and measuring range start at 0 mA. Because the module cannot measure negative currents, the underflow detection does not work for the nominal range 0…+20 mA.
Formula for voltage signals 0…10V, −10…+10V, 0…+5V, −5…+5V, 1V…5V unsigned format
N: Resolution 16, 14, 12 or 10 bit (depending on configuration)
Digitalized value: 16, 14, 12 or 10-bit value in the process data
Vmax: Maximum input voltage for the selected input max range (measuring range). e.g. +11.759V for a nominal range of 5…10V
Vmin: Minimum input voltage for the selected input max range (measuring range). e.g. +4.12V for a nominal range of 5…10V
Formula for current signal 0…20mA, 4…20mA, unsigned format
N: Resolution 16, 14, 12 or 10 bit (depending on configuration)
Digitalized value: 16, 14, 12 or 10-bit value in the process data
Imax: Maximum input current for the selected input max range (measuring range). e.g. 22mA for a nominal range of 4…20mA
Imin: Minimum input current for the selected input max range (measuring range). e.g. 2mA for a nominal range of 4…20mA
Note
For further information of minimum and maximum input values to calculate with in the equations above, please refer to Configuration of analog ports - Nominal and measuring range.
Formula for voltage signals, format as value with unit
For positive values (MSB = 0):
For negative values (MSB = 1):
Note
If Value with unit is selected as format, all 16 bits of the process data for the respective port must be used for the digitalized value for calculation.
Formula for current signals, format as value with unit
For positive values (MSB = 0):
Note
If Value with unit is selected as format, all 16 bits of the process data for the respective port must be used for the digitalized value for calculation.
Examples
1st example:
The input port has -10V…+10V set as the nominal range. The resolution is 16 bit, the data format is signed. The digitalized value in the input process data is 0x0ADD = 2781.
The bit with the highest significance (MSB) of 0x0ADD is 0, i.e. a positive number. In this case the voltage can be calculated with the following formula:
2nd example:
The input port has −5V…+5V set as the nominal range. The resolution is 16 bits, the data format is signed. The digitalized value in the input process data is 0xD472 = 54386.
The bit with the highest significance (MSB) of 0xD472 is 1, i.e. a negative number. In this case the voltage can be calculated with the following formula:
3rd example:
The input port has 5V…+10V set as the nominal range. The resolution is 16 bits, the data format is signed. The digitalized value in the input process data is 0x302F = 12335.
The bit with the highest significance (MSB) of 0x302F is 0, i.e. a positive number. In this case the voltage can be calculated with the following formula:
4th example:
The input port has 4mA…20mA set as the nominal range. The resolution is 16 bits, the data format is unsigned. The digitalized value in the input process data is 0x4CC8 = 19656.
In this case the current can be calculated with the following formula:
5th example:
The output port has 4mA…20mA set as the nominal range. The resolution is 16 bits. The data format is unsigned.
If an output current of 14mA is necessary, the output process data can be calculated with the following formula:
6th example:
The output port has 4mA…20mA set as the nominal range. The resolution is 16 bits. The data format is signed.
If an output current of 14mA is necessary, the output process data can be calculated with the following formula:
7th example:
The output port has 1V…5V set as the nominal range. The resolution is 16 bits. The data format is unsigned.
If an output voltage of 2V is necessary, the output process data can be calculated with the following formula:
Process Data
ISDU
Process Data Alignment
Value |
Meaning |
|---|---|
0x00 (0) |
Left-aligned |
0x01 (1) |
Right-aligned |
Resolution
The following values can be set:
Value |
Meaning |
|---|---|
0x00 (0) |
16 Bit |
0x01 (1) |
14 Bit |
0x02 (2) |
12 Bit |
0x03 (3) |
10 Bit |
The default value for all ports is: 0x00, the resolution is 16 bit.
Process Data Format
The following values can be set:
Value |
Meaning |
|---|---|
0x00 (0) |
N-bit signed value |
0x01 (0) |
N-bit unsigned value |
0x02 (1) |
Unit mV or µA |
The default value for all ports is: 0x00, the data format of all ports is N-bit signed.
Note
For the analog input ports the N-bit unsigned value is not available.