Hi kukla,
have you tried the very easy formula
bcd = 16* number2 + number1 ???
Number1&2 should ofcourse not exceed the range of 0 to 9, as you work here with decimal numbers...
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019