Siemens SIMATIC S7 System Manual page 298

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Program instructions
7.8 Math
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
IN1, IN2
INT
DINT
REAL
OUT
INT
DINT, REAL
Real (or floating-point) numbers are represented in the format described in the ANSI/IEEE 754-1985 standard (single-
1
precision). Refer to that standard for more information.
Example: Integer math instructions
LAD
298
Operand
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, AIW, *VD, *AC, *LD, Constant
ID, QD, VD, MD, SMD, SD, LD, AC, HC, *VD, *LD, *AC, Constant
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC, Constant
1
IW, QW, VW, MW, SMW, SW, LW, T, C, AC, *VD, *AC, *LD
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
STL
Network
LD I0.0
+I AC1, AC0
*I AC1, VW100
/I VW10, VW200
System Manual, V2.3, 07/2017, A5E03822230-AF
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents