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 #163 background imageLoading...
Page #163 background image
Program instructions
7.1 Bit logic
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
163
7.1.12
Bit logic output examples
LAD
STL
Output instructions assign bit values to external I/O
(I, Q) and internal memory (M, SM, T, C, V, S, L).
Network 1
LD I0.0
= Q0.0
= Q0.1
= V0.0
Set a sequential group of 6 bits to a value of 1. Spec-
ify a starting bit address and how many bits to set.
The program status indicator for Set is ON when the
value of the first bit (Q0.2) is 1.
Network 2
LD I0.1
S Q0.2, 6
Reset a sequential group of 6 bits to a value of 0.
Specify a starting bit address and how many bits to
reset. The program status indicator for Reset is ON
when the value of the first bit (Q0.2) is 0.
Network 3
LD I0.2
R Q0.2, 6
Sets and resets 8 output bits (Q1.0 to Q1.7) as a
group.
Network 4
LD I0.3
LPS
A I0.4
S Q1.0, 8
LPP
A I0.5
R Q1.0, 8
The Set and Reset instructions perform the function
of a latched relay. To isolate the Set/Reset bits,
make sure they are not overwritten by another as-
signment instruction. In this example, Network 4 sets
and resets eight output bits (Q1.0 to Q1.7) as a
group. In RUN mode, Network 5 can overwrite the
Q1.0 bit value and control the Set/Reset program
status indicators in Network 4.
Network 5
LD I0.6
= Q1.0

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