sint_to_bcd/int/dint (Function) |
Top Previous Next |
The "xxx_to_bcd function" operates on the SINT, INT, and DINT data types. It will convert a value to its BCD representation.
Input: in : DINT/INT/SINT The binary value to convert. Note that only a positive number can be converted.
Returns: DINT/INT/SINT The resulting BCD-packed value.
Declaration:
FUNCTION dint_to_bcd : DINT;
Example: INCLUDE rtcu.inc |