Specifications

Conventions for S7-200 Instructions
8-2
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
8.1 Concepts and Conventions For STEP 7-Micro/WIN 32
Programming
The following diagram shows the Micro/WIN 32 instruction format as used
throughout this chapter. A description of the components of the instruction format
follows the diagram.
Add Integer and Subtract Integer
The Add Integer and Subtract Integer instructions add
or subtract two 16-bit integers and produce a 16-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 VW, IW, QW, MW, SW, SMW, LW, AIW, T, C, AC, Constant, *VD,
*AC, *LD
INT
OUT VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *AC, *LD INT
L
A
D
S
T
L
+I IN1, OUT
-I IN1, OUT
OUT
ADD_I
EN
IN1
IN2
OUT
OUT
SUB_I
EN
IN1
IN2
OUT
ENO
ENO
F
B
D
222 224
333
221