Specifications

SIMATIC Instructions
9-114
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Invert Byte, Invert Word, Invert Double Word Instructions
The Invert Byte instruction forms the ones complement
of the input byte IN, and loads the result into byte value
OUT.
The Invert Word instruction forms the ones complement
of the input word IN, and loads the result in word value
OUT.
The Invert Double Word instruction forms the ones
complement of the input double word IN, and loads the
result in double word value OUT.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
This instruction affects the following Special Memory bits:
SM1.0 (zero)
Invert... Inputs/Outputs Operands Data Types
Byte
IN VB, IB, QB, MB,SB, SMB, LB, AC, Constant, *VD,
*AC, *LD
BYTE
Byte
OUT VB, IB, QB, MB, SB, SMB, LB, AC,*VD, *AC, *LD BYTE
Word
IN VW, IW, QW, MW, SW, SMW, T, C, AIW, LW, AC,
Constant, *VD, *AC, *LD
WORD
Word
OUT VW, IW, QW, MW,SW, SMW, T, C, LW, AC, *VD, *AC,
*LD
WORD
Double
Word
IN VD, ID, QD, MD, SD, SMD, LD, HC, AC, Constant,
*VD, *AC, *LD
DWORD
Word
OUT VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *AC, *LD DWORD
L
A
D
S
T
L
INVB OUT
INV_B
EN
IN OUT
ENO
INV_W
EN
IN OUT
ENO
INV_DW
EN
IN OUT
ENO
F
B
D
INVW OUT
INVD OUT
222 224
333
221