2.1 How to Read Function Tables
2.1.1 Type conversion functions
2-3
2
FUNCTION TABLES
2.1.1 Type conversion functions
Function name Argument Processing details Page
BOOL_TO_INT(_E)
,
Converts bit type data into word (signed) or double word (signed) type
data.
5-2
BOOL_TO_DINT(_E)
,
5-2
BOOL_TO_STR(_E)
,
Converts bit type data into string type data.
5-5
BOOL_TO_WORD(_E)
,
Converts bit type data into word (unsigned)/16-bit string or double
word (unsigned)/32-bit string type date.
5-7
BOOL_TO_DWORD(_E)
,
5-7
BOOL_TO_TIME(_E)
,
Converts bit type data into time type data.
5-10
INT_TO_DINT(_E)
,
Converts word (signed) type data into double word (signed) type data.
5-13
DINT_TO_INT(_E)
,
Converts double word (signed) type data into word (signed) type data.
5-16
INT_TO_BOOL(_E)
,
Converts word (signed) or double word (signed) type data into bit type
data.
5-19
DINT_TO_BOOL(_E)
,
5-19
INT_TO_REAL(_E)
,
Converts word (signed) or double word (signed) type data into single-
precision real type data.
5-23
DINT_TO_REAL(_E)
,
5-23
INT_TO_LREAL(_E)
,
Converts word (signed) or double word (signed) type data into double-
precision real type data.
5-26
DINT_TO_LREAL(_E)
,
5-26
INT_TO_STR(_E)
,
Converts word (signed) or double word (signed) type data into string
type data.
5-29
DINT_TO_STR(_E)
,
5-29
INT_TO_WORD(_E)
,
Converts word (signed) or double word (signed) type data into word
(unsigned)/16-bit string type data.
5-33
DINT_TO_WORD(_E)
,
5-33
INT_TO_DWORD(_E)
,
Converts word (signed) or double word (signed) type data into double
word (unsigned)/32-bit string type data.
5-36
DINT_TO_DWORD(_E)
,
5-36
INT_TO_BCD(_E)
,
Converts word (signed) or double word (signed) type data into BCD
type data.
5-39
DINT_TO_BCD(_E)
,
5-39
INT_TO_TIME(_E)
,
Converts word (signed) type data into time type data.
5-42
DINT_TO_TIME(_E)
,
5-42
REAL_TO_INT(_E)
,
Converts single-precision real type data into word (signed) or double
word (signed) type data.
5-45
REAL_TO_DINT(_E)
,
5-45
LREAL_TO_INT(_E)
,
Converts double-precision real type data into word (signed) or double
word (signed) type data.
5-48
LREAL_TO_DINT(_E)
,
5-48
REAL_TO_LREAL(_E)
,
Converts single-precision real type data into double-precision real
type data.
5-51
LREAL_TO_REAL(_E)
,
Converts double-precision real type data into single-precision real
type data.
5-54
REAL_TO_STR(_E)
,
Converts single-precision real type data into string type (exponent
form) data.
5-57
WORD_TO_BOOL(_E)
,
Converts word (unsigned)/16-bit string or double word (unsigned)/32-
bit string type data into bit type data.
5-61
DWORD_TO_BOOL(_E)
,
5-61
WORD_TO_INT(_E)
,
Converts word (unsigned)/16-bit string type data into word (signed) or
double word (signed) type data.
5-64
WORD_TO_DINT(_E)
,
5-64
DWORD_TO_INT(_E)
,
Converts double word (unsigned)/32-bit string type data into word
(signed) or double word (signed) type data.
5-67
DWORD_TO_DINT(_E)
,
5-67
WORD_TO_DWORD(_E)
,
Converts word (unsigned)/16-bit string type data into double word
(unsigned)/32-bit string type data.
5-70
DWORD_TO_WORD(_E)
,
Converts double word (unsigned)/32-bit string type data into word
(unsigned)/16-bit string type data.
5-73
WORD_TO_STR(_E)
,
Converts word (unsigned)/16-bit string or double word (unsigned)/32-
bit string type data into string type data.
5-76
DWORD_TO_STR(_E)
,
5-76
WORD_TO_TIME(_E)
,
Converts word (unsigned)/16-bit string or double word (unsigned)/32-
bit string type data into time type data.
5-79
DWORD_TO_TIME(_E)
,
5-79
STR_TO_BOOL(_E)
,
Converts string type data into bit type data.
5-82
STR_TO_INT(_E)
,
Converts string type data into word (signed) or double word (signed)
type data.
5-85
STR_TO_DINT(_E)
,
5-85
STR_TO_REAL(_E)
,
Converts string type data into single-precision real type data.
5-88
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d
s d