Specifications

IEC 1131-3 Instructions
10-22
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Square Root
The Square Root function takes the square root of a
value provided by IN and places the result in OUT.
Error conditions that set ENO = 0: SM1.1 (overflow),
SM4.3 (run-time), 0006 (indirect address)
This function affects the following Special Memory bits:
SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative)
If SM1.1 (overflow bit) is set, then the other math status
bits are cleared and the output operand is not altered.
Inputs/Outputs Operands Data Types
IN VD, ID, QD, MD, SMD, SD, LD, AC, Constant, *VD, *AC, *LD REAL
OUT VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *AC, *LD REAL
Increment, Decrement
The Increment and Decrement functions add or subtract
1 to or from IN and place the result into OUT.
Increment and decrement byte operations are unsigned.
Error conditions that set ENO = 0: SM1.1 (overflow),
SM4.3 (run-time), 0006 (indirect address)
These functions affect the following Special Memory bits:
SM1.0 (zero); SM1.1 (overflow), SM1.2 (negative)
Inputs/Outputs Operands Data Types
IN VB, IB, QB, MB, SB, SMB, LB, VW, IW, QW, MW, SW, SMW, LW, T,
C, AIW, VD, ID, QD, MD, SD, SMD, LD, HC, AC, Constant, *VD,
*AC, *LD
BYTE, INT,
DINT
OUT VB, IB, QB, MB, SB, SMB, LB, VW, IW, QW, MW, SW, SMW, T, C,
LW, VD, ID, QD, MD, SMD, SD, LD, AC,*VD, *AC, *LD
BYTE, INT,
DINT
L
A
D
F
B
D
SQRT
EN
IN OUT
ENO
222 224
333
221
L
A
D
INC
EN
IN OUT
DEC
EN
IN OUT
F
B
D
ENO
ENO
222 224
333
221