Math And Pid Loop Control Instructions - Siemens Simatic S7-200 System Manual

Programmable controller
Hide thumbs Also See for Simatic S7-200:
Table of Contents

Advertisement

Instruction Set

10.6 Math and PID Loop Control Instructions

Add, Subtract Integer
L
A
EN
D
IN1
IN2
EN
IN1
IN2
S
+I
T
L
-I
212
214
Add, Subtract Double Integer
L
ADD_DI
A
EN
D
IN1
IN2
SUB_DI
EN
IN1
IN2
S
+D
T
L
-D
212
214
10-50
The Add and Subtract Integer instructions add or subtract two
16-bit integers and produce a 16-bit result (OUT).
ADD_I
Operands:
OUT
OUT
SUB_I
In LAD:
OUT
OUT
In STL:
Note: When programming in LAD, if you specify IN1 to be the
IN1, OUT
same as OUT, you can reduce the amount of memory required.
IN1, OUT
These instructions affect the following Special Memory bits:
SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative)
215
216
The Add and Subtract Double Integer instructions add or
subtract two 32-bit integers, and produce a 32-bit result (OUT).
Operands:
OUT
OUT
In LAD:
OUT
OUT
In STL:
Note: When programming in LAD, if you specify IN1 to be the
IN1, OUT
same as OUT, you can reduce the amount of memory required.
IN1, OUT
These instructions affect the following Special Memory bits:
SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative)
215
216
IN1, IN2: VW, T, C, IW, QW, MW, SMW, AC,
AIW, Constant, *VD, *AC, SW
OUT:
VW, T, C, IW, QW, MW, SMW, AC,
*VD, *AC, SW
IN1 + IN2 = OUT
IN1 - IN2 = OUT
IN1 + OUT = OUT
OUT - IN1 = OUT
IN1, IN2: VD, ID, QD, MD, SMD, AC, HC,
Constant, *VD, *AC, SD
OUT:
VD, ID, QD, MD, SMD, AC, *VD, *AC,
SD
IN1 + IN2 = OUT
IN1 - IN2 = OUT
IN1 + OUT = OUT
OUT - IN1 = OUT
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02

Advertisement

Table of Contents
loading

Table of Contents