EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 382

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
380
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
The constant designated by (S2) can be between -32768 and 32767 (BIN 16-bit data).
Operation error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program example
The following program performs an exclusive NOR operation on the data stored at D100 to D102 and the data stored at R0
to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The points specified in n exceed those of the corresponding device specified
in (S1), (S2), or (D). The ranges of devices starting from the one specified in
(S1) and (D) overlap by n points (except when the same device is specified
in (S1) and (D)).
The ranges of devices starting from the one specified in (S2) and (D) overlap
by n points (except when the same device is specified in (S2) and (D)).

[Ladder Mode] [List Mode]
[Operation]
+ 1
+ 2
S1
S1
S1
S1
S1
S2
n
b15 b8
0
0 0 0 0 0 0 0 1 1 1 1 0 0 0 0
b7 b0
0 0 0 0 0 0 0 0 1 1 1 111 1 1
1 1 0 0 0 0 1 1 0 0 1 111 0 0
1 1 1 1 0 0 1 1
1 1 1 1
b15 b8
0
0 0 0
1 1 1 1 1 1 1 111 1 1
b7 b0
0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1
1 1
0 0
1 1
0 0
1 1
0 0
1
1
0 0
0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
XNR
b15 b8b7 b0
1 1 1 1
0 0 0 0
1 1 1 1
0
0 0 0
000011 00
00000000 1111
n
+ 1
+ 2
D
D
D
D
D
+(n
1)
+(n
2)
+(n
1)
+(n
2)
Step Instruction Device
XNR
1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1
1
0
1
0
1
0
1
0
1
0
1
00
1
0
1
0
1
0
1
0
1
0
1 1
0
1
0
1
0
1
0
D201
D202
D200
b15 b8
1
1 1 1 1 1 1 1
b7 b0
1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 1 1 1 111 1 1
D101
D102
D100
1 1 1 1 1 1 1 1
0 0 0 000 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
R1
R2
R0
D0
3
00000000
00000000
b15 b8 b7 b0
b15 b8 b7 b0

Table of Contents

Related product manuals