====== BCD_TO_UDINT ====== {{:en:mervis-ide:35-help:bcd_to_udint.png}} ===== Function name ===== BCD_TO_UDINT ===== ST call ===== PROGRAM BCD_TO_UDINT_DEMO VAR W: WORD; U: UDINT; END_VAR U:= BCD_TO_UDINT(IN1:=W); END_PROGRAM ===== Description ===== Function converts a bit array (ANY_BIT) to an integer type. For example, a binary value of 2#0011_0110_1001 is converted to 369 decimal. ===== Inputs ===== |Input|Type |Description| |IN1 |ANY_BIT|Input value| ===== Outputs ===== |Output|Type |Description | |=> |UDINT|Output value| ===== Application example ===== {{:en:mervis-ide:35-help:bcd_to_udint_example.png}} Conversion of a bit array 2#0001_0010 (decimal 18) to the corresponding integer value of 12.