Toshiba 6F3B0250, PROSEC T1 T1S user manual FUN Unsigned multiplication T1S only

Models: PROSEC T1 T1S 6F3B0250

1 313
Download 313 pages 21.99 Kb
Page 171
Image 171

6F3B0250

7. Instructions

FUN 039

U*

Unsigned multiplication

T1S only

Expression

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

Function

When the input is ON, the unsigned data of A and B are multiplied, and the result is stored in double-length register C+1×C. The data range of A and B is 0 to 65535 (unsigned 16-bit data)

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

Multiplicand

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

B

Multiplier

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

C

Product

 

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

 

 

Ö

Example

When R010 is ON, the data of D0050 is multiplied by the data of RW05, and the result is stored in double-length register D0101×D0100 (upper 16-bit in D0101 and lower 16-bit in D0100).

If the data of D0050 is 52500 and the data of RW05 is 30, the result 1575000 is stored in D0101×D0100.

D0050

52500

 

 

 

 

 

 

 

 

 

 

RW05

´

 

D0101×D0100

 

30

 

 

 

 

 

 

 

 

 

 

Note

·This instruction handles the register data as unsigned integer.

1575000

Basic Hardware and Function 169

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

Page 171
Image 171
Toshiba 6F3B0250, PROSEC T1 T1S user manual FUN Unsigned multiplication T1S only