2 - 29 2 - 29
MELSEC-Q/QnA
2 INSTRUCTION TABLES
Table 2.21 Bit processing Instructions (Continued)
Category
Instruction
Symbols
Symbol Processing Details
Execution
Condition
Number of
Basic Steps
Subset
See for
Description
TEST
TEST S1 S2 D
TESTP
TESTP S1 S2 D
(D)b0b15
(S1)
to
Bit designated by (S2)
47-46
DTEST
DTEST S1 S2 D
Bit tests
DTESTP
DTESTP S1 S2 D
(D)b0
b31
(S1)
to
Bit designated by (S2)
47-46
BKRST
BKRST nS
Batch reset
of bit
devices
BKRSTP
BKRSTP nS
OFF
OFF
OFF
OFF
(S)
Reset
n
ON
OFF
ON
ON
(S)
37-48
2.5.5 Data processing instructions
Table 2.22 Data Processing Instructions
Category
Instruction
Symbols
Symbol Processing Details
Execution
Condition
Number of
Basic Steps
Subset
See for
Description
SER
SER nS1 S2 D
SERP
SERP nS1 S2 D
(S1)
(S2)
(D) :Match No.
(D+1) :Number of matches
n
57-50
DSER
DSER nS1 S2 D
Data
searches
DSERP
DSERP nS1 S2 D
(S2)
(D) :Match No.
(D+1) :Number of matches
(S1)
32 bits
n
57-50
SUM
SUM SD
SUMP
SUMP SD
b0
b15
(S)
(D): Number of 1s
3 7-54
DSUM
DSUM SD
Bit checks
DSUMP
DSUMP SD
(S)(S+1)
(D): Number of 1s
3 7-54
DECO
DECO nDS
Decode
DECOP
DECOP nDS
Decode from 8 to 256
(D)
Decode
(S)
n
2
n
bits
47-56
ENCO
ENCO nDS
Encode
ENCOP
ENCOP nDS
(S)
Encode
Decode from 256 to 8
(D)
n
2
n
bits
47-58
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com