Specifications
SIMATIC Instructions
9-82
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Multiply Real, Divide Real
The Multiply Real instruction multiplies two 32-bit real
numbers, and produces a 32-bit real number result
(OUT).
The Divide Real instruction divides two 32-bit real
numbers, and produces a 32-bit real number quotient.
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 or illegal value
generated during the operation or illegal input parameter
found); SM1.2 (negative); SM1.3 (divide-by-zero)
If SM1.3 is set during a divide operation, then the other math status bits are left
unchanged and the original input operands are not altered. SM1.1 is used to
indicate overflow errors and illegal values. If SM1.1 is set, then the status of SM1.0
and SM1.2 is not valid and the original input operands are not altered. If SM1.1
and SM1.3 (during a divide operation) are not set, then the math operation has
completed with a valid result and SM1.0 and SM1.2 contain valid status.
Inputs/Outputs Operands Data Types
IN1, IN2 VD, ID, QD, MD, SMD, SD, LD, AC, Constant, *VD, *AC, *LD REAL
OUT VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *AC, *LD REAL
Note
Real or floating-point numbers are represented in the format described in the
ANSI/IEEE 754-1985 standard (single-precision). Refer to the standard for more
information.
L
A
D
S
T
L
OUT
MUL_R
EN
IN1
IN2
OUT
OUT
DIV_R
EN
IN1
IN2
OUT
*R IN1, OUT
/R IN1, OUT
ENO
ENO
F
B
D
222 224
333
221