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 #29 background imageLoading...
Page #29 background image
Getting started
2.2 Creating the sample program
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
29
Note
The CPU list will show all of the CPUs regardless of Ethernet network class and subnet.
To make a connection to your CPU, your network interface card (NIC) and the CPU must be
on the same class of network and on the same subnet. You can either set up your network
interface card to match the default IP address of the CPU, or you can change the
IP address
of the CPU to match the network class and subnet of your network interface card.
See the "Configuring or changing an IP address for a CPU or device in your project" for
information about how to accomplish this.
2.2
Creating the sample program
Entering this example of a control program will help you understand how easy it is to use
STEP 7-Micro/WIN SMART. This program uses six instructions in three networks to create a
very simple, self-starting timer that resets itself.
For this example, you use the Ladder (LAD) editor to enter the instructions for the program.
The following example shows the complete program in both LAD and Statement List (STL).
The description column explains the logic for each network. The timing diagram shows the
operation of the program. There are no network comments in the STL program.
Table 2- 1 Sample program for getting started with STEP 7-Micro/WIN SMART
LAD/FBD
STL
Description
Network 1
LDN M0.0
TON T33, +100
10 ms timer T33 times out after (100 x 10 ms = 1 s)
M0.0 pulse is too fast to monitor with Status view.
Network 2
LDW>= T33, +40
= M10.0
Comparison becomes true at a rate that is visible
with Status view. Turn on M10.0 after (40 x 10 ms =
0.4 s) for a 40% OFF / 60% ON waveform.
Network 3
LD T33
= M0.0
T33 (bit) pulse is too fast to monitor with Status view.
Reset the timer through M0.0 after the (100 x 10 ms
= 1 s) period.
Timing diagram:
T33 (current)
Current = 100
Current = 40
T33 (bit) and M0.0
M10.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