Panasonic FP Series Programming Manual page 157

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
STRING_TO_INT_
STEPSAVER
This function converts a right-justifed decimal number in a string to a value of the data type INT.
Description
The basic instruction F76_A2BIN (see page 637) 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.
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
Number
Availability of STRING_TO_INT_STEPSAVER (see page 1331)
PLC types
Data types
Data type
STRING
INT
156
STRING (Decimal Format right-justified) to INTEGER
Space " "
Plus "+" and minus "-"
Decimal numbers "0" - "9"
Comment
Input variable
Output variable

Advertisement

Table of Contents
loading

Table of Contents