Type Conversion Functions - Mitsubishi Melsec-Q Series Structured Programming Manual

Application functions, qcpu
Hide thumbs Also See for Melsec-Q Series:
Table of Contents

Advertisement

2.1.1

Type conversion functions

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q-kp-ok-e13jw08

Table of Contents