6F3B0250
7. Instructions
FUN 048
AND
AND
Expression
Input -[ A AND B ® C ]- Output
Function
When the input is ON, this instruction finds logical AND 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 | AND |
|
|
|
|
|
|
| Ö | Ö | Ö | Ö | Ö | Ö | Ö | Ö | Ö |
| Ö |
Example
When R012 is ON, logical AND operation is executed for the data of RW12 and the constant data HFF00, and the result is stored in D0030.
If the data of RW12 is H3456, the result H3400 is stored in D0030.
RW12
F E D C B A 9 8 7 6 5 4 3 2 1 0
0 | 0 |
| 1 | 1 | 0 | 1 |
| 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 |
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
| ||
|
|
|
|
|
|
|
|
| AND |
|
|
|
|
|
|
|
Constant
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
F F
0 0
D0030
0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0
3 | 4 | 0 | 0 |
174 T1/T1S User’s Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net