Exclusive Or - Toshiba PROSEC T1-16S User Manual

Programmable controller basic hardware and function
Hide thumbs Also See for PROSEC T1-16S:
Table of Contents

Advertisement

7. Instructions
FUN 052
EOR
Expression
Input
[ A EOR B
Function
When the input is ON, this instruction finds exclusive OR of A and B, and stores the result in C.
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
X
A Source
B source
C Exclusive OR
Example
When R012 is ON, exclusive OR operation is executed for the data of D1000 and D0300, and
the result is stored in D1000.
If the data of D1000 is H5678 and D0300 is H4321, the result H1559 is stored in D1000.
F
E
D1000
0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
5
D0300
0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
4
D1000
0 0 0 1 0 1 0 1 0 1 0 1 1 0 0 1
1
158
T1-16S User's Manual

Exclusive OR

C ]
Output
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
D
C
B
A
9
8
7
6
6
7
Exclusive OR
3
2
5
5
Output
OFF
ON
Register
C
5
4
3
2
1
0
8
1
9
Constant Index
D
I
J
K
6F3B0253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents