6F3B0250

7. Instructions

FUN 160

UL

Upper limit

Expression

Input -[ A UL B ® C ]- Output

Function

T1S only

When the input is ON, the following operation is executed. (Upper limit for A by B) If A £ B, then C = A.

If A > B, then C = B.

Execution condition

Input

Operation

Output

OFF

No operation

OFF

ON

Execution: not limited (A £ B)

OFF

 

Execution: limited (A > B)

ON

Operand

 

Name

 

 

Device

 

 

 

 

 

 

Register

 

 

 

 

Constant

Index

 

 

X

Y

R

S

T.

C.

XW

YW

RW

SW

T

C

D

I

J

K

 

 

A

Operation data

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

B

Upper limit

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

C

Destination

 

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

 

Ö

Example

When R030 is ON, the upper limit operation is executed for the data of RW018 by the data of D1200, and the result is stored in RW021.

C

 

(RW021)

Upper limit B (D1200)

A(RW018)

When RW018 is 3000 and D1200 is 4000, 3000 is stored in RW021 and R0040 is OFF.

When RW018 is 4500 and D1200 is 4000, the limit value 4000 is stored in RW021 and R0040 is ON.

Note

·This instruction deals with the data as signed integer (-32768 to 32767).

242 T1/T1S User’s Manual

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

Page 244
Image 244
Toshiba PROSEC T1 T1S, 6F3B0250 user manual FUN Upper limit, Upper limit B D1200