STRING_TO_DWORD

STRING (hexadecimal format) into DOUBLE WORD

This function converts a string in hexadecimal formal into a value of the data type DWORD.

At first the string is converted into a value of the data type STRING[32]. Finally this is converted into a value of the data type DWORD in a subprogram of approximately 270 steps, which is also used by the functions STRING_TO_INT, STRING_TO_WORD, STRING_TO_DINT and STRING_TO_DWORD.

Parameters

Input

Unnamed input (STRING)

Input data type

Output

Unnamed output (DWORD)

Conversion result

Remarks

Acceptable Format: _'[Space][Hexadecimal number][Space]' e.g. perhaps ' afFE '

Acceptable characters:

The analysis ends with the first non-decimal number.

Example with and without EN/ENO:

Related topics:

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