Data Conversion Instructions - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

2.4.3

Data conversion instructions

Category
BCD
BCDP
BCD
conversions
DBCD
DBCDP
BIN
BINP
BIN
conversions
DBIN
DBINP
BIN
FLT
FLTP
Floating
point
DFLT
conversions
(Single
DFLTP
precision)
BIN
FLTD
FLTDP
Floating
point
DFLTD
conversions
(Double
DFLTDP
precision)
Floating
INT
point
INTP
BIN
DINT
conversions
(Single
DINTP
precision)
INTD
Floating
point
INTDP
BIN
DINTD
conversions
(Double
DINTDP
precision)
2-22
Table 2.12 Data Conversion Instructions
Symbol
BCD
S D
BCDP
S D
DBCD
S D
DBCDP
S D
BIN
S D
BINP
S D
DBIN
S D
DBINP
S D
FLT
S D
FLTP
S D
DFLT
S D
DFLTP
S D
FLTD
S D
FLTDP
S D
DFLTD
S D
DFLTDP
S D
INT
S D
INTP
S D
DINT
S D
DINTP
S D
INTD
S D
INTDP
S D
DINTD
S D
DINTDP
S D
*1: The number of basic steps is two for the Universal model QCPU and LCPU only.
*2: The subset is effective only with Universal model QCPU and LCPU.
Processing Details
BCD conversions
(S)
(D)
BIN (0 to 9999)
BCD conversions
(S+1, S)
(D+1, D)
BIN (0 to 99999999)
BIN conversions
(S)
(D)
BCD (0 to 9999)
BIN conversions
(S+1, S)
(D+1, D)
BCD (0 to 99999999)
Conversion to real number
(S)
(D+1, D)
BIN(
32768 to 32767)
Conversion to real number
(S+1, S)
(D+1, D)
BIN( 2147483648 to
2147483647)
Conversion to real number
(S)
( D+3, D+2, D+1, D)
BIN(
32768 to 32767)
Conversion to real number
(S+1, S)
(D+3, D+2, D+1, D)
BIN( 2147483648 to
2147483647)
Conversion to BIN
(S+1, S)
(D)
Real number (-32768 to 32767)
Conversion to BIN
(S+1, S)
(D+1, D)
Real number (-2147483648 to
2147483647)
Conversion to BIN
(S+3, S+2, S+1, S)
Real number (
32768 to
32767)
Conversion to BIN
(S+3, S+2, S+1, S)
Real number (
2147483648 to
2147483647)
Execution
Condition
(D)
(D+1, D)
3
*1
6-74
3
*1
3
*1
6-76
3
*1
3
*1
*2
6-79
3
*1
*2
4
*2
6-82
4
*2
3
*1
*2
6-84
3
*1
*2
3
*2
6-87
3
*2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents