DVP15MC11T Operation Manual
8.12.4 Real numbers_TO_***
FB/FC
Explanation Applicable model
FC
Real numbers_TO_*** instructions convert real numbers into the data of
basic data types. “***” can be any basic data type.
DVP15MC11T
Parameters
name
Meaning
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 connected to.
Out Conversion result
Output Conversion result
Depends on the data type of the variable that
the output parameter is connected to.
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
● ●
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
Real Number to BOOL
Relevant instructions:
The real numbers are converted into the Boolean data as the following table shows. If the real
number is 0, the conversion result is FALSE. If the real number is not 0, the conversion result is
TRUE. For details on the rule, see the table as follows.
The value of In corresponds to the value of Out
REAL BOOL
-3.402823E+38~-1.175495E-38
1.175495E-38~3.402823E+38
LREAL BOOL
-1.79769313486231E+308~
-2.22507385850721E-308
TRUE
2.22507385850721E-308~
1.79769313486231E+308
TRUE
Real numbers_TO_***
EN ENO
Out
In
8-168