STRING_TO_INT_STEPSAVER

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.

Parameters

Input

Unnamed input (STRING)

Input data type

Output

Unnamed output (INT)

Conversion result

Remarks

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:

The analysis ends with the first non-decimal number.

Example

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline