SIMATIC Instructions
Multiply Double Integer and Divide Double Integer
L
A
D
EN
F
IN1
B
D
IN2
EN
IN1
IN2
S
*D
T
L
/D
221
222 224
If SM1.3 (divide by zero) is set during a divide operation, then the other math
status bits are left unchanged and the original input operands are not altered.
Otherwise, all supported math status bits contain valid status upon completion of
the math operation.
Inputs/Outputs
IN1, IN2
VD, ID, QD, MD, SMD, SD, LD, HC, AC, Constant, *VD, *AC, *LD
OUT
VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
9-76
The Multiply Double Integer instruction multiplies two
32-bit integers and produces a 32-bit product.
MUL_DI
ENO
The Divide Double Integer instruction divides two 32-bit
integers and produces a 32-bit quotient. No remainder is
OUT
OUT
kept.
In LAD and FBD: IN1 IN2 = OUT
DIV_DI
ENO
In STL:
OUT
OUT
Error conditions that set ENO = 0: SM1.1 (overflow),
SM1.3 (divide-by-zero), SM4.3 (run-time), 0006 (indirect
address)
IN1,OUT
These instructions affect the following Special Memory
IN1,OUT
bits: SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative);
SM1.3 (divide-by-zero)
If SM1.1 (overflow) is set during a multiply or divide
226
operation, the output is not written and all other math
status bits are set to zero.
Operands
IN1 / IN2 = OUT
IN1 OUT = OUT
OUT / IN1 = OUT
S7-200 Programmable Controller System Manual
Data Types
DINT
DINT
A5E00066097-02