Logical Operation Instructions - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

7.1

Logical operation instructions

(1) The logical operation instructions perform logical sum, logical product or other logical
operations in 1-bit units.
Category
Logical product
(AND)
Logical sum
(OR)
Exclusive OR
(XOR)
NON exclusive
logical sum
(XNR)
7-2
Processing Details
Becomes 1 only when both input A and
input B are 1; otherwise, is 0
Becomes 0 only when both input A and
input B are 0; otherwise, is 1
Becomes 0 if input A and input B are
equal; otherwise, is 1
Becomes 1 if input A and input B are
equal; otherwise, is 0
Example
Formula for
Operation
A
0
0
Y
A · B
1
1
0
0
Y
A + B
1
1
0
0
Y
A · B + A · B
1
1
0
0
Y
(A + B)(A + B)
1
1
B
Y
0
0
1
0
0
0
1
1
0
0
1
1
0
1
1
1
0
0
1
1
0
1
1
0
0
1
1
0
0
0
1
1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents