EasyManuals Logo

Siemens Simatic S7 Series System Manual

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
Page #159 background imageLoading...
Page #159 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals