EasyManua.ls Logo

Panasonic FP Series - Page 212

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
211
Part II IEC Instructions
In this example, both an input variable input_value of the data type BOOL and an output variable
result_string of the data type STRING[5] are declared.
Example 2
Result string
= 'TRUE' or
'FALSE'
If you wish to have the result 'TRUE' or 'FALSE' instead of ' 0' or ' 1', you cannot use the function
BOOL_TO_STRING. This example illustrates how you create a STRING[5] that contains the
characters 'TRUE' or 'FALSE' from an input value of the data type BOOL.
The same POU header is used for all programming languages.
POU header
Body
In order to realize the intended operation, the standard function MOVE is used. It assigns the value
of its input to its output unchanged. At the input, the STRING constant 'TRUE' or 'FALSE' is
attached. In essence a "BOOL to STRING" conversion occurs, since the Boolian variable
input_variable at the enable input (EN) contact decides the output of STRING.
LD

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals