Toshiba 6F3B0250, PROSEC T1 T1S user manual FUN Double-word addition

Models: PROSEC T1 T1S 6F3B0250

1 313
Download 313 pages 21.99 Kb
Page 167
Image 167

6F3B0250

7. Instructions

FUN 031

D+

Double-word addition

Expression

Input -[ A+1×A D+ B+1×B ® C+1×C ]- Output

Function

When the input is ON, the double-word data of A+1×A and B+1×B are added, and the result is stored in C+1×C. The data range is -2147483648 to 2147483647.

If the result is greater than 2147483647, the upper limit value 2147483647 is stored in C+1×C, and the output is turned ON. If the result is smaller than -2147483648, the lower limit value -2147483648 is stored in C+1×C, and the output is turned ON.

Execution condition

Input

Operation

Output

OFF

No execution

OFF

ON

Execution (normal)

OFF

 

Execution (overflow or underflow occurred)

ON

Operand

 

Name

 

 

Device

 

 

 

 

 

 

Register

 

 

 

 

Constant

Index

 

 

X

Y

R

S

T.

C.

XW

YW

RW

SW

T

C

D

I

J

K

 

 

A

Augend

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

 

 

 

Ö

 

B

Addend

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

 

 

 

Ö

 

C

Sum

 

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

 

 

 

 

 

Example

When R005 is ON, the data of D0011×D0010 and the constant data 100000 is added, and the result is stored in D0101×D0100.

If the data of D0011×D0010 is 300000, the result 400000 is stored in D0101×D0100, and R010 is turned OFF. (No overflow/underflow)

D0011×D0010

Constant

300000

+ D0101×D0100

100000

400000

R010 is OFF

Basic Hardware and Function 165

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

Page 167
Image 167
Toshiba 6F3B0250, PROSEC T1 T1S user manual FUN Double-word addition