6F3B0250

7. Instructions

FUN 103

D>=

Double-word greater than or equal

Expression

Input -[ A+1×A D>= B+1×B ]- Output

Function

When the input is ON, the double-word data of A+1×A and B+1×B are compared, and if A+1×A is greater than or equal to B+1×B, the output is turned ON.

Execution condition

Input

 

Operation

Output

OFF

No execution

 

OFF

ON

Execution

A+1×A ³ B+1×B

ON

 

 

A+1×A < B+1×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 R010 is ON, the double-word data of D0101×D0100 is compared with the double-word data of D0251×D0250, and if the data of D0101×D0100 is greater than or equal to the data of D0251×D0250, R014 is turned ON.

If the data of D0101×D0100 is 250000 and D0251×D0250 is 200000, R014 is turned ON.

D0101×D0100

250000

³D0251×D0250

200000

R014 is ON

If the data of D0101×D0100 is -100 and D0251×D0250 is 0, R014 is turned OFF.

D0101×D0100

-100

<D0251×D0250

0

R014 is OFF

Note

·This instruction deals with the data as double-word integer (-2147483648 to 2147483647).

Basic Hardware and Function 203

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 205
Image 205
Toshiba 6F3B0250, PROSEC T1 T1S user manual FUN Double-word greater than or equal