Function blocks
235
1SVC 440 795 M1100
Function of the numerical converter function block
BCD mode
The BCD value at >I1 is provided in decimal format at the
input. The binary value is formed from this. The binary value
is interpreted as a BCD value. Values greater than 9 (1001)
are set to the value 9. The BCD value is output as a decimal
value at the output
QV>.
Example 1:
Input value >I1: +9
dec
Binary value: 1001
Decimal value QV>: + 9
Example 2:
Input value >I1: +14
dec
Binary value: 1110
Decimal value QV>: + 9
Example 3:
Input value >I1: 19
dec
Binary value: 0001 0011
Decimal value QV>: 13
Example 4:
Input value >I1: 161061273
dec
Binary value: 1001100110011001100110011001
Decimal value QV>: 9999999
Example 5:
Input value >I1: –61673
dec
Binary value: 10000000000000001111000011101001
Decimal value QV>: –9099
h
The numerical converter function block must be enabled
so that it can work. Coil NC…EN is active. If coil NC…EN
is not active, the entire function block is deactivated and
reset. The output value is set to zero.
h
The highest binary of the BCD value is 1001 = 9. All other
higher binary values 1010 to 1111 are output by the
function block as the value 9. This behaviour is correct as
BCD encoders normally don’t generate these values.