Chapter 6 Instruction Details
XBC E-Type Main Unit
6-182
Ver. 1
3) Logic Operation Table
Classification
Processing Details
Operation
Formula
Example
A
B
Y
Logic AND
It will be 1 only if input A & B
are all 1 (other than that, it will
be 0).
0
0
0
0
1
0
1
0
0
1
1
1
Logic OR
It will be 0 only if input A & B
are all 0 (other than that, it will
be 1)
0
0
0
0
1
1
1
0
1
1
1
1
Exclusive
Logic OR
(XOR)
It will be 0 if input A and B are
identical (if not, it will be 1).
0
0
0
0
1
1
1
0
1
1
1
0
Exclusive
Negative
Logic OR
(XNR)
It will be 1 if input A and B are
identical (if not, it will be 0).
0
0
1
0
1
0
1
0
0
1
1
1
4) Program Example
(1) For P1000=‘h1111’, P1100=‘h3333’, if Input Signal P00000 is changed from Off to On, the result WAND
executed ‘h3333’ is saved in P1200.
WAND P1000 P1100 P1200
P00000
1 1
1 0 0 0
0 0 1 1 0 0
0 1 0 0
1 0 1 1
0 0 1 1 0 1
1 1 0 1
b31
b16 b15
b0
D
S2
S1
b31
b16 b15
b0
b31
b16 b15
b0
DWAND
0 0
1 0 1 1 1
0
0 1
0
1
S2+1
S1+1
D+1
D
S2
S1
Y=A B
Y=A+B
Y=A B+A B
Y=(A+B)(A+B)
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...