Function Tables; Type Conversion Functions - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

2.2

Function Tables

Type conversion functions

Function name
Argument
BOOL_TO_INT(_E)
(s), (d)
BOOL_TO_DINT(_E)
(s), (d)
BOOL_TO_STR(_E)
(s), (d)
BOOL_TO_WORD(_E)
(s), (d)
BOOL_TO_DWORD(_E)
(s), (d)
BOOL_TO_TIME(_E)
(s), (d)
INT_TO_DINT(_E)
(s), (d)
DINT_TO_INT(_E)
(s), (d)
INT_TO_BOOL(_E)
(s), (d)
DINT_TO_BOOL(_E)
(s), (d)
INT_TO_REAL(_E)
(s), (d)
DINT_TO_REAL(_E)
(s), (d)
INT_TO_LREAL(_E)
(s), (d)
DINT_TO_LREAL(_E)
(s), (d)
INT_TO_STR(_E)
(s), (d)
DINT_TO_STR(_E)
(s), (d)
INT_TO_WORD(_E)
(s), (d)
DINT_TO_WORD(_E)
(s), (d)
INT_TO_DWORD(_E)
(s), (d)
DINT_TO_DWORD(_E)
(s), (d)
INT_TO_BCD(_E)
(s), (d)
DINT_TO_BCD(_E)
(s), (d)
INT_TO_TIME(_E)
(s), (d)
DINT_TO_TIME(_E)
(s), (d)
REAL_TO_INT(_E)
(s), (d)
REAL_TO_DINT(_E)
(s), (d)
LREAL_TO_INT(_E)
(s), (d)
LREAL_TO_DINT(_E)
(s), (d)
REAL_TO_LREAL(_E)
(s), (d)
Processing details
Converts bit type data into word (signed) or double word (signed) type
data.
Converts bit type data into string type data.
Converts bit type data into word (unsigned)/16-bit string or double word
(unsigned)/32-bit string type date.
Converts bit type data into time type data.
Converts word (signed) type data into double word (signed) type data.
Converts double word (signed) type data into word (signed) type data.
Converts word (signed) or double word (signed) type data into bit type
data.
Converts word (signed) or double word (signed) type data into single-
precision real type data.
Converts word (signed) or double word (signed) type data into double-
precision real type data.
Converts word (signed) or double word (signed) type data into string
type data.
Converts word (signed) or double word (signed) type data into word
(unsigned)/16-bit string type data.
Converts word (signed) or double word (signed) type data into double
word (unsigned)/32-bit string type data.
Converts word (signed) or double word (signed) type data into BCD
type data.
Converts word (signed) or double word (signed) type data into time type
data.
Converts single-precision real type data into word (signed) or double
word (signed) type data.
Converts double-precision real type data into word (signed) or double
word (signed) type data.
Converts single-precision real type data into double-precision real type
data.
Reference
Page 24 Converting bit type to
word (signed), double word
(signed) type
Page 26 Converting bit type to
string type
Page 28 Converting bit type to
word (unsigned)/16-bit string,
double word (unsigned)/32-bit
string type
Page 30 Converting bit type to
time type
Page 32 Converting word
(signed) type to double word
(signed) type
Page 34 Converting double
word (signed) type to word
(signed) type
Page 36 Converting word
(signed), double word (signed)
type to bit type
Page 38 Converting word
(signed), double word (signed)
type to single-precision real
type
Page 40 Converting word
(signed), double word (signed)
type to double-precision real
type
Page 42 Converting word
(signed), double word (signed)
type to string type
Page 45 Converting word
(signed), double word (signed)
type to word (unsigned)/16-bit
string type
Page 47 Converting word
(signed), double word (signed)
type to double word (unsigned)/
32-bit string type
Page 49 Converting word
(signed), double word (signed)
type to BCD type
Page 52 Converting word
(signed), double word (signed)
type to time type
Page 54 Converting single-
precision real type to word
(signed), double word (signed)
type
Page 56 Converting double-
precision real type to word
(signed), double word (signed)
type
Page 58 Converting single-
precision real type to double-
precision real type
2 FUNCTION TABLES
13
2.2 Function Tables
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents