2 Function List
2.1 Type Conversion Functions
23
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on
Cons
tructi
on
4
Ho
w t
o R
ea
d
Explanati
on of
Func
tions
5
Appl
ie
d
Functions
6
Stan
dard
Functi
on
Blocks
A
Correspondence
be
tw
een Dev
ice
s
an
d A
ddres
ses
REAL_TO_INT(_E)
Converts float (single precision) data into word
[signed] data.
3
*1
3
Subsection
5.1.23
REAL_TO_DINT(_E)
Converts float (single precision) data into double
word [signed] data.
3
*1
3
Subsection
5.1.24
REAL_TO_STR(_E)
Converts float (single precision) data into string
data.
3
Subsection
5.1.25
WORD_TO_BOOL(_E)
Converts word [unsigned]/bit string [16-bit] data
into bit data.
3
3
3
3
3
3
3
3
Subsection
5.1.26
DWORD_TO_BOOL
(_E)
Converts double word [unsigned]/bit string [32-
bit] data into bit data.
3
3
3
3
3
3
3
3
Subsection
5.1.27
WORD_TO_INT(_E)
Converts word [unsigned]/bit string [16-bit] data
into word [signed] data.
3
3
3
3
3
3
3
3
Subsection
5.1.28
WORD_TO_DINT(_E)
Converts word [unsigned]/bit string [16-bit] data
into double word [signed] data.
3
3
3
3
3
3
3
3
Subsection
5.1.29
DWORD_TO_INT(_E)
Converts double word [unsigned]/bit string [32-
bit] data into word [signed] data.
3
3
3
3
3
3
3
3
Subsection
5.1.30
DWORD_TO_DINT
(_E)
Converts double word [unsigned]/bit string [32-
bit] data into double word [signed] data.
3
3
3
3
3
3
3
3
Subsection
5.1.31
WORD_TO_DWORD
(_E)
Converts word [unsigned]/bit string [16-bit] data
into double word [unsigned]/bit string [32-bit].
3
3
3
3
3
3
3
3
Subsection
5.1.32
DWORD_TO_WORD
(_E)
Converts double word [unsigned]/bit string [32-
bit] data into word [unsigned]/bit string [16-
bit]data.
3
3
3
3
3
3
3
3
Subsection
5.1.33
WORD_TO_TIME(_E)
Converts word [unsigned]/bit string [16-bit] data
into time data.
3
3
3
3
3
3
3
3
Subsection
5.1.34
DWORD_TO_TIME
(_E)
Converts double word [unsigned]/bit string [32-
bit] data into time data.
3
3
3
3
3
3
3
3
Subsection
5.1.35
STR_TO_BOOL(_E)
Converts string data into bit data.
3
Subsection
5.1.36
STR_TO_INT(_E)
Converts string data into word [signed] data.
3
Subsection
5.1.37
STR_TO_DINT(_E)
Converts string data into double word [signed]
data.
3
Subsection
5.1.38
STR_TO_REAL(_E)
Converts string data into float (single precision)
data.
3
Subsection
5.1.39
STR_TO_TIME(_E)
Converts string data into time data.
3
Subsection
5.1.40
BCD_TO_INT(_E)
Converts BCD data into word [signed] data.
3
3
3
3
3
3
3
3
Subsection
5.1.41
BCD_TO_DINT(_E)
Converts BCD data into double word [signed]
data.
3
3
3
3
3
3
3
3
Subsection
5.1.42
TIME_TO_BOOL(_E)
Converts time data into bit data.
3
3
3
3
3
3
3
3
Subsection
5.1.43
TIME_TO_INT(_E)
Converts time data into word [signed] data.
3
3
3
3
3
3
3
3
Subsection
5.1.44
TIME_TO_DINT(_E)
Converts time data into double word [signed]
data.
3
3
3
3
3
3
3
3
Subsection
5.1.45
TIME_TO_STR(_E)
Converts time data into string data.
3
Subsection
5.1.46
TIME_TO_WORD(_E)
Converts time data into word [unsigned]/bit
string [16-bit]data.
3
3
3
3
3
3
3
3
Subsection
5.1.47
TIME_TO_DWORD
(_E)
Converts time data into double word [unsigned]/
bit string [32-bit] data.
3
3
3
3
3
3
3
3
Subsection
5.1.48
*1.
The function is provided in the FX
3G
Series Ver.1.10 or later.
Function name
Function
Applicable PLC
Reference
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/F
X
2C
FX
0N
FX
0(S
)
Содержание 09R927
Страница 2: ......
Страница 234: ...232 FXCPU Structured Programming Manual Application Functions Revision History MEMO ...