Presentation function
The presentation function block according to index 0x80x0:02 converts the PDO value into the internal SINT16 format (signed integer, 16-bit) for further calculation and DAC output, depending on the setting. Depending on the presentation selected, the following applies:
Signed presentation (default setting)
- A SINT16 with sign in the highest bit (bit15) is expected,
negative numbers are displayed in two's complement. - Ys1 = Ys
- Full scale value (FSV) = 32767
- This means specifically for the terminals
Output signal | Value | |||
---|---|---|---|---|
EL400x | EL401x | EL402x | Decimal | Hexadecimal |
0 V | 0 mA | 4 mA | 0 | 0x0000 |
5 V | 10 mA | 12 mA | 16383 | 0x3FFF |
10 V | 20 mA | 20 mA | 32767 | 0x7FFF |
Output signal | Value | |
---|---|---|
EL403x | Decimal | Hexadecimal |
-10 V | -32767 | 0x8001 |
-5 V | -16383 | 0xC001 |
0 V | 0 | 0x0000 |
5 V | 16383 | 0x3FFF |
10 V | 32767 | 0x7FFF |
Unsigned presentation
- A UINT16 without sign is expected, FSV= 65535,
- the SINT16 is formed for further processing: Ys1 = Ys / 2
- Negative output values are no longer possible.
Absolute value with MSB as sign
- A SINT16 with sign in the highest bit (bit15) is expected,
negative numbers are shown as absolute values (not in two's complement) - Ys1 = Ys
- FSV = 32767
Absolute value
- A SINT16 with sign is expected,
negative numbers are displayed in two's complement - in the case of a negative number, its magnitude is formed and thus only positive values
up to 215 = 32767 are processed.
Examples of the presentations
- Signed Integer:
The output value is presented in two's complement format.
Maximum presentation range for 16 bit = -32768 .. +32767 - Example:
1000 0000 0000 0000bin = 0x8000hex = -32768dec
1111 1111 1111 1110bin = 0xFFFEhex = -2dec
1111 1111 1111 1111bin = 0xFFFFhex = -1dec
0000 0000 0000 0001bin = 0x0001hex = +1dec
0000 0000 0000 0010bin = 0x0002hex = +2dec
0111 1111 1111 1111bin = 0x7FFFhex = +32767dec - Unsigned Integer:
The output value is shown with 16 bit resolution. - Absolute value with MSB as sign:
The output value is displayed in signed amount representation.
Maximum presentation range for 16 bit = -32767 .. +32767 - Example:
1111 1111 1111 1111bin = 0xFFFFhex = -32767dec
1000 0000 0000 0010bin = 0x8002hex = -2dec
1000 0000 0000 0001bin = 0x8001hex = -1dec
0000 0000 0000 0001bin = 0x0001hex = +1dec
0000 0000 0000 0010bin = 0x0002hex = +2dec
0111 1111 1111 1111bin = 0x7FFFhex = +32767dec - Absolute value
Negative output values are shown positive (absolute value)