6F3B0253

7. Instructions

FUN 110

U=

Unsigned equal

Expression

Input [ A U= B ]Output

Function

When the input is ON, the data of A and the data of B are compared, and if A is equal to B, the output is turned ON.

Execution condition

Input

 

 

Operation

Output

OFF

No execution

 

 

OFF

ON

Execution

A =

B

ON

 

 

A

B

OFF

Operand

 

Name

 

 

Device

 

 

 

 

 

 

 

Register

 

 

 

 

 

 

Constant

Index

 

 

X

Y

R

S

T.

C.

XW

YW

RW

SW

T

C

D

 

I

 

J

K

 

 

A

Compared

 

 

 

 

 

 

 

 

 

 

data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B

Reference

 

 

 

 

 

 

 

 

 

 

data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example

When R00C is ON, the data of D0125 is compared with the data of D0030, and if the data of D0125 is equal to the data of D0030, R020 is turned ON.

If the data of D0125 is 35000 and that of D0020 is 35000, the comparison result is true. Consequently, R020 is turned ON.

D0125

35000

=D0030

35000

R020 is ON

If the data of D0125 is 1500 and that of D0020 is 4000, the comparison result is false. Consequently, R020 is turned OFF.

D0125

1500

D0030

4000

R020 is OFF

Note

This instruction deals with the data as unsigned integer (0 to 65535).

192 T1-16S User’s Manual

Page 194
Image 194
Toshiba 6F3B0253 user manual FUN Unsigned equal