EasyManua.ls Logo

Siemens Simatic S7 Series

Siemens Simatic S7 Series
726 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.1 Bit logic
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
159
7.1.8
Set, reset, set immediate, and reset immediate functions
LAD
FBD
STL
Description
S bit, N
The Set (S) and Reset (R) instructions set (ON) or reset (OFF) the
number of bits (N), starting at the address (bit). You can set or
reset from 1 to 255 bits.
If the Reset instruction specifies either a timer bit (T address) or
counter bit (C address), the instruction resets the timer or counter
bit and clears the current value of the timer or counter.
R bit, N
SI bit, N
The Set Immediate and Reset Immediate instructions immediately
set (ON) or immediately reset (OFF) the number of points (N),
starting at address (bit). You can set or reset from 1 to 255 points
immediately.
The "I" indicates an immediate reference; when the instruction is
executed, the new value is written to both the physical output point
and the corresponding process image register location. This differs
from the non-immediate references, which write the new value to
the process image register only.
RI bit, N
Non-fatal errors with ENO = 0
SM bits affected
N = 0 (zero)
0006H Indirect address
0091H Operand out of range
None
Input / output
Data type
Operand
Bit
BOOL
I, Q, V, M, SM, S, T, C, L
Bit (immediate)
BOOL
Q
N
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, Constant, *VD, *AC, *LD
Input (LAD)
BOOL
Power flow
Input (FBD)
BOOL
I, Q, V, M, SM, S, T, C, L, Logic flow
See also
Bit logic input examples (Page 162)
Bit logic output examples (Page 163)

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals