Double Integer Addition and Subtraction Integer Math

Inputs/Outputs Operands Data Types
IN1, IN2 VD, ID, QD, MD, SMD, SD, LD, AC, HC, Constant, *VD, *AC, *LD DINT
OUT VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *AC, *LD DINT

Memory Ranges ENO Errors Instruction Support for S7-200 CPUs SIMATIC/International Mnemonics
The Add Double Integer and Subtract Double Integer instructions add or subtract two 32-bit integers, and produce a 32-bit result (OUT).

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), SM4.3 (run-time), 0006 (indirect address)

These instructions affect the following Special Memory bits:

SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative)