Logical Operation Instructions - Mitsubishi MELSEC-A Series Programming Manual

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS

7.1 Logical Operation Instructions

Instruction
Classification
Symbol
WAND
WANDP
Logical
product
DAND
DANDP
WOR
WORP
Logical
add
DOR
DORP
Classification
Set to 1 only when both inputs A and B are 1. Set
Logical product
to 0 otherwise.
Set to 0 only when both inputs A and B are 0. Set
Logical add
to 1 to 1 otherwise.
Set to 0 when inputs A and B are equal. Set to 1
Exclusive OR
when they are different.
Set to 1 when inputs A and B are equal. Set to 0
Exclusive NOR
when they are different.
(1) The logical operation instructions are instructions which perform the logical
operations such as logical add and logical product.
(2) The logical operation instructions are available in the following 26 types.
Ref. Page
Classification
7-3
7-3
Exclusive
OR
7-3
7-3
7-8
7-8
Exclusive
NOR
7-8
7-8
REMARK
The logical operation instructions perform the following processings in units of one bit.
Processing
Instruction
Ref. Page
Symbol
WXOR
7-12
WXORP
7-12
DXOR
7-12
DXORP
7-12
WXNR
7-16
WXNRP
7-16
DXNR
7-16
DXNRP
7-16
Operation Expression
Y=A⋅B
Y=A+B
Y=A⋅B+A⋅B
Y= (A+B) (A+B)
7 − 2
MELSEC-A
Instruction
Classification
Symbol
2's
NEG
complement
NEGP
(Sign reversal)
Example
A
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
Ref. Page
7-20
7-20
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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents