3 - 15 3 - 15
MELSEC-Q/QnA
3 CONFIGURATION OF INSTRUCTIONS
3.5 Subset Processing
Subset processing is used to place limits on bit devices used by basic instructions and application
instructions in order to increase processing speed.
However, the instruction symbol does not change.
To shorten scans, run instructions under the conditions indicated below.
(1) Conditions which each device must meet for subset processing
(a) When using word data
Device Condition
Bit device
• Designates a bit device number in a factor of 16
• Only K4 can be designated for digit designation
• Does not conduct index modification
Word device • Internal device (File register ZR is not included)
Constants • No limitations
(b) When using double word data
Device Condition
Bit device
• Designates a bit device number in a factor of 32
• Only K8 can be designated for digit designation
• Does not conduct index modification
Word device • Internal device (File register ZR is not included)
Constants • No limitations
(2) Instructions for which subset processing can be used
Types of Instructions Instruction Symbols
Comparison instructions • =, < >, <, <=, >, >=, D=, D< >, D<, D<=, D>, D>=
Basic arithmetic operations
(addition, subtraction,
multiplication, and division)
• +, -,
, /, INC, DEC, D+, D-, D , D/, DINC, DDEC
• B+, B-, B
, B/
Data conversion instructions • BCD, BIN, DBCD, DBIN
Data transfer instruction
• MOV, DMOV, CML, DCML, XCH, DXCH
• FMOV, BMOV, EMOV (with QCPU only)
Program branch instruction • CJ, SCJ, JMP
Logic operations • WAND, DAND, WOR, DOR, WXOR, DXOR, WXNR, DXNR
Rotation instruction • RCL, DRCL, RCR, DRCR, ROL, DROL, ROR, DROR
Shift instructions • SFL, DSFL, SFR, DSFR
Data processing instructions • SUM, SEG
Structured program instructions • FOR, CALL
REMARK
1) : It is only QCPU that can use three devices to conduct subset processing of the logic
operation instructions WAND, DAND, WOR, DOR, WXOR, DXOR, WXNR, or DXNR.
WANDWAND
Subset processing possible
with Q/QnACPU
Subset processing possible only
with QCPU
S
S2S1
D
D
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com