Set, Reset, Set Immediate, And Reset Immediate Functions - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

7.1.8

Set, reset, set immediate, and reset immediate functions

LAD
FBD
Non-fatal errors with ENO = 0
N = 0 (zero)
0006H Indirect address
0091H Operand out of range
Input / output
Bit
Bit (immediate)
N
Input (LAD)
Input (FBD)
See also
Bit logic input examples (Page 182)
Bit logic output examples (Page 183)
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
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
R
bit, N
bit and clears the current value of the timer or counter.
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
RI
bit, N
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.
SM bits affected
None
Data type
Operand
BOOL
I, Q, V, M, SM, S, T, C, L
BOOL
Q
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, Constant, *VD, *AC, *LD
BOOL
Power flow
BOOL
I, Q, V, M, SM, S, T, C, L, Logic flow
Program instructions
7.1 Bit logic
179

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents