EasyManua.ls Logo

Panasonic FP Series

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Conversion instructions
166
Part II IEC Instructions
STRING_TO_UINT
STRING (decimal format) to Unsigned INTEGER
See also:
STRING_TO_UINT_STEPSAVER (see page 166)
First, the string is converted to a value of the data type STRING[32], which is subsequently
converted to a value of the data type UINT in a subprogram with approximately 270 steps. The
subprogram is also used by the functions STRING_TO_INT, STRING_TO_WORD,
STRING_TO_UDINT and STRING_TO_DWORD.
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
Acceptable Format:
'[Space][Sign][Decimal number][Space]', e.g. ' 123456 '
Acceptable characters:
Space Space “ “
Signs Plus “+” and minus “-“
Decimal
numbers
Decimal numbers "0“ - "9“
The analysis ends with the first non-decimal number.
PLC types
Availability of STRING_TO_UINT (see page 1331)
Data type Comment
STRING Input
UINT Output
Description
STRING_TO_UINT converts a string in decimal formal to a value of the data type Unsigned
INTEGER.
Data types
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD
ST
UINT_value:= STRING_TO_UINT(STRING_value);

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals