Specifications
SIMATIC Instructions
9-78
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Increment Byte and Decrement Byte
The Increment Byte and Decrement Byte instructions
add or subtract 1 to or from the input byte (IN) and place
the result into the variable specified by OUT.
Increment and decrement byte operations are unsigned.
In LAD and FBD: IN + 1 = OUT
IN - 1 = OUT
In STL: OUT+ 1 = OUT
OUT - 1 = 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)
Inputs/Outputs Operands Data Types
IN VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD BYTE
OUT VB, IB, QB, MB, SB, SMB, LB, AC,*VD, *AC, *LD BYTE
Increment Word and Decrement Word
The Increment Word and Decrement Word instructions
add or subtract 1 to or from the input word (IN) and place
the result in OUT.
Increment and decrement word operations are signed
(16#7FFF > 16#8000).
In LAD and FBD: IN + 1 = OUT
IN - 1 = OUT
In STL: OUT + 1 = OUT
OUT - 1 = 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
IN VW, IW, QW, MW, SW, SMW, AC, AIW, LW, T, C, Constant, *VD,
*AC, *LD
INT
OUT VW, IW, QW, MW, SW, SMW, LW, AC, T, C, *VD, *AC, *LD INT
L
A
D
S
T
L
INCB OUT
DECB OUT
INC_B
EN
IN OUT
DEC_B
EN
IN OUT
F
B
D
ENO
ENO
222 224
333
221
L
A
D
S
T
L
INCW OUT
DECW OUT
INC_W
EN
IN OUT
DEC_W
EN
IN OUT
F
B
D
ENO
ENO
222 224
333
221