Panasonic FP Series Programming Manual page 180

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

STRING_TO_DINT_
STEPSAVER
This function converts a right-justifed decimal number in a string to a value of the data type DINT.
Description
The basic instruction F78_DA2BIN (see page 643) 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.
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.
Example
Acceptable Format:
'[Space][Sign][Decimal number]' e.g. ' 123456'
Acceptable characters:
Space
Signs
Decimal
Numbers
Availability of STRING_TO_DINT_STEPSAVER (see page 1331)
PLC types
Data types
Data type
STRING
DINT
STRING (Decimal Format right-justified) to DOUBLE INTEGER
Space " "
Plus "+" and minus "-"
Decimal numbers "0" - "9"
Comment
Input variable
Output variable
Conversion instructions
179

Advertisement

Table of Contents
loading

Table of Contents