EasyManua.ls Logo

Siemens SIMATIC S7 - Logical Operations; Invert

Siemens SIMATIC S7
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program instructions
7.11 Logical operations
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
335
7.11
Logical operations
7.11.1
Invert
LAD / FBD
STL
Description
INVB OUT
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
SM bits affected
0006H Indirect address SM1.0 Result of operation = zero
Input / output
Data type
Operand
IN
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
WORD
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, AIW, *VD, *LD, *AC, Constant
DWORD
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
WORD
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
LAD
STL
Invert word value in AC0. Result is put in AC0.
Network 1
LD I4.0
INVW AC0

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals