Simatic Integer Math Instructions - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

9.6

SIMATIC Integer Math Instructions

Add Integer and Subtract Integer
L
A
EN
D
F
IN1
B
D
IN2
EN
IN1
IN2
S
+I
T
L
-I
221
222 224
Inputs/Outputs
IN1, IN2
VW, IW, QW, MW, SW, SMW, LW, AIW, T, C, AC, Constant, *VD,
*AC, *LD
OUT
VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *AC, *LD
S7-200 Programmable Controller System Manual
A5E00066097-02
The Add Integer and Subtract Integer instructions add
or subtract two 16-bit integers and produce a 16-bit result
ADD_I
ENO
(OUT).
OUT
OUT
In LAD and FBD:
In STL:
SUB_I
ENO
Error conditions that set ENO = 0: SM1.1 (overflow),
OUT
OUT
SM4.3 (run-time), 0006 (indirect address)
These instructions affect the following Special Memory
bits: SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative)
IN1,OUT
IN1,OUT
226
Operands
SIMATIC Instructions
IN1 + IN2 = OUT
IN1 - IN2 = OUT
IN1 + OUT = OUT
OUT - IN1 = OUT
Data Types
INT
INT
9-73

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents