STRING (decimal format right-justified) into DOUBLE INTEGER
This function converts a right-justifed decimal number in a string into a value of the data type DINT.
Input
Input data type
Output
Conversion result
The basic instruction F78_DA2BIN with approx. 11 steps is used. The PLC delivers an operation error especially when a character appears that is not a decimal number “0 - 9”, not a “+” or “-“ or not a space.
Acceptable Format:
'[Space][Sign][Decimal number]' e.g. ' 123456'
Acceptable characters:
Space |
Space ““ |
Signs |
Plus "+“ and minus "-" |
Decimal Numbers |
Decimal numbers "0“ - "9“ |