STRING_TO_DINT_STEPSAVER

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.

Parameters

Input

Unnamed input (STRING)

Input data type

Output

Unnamed output (DINT)

Conversion result

Remarks

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.

Example

Acceptable Format:

'[Space][Sign][Decimal number]' e.g. ' 123456'

Acceptable characters:

Space

Space “

Signs

Plus "+“ and minus "-"

Decimal Numbers

Decimal numbers "0“ - "9“

Related topics:

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