Specifications
SIMATIC Instructions
9-76
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Multiply Integer To Double Integer and Divide Integer to Double Integer
The Multiply Integer to Double Integer instruction
multiplies two 16-bit integers and produces a 32-bit
product.
The Divide Integer to Double Integer instruction
divides two 16-bit integers and produces a 32-bit result
consisting of a 16-bit remainder (most-significant) and a
16-bit quotient (least-significant).
In the STL Multiply instruction, the least-significant word
(16 bits) of the 32-bit OUT is used as one of the factors.
In the STL Divide instruction, the least-significant word
(16 bits) of the 32-bit OUT is used as the dividend.
In LAD and FBD: IN1<IN2 = OUT
IN1 / IN2 = OUT
In STL: IN1<OUT = OUT
OUT / IN1 = OUT
Error conditions that set ENO = 0: SM1.1 (overflow),
SM1.3 (divide-by-zero), SM4.3 (run-time), 0006 (indirect
address)
These instructions affect the following Special Memory bits: SM1.0 (zero); SM1.1
(overflow); SM1.2 (negative); SM1.3 (divide-by-zero)
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 Operands Data Types
IN1, IN2 VW, IW, QW, MW, SW, SMW, LW, AC, AIW, T, C, Constant, *VD,
*AC, *LD
INT
OUT VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *LD, *AC DINT
L
A
D
S
T
L
OUT
MUL
EN
IN1
IN2
OUT
OUT
DIV
EN
IN1
IN2
OUT
MUL IN1, OUT
DIV IN1, OUT
F
B
D
ENO
ENO
222 224
333
221