EasyManuals Logo

Panasonic FP Series User Manual

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
Page #223 background imageLoading...
Page #223 background image
Conversion instructions
222
Part II IEC Instructions
Body
The input_value of the data type DINT is converted into STRING[11]. The converted value is
written to result_string. When the variable input_value = 12345678, result_string shows '
12345678'.
LD
ST
When programming with structured text, enter the following:
result_string:=DINT_TO_STRING(input_value);
Example 2
This example illustrates how you create, from an input value of the data type DINT, a STRING[14]
that contains a DINT number representation with commas after every three significant figures.
The example is programmed in LD and IL. The same POU header is used for both programming
languages.
POU header
In this example, both an input variable input_value of the data type DINT and an output variable
result_string of the data type STRING[14] are declared.
Body
In carrying out the operation in question, three standard functions INSERT are attached
successively to the function DINT_TO_STRING. Each INSERT function inserts the attached
character string at input IN2 into the character string at input IN1. The position at which the
character string is to be introduced is determined by INT value at input P.
In the example all three INSERT functions insert the assigned STRING constant ',' after each three
significant figures at input IN2. The correct position of each comma is determined by an INT
constant at each respective P input. Out of the variable input_value = 1234567890, the
result_string 1,234,567,890 results from the data type conversion and the three INSERT
functions.
LD

Table of Contents

Other manuals for Panasonic FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Panasonic FP Series and is the answer not in the manual?

Panasonic FP Series Specifications

General IconGeneral
MountingDIN rail
TypePLC
Communication InterfaceRS-232, RS-485, Ethernet (depending on model)
Input Voltage100-240V AC or 24V DC (depending on model)
Output TypeRelay, Transistor
I/O PointsVaries by model
Operating Temperature0°C to 55°C
DimensionsVaries by model
WeightVaries by model

Related product manuals