Mitsubishi MELSEC Q Series Programming Manual page 51

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

Advertisement

Category
DBL
BIN
16-bit
DBLP
WORD
32-bit
conversion
WORDP
GRY
BIN
GRYP
DGRY
Gray code
conversions
DGRYP
GBIN
Gray code
GBINP
DGBIN
BIN
conversions
DGBINP
NEG
NEGP
DNEG
DNEGP
Complement
to 2
ENEG
ENEGP
EDNEG
EDNEGP
BKBCD
BKBCDP
Block
conversion
BKBIN
BKBINP
Floating-point
ECON
Single precision
ECONP
Double precision
Floating-point
EDCON
Double precision
EDCONP
Single precision
Table 2.12 Data Conversion Instructions (Continued)
Symbol
DBL
S D
Conversion
(S)
DBLP
S D
WORD
S D
(S+1, S)
WORDP
S D
GRY
S D
Conversion to gray code
(S)
GRYP
S D
DGRY
S D
(S+1, S)
DGRYP
S D
GBIN
S D
Conversion to BIN data
(S)
GBINP
S D
DGBIN
S D
(S+1, S)
DGBINP
S D
NEG
D
(D)
NEGP
D
DNEG
D
(D+1, D)
DNEGP
D
ENEG
D
(D+1, D)
ENEGP
D
EDNEG
D
(D+3, D+2, D+1, D)
EDNEGP D
• Batch converts BIN data n points from (S)
BKBCD
S D
n
to BCD data and stores the result from (D)
onward.
BKBCDP
S D
n
• Batch converts BCD data n points from (S)
BKBIN
S D
n
to BIN data and stores the result from (D)
onward.
BKBINP
S D
n
ECON
S D
(S+1, S)
ECONP
S D
EDCON
S D
(S+3, S+2, S+1, S)
EDCONP S D
Processing Details
(D+1, D)
BIN (-32768 to 32767)
Conversion
(D)
BIN (-32768 to 32767)
(D)
BIN (-32768 to 32767)
Conversion to gray code
(D+1, D)
BIN (-2147483648 to
2147483647)
(D)
Gray code (-32768 to 32767)
Conversion to BIN data
(D+1, D)
Gray code (-2147483648 to
2147483647)
(D)
BIN data
(D+1, D)
BIN data
(D+1, D)
Real number data
(D+3, D+2, D+1, D)
Real number data
Conversion to double precision
(D+3, D+2, D+1, D)
32-bit floating-point real number
Conversion to single precision
(D+1, D)
64-bit floating-point real number
Execution
Condition
3
-
6-89
3
-
6-90
3
-
6-91
3
-
3
-
6-93
3
-
2
-
6-95
2
-
2
-
6-97
3
-
6-98
4
-
6-99
4
-
6-101
3
-
6-103
3
-
6-105
2-23
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents