Data Conversion Instructions - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

2 INSTRUCTION TABLES

2.4.3 Data conversion instructions

Category
BCD
BCDP
BCD con-
versions
DBCD
DBCDP
BIN
BINP
BIN con-
versions
DBIN
DBINP
FLT
Conversion
FLTP
from BIN to
floating
DFLT
decimal
point
DFLTP
INT
Conversion
from float-
INTP
ing decimal
point to
DINT
BIN
DINTP
DBL
Conversion
DBLP
between
BIN 16-bit
WORD
and 32-bit
WORDP
GRY
Conversion
GRYP
from BIN to
gray code
DGRY
DGRYP
2 - 19
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table 2.12 Data Conversion Instructions
Symbol
BCD conversion
BCD
S D
(S)
BCDP
S D
DBCD
S D
(S+1, S)
DBCDP
S D
BIN conversion
BIN
S D
(S)
BINP
S D
DBIN
S D
(S+1, S)
DBINP
S D
Conversion to floating
FLT
S D
decimal point
(S+1, S)
FLTP
S D
Conversion to floating
DFLT
S D
decimal point
(S+1, S)
DFLTP
S D
INT
S D
(S+1, S)
INTP
S D
DINT
S D
(S+1, S)
DINTP
S D
Conversion
DBL
S D
(S)
DBLP
S D
WORD
S D
(S+1, S)
WORDP
S D
Conversion to gray code
GRY
S D
(S)
GRYP
S D
Conversion to gray code
DGRY
S D
(S+1, S)
DGRYP
S D
Processing Details
(D)
BIN (0 to 9999)
BCD conversion
(D+1, D)
BIN (0 to 99999999)
(D)
BCD (0 to 9999)
BIN conversion
(D+1, D)
BCD (0 to 99999999)
(D)
BIN (-32768 to 32767)
(D+1, D)
Real number
(-2147483648 to 2147483647)
Conversion to BIN
(D)
Real number
(-32768 to 32767)
Conversion to BIN
(D+1, D)
Real number
(-2147483648 to 2147483647)
(D+1, D)
BIN (-32768 to 32767)
Conversion
(D)
BIN (-32768 to 32767)
(D)
BIN (-32768 to 32767)
(D+1, D)
BIN
(-2147483648 to 2147483647)
MELSEC-Q/QnA
Execution
Condition
3
6-57
3
6-57
3
6-59
3
6-59
3
6-61
3
6-61
3
6-63
3
6-63
3
6-65
3
6-66
3
6-67
3
6-67
2 - 19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents