DVP-15MC Series Motion Controller Operation Manual
8-174
FB/FC
FC
Real numbers_TO_*** instructions convert real numbers into the data of
basic data types. “***” can be any basic data type.
Parameters
Meaning
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
BYTE
DWORD
USINT
UDINT
SINT
INT
LINT
LREAL
DATE
TOD
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
FALSE
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