Toshiba PROSEC T3H User Manual page 46

Toshiba programmable controller user's manual
Table of Contents

Advertisement

2. Expanded Functions
2.4.1 Double-word multiplication and division (D )
FUN 042
D /
Expression
Input ─[ A+1 A D / B+1 B
Function
When the input is ON, the data of A+1 A is multiplied by the data of B+1 B, and the product is divided by
B+3 B+2, then the quotient is stored in C+1 C and the remainder in C+3 C+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
OFF
No execution
ON
B+3 B+2
0, no overflow
B+3 B+2
0, overflow
B+3 B+2
0
Operand
Name
X Y S L R Z T. C. I
A Operation
data
B Multiplier,
divisor
C Result
Example
When R0200 is ON, the double-word data of D0351 D0350 is multiplied by the data of D0262 D0261,
and the product is divided by the data of D0264 D0263, then the quotient is stored in D0401 D0400 and
the remainder in D0403 D0402.
44
PROSEC T3H
Double-word multiplication and division
C+1 C ]─ Output
Operation
Normal execution
Limit
No execution
Device
O X
W
W
Output
ERF
OFF
ON
ON
OFF
Register
Y
S
L
R
W T C D F
W
W
W
ON
ON
Con- Index
I
O
I
J K
stant
W
W

Advertisement

Table of Contents
loading

Table of Contents