Specifications
SIMATIC Instructions
9-74
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Multiply Integer and Divide Integer
The Multiply Integer instruction multiplies two 16-bit
integers and produces a 16-bit product.
The Divide Integer instruction divides two 16-bit integers
and produces a 16-bit quotient. No remainder is kept.
The overflow bit is set if the result is greater than a word
output.
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.1 (overflow) is set during a multiply or divide operation, the output is not
written and all other math status bits are set to 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, AIW, T, C, AC, Constant, *VD,
*AC, *LD
INT
OUT VW, QW, IW, MW, SW, SMW, LW, T, C, AC, *VD, *LD, *AC INT
L
A
D
S
T
L
OUT
MUL_I
EN
IN1
IN2
OUT
OUT
DIV_I
EN
IN1
IN2
OUT
*I IN1, OUT
/I IN1, OUT
F
B
D
ENO
ENO
222 224
333
221