WORD_TO_BCD (FUN)ΒΆ
FUNCTION WORD_TO_BCD : WORD
Converts one WORD in binary code into one WORD in BCD code
Use BCD_TO_WORD for the reverse conversion.
- InOut:
Scope
Name
Type
Comment
Return
WORD_TO_BCD
WORD
Value in BCD code for the input
W
Input
W
WORD
Value in binary code. Valid range: 0..9999