Mitsubishi MELSEC Q Series Programming Manual page 395

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

Advertisement

(2) The following program compares the bit pattern of the 32-bit data from X20 to X3F with the
bit pattern of the data at D9 and D10 when X6 is ON, and stores the number of differing bits
at D16.
[Ladder Mode]
[Operation]
X3F
X3C X3B X38 X37 X34 X33
X3F to X20 0
1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
b31
D10,D9 1
0
1 1 1 0 0 1 1 1 0 0 0 0 0 1 1 0 1 1 1 1 0 1 1 0 1 0 1 1 0 1
b31
D10,D9 1
1
1 0 1 1 0 0 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 1 1 1 1 1 0 0 0
Remark
See Section 7.5.2 for more information on the DSUMP instruction.
[List Mode]
Step
S
+ 1
X30
X2F
X2CX2B X28 X27 X24 X23
XOR
D
+ 1
b16
b15
D
+ 1
b16
b15
D16
17
WXOR(P),DXOR(P)
Instruction
Device
S
X20
D
b0
D
b0
1
2
3
4
6
6
7
8
7-21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents