EasyManua.ls Logo

Siemens SIMATIC S7-200 - Simatic Integer Math Instructions

Siemens SIMATIC S7-200
606 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIMATIC Instructions
9-73
S7-200 Programmable Controller System Manual
A5E00066097-02
9.6 SIMATIC Integer Math Instructions
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
✓✓
221
226

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals