STRING (decimal format right-justified) into INTEGER
This function converts a right-justifed decimal number in a string into a value of the data type INT.
Input
Input data type
Output
Conversion result
The basic instruction F76_A2BIN with approx. 7 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 ““
Sign
"+“ (plus), "-" (minus)
Decimal Number
Decimal numbers "0“ - "9“
The analysis ends with the first non-decimal number.