6F3B0250
7. Instructions
FUN 052
EOR
Exclusive OR
Expression
Input
Function
When the input is ON, this instruction finds exclusive OR of A and B, and stores the result in C.
Execution condition
Input |
| Operation | Output |
OFF | No execution |
| OFF |
ON | Execution |
| ON |
Operand
| Name |
|
| Device |
|
|
|
|
|
| Register |
|
|
|
| Constant | Index | ||
|
| X | Y | R | S | T. | C. | XW | YW | RW | SW | T | C | D | I | J | K |
|
|
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.
D1000
D0300
D1000
F E D C B A 9 8 7 6 5 4 3 2 1 0
0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 |
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
| |||
|
|
|
|
|
| Exclusive OR |
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 | 1 |
| 0 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 1 |
| 4 |
|
|
| 3 |
|
|
| 2 |
|
|
| 1 |
|
| |||
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 | 0 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 0 | 0 | 1 |
| 1 |
|
|
| 5 |
|
|
| 5 |
|
|
| 9 |
|
|
176 T1/T1S User’s Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net