2 - 20 2 - 20
MELSEC-Q/QnA
2 INSTRUCTION TABLES
Table 2.12 Data Conversion Instructions (Continued)
Category
Instruction
Symbols
Symbol Processing Details
Execution
Condition
Number of
Basic Steps
Subset
See for
Description
GBIN
GBIN
SD
GBINP
GBINP
S
D
(S)
Conversion to BIN data
(D)
Gray code
(-32768 to 32767)
36-69
DGBIN
DGBIN
SD
Conversion
from gray
code to
BIN
DGBINP
DGBINP SD
Conversion to BIN data
(D+1, D)
Gray code
(-2147483648 to 2147483647)
(S+1, S)
36-69
NEG
NEG
D
NEGP
NEGP
D
(D)
(D
BIN data
26-71
DNEG
DNEG D
DNEGP
DNEGP D
(D+1, D)
BIN data
(D+1, D)
26-71
ENEG
ENEG
D
Comple-
ment to 2
ENEGP
ENEGP
D
(D+1, D)
Real number data
(D+1, D)
26-73
BKBCD
BKBCD
n
S
D
BKBCDP
BKBCDP nSD
• Batch converts BIN data n points from
(S) to BCD data and stores the result
from (D) onward.
46-74
BKBIN
BKBIN nSD
Block con-
versions
BKBINP
BKBINP nSD
• Batch converts BCD data n points from
(S) to BIN data and stores the result
from (D) onward.
46-76
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com