Function Blocks 
BCD Function Block 
84    HC900 Hybrid Control Designer Function Block Reference Guide  Revision 11 
  2/07 
BCD Function Block 
Description 
The BCD label stands for Binary Coded Decimal Translator. 
 
 
This block is part of the 
Auxiliary category. 
Function 
Accept up to 8 digital inputs in sequence and interprets the ON/OFF status of the first 4 inputs as a BCD 
value between 0 and 9 and the second 4 digits as a value between 10 and 80. 
Input 
D1
 = Bit 0 of the BCD lower digit 
D2 = Bit 1 of the BCD lower digit 
D4 = Bit 2 of the BCD lower digit 
D8 = Bit 3 of the BCD lower digit 
D10 = Bit 0 of the BCD upper digit 
D20 = Bit 1 of the BCD upper digit 
D40 = Bit 2 of the BCD upper digit 
D80 = Bit 3 of the BCD upper digit 
Output 
OUT
 = Analog output integer in the range of 0 to 99 
OUT =   (1* (1 if D1 is ON, else 0))+ 
  (2* (1 if D2 is ON, else 0)) + 
  (4* (1 if D4 is ON, else 0)) + 
  (8* (1 if D8 is ON, else 0)) + 
  (10* (1 if D10 is ON, else 0)) + 
  (20* (1 if D20 is ON, else 0)) + 
  (40* (1 if D40 is ON, else 0)) + 
  (80* (1 if D80 is ON, else 0))) 
Block properties 
Double click on the function block to access the function block properties dialog box.