5 Function blocks
5.23 NC, numerical converter
224 Control Relay easy800 11/11 MN04902001Z-EN www.eaton.com
Number range of the BCD code
The BCD code only allows the number range 0
to 9. Each digit of a decimal
number is represented in BCD code by four bits. The number 134
dec
thus
corresponds to the BCD code 0001 0011 0100. The decimal representation
of the BCD code is 308.
Input
Assign the input value to be converted to function block input I1.
The function block input I1 can be assigned the following operands:
• Constant.
• Markers MD, MW, MB.
• Analog inputs IA01 to IA04:
• IA01: Terminal I7.
• IA02: Terminal I8.
• IA03: Terminal I11.
• IA04: Terminal I12.
• Analog output QA01.
• Output …QV> of a different function block.
Output
Output QV> supplies the converted value.
You can assign the following operands to the function block output NC..QV:
• Analog output QA01.
• Markers MD, MW, MB.
BCD code
Decimal value
0000 0
0001
1
0010
2
0011
3
0100
4
0101
5
0110
6
0111
7
1000
8
1001
9
1010 - 1111
Not permissible