Toshiba PROSEC T3H user manual Double-word multiplication and division D∗

Page 46

2. Expanded Functions

2.4.1 Double-word multiplication and division (D∗//)

FUN 042

D/

Double-word multiplication and division

Expression

Input [ A+1A D/ B+1B C+1C ]Output

Function

When the input is ON, the data of A+1A is multiplied by the data of B+1B, and the product is divided by B+3B+2, then the quotient is stored in C+1C and the remainder in C+3C+2.

The data range is -2147483648 to 2147483647. If the result (quotient) is out of the data range, the following limit value is stored.

Positive overflow: quotient = 2147483647, remainder = 0

Negative overflow: quotient = -2147483647, remainder = 0

Execution condition

Input

 

Operation

Output

ERF

OFF

No execution

 

OFF

ON

B+3B+2

0, no overflow

Normal execution

ON

 

B+3B+2

0, overflow

Limit

ON

ON

 

B+3B+2 =

0

No execution

OFF

ON

Operand

 

Name

 

 

 

Device

 

 

 

 

 

 

 

Register

 

 

 

 

 

 

Con-

Index

 

 

X

Y

S

L

R

Z

T.

C.

I

O

X

Y

S

L

R

W

T

C

D

F

I

O

I

J

K

stant

 

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

W

 

 

 

 

 

W

W

 

 

 

 

 

A

Operation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B

Multiplier,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

divisor

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

Result

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example

When R0200 is ON, the double-word data of D0351D0350 is multiplied by the data of D0262D0261, and the product is divided by the data of D0264D0263, then the quotient is stored in D0401D0400 and the remainder in D0403D0402.

44 PROSEC T3H

Image 46
Contents USER’S Manual Important Information General Information Hazard ClassificationsSafety Precautions Installation WiringOperation Maintenance Safety Label T3 manuals About This ManualTerminology VacContents Prosec T3H Section T3H Overview Introducing the T3H Differences between T3H and T3 T3H components CPU module Two types of T3H CPU modules are availableMode control switch RAM/ROM switchStatus LEDs Computer link port Battery coverProgrammer port IC memory card slotExpansion interface module CH1 CH2 T3H CPUCPU Rack Power supply moduleExpansion cable O module Following types of I/O modules are availableTOSLINE-S20LP Data transmission moduleModule internal current consumption AsciiSFC Specifications Functional specificationsRAS Instruction execution speed Test TeorTenr DtstTset SETRST TrstCOS PID2SIN TANInstruction execution speed cont’d Shown below Section Expanded Functions Timer interrupt interval System operation Auto-RUN / Standby selectionSaving the sampling trace condition External I/O register Expanded registersAuxiliary register Timer Link registerLink Global File register Special registerExpanded Functions SEND/RECVTOSLINE-S20 Expanded Functions Expanded file register data read MR Starting registerExpanded file register data Write MW ADR S TExpanded Functions TOSLINE-S20LP loop support Ethernet support Instructions Double-word multiplication and division D∗ Expanded Functions Essential PID PID3 DSVControl block diagram AlgorithmParameter details Operation ASV ← ISVExpanded Functions Floating point essential PID FPID3 Digital filter PVn = 1− FT⋅ PVC+ FT⋅ PVn − Here ≤ FT ASV differential limit DSV 0 to 100 %/∆ t Data range +1 ⋅C Expanded Functions Expanded data transfer Xfer Transfer parameter table TypeCPU register ↔ Expanded F register IC memory card CPU register ↔ S20/S20LP scan memory CPU register ↔ Eeprom D register When the data writing address range exceeds page boundary Network data send Send MIDExpanded Functions S20LP T3H self-station RW100 RW101 RW227 Network data receive Recv Expanded Functions H0A Expanded Functions Prosec T3H Toshiba Corporation