Chapter 8 Logic Instructions
8.12.3 Integers_TO_***
FB/FC
Explanation
FC
Integers_TO_*** instructions convert integers into the data of basic data types.
“***” can be any basic data type.
DVP15MC11T
Parameters
Meaning Input/ Output
Description Valid range
In Data to convert Input Data to convert
Depends on the data type of the
variable that the input parameter is
Out Conversion result
Output Conversion result
Depends on the data type of the
variable that the output parameter is
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In
● ● ● ● ● ● ● ●
Out The data type of Out must be the same as “***” of the instruction name.
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
Integer to BOOL
Some instructions are shown below.
Integers_TO_***
EN ENO
Out
In
8-159