beautypg.com

Instructions fun 048 and and – Toshiba 6F3B0253 User Manual

Page 158

background image

6F3B0253

156

T1-16S User’s Manual

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.

F

E

D

C

B

A

9

8

7

6

5

4

3

2

1

0

RW12

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