Specifications
SIMATIC Instructions
9-73
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Add Double Integer and Subtract Double Integer
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)
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, SM, SD, LD, AC, *VD, *AC, *LD DINT
L
A
D
S
T
L
+D IN1, OUT
-D IN1, OUT
OUT
ADD_DI
EN
IN1
IN2
OUT
OUT
SUB_DI
EN
IN1
IN2
OUT
F
B
D
ENO
ENO
222 224
333
221