Program instructions
7.11 Logical operations
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
293
Logical operations
7.11.1
INVW OUT
INVD OUT
The Invert Byte, Invert Word, and Invert Double Word instructions form the one's
complement of the input IN and load the result into the memory location OUT
Non-fatal errors with ENO = 0
• 0006H Indirect address • SM1.0 Result of operation = zero
IN
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, AIW, *VD, *LD, *AC, Constant
ID, QD, VD, MD, SMD, SD, LD, AC, HC, *VD, *LD, *AC, Constant
OUT BYTE IB, QB, VB, MB, SMB, SB, LB, AC,*VD, *LD, *AC
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, *VD, *LD, *AC
DWORD ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
Example: Invert instruction
Invert word value in AC0. Result is put in
AC0.