Program instructions
7.8 Math
S7-200 SMART
298
System Manual, V2.3, 07/2017, A5E03822230-AF
SM1.1 indicates 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
are not set, then the math operation has completed with a valid result and SM1.0 and SM1.2
contain valid status. If SM1.3 is set during a divide operation, then the other math status bits
are left unchanged.
Input / output
Data Type
Operand
IN1, IN2
INT
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, AIW, *VD, *AC, *LD, Constant
DINT
ID, QD, VD, MD, SMD, SD, LD, AC, HC, *VD, *LD, *AC, Constant
REAL
1
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC, Constant
OUT
INT
IW, QW, VW, MW, SMW, SW, LW, T, C, AC, *VD, *AC, *LD
DINT, REAL
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
1
Real (or floating-point) numbers are represented in the format described in the ANSI/IEEE 754-1985 standard (single-
precision). Refer to that standard for more information.
Example: Integer math instructions
LAD
STL
Network
LD I0.0
+I AC1, AC0
*I AC1, VW100
/I VW10, VW200