Professional Documents
Culture Documents
TIA Service Training 1 S PDF
TIA Service Training 1 S PDF
TIA Service Training 1 S PDF
Joj saamsuy
NIVHIIS
u!u!eii apvueS-V11
LS DIPANIS
5. Symbols
ST-SERV1 Course
AL: N ECCN: 5D992 9. Binary Operations
16. Solutions
Name:
17. Training and Support
Course: from to
Instructor:
18.
Contents Page
The SIMATIC S7 System Family ...... 2
Objectives 3
SIMATIC S7 Overview ................................................................................................................... 4
What does "Totally Integrated Automation" Mean ...... 5
The SIMATIC S7/C7 and WinAC Controllers ...... 6
S7-200 ........................................................................................................................................... 7
S7-200 Micro Controller 8
S7-200: Modules / Expansion Modules (EM) ...... 9
S7 - 300 Automation System .......................................................................................................... 10
S7-300: Modules ............................................................................................................................ 11
S7-300: CPU Design ...................................................................................................................... 12
S7-400 Automation System ............................................................................................................ 13
S7-400: Modules ............................................................................................................................ 14
S7-400: CPU Design ...................................................................................................................... 15
SIMATIC Embedded Automation - Overview .................................................................................. 16
Device Spectrum of SIMATIC Embedded Automation .................................................................... 17
An Application Example for PC-based Automation ........................................................................ 18
SIMATIC Microbox 427-B RTX "Embedded PC" ............................................................................ 19
SIMATIC S7- mEC (Modular Embedded Controller) ........................................................................ 20
PG/PC Requirements for Installing STEP 7 ..................................................................................... 21
Installing the STEP 7 Basic Package .............................................................................................. 22
STEP 7 Tools ................................................................................................................................. 23
STEP 7 Software Packages (Examples) ......................................................................................... 24
If You Want to Know More about the Topic "TIA" ............................................................................ 25
More Information ............................................................................................................................ 26
Contents Page
Programming Sequence Control Systems with S7- GRAPH ............................................................ 27
The State Diagram Method S7- HiGraph ......................................................................................... 28
Programming in the High Level Language S7- SCL ......................................................................... 29
CFC - Tool for Graphic Interconnection of Si Blocks ....................................................................... 30
Process Diagnosis with S7- PDIAG ................................................................................................. 31
Testing User Programs with S7- PLCSIM ........................................................................................ 32
Runtime Software for Closed-loop Control Engineering Tasks ......................................................... 33
Communicating with SIMATIC NET ................................................................................................. 34
Operator Control and Process Monitoring with SIMATIC HMI .......................................................... 35
Process Visualization and Operator Control with WinCC ................................................................. 36
Process Automation with SIMATIC PCS 7 ....................................................................................... 37
DRIVES Technology ....................................................................................................................... 38
The SINAMICS Family .................................................................................................................... 39
Objectives
SIEMENS
SIMATIC S7 Overview
MPI Network
SIMATIC NET Industrial Ethernet
PROFIBUS
aI
SIMATIC
Controller
A e
PROFIBUS DP
AS-Interface O 0
iy
O 0
Introduction For the operation of machines, equipment and processes in almost all areas of
manufacturing you require control elements in addition to energy supply. It must
be possible to initiate, control, monitor and end the operation of any given
machine or process.
Hard-wired In the hard-wired controllers of the past, the program logic was governed by
Controllers -> PLC the task-specific wiring of contactors and relays.
Today, programmable logic controllers are used to solve automation tasks. The
logic stored in the program memory of an automation system does not depend on
equipment design and wiring and can be modified at any time with the help of a
programming device.
Totally Integrated Production processes are no longer seen as individual partial processes, but
Automation rather as integral components of an entire production process.
The total integration of the entire automation environment is today achieved with
the help of:
• one common software environment that integrates all components and tasks
into one uniform easy to use system
• a common data management (central database)
• a common communication between all participating automation components.
WinCC PCS7
/
/
w
w
D) SIMATIC S7
LE]
Totally Integrated The new SIMATIC family unifies all devices and systems, such as hardware
Automation and software, into a uniform, powerful system platform.
In this platform existing barriers between computer, PLC, and process control
have been overcome. Operator control and monitoring are improved.
Advantages This totally integrated automation offers you, among other things, the following
advantages:
• A scalable hardware platform. The optimal (price/performance)
functionality (PLC or computer) can be chosen for the task to be solved.
• An open totally integrated automation environment. An existing
system can be easily extended, or future automation solutions can be
integrated.
Existing investments retain their value. The transition from an existing
SIMATIC, TELEPERM or TI environment can be carried out very easily.
• Powerful software increases the productivity in the implementation of a
project reducing the engineering and life cycle costs. In addition, expenses for
commissioning, maintenance and service are reduced.
• SIMATIC is based on Windows standards and can thus easily use their
applications (standard software) and communication mechanisms.
modular
Upper and
middle forrirru
r rrr11
performance
range
inir1.11
SIMATIC S7 - 400
Micro PLC
corn act
SIMATIC S7 The programmable logic controller family consists of the Micro PLC (S7-200)
performance range, the lower/middle performance range (S7-300) and the
middle/upper performance range (S7-400).
SIMATIC 07 This complete system is the combination of a PLC (S7-300) and an operator
panel of the HMI operator control and process monitoring system. The integration
of programmable logic controller and operator panel in one device makes
complete machine controls in the smallest space and at an economical price
possible.
WinAC WinAC is a PC-based solution. It is used when various automation tasks (control,
visualization, data processing) are to be solved with a PC.
S7-200
S7-22x
S7-21x
!
SIEMENS SF 10.0 11.0 Q0..01
.40 IQ
Q 11 ,0 CPI . 214
RUN 10.1 11.1
STOP 10.2 11.2 Q0.2
10.3 11.3 Q0.3
10.4 11.4 Q0.4
10.5 11.5 Q0.5
10.6 Q0.6
M.7 Q07
SIMATIC
0'7-200
Features • Modular small control system for the low-end performance range,
• Performance-graded range of CPUs,
• Extensive selection of modules,
• Expandable design with up to 7 modules,
• Backplane bus integrated in the modules,
• Can be networked with
- RS 485 communications interface or
- PROFIBUS or
- connected with Industrial Ethernet,
• Central PG/PC connection with access to all modules,
• No slot rules for peripheral modules,
• Own software,
• "Complete package" with power supply, CPU, I/O in one device,
• "Micro PLC" with integrated functions.
Status Indicators
Status Indicators
lk for Integrated DO
SIEMENS
SINAlIC
ST-200
SF
RUN
STOP
- Potentiometer
- Memory Card
- Mode Selector
PPI Connection
.1, -I, ..5...6„.2 .0 4
11 irirliqjak 214-'RD22-0Y130
Status Indicators
for Integrated DI
Memory Card Slot for memory card. A memory card saves the program contents in the event of
a power outage without the need for a battery.
PPI Connection The programming device / text display or another CPU is connected here.
This enables you to access several controllers from a PG or text display. As well,
the S7-200 CPUs use the Network Read (NETR) and Network Write (NETW)
instructions to read and write to each other (peer-to-peer communication).
i i s #1drerla ,
i rd 'Afrawdrifir artr010:4:00:ffir
0
40191111ftliffilpr
Communications Using the CP 242-2, the S7-200 can be connected to an AS-Interface as the
Processors (CP) master. In that way, 31 AS-Interface slaves can control up to 248 binary
elements. This greatly increases the number of inputs/outputs of the S7-200.
Other communications modules are the modem and PROFIBUS-DP expansion
modules. The SIMATIC NET CP 243-1 can be used to connect to Industrial
Ethernet.
Accessories Bus connector
Features • Modular small control system for the lower and middle performance range
• Performance-graded range of CPUs
• Extensive selection of modules
• Expandable design with up to 32 modules
• Backplane bus integrated in the modules
• Can be networked with
- Multipoint Interface (MPI),
- PROFIBUS or
- Industrial Ethernet or
- PROFINET
• Central PG/PC connection with access to all modules
• No slot rules for peripheral modules,
• Configuration and parameter setting with the help of the "Hardware
Configuration" tool
S7-300: Modules
Q V Q Q Q Q CP:
PS CPU IM SM: SM: SM: SM: FM:
(optional) (optional) DI DO Al AO - Counting - Point-to Point
- Positioning - PROFIBUS
- Closed-loop - Industrial Ethernet
control
Interface Modules The IM360/1M361 and 1M365 make multi-tier configurations possible.
(IM) The interface modules loop the bus from one tier to the next.
Dummy Modules The DM 370 dummy module reserves a slot for a signal module whose
(DM) parameters have not yet been assigned. A dummy module can also be used to
reserve a slot for installation of an interface module at a later date.
CPU 315-2DP until Oct. 2002 CPU 315-2DP after Oct. 2002
Memory Card A slot is provided for a memory card. The memory card saves the program
contents in the event of a power outage without the need for a battery.
For CPUs after Oct. 2002, a Micro Memory Card is always necessary for
operation. It also provides the backup in the event of a power outage.
Battery Compartment For CPUs up until Oct. 2002, there is a receptacle for a lithium battery under the
cover. The battery provides backup power to save the contents of the RAM in
the event of a power outage. For CPUs after Oct. 2002, no battery is necessary.
MPI Connection Connection for a programming device or other device with an MPI interface.
DP Interface Interface for direct connection of distributed I/Os to the CPU.
Features • The power PLC for the mid to upper performance range,
• Performance-graded range of CPUs
• Extensive selection of modules
• Expandable design to over 300 modules
• Backplane bus integrated in the modules
• Can be networked with - Multipoint interface (MPI),
- PROFIBUS or
- Industrial Ethernet or
- PROFINET
• Central PG/PC connection with access to all modules
• No slot restrictions
• Configuration and parameter setting with the help of the "Hardware
Configuration" tool
• Multicomputing (up to four CPUs can be used in the central rack).
Interface Modules The IM460, IM461, IM463, IM467 interface modules provide the connection
(IM) between various racks:
• UR1 (Universal Rack) with up to 18 modules
• UR2 (Universal Rack) with up to 9 modules
• ER1 (Expansion Rack) with up to 18 modules
• ER2 (Expansion Rack) with up to 9 modules.
Error LEDs
Mode Selector
MPI/DP
Interface
DP Interface
External
Battery Supply
Fault LEDs LEDs for the CPU's statuses and faults, both internal and external
Memory Cards With the S7-400 CPUs you can, depending on your requirements, insert RAM
or flash EPROM cards as external load memory:
• RAM cards are available with a capacity of:
64KByte, 256KByte, 1MByte, 2MByte.
The CPU battery backs up the contents.
• Flash EPROM cards are available with a capacity of:
64KByte, 256KByte, 1MByte, 2MByte, 4MByte, 8MByte, 16MByte.
The contents are backed-up on the integrated EEPROMs.
MPI / DP
Interface MPI / DP interface (parameter-assignable in HW-Config) for
• establishing the online connection to the programming device
• connecting to distributed peripherals (DP)
• data exchange with other stations (S7 Communication)
DP Interface For connecting to distributed peripherals (DP, only for CPUs with 2 interfaces)
EXT-BATT Additional external battery socket for a 5 VDC to 15 VDC source to back up the
RAM when the power supply is being replaced.
.........
• • • • -
Device Spectrum The slide shows an overview of the most important device components that are
available for SIMATIC Embedded Automation.
Windows
System / Cell network Ethernet
interface
169.254...
111
11 3rd party
laasamanss-sw j .=
device 111111tall sammurnequivirn WINAC RTX
1111U1 , SI
f ••••■
PROFINET
OUC
interface
192.168...
I
Application Example The application example above shows a possible structure for the use of a
SIMATIC Microbox 427-B in an automation solution. The connection of local PN
10 slaves takes place behind the CPU to avoid dependencies on the system
configuration. PROFINET 10 RT services can be used in parallel with CBA
functions on the same line. Third party devices can be addressed via the open T
communication (Open user communication) (T-send and T-receive).
WinAC RTX 2008 SIMATIC WinAC RTX 2008 makes use of a PROFINET 10 Controller Interface for
operating distributed PROFINET peripherals. Thereby, the RT and IRT operating
modes are supported. Moreover, two different interface types can be operated
with WinAC RTX 2008:
• the Standard Ethernet (LAN-Interface) of the SIMATIC PC
• the CP1616/1604, integrated PROFINET interface of the S7-mEC and the
SIMATIC PC
The interface integration in WinAC RTX 2008 and in the familiar STEP 7
configuration takes place similar to the PROFIBUS interfaces as submodules that
are used today. They behave like the integrated PN interface of the SIMATIC S7-
CPUs. Basically, the following types of data transmission are available (Standard
Ethernet LAN operating mode):
• PROFINET 10 RT with up to 128 PROFINET 10 devices
• PROFINET Component Based Automation (CBA)
• Open User Communication (T-communication)
• S7 communication and routing
Realtime Core WinAC RTX 2008 simplifies the installation of the Ardence RTX realtime core.
Effective immediately, this is completely integrated in the setup of WinAC RTX
and no longer has to be installed separately.
Imo"=1712s1
System Fault RUN/STOP Qatei cPU tijIfe
SIEMENS 1
PS
ON
• BATF
CPU
IT! INTF IRUN Oi
O EXTF STOP
BUSE-I
• BUSF2
BUSF3
BUSF4 M RE S
'Ili FR CE
I RUN
STOP
Microbox 427B... The SIMATIC Microbox 427B-HMI/RTX is an "embedded solution" for combined
controller and operator control and visualization tasks. The ready-to-go Microbox
provides the WinAC RTX, WinCC flexible RT and Windows XPe software pre-
installed. Special properties with regards to retentive storing of SIMATIC WinAC
RTX user data exist.
Configuration and programming is done as usual with STEP 7. Industrial Ethernet
and PROFIBUS interfaces are available for download activities and data
communication. Furthermore, USB interfaces, connection possibilities for flat
screens (DVINGA), as well as a serial RS232 interface and up to three PC/104-
Plus cards are available.
SIMATIC WinAC RTX makes the use of an "Open Development Kit" for
implementing application-specific functions in the PLC program possible.
2x USB Connection of S7
1x IE/PN standard peripherals
1x serial
1x DVI-I
lx serial Up to 3 PCI cards
1x CF slot
Embedded Controller The new high-performance SIMATIC S7-mEC "modular embedded controller"
completes the product portfolio in the area of the SIMATIC Controller. The
benefits of a Standard S7 Controller are combined with those of a PC-based
solution.
Different automation solution tasks can be implemented on one hardware p:atform
with the S7-mEC. The hardware basis consists of current PC technology with an
Intel Core Duo 1.2 GHz processor, a 2GB Flash Disk and 1 GB main memory.
SIMATIC WinAC RTX 2008 is used as the application program, Windows XPe
functions as the operating system. Remote services, such as, remote monitoring
via TCP/IP services are available. The S7-mEC also has a Multimedia Card Slot
(MMC).
The design without fan and hard drive is well-suited for the industrial environment.
Three Industrial Ethernet ports and up to two additional USB interfaces enable the
problem-free integration in existing automation scenarios.
The S7-mEC "modular embedded controller" is installed and configured like an
S7-300 PLC.
SIMATIC STEP 7 V5.4 SP4 with additional hardware patch is used as the
engineering tool (RTX version on the S7-mEC necessary).
WinCC flexible can be used as an additional option for operator control and
monitoring. The new SIMATIC Thin Client and other Windows XPe applications
can also be used.
Memory on the
Hard Drive: Depending on the installation, between 400 MB and 800 MB
Mouse: Yes
/
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_010.21 A SITRAIN Training for
Automation and Industrial Solutions
Requirements SIMATIC Programming devices (PG) provide the optimum basis for using the
STEP 7 software.
You can, however, also use a PC that fulfills the above-listed requirements. So
that you can make the necessary online connection between the automation
system (PLC) and the PC, the PC must be equipped with one of the interfaces
listed in the slide above.
If user programs are to be loaded on memory cards outside of the CPU, the PC
must also be equipped with the appropriate programming interface.
•
Double-click on icon verswi V5.4 • SF%
SIMATIC IcOUre MM., L Wank[
Revisi n Level: K5.4.4.0
Manager 51,7 Converting 55 Files
PI LAD, STL, FBD - Programming 57 Blocks
Memory Card Parameter Assignment
Communication
rks
tt Office Applications
Activate signment
through
• Utilities
Start menu State Graphs
Documentation on figuring ocess Diagnostics
SIMATIC
Information S7-PLCSIM Simulating Modules
Business Appkations License Mona Setting the PG-PC Interface
OPC-XML B a STARTER
Programs ProSave MI TI 405-S7 Converting TI Files
f STEP 7 TI 5135-57 Converting TI Files
Documents
WinCC flexible 2008
0
r Run...
43Shut Down...
d Start
Installation 1. Activate "Setup.exe" on the Installation CD or use the automatic Setup routine
activation
2. Choose options
3. Choose language(s)
4. Insert authorization disk when prompted.
5. Re-boot when prompted
Software Protection The STEP 7 software is copy-protected and can only be used on one
programming device at a time.
When you have installed the software, you cannot start using it until you have
transferred the authorization to the hard disk drive from the authorization disk.
Notes • Be sure to read the notes in the README.TXT file on the authorization disk. If
you do not observe these instructions, you risk losing your authorization.
• For emergency operation, the STEP 7 basic package can also be used without
authorization. As well, there is also a 14 day limited authorization available in
addition to the unlimited (in time) authorization.
Hot fixes STEP7 software updates can be downloaded from the Internet.
Result The main tool in STEP 7 is the SIMATIC Manager. There are two ways in which
to activate it:
1. through the Task bar 4 Start - SIMATIC SIMATIC Manager or through
2. the icon "SIMATIC Manager" on the Windows Desktop.
STEP 7 Tools
NCM 57
CFC - Interconnect blocks
Configure SIMATIC Workspace
SIMATIC Manager The SIMATIC Manager manages the STEP 7 projects. It is the main program and
also appears on the WINDOWS desktop.
Notes "STEP 7 - Readme" provides detailed information about the version, installation
procedure, etc.
LAD, STL, FBD Tool for writing STEP 7 user programs in the "Ladder Diagram", "Statement List"
or "Function Block Diagram" programming languages.
Memory Card You can save your user programs on EPROM cards by either using the
Parameter programming device or an external prommer.
Assignment. Different drivers are required, depending on the application.
Configuring Network configuration with the "NetPro" tool which belongs to the STEP 7 basic
Networks package.
Setting the PG-PC This tool is used for setting the local node address, the transmission speed
Interface and the highest node address in the MPI network.
PID Control The basic STEP 7 software package also includes blocks for solving PID
Parameter (closed-loop) control problems. You choose "PID Control Parameter Assignment"
Assignment to start the program for assigning parameters to the closed-loop control blocks.
Converting S5 Files STEP5 programs can be converted into the corresponding STEP 7 programs with
the help of the S5/S7 converter.
Configure SIMATIC This option provides facilities for configuring multi-user systems.
Workspace
Converting TI Files SIMATIC TI programs can be converted into the corresponding STEP 7 program
with the help of the TI/S7 converter.
SIMATIC S7-300
STEP 7 Lite Tele Service S7- PLCSIM
;11
SIMATIC S7-300
STEP 7 S7- SCL S7- GRAPH
Standard PID
S7- HiGraph Fuzzy Control
Control
SIMATIC 57-400
Modular PID
DOCPRO TeleService
Control
PRODAVE
S7- PDIAG S7- PLCSIM
MPI
11111
STEP 7 STEP 7 is the basic package for configuring SIMATIC S7-300 or S7-400 systems.
With STEP 7 you can:
• configure hardware and assign parameters to it;
• configure communication;
• program;
• test and debug;
• document and archive;
• carry out diagnosis.
STEP 7 Lite STEP 7 Lite can be used to program the SIMATIC S7-300 (also the compact
CPUs). Programs that were created with STEP 7 Lite can also be exported to
STEP 7.
It is not possible to carry out a PROFIBUS (DP) or ETHERNET configuration!
ET200S or ET200X configuration (standalone) is possible.
PLCSIM and Teleservice can be used as option packages.
STEP 7 Micro STEP 7 Micro is suitable exclusively for configuring the S7-200.
License With the exception of STEP Micro/Win, a license is required for each package.
STEP 7 Professional STEP 7 Professional is a Software Package that contains all IEC languages:
STEP 7 Basic, S7-SCL, S7-GRAPH and the simulation package S7-PLCSIM.
STEP 7 Professional is available as an upgrade package (Powerpack) for STEP7.
Prerequisite for acquiring the powerpack is a valid STEP 7 license.
Note The following pages contain either further information or are for reference to
complete a topic.
For more indepth study we offer advanced courses and self-learning mediums.
SIEMENS Download
More Information
C Acrobat t to..-pler / "ILICI_Baugnypendatempdf]
f2abi learbeken Dgkment &wise tone. 50. ,_aff_j_Lj
r
511.119115
mikbaltscR5ck.iTo■ ► ■I • • ; 17I ei 64 Gig j4
57.300 ano to17 309 Lese.e.A
Programmable Controller.: Siemens Katalog CA 01 10/2002 D
Ma k* Somatc.mams Ealaks learbeilen 2uc4reri Ausieehililen JiAres lesezeichen Internet 3
§ e
EF-0 2 Zerk4b4K4UpPen- Neu. Neu CPU 315: J bbereicht I 6nmndungsbereiCh AAP. I Eunkrrord 'ochry Oaten I Bosteildalen i ZikeNinBeuelicleien
R-0 3 s Interaktivet Ketalog Siemens AID
Er-04 A 11 Antriebstechnik Produkte
D5 211 Automatisierungssysteme
El- 0 6 S 0 Industie-Autometnerungssys
Ei-0 s D Steuerungen ZenlFelbdugruppe 1 - Neu- N u CPU 315-2 DP
Set rArmS 8 s O H/F-Technik
FDA A O SIMATIC 505
E-Da O SIMATIC 05 Die CPU 315-2 DP verfugi
&stomata, & UV.:
AD C A SIMATIC 57 • Mikroprozeseor.
.‘..... DD O 07-200 der Prozessor erreicht eine Bearbeitungszeit von ca 100 ns je einaranweisung und 4 us le
-.
.n g E13--0 E 57-300/S7-300F/5 • 128 KByte Arbedsspeicher (entspncht Owe 43 KAnweisungen):
51F1.41FRIG
DF Li EMI-6111,N Der umfangreiche Arbeitsspeicher fOr ablaufrelevante Programmteile bietetAnwenderprog
DG E Zentralbaugrupi Cards (may 8 MByte) als Ladespetcner fur Programm ermoglichen zusatiich die Projektat
Di E CPU 312C Kommentaren) in der CPU und kOnnen zur Datenarchivierung und Rezepturverwaltung yew
1E CPU 313C • Flexible Ausbaubarkeit;
S I (OAT E CPU 313C-2_ max. 32 Baugruppen (Izeiliger Aufbau)
El CPU 313C-2 • Mehrpunkffehige Schnittstelle
E CPU 3140-2 Die integrierle Schnittstelle MPI kann max_ 16 Verbindungen gleichzeitig zu 07-3001400 ode
E CPU 314C-2 Von den Verbindungen ist jeweils eine kir PG und eine (Or OP fest reserwert. Mit der MPI ist
• Neu . CPU 3 Datenkommunikation" eine einfache Vernetzung mit max. 16 CPUs aufzubauen
• Neu CPU 3
• PROFIBUS DP-Schnittstelle
• =ME Die CPU 315-2 DP mit PROFIBUS DP-MastertSlave-Schnittstelle ermeglicht einen dezentri
p CPU 313 Geschwindigkeit und einfacher Handhabung. Die dezentrale Periphene wird aus Anwende
CPU 314 (gieiche Projeldierung, Adressierung und Programmierung).
E CPU 315 Es wird die PROFIBUS DP V1-Norm vollstandig unterstutzt. Dies ermbglichtverbesserte Di
•I El CPU 315-21 V1-Normslaves.
E CPU 316-21
• Passwortschutz,
E CPU 318-21 Ein Passwortkonzept das Anwenderprogramm vor unberechtigtem Zugriff
2 CPU 312 1Ft
DI CPU 3141Ff • Diagnose-Puffer;
E CPU 314 CIL Die letzten 100 Fehler- und Unterbrechungsereignisse werden zu Diagnosezwecken in ein
E CPU 315E • Wartungsfrete Datensicherung;
Information You will find more information on the SIMATIC systems in the items below.
Manual The manuals give detailed information on the hardware and software. In addition
to the paper version, you can also use the electronic manuals. They are, in part,
included in the installation or STEP 7.
You can download the most recent SIMATIC manuals free of charge from the
Internet.
A collection of electronic SIMATIC manuals (HW, SW, Engineering, HMI, NET,
PG) can be ordered under the order number 6ES7 998-8XC01-8YE0.
Catalog The ST 70 catalog contains all SIMATIC components with their performance and
order data.
Electronic Catalog In addition to the paper version, the (CA01) catalog is also available as a CD. This
information is also available on the Internet (www.siemens.de/Simatic).
Siemens Partner Of course, your Siemens partner is also available for further information.
S7-GRAPH With the S7-GRAPH programming language, you can clearly and quickly
configure and program sequential sequences that you wish to control with an S7
PLC system.
The process is thus split into single steps with their own function scope. The
sequence is graphically displayed and can be documented with picture and text.
The actions to be performed and the transitions, which control the conditions for
switching to the next step, are determined in the individual steps. Their definitions,
interlocking or monitoring are determined by a subset of the
STEP 7 programming language LAD (ladder diagram).
S7-GRAPH for S7-300/400 is compatible with the sequence language established
in the DIN EN 61131-3 standard.
Function Units The function units are the smallest mechanical units of a machine or system.
As a rule, a function unit is made up of mechanical and electrical basic
elements. In programming, a state diagram is assigned to every function unit.
In it, the functional, that is, the mechanical and electrical properties of the
function unit are mapped.
State Diagram The state diagram describes the dynamic behavior of a function unit. It
describes the states that a function unit can have, as well as the state
transitions. State diagrams can be used more than once. State diagrams that
were created once for a specific function unit, can be reused in other program
locations.
Diagram Groups By combining parallel running state diagrams, you can describe the complete
and Instances functionality of a machine or system.
Functionality SCL offers the functional scope of a high level language such as:
• loops
• alternatives
• branch distributors, etc.
combined with control-specific functions such as:
• bit accesses to the I/O, bit memories, timers, counters etc.
• access to the symbol table
• STEP7 block accesses
•
rato,f7
.
of PLC programs
CRMII
• •CIA!
• • ,T7T-P
• •SK.Z.L.
function charts
and interconnected Eta: CFC - [PC57Demo_extlSIMATIC 400-Slo ACP1.14111 OF' I.■AS V,F I
gi Ben bate. gritipan &WPM jai !nem fere fee*
o Interconnection is Etta! 11
---1.411412c1
possible:
Oevat
- between I/O fields Fa.
- also to blocks in
other charts
011.1 CC 017 SO
margins CPO. CO
CIO CO
RV SC
❑ Advantages ria
CCM
Overview With the engineering tool CFC (Continuous Function Chart), you can create
automation tasks by drawing a technology plan - similar to a Function Block
Diagram in PLC programming.
In this graphic programming method, blocks are positioned in a type of drawing
sheet and are graphically interconnected with one another. You can quickly and
easily convert technological aspects into complete executable automation
programs with CFC.
Note The CFC product, as an option package, is smoothly integrated in the STEP 7
architecture with a unified Look & Feel and with common data management. CFC
is easy to use, easy to learn and provides consistent data management.
The CFC tool plays an important role in the configuration of the PCS 7 process
control system. Prerequisite is a previously installed SCL option package.
Process Diagnosis Diagnosis is important in the operating phase of a plant or machine. Diagnosis is
usually initiated when a fault leads to standstill or malfunction of the plant or
machine.
Programmable logic controllers are widely used in many areas. Field experience
has proven that over 98% of faults occur in the peripherals (such as magnet
valves and end switches). The distribution of fault occurrences makes it
meaningful for the diagnosis to focus on process faults, since missing messages
or faulty functions lead to down-times and the resulting costs.
Process diagnosis diagnoses exactly these external components (such as
sensors and actuators) or sequences in the process of a plant or machine.
S7-PDIAG The S7-PDIAG software package enables a uniform configuration of the process
diagnosis for the SIMATIC S7-300/400 controllers in the LAD, FBD and STL
programming languages.
You can already define signal monitoring routines including first-up signal
acquisition and criteria analysis and input the associated message texts while or
after creating the user program in the LAD, FBD or STL programming languages.
PDIAG automatically generates monitoring blocks which you must call in your
user program.
At every call, the fault conditions are checked and in case of an error, the relevant
process values are acquired and sent to the display device for the criteria
analysis.
For the configuration of the operator panel, S7-PDIAG stores the process
diagnosis data in a shared database. This data can then be accessed by the OP
configuration software WinCC flexible with the option package ProAgent and be
made available for display on the operator panel.
E
DC r RUN 76 54 3210
• with display/modify I/O RUN
STOP r STOP MRES I rrr r rrrr
o Testing of user blocks in
Pres Fl to get Help. =2
• LAD, FBD, STL, S7-SCL,
• S7-GRAPH, S7-HiGraph, CFC
• S7-PDIAG, WinCC
0 Advantages
o Faults can be detected early and eliminated
o Many tests are already possible in the office
without the final hardware
S7 - PLCSIM The SIMATIC S7-PLCSIM engineering tool (option package) emulates a complete
S7-CPU including addresses and I/O on a PG/PC.
S7-PLCSIM thus enables you to test a program offline on the PG/PC. All STEP 7
programming languages (STL, LAD, FBD, S7-Graph, S7-HiGraph, S7-SCL and
CFC) can be used.
S7-PLCSIM allows you to check the functionality of user programs on the PC/PG,
regardless of whether the final hardware is available or not.
Functionality S7-PLCSIM offers the following functions for running a program on a simulated
PLC:
• An icon in the SIMATIC Manager 's toolbar switches the Simulation on or off.
If the simulation is turned on, every new connection is automatically made to
the simulated PLC.
If the simulation is turned off, then every new connection is made to the
"
real" PLC.
• You can create view objects that allow you to access memory areas, accu-
mulators and tabs of the simulated CPU. You can modify and display all the
data in these view objects.
• You can change the CPU 's operating mode (STOP, RUN and RUN-P) just
as with a "real" CPU. The simulation also provides a "Pause" function that
allows you to halt the program execution without affecting the state of the
program.
Advantages With S7-PLCSIM, you can detect faults early in the development phase and
eliminate them. The quality of the user programs is greatly improved and the
commissioning costs are lowered.
Confi- Basic SW
gura- or
Overview tion option
tool package
S7-200 S7-300 C7
Closed-loop In a closed-loop control system process variables are controlled in such a way
Control Engineering that they reach their new preset values as quickly as possible and that they
maintain these in spite of the effect of disturbances.
Basic Software The STEP 7 basic package already contains a series of function blocks for
PID Control solving simple control engineering tasks.
Standard This additional package contains blocks and a parameter assignment tool with
PID Control integrated control setting for standard tasks such as temperature controllers,
flow rate regulators, pressure regulators etc.
Modular Through the interconnection of supplied standard function blocks, you can
PID Control implement just about every closed-loop control engineering structure, even in
the upper performance range of process engineering.
The package contains 27 FBs and a commissioning tool.
Fuzzy Control Fuzzy Systems are used when the mathematic description of a process is
difficult or even impossible, when a process behavior is not consistent, when
non-linearities occur, but, on the other hand, experience with the process
exists.
NeuroSystems Neuronal Systems are used with those problems, whose structure and solution
are only partly known. NeuroSystems can be used in all automation levels,
from the individual closed-loop controller to the optimization of a plant.
Industrial Ethernet The Industrial Ethernet network is a cell level network according to the inter-
national standard IEEE 802.3 (Ethernet) and is designed for industrial use.
Extensive open network solutions are possible. A high transmission rate is
guaranteed with various transmission media. Industrial Ethernet is an industry
standard, world-wide tested and accepted.
PROFINET PROFINET as the standard for communication applications in the field level
enables the interfacing of distributed field devices through Industrial Ethernet with
the TCP/IP protocol.
PROFIBUS PROFIBUS is the bus system for cell networks with a limited number of nodes. It
is based on the European standard EN 50170, Volume 2, PROFIBUS. Since the
requirements according to EN 50170 are fulfilled, PROFIBUS guarantees
openness for the connection of components from other manufacturers that
conform to standards. The PROFIBUS accessing procedure functions according
to the "Token Passing with subordinate Master-Slave" procedure. As a result, a
distinction is made between active and passive network participants.
AS - Interface The AS-Interface is a networking system for binary sensors and actuators in the
field area. With AS-Interface, binary actuators and sensors become capable of
communication, for which a direct field bus connection was not technically
possible up until now or was not economical.
oft
,
1 mat ,....: l E.,.
--- .
10
4
-41E00101616W, E F;':tql: .,
ing...aim s'
wiliom—idAZ -Er&
Overview For the SIMATIC S7, there is a field-proven HMI system for user-friendly process
control and monitoring available, the SIMATIC HMI. It ranges from the simple text
display to the process visualization system.
SIMATIC S7 and SIMATIC HMI are completely harmonized and integrated. This
simplifies the use of the human-machine interface system SIMATIC HMI
considerably.
• SIMATIC S7 has already integrated HMI services. The HMI system
requests process data from the SIMATIC S7. Data transmission between
SIMATIC S7 and SIMATIC HMI is carried out by the two operating systems
and does not have to be taken into account in the user program.
SIMATIC HMI systems can be connected directly to PPI (S7-200) and
MPI or PROFIBUS (S7-300 and S7-400). Operation using PROFIBUS makes
process control and monitoring even over greater distances possible.
• Numerous features from the uniform database and symbols up to the same
user-friendly Windows-oriented user interfaces simplify the use of HMI
systems.
Process visualization
WinCC SIMATIC WinCC (Windows Control Center) is the open process visualization
system from Siemens. It can be integrated problem free in a new or already
existing PLC system.
Function Modules The heart of SIMATIC WinCC is an industry and technology independent basic
system with all the important functions for operator control and monitoring, such
as:
• Pixel graphic display
• Measured value acquisition (archiving functions, data compression,
minimum and maximum values etc.)
• Message display, archiving and reporting
• Process communication to different PLC systems
• Standard interlaces, for example, Microsoft programs
• Documentation of machine and process sequences with individual reports.
Basis of WinCC WinCC is based on the 32-bit standard operating systems Windows 2000/XP
from Mircrosoft. This platform gives WinCC the following functionality:
• Use of the Windows operating equipment (such as printer and driver)
• Data exchange with other Windows applications via DDE, ODBC, SQL,
OLE, ActiveX and OPC.
• API programming interlace
• use of hardware available in the market
WA WI !Oi
l _Pli
„„
1 Terminal bus
System bus
I 41 4
S7-400as
central unit
ET 200M
~r 41 G
Field devices
Introduction SIMATIC PCS 7 represents the new control system generation in SIEMENS. It is
the consistent, further development and summary of experiences with systems
that are based on TELEPERM M, SIMATIC S7 and SIMATIC S5. As a result, it is
tailored to the process control system tasks in all industries.
Engineering The Engineering System can be designed as its own station in the system. It
System can however also be loaded as a software package in the OS components at the
same time.
The Engineering System has the following components:
• STEP 7 with the SIMATIC Manager, the central database, and with HW
Config for configuring hardware and networks. It also contains the servers,
that facilitate consistent configuration between PLC and OS.
• SCL (Structured Control Language) as PASCAL-similar higher level
programming language for block generation
• CFC (Continuous Function Chart) for graphic configuration of the basic
automation functions
• SFC (Sequential Function Chart) for graphic configuration of production
sequences
• Expansion of the SIMATIC Manager with "Technological Hierarchy”
• WinCC (Windows Control Center) for OS configuration
• DOCPRO for documenting configuration data
Import/Export wizard for bi-directional data exchange with other CAE
systems
These components are supplemented by libraries that provide pre-defined blocks
for PLC and OS.
DRIVES Technology
Standard Drives with limited to medium demands on the control dynamics and
Applications functionality. Energy feedback into the network is not required as a rule
(such as, pumps, fans, compressors, conveyor technology, door drives,
mixers, kneaders, mills).
Motion Control Drives with high demands on the control dynamics and functionality.
Applications Energy feedback into the network is possible (for example, single drives
such as elevators, extruders, conveyor technology, multimotor systems
with modular design such as paper machines, rolling mill lines, plastic film
machines, synthetic fiber systems, crane systems, packaging machines,
printing machines, handling (robots), machine tools)
Benefits The new drives family offers a handling as uniform as possible of planning,
commissioning and parameter assignment.
This is made possible through:
• SIZER Configuration and Calculation Software
• STARTER Commissioning Software
• Uniform parameter structure
• Uniform hardware design
Other Versions In addition to the display above of the most important family members,
there is:
- SINAMICS G120D for decentralized configuration outside of the cabinet
- Frequency converters in the design of the SIMATIC ET200S and
ET200pro
- SINAMICS G130, the G150 without cabinet for the individual installation
- SINAMICS S150, the feedback-capable version of the G150
- SINAMICS medium voltage drives (> 1000V) for large power ratings.
Contents Page
Training Area Setup with S7 - 300 ...... 2
Configuration of the S7 - 300 Training Unit ...... 3
The Simulator ...... 4
The Conveyor Model ...................................................................................................................... 5
Complete Symbol List 6
If You Want to Know More .............................................................................................................. 8
Training Area Setup with S7- 400 ...... 9
Configuration of the S7-400 Training Unit ....................................................................................... 10
S7 - 300 Training Area The training area consists of the following components:
• An S7-300 programmable logic controller with the CPU 315-2 DP
• Digital input and output modules, analog module
• Simulator with digital and analog sections
• Conveyor model
• ET 200S distributed peripheral
• MM420 Micromaster with PROFIBUS module
• TP170B Touchpanel
• Programming device or PC
A
SITRAIN Training for
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_02E.3 V Automation and Industrial Solutions
Addresses You can set the starting addresses of the modules by parameter assignment
(freely).
The Simulator
Potentiometers for
setting the
BCD Digital Display analog values
"
"
QW_DigDisp" (QW 6) PIW_All " (PIW 304)
DI DO
.0 ND • .0
1 ND 11111111
• .1 . 7 s•
.2 ND • .2 / 1
— 1 I /
.3 ND • .3 1 / I I
s. :-
4 ND • 4 AIMMIIIMIEL 7
.5 No * .5
.6 ND • .6 -15V...*15V -15V...+15V
AI2 0.01A02
‘
.7 0 0 .7
All
)9 • .0 Ill •
.1 All
'
• •
OV Al2
ND • 2
.3 19 • .3 = mi im ••
ND • A 0 8 1 5 o o o o
.5 \„, •
• All Al2 A01 A02
.6 Ng • .6
mt Imi = NE 0 0
.7 \D 0 .7
Design Two cables connect the simulator to the S7-300 or S7-400 training unit. The
simulator is divided into the following three sections:
Addressing You use the following addresses to address the inputs and outputs in your user
program:
Switch / Mom.Con IW 0
LEDs QW 4
Thumb. buttons IW 2
Digital display QW 6
/ I 1t I I
I
1
/' "T—Bay1" "T Bay2" I "T_Bay3" I "T_Bay-LB"
l
(I 8.1) ; (I 8.2) : (I 8.3) i (I 8.4)
"L_Bay1" "L_Bay2" "L_Bay3" "L_Bay-LB"
(Q 8.1) (Q 8.2) (Q 8.3) (Q 8.4)
Design The slide above shows the conveyor model with its sensors and actuators as
well as the assigned I/O addresses.
Note The following pages contain either further information or are for reference to
complete a topic.
Design You can see the design of the S7-400 training unit in the slide above.
Addressing As long as no configuration or parameter settings have been made, the system
works with default addresses.
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_03E.1 4 1 SITRAIN Training for
Automation and Industrial Solutions
Contents Page
Objectives ........................................................................................................................................ 2
Components for Configuring an S7-300 ...... 3
Mounting Positions for an S7-300 Configuration ...... 4
Expansion Capabilities for an S7-300 ...... 5
Installation Rules ...... 6
Installation Aids ...... 7
Installation Checklist 8
Installing the Rail (Part 1) 9
Installing the Rail (Part 2) .... 10
Checklist for Electrical Configuration .............................................................................................. 11
Wiring the Front Connector ............................................................................................................. 12
Preparing for Operation 13
Changing the Backup Battery in the S7-300 ................................................................................... 14
Exchanging Signal Modules in the S7-300 ......................................................................................... 15
Changing the Fuse in Digital Output Modules of the S7-300 .......................................................... 16
Using the Electronic Manuals 17
Exercise 1: Using the S7-300 Manuals 18
Exercise 2: Wiring the Signal Modules 19
Installation/Maintenance of the S7-400 Programmable Logic Controller ......................................... 20ff
Objectives
Component Function
Power Supply ... converts the supply voltage (120/230 V) to 24 VDC operation
(PS) voltage to supply the S7-300
Interface Modules ... connect the bus between the racks (tiers)
(IM)
Signal Modules (SM) ... adapt various process levels to the S7-300.
(Digital/Analog) accessories: bus connector, front connector
Rail You snap the power supply, CPU, IM, and up to eight signal modules onto the rail.
Power Supply The power supply is available in 2A, 5A, and 10A output current at 24V. The
output voltage is isolated, short-circuit proof and stable at no load. An LED lights
up for error-free operation. The LED flashes when there is an output voltage
overload.
You use a selection switch to change the primary voltage between 120V and 230V.
Central Processing The CPU has the following elements on its front side:
Unit (CPU) • Status and error LEDs,
• Operating mode selector, removable key with four switch settings,
• Connection for 24V supply voltage,
• Multipoint interface, MPI, for the programming device or connecting to
an additional programmable logic controller,
• Battery compartment, (not on Compact_CPUs and CPUs after October, 2002)
• Compartment for a memory module (not on the CPU 31X IFM).
Signal Modules These modules are selected according to their voltage range or output voltage. A
bus connector is included with each module, which together make up the
backplane bus. The process signals are connected to a plug-on front connector.
CP A communication processor for the PROFIBUS, Industrial Ethernet, and other bus
systems.
1.01:133
1111111111111111111
1111111111111111111
1111111111111111111
1111111111111111111
1111111111111111111
•
U
E ■
SIMATIC S7 • SITRAIN Training for
V Automation and Industrial Solutions
Date: 18.092009
Siemens AG 2008. All rights reserved. File: SERV1_03E.4
Mounting Position The slide above shows the possible horizontal or vertical mounting positions.
Temperature Depending on the mounting position, you can have the following ambient
temperatures for operating the programmable logic controller:
Maximum Expansion The slide above shows the maximum expansion for an S7-300/CPU314/315.
The total expansion permits up to 32 modules, with up to eight modules per rack
(tier). There are no slot rules for signal modules, function modules, and
communications processors. That is, they can be used on any slot.
Interface Interface modules (IM 360/361) are used to loop the bus between the racks.
Module (IM) The IMS interface represents the sender, and the IMR interface represents the
receiver. The interface modules must be used in their specified slots.
If needed, an additional power supply can be provided in the expansion rack.
There is the hard-wired IM 365 interface module as an economical variation for
the two-tier configuration. (No additional power supply is needed; no CP can be
connected).
Local Segment Certain function modules, such as the FM NC, can have their own I/O assigned
to them. This provides an FM module with its own I/O area, which can be
accessed very quickly. This I/O area is referred to as a local segment.
One local segment can be configured per rack. During running operation, the
CPU can no longer access this I/O.
Distance The following cable lengths are available between the tiers:
Two-tier configuration with IM 365: maximum 1m
Multi-tier configuration with IM 360/361: maximum 10m
Installation Rules
❑ The interface module always occupies the space next to the CPU
C) .1
Rules The most important rules for the mechanical configuration are listed in the slide
above.
Parts List This list specifies the modules of the PLC and where they are configured. The
system designer must create this list.
Checklist Displays the procedure for installation. A suggestion for the sequence is
presented on the next page.
Installation Checklist
• Snap a bus connector onto the CPU and install the module !
•
• Snap a bus connector onto each of the I/O modules and install
the modules !
• Plug on the front connectors and insert the labeling strips and
the slot number !
Checklist The checklist provides only the sequence for the individual activities. The
following pages and the manuals contain the exact procedure.
57.2mml
9
466 mm
500 mm
800 mm 482 mm
530 mm
830 mm
A
SIMATIC S7 Date: 18.09.2009
41 A
SulT
toR
mAatilo
Nn Training
ni g
in f or
ndustrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_03E.9
Mounting Holes The measurement specifications for the mounting holes are indicated in the
following table.
Lt
-CO
L2
L3
Screws You can select from the following screw types to secure the rail:
Bus Connector A bus connector is included with every module. You snap the bus connector
onto the module before you install it.
Note: Begin with the CPU. No bus connector is snapped onto the last module.
Modules Hook the modules on the top of the rail in succession. Module sequence:
• Power supply
• CPU
• Modules.
You then swing down the modules and secure them with the hold-down screw.
Front Connector A front connector is then plugged onto the signal modules to connect the
process signals. A mechanical coding between the module and front connector
is provided to avoid interchanging the front connectors at a later time.
Slot Number Labeling strips for the slot number are included with the CPU. You can use
these strips to label the module's slot location. The slot number is needed later
to configure and assign parameters to the module.
•
1. Are analog signals or bus signals
used?
A
SIMATIC S7 Date: 18.09.2009
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_03E.11 •
Point 1 Shielded cables must be used for analog signals or bus signals (PROFIBUS).
Point 2 When cables are laid with signals > 60 V, you must lay the cables in separate
bundles or cable ducts. For signals >400V, you must lay the cables outside of
cabinets with a minimum clearance of 10cm.
Point 4 Special lightning protective measures are required here, such as laying cables
in metal conduits grounded on both sides.
SIEMENS
Cables Use flexible cables with a cross section of 0.25 to 1.5 mm2.
Core end sleeves are not required. If you want to use them, then use only ones
without an insulating collar according to DIN 46228 Form A.
Wiring Position Press the reset button on the top side of the module and drag the front
connector to the front until it latches. The front connector has no connection to
the module in this position. Wiring is also made easier, because you can more
readily access the terminals.
Connection Refer to the section about signal modules in the instruction manual.
Assignment As a rule, M is connected to terminal 20, and L+ is connected to terminal 2 or 1.
Optical Isolation The digital input modules and output modules are optically isolated. Either eight
or 16 inputs or outputs have a common ground or return (M connection).
Cable Length A cable length of up to 600 m is permitted with unshielded cables (exception:
analog modules). The maximum cable length is 1000 m for shielded cables.
Laying Cables To implement a correct EMC configuration, use the notes in the section on
configuring the electrical structure for an S7-300 in the instruction manual.
Separate bundles or cable ducts are required when signal cables and heavy
current cables (>60 V) are laid together.
Keyswitch The keyswitch is used to select the operating mode (STOP, RUN, and memory
reset). This keyswitch also provides protection for the user program. If the
switch is removed in the RUN position, it is possible to read out the user
program, but it is not possible to make changes.
Memory Module Before you insert the memory module, you must switch the CPU to the STOP
state, or you must switch off the supply voltage.
Battery only exists in CPUs that were delivered until Oct. 2002
Change Frequency You should change the battery after one year.
Notes Only CPU's that were delivered until Oct. 2002 have a backup battery.
Change the backup battery during POWER ON only, otherwise the data in the
user memory will be lost.
Warning You are not to exchange modules while there is data traffic via the MPI. If the
CPU is not in the STOP mode, there could still be data traffic on the
communication bus (MPI). This situation would lead to a system fault. If you are
not certain, pull out the connector to the CPU's MPI interface.
— — ■
,.n..k
• 0 Switch the CPU to Stop !
0 Switch the load voltage off !
• SM 322, 16 x AC120V
• SM 322, 8 x AC 120/230V
Fuses You can use the following fuses of the 8A/250V type:
• Wickmann 19 194-8A
• Schurter SP001.013
• Littlefuse 217.008
6
0.- Bookmark .. ■I1
1 D Back to home ." Find CI 1
.5 D Title
Find What: j flattery Find A gain
a5 ElEMI
D 1 Preface 1"" Match Whole Word Only Cancel 0
. D 2 Guide to the S7-330 documentati
D3 Installation Order
r Match Case IllI
r Find Backwards n
n D 4 S7-300 modules
I— Ignore Asian Character Width
7,k' 5 Configuring Fl
f+-[216 Installation
- ,- 5 Config uring
E 0 7 Wiring
5.1 Summary of the Content
.•=--D 8 Addressing 52 Bast Principles of Planning
l-E-.0 9 Commissionin g 5.3 Component dimensions ..
,--- 5.4 Arranging modules on a single rack
D 10 Maintenance 5.5 Arranging modules on mukiple racks
,--D 11 Testing functions, Dia gnostics a - 5.6 Selection and installation of cabinets.
5.7 Example: Selecting a cabinet.
+= --012 Appendix 5.5 Elm tical assembly, protective rileOW= Mid gl.ding.
D13 Glossary 5.8.1 Grounding concept and overall structure.
5.8.2 Installing an S7-300 web grounded reference potential . 5-
i.' -C1 Index 5.8.3 histalling an S7-300 with ungrounded reference potential
(not CPU 312 IFM or CPU 314)....
5.8.4 bolded or non-lsolated modules?
5.8.5 Grounding.
5.8.6 Overview. Grounding
5.9 Selecting the load powersupply unit . 5
5.10 Planning subnets
, . . ,
--- 1
.2_1 1. II I 3 of 256 e H 8,5 x 11 in 0 : 1=1 IN 1
El. Manuals When you install the STEP 7 software, you can also install the electronic
manuals for STEP 7.
You will need the Acrobat Reader software to read the manuals. It can also be
found on the STEP 7 CD.
The menu options Simatic - Documentation - English take you to a list of
existing manuals.
Manual Collection AllSIMATIC manuals (Automation Systems, SW, HMI, Networks) can be
ordered as a CD collection.
Download You can download the most recent electronic SIMATIC manuals free of charge
from the Internet. Visit the Product Support Homepage
(www.siemens.de/Simatic).
Search To quickly find information, use either the detailed table of contents. You can
directly open the pages marked in green with a mouse click.
Or, alternatively, you can use the Search function to search for a term, such as,
"Battery". As a result, all locations where the term can be found are displayed.
Again, you can jump directly to the locations that are marked in green.
1. How many racks with how many modules each can be installed in the
S7-300?
max. ............. racks with ............. modules each
4. How many digital inputs and outputs can the CPU 314 address and how
large is the process-image input table (PII) and the process-image output
table (PIQ)?
Process-image input table: ........... bytes = .............. digital inputs
Process-image output table: .......... bytes = .............. digital outputs
5. At which voltage levels does the digital input module SM321; D132/24V
deliver
signal state '0' . ............... V to ........... V
signal state 1 '. ......... V to ........... V
6. What is the maximum output current that the digital output module SM322;
D032; DC24V/0.5A delivers at
signal state '0' . ............... mA (residual current)
signal state '1' ......... A
L+ L-
8 17- 13
20 16
DI/
DO
323
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Task The following sensors and actuators are to be connected to the digital input and
output module 6ES7 323-1BEIxx-OAA0 at Slot 6 :
• momentary-contact switch 1 at input I 8.0
• momentary-contact switch 2 at input I 8.5
• LED at output Q 8.0
What to Do In the picture complete the necessary wiring. Also consider the power supply of
the sensors, actuators and the module.
Note Use the manual for the terminal assignment or use the wiring diagram on the
inside of the digital module's front door.
Contents Page
Component Function
46
SERV1_03E.21 ,, Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Introduction You need the components specified in the slide above to configure an S7-400.
Usable as
Type of Rack
Central i Expansion
rack : rack
1
UR1 / UR2
(Universal Rack) P Bus
Yes Yes
K Bus
i
CR2
(Central Rack) P Bus, Segment 1 P Bus, Segment 2
Yes No
K Bus
ER1 / ER2
(Expansion Rack) P Bus
No Yes
/1
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_03E.22 VIZ Automation and Industrial Solutions
UR1/UR2 Racks that can be used as central and as expansion racks. The UR1 rack has
18 slots and the UR2 has 9 slots for S7-400 modules.
CR2/CR3 Rack used as a central rack. The I/O bus (Peripheral bus) is divided into two
segments with 10 and 8 slots. The communication bus is continuous.
The CR3 rack with only four slots is designed for distributed automation
solutions.
ER1/ER2 Racks used as expansion racks. ER1 has 18 slots and ER2 has 9 slots. The I/O
bus has the following restrictions:
• no interrupt processing
• no 24V supply for the modules
• no backup of the modules.
Connecting CR/ER You need interface modules (IM) to connect expansion racks (ER) to the central
rack (CR). You can insert one or more send IMs in the central rack. The send IM
has 2 interfaces. You can connect 4 expansion racks to each interface.
Installation Rules
0 The power supply must be inserted on the far left (slot 1) and
the receive IM must be inserted on the far right
D Please ensure that there is a low-resistance connection
between the rack and substructure, such as through contact
washers
LI Connect the rack to building ground with at least 10 mm2 cable
o Remove the slot covers before you install the modules
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_03E.23
7'SITRAIN
lit:
Training for
Automation and Industrial Solutions
Rules The most important rules for installing an S7-400 are given in the slide above.
w
(Refer to the "SIMATIC S7-400 and M7-400 Programmable Controller,
Hardware and Installation" manual).
Installation Checklist
ANY
■Nis,
■
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date
File:
18.09.2009
SERV1_03E.24
4' SITRAIN Training for
Automation and Industnal Solutions
Checklist The checklist provides only the sequence for the individual activities. The
following pages and the manuals contain the exact procedure.
Installing Racks
•
❑ Screw the rack to the substructure (M6 machine
screws) !
Introduction The racks are designed for installation on walls and installation in frames and
cabinets.
Mounting The rack has four cutouts on the side for mounting. The cutouts are suitable for
19 inch frames.
You also need 6.4 mm washers according to ISO 7092 (DIN 433).
Installing Modules
MID
•
❑ Remove the slot covers.
Grasp the cover at the indicated locations and pull the
cover forward to remove it !
A
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008 All rights reserved. File: SERV1_03E.26
Layout The power supply must be inserted on the far left (slot 1). The receive interface
module (receive IM), if used, must be inserted in the extreme right slot of the
rack it's in.
Tool You need a screw driver with a 3.5 mm (1/4") blade width.
❑ Open the power plug (screw in the cover) and the strain relief
device !
❑ Connect the wires and tighten the strain relief device !
❑ Close the power plug cover !
• ❑ Push the power plug to a dead stop in the guide notch on the
power supply !
• crimp connection
• screw-type terminal
• spring connection
You can insert the front connector only if the module is installed and screwed
down tightly.
Note The front connectors have a jumper that is needed by some modules. Do not
remove this jumper.
•
O Insert the key in the mode selector switch!
O Insert the backup battery (or batteries) !
o Adjust the BATT INDIC switch for monitoring the
battery on the power supply !
• 0 Insert the memory card in the CPU .
SITRAIN
SIMATIC S7 Date: 18.09.2009
gip Automation and Industrial Solutions
Training for
Keyswitch The keyswitch is used to select the operating mode (STOP, RUN, and Memory
Reset).
This keyswitch also provides protection for the user program. If the keyswitch is
removed in the RUN position, it is possible to read out the user program, but it is
not possible to make changes.
Backup Battery Depending on the power supply, you can install one or two backup batteries to
buffer the user program and the retentive bit memories, timers, counters and
data blocks. You can also connect an external battery to the EXT.-BATT.
receptacle on the CPU.
Memory Module Before you insert the memory module, the CPU must be switched to STOP.
There are two types of memory cards:
CI Use the ribbon loop to pull the battery (batteries) out of the battery
compartment !
Change Frequency You should change the battery after one year.
Note Change the backup battery during POWER ON only or with a connected
external supply. Otherwise, the data in the user memory will be lost.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 30 Installation and Maintenance of a PLC
SIEMENS
• J Switch the CPU to STOP or make sure that the user program permits
modules to be exchanged in the RUN state !
0 Loosen the hold-down screws of the front connector and remove the
front connector !
•
_.i Loosen the hold-down screws on the module and swing the module out
0 Hang in the new module of the same type and swing it down !
110 /
O Fr; My_Project
Si '
in 67_300 Station
-
I E. 11 CPU 315-2 DP S7_300_Sle TP170B_Colot Ch07_Er1OF WIN) PROFIBUS[1)
Ch6 Analog
—
CO Sources
iA Blocks
MICROMASTER_42C
TP170B_Color
WinCC flexible RT
IEFQ Ch07 Error
Sources
Blocks
Contents Page
Objectives 2
From Process to Project 3
STEP 7 Project Structure 4
Interesting Facts about Multiprojects 5
Creating an S7 Project 6
Inserting an S7 Program 7
Standard Library ............................ 8
STEP 7 Help System .................... 9
Context-Sensitive Help in STEP 7 10
Setting the PG/PC Interface .... 11
Project: OFFLINE / ONLINE View 12
"Accessible Nodes": ONLINE View (project-independent) 13
Erasing a Memory Card (Memory or MMC Card) ........ 14
Exercise 1: Setting the PG Interface to MPI ........ 15
Exercise 2: Performing a CPU Memory Reset and a Warm Restart ........ 16
Exercise 3: Retrieving a Project and Saving It as "My_Project" 17
If You Want to Know More ........ 18
SIMATIC Manager Customizing Options 19
Objectives
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_04E.2 gor SITRAIN Training for
Automation and Industrial Solutions
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 2 The SIMATIC Manager
SIEMENS
Project Management
SIMATIC Manager
<
Hardware
Communication
FB21
OB1
11.0 I1 1 Q4.0
H ) Software 4—
Process When you take a closer look at a process you want to automate, you will find
that it is made up of a multitude of smaller sections and sub-processes, which
are all interlinked and dependent on one another.
The first, most important task is to break down the automation process as a
whole into separate sub-tasks.
Hardware and Each sub-task defines certain hardware and software requirements which the
Software the automation system must fulfill:
Hardware:
- Number and type of inputs and outputs
- Number and type of modules
- Number of racks
- Capacity and type of CPU
- HMI systems
- Communication structures
• Software:
Program structure
Data management for the automation process
Configuration data and parameter assignment data
- Communication data
Program and project documentation
7
HI Fr
SIMATIC 300(1)
CPU 315-2 DP SIMATIC Touchpenel Chap14_Faults MF1(1) PR0FIBUS(1)
[11 ChapOttfigital_Op 300(1)
al Sources
{ Blocks
,T i MICRONIASTER SIMATIC Manager [My Pro ject -- D:157-Pro jekteWein Pro ]
Touchpanel i
1993 Edit Insert PLC New Options W dow He
E d Chap14_Faults
Drii:I PINIX
a
Sweet Rai pH © ft I < No Fits >
la Blocks , My_ Project
E SIMATIC 30011) 4E+ ID. cf
H III CPU 315-2 DP System data OB1 FC14 FC15 FC16
rr Chap09_cicitl_Op
al Sources
Cd Enla
rF j MICROMASTER_420
Touchpanel FC17 FC18 FC19 VAT_Numbe_
:, a Chap14_Faults
Sources
Blocks
A
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_04E.4 Mr'
, Automation and Industrial Solutions
Project Structure Data is stored in a project in the form of objects. The objects in a project are
arranged in a tree structure (project hierarchy). The tree structure displayed in
the project window is similar to that in the Windows Explorer. Only the icons for
the objects are different.
Project Hierarchy 1st. Level: The first level contains the project icon. Each project represents a
database where all the relevant project data are stored.
2nd. Level: • Stations (such as the S7-300 station) are where information
about the hardware configuration and parameter assignment
data of modules is stored.
Stations are the starting point for configuring the hardware.
• S7 Program folders are the starting point for creating (writing)
programs. All the software for a parameter-assignable
module from the S7 range is stored in an S7 Program
folder. This folder contains further folders for the program
blocks and sources.
• Subnets (MPI, PROFIBUS, Industrial Ethernet) are part of an
overall network.
3rd. and subsequent levels: Depends on the object type of the next-higher
level.
ST-SERV1
SITRAIN Training for The SIMATIC Manager
Automation and Industrial Solutions Page 4
SIEMENS
g
▪ Message_R
S7-Sokitions
E SFC_Correnunicatim
EE SIMATIC 300-LEFT
E SIMATIC 300_RIGHT
E MeldeRezept_L
• Melde_Rezept_R
A
SIMATIC S7 ji SITRAIN
Training for
Date: 18.09.2009
File: SERV1_04E.5 Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Multiproject A multiproject folder is a folder for all projects and libraries of an automation
solution that contains one or more STEP 7 projects and, optionally, also
libraries. The projects within the multiproject can contain objects with cross-
project interrelations (such as cross-project S7 connections).
Benefits When projects are a component of a multiproject, their scope can be smaller
and easier to follow.
With the help of the multiproject you can, for example, create a project for every
operator for distributed editing and divide the stations according to their
operator between the projects.
Cross-project functions make sure that you can almost handle a multiproject
like one single project.
Examples of cross-project functions
• Cross-project functions in STEP 7 (basic package):
• Save As (save multiproject with all projects in another location)
• Archiving (multiproject with all projects)
• Adjustment of cross-project networking (such as, bringing together subnets)
• Updating the view (all projects of a multiproject)
Creating an S7 Project
57 Memory Card
Memory Card File a Ethernet 121:157_Courses \PR 0 3_Loe \Ethernet
GD-Communication DAS7_Courses5PRO3_Loe GD-Kommu
Delete... Et) Lueftunglnitialserung D:157_Couises1LueftunglnitialisierungsT est
Reorganize... amy_pro,ect D:157_Kurse SERVl_L
Manage... a 57-Solutions D: \97_Courses \PR 03_Loe1S7-Loesu
SERV1_A D: S7_Couises \SERVLA
Archive...
ENcrovi c \c7 1-',.....-.ACCP1/1 I
Retrieve.,.
rF
3 SERV/2_5 (Project) -- DA57_Courses \SERY2_1. .• ....... **
r Library
Exit Alt+F4 5jareSPADcalin
t1DAS7_Courses Browse..
SIMATIC Manager The SIMATIC Manager is normally started by double-clicking on the "SIMATIC
Manager" icon which appears on the Windows desktop after the STEP 7 Basic
Package has been installed.
Creating a Project Select the menu options File 9 New or the icon in the toolbar to open the
"New" dialog box for creating a new project or a new library.
Enter the project name in the "Name" box and click the "OK" button to confirm.
Notes 1. The "Storage location (path)" displays the path that was preset in the
SIMATIC Manager under Options -> Customize.
2. You can also use the "New Project" Wizard to help you create a new
project. Select File 9 New project and follow prompts.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 6 The SIMATIC Manager
SIEMENS
Inserting an S7 Program
..141z.1
Fie Edt rjreat PLC View Options Window Help
D fa; Raba,
I [i
21,
R Ill I a II<NoFilta> ail ra MI I it?
Subnet
I 57 PT
2 M7 Program
S7 Software
3 Program
57 Sock
4 Drive
I'17 Software
5 51NAMIC5
Symbol Table
Text Library
External Source,..
WinCC flexible PT
WVICC Object
Parameter
External parameters...
Z17My_Projer I - Di 57_Courses My_Proje ..1412..1
c
.pew)
-
2 Global labeling held
Inserting a Program Select the Insert - Program - S7 Program menu to insert a new program into
the current project.
When you insert an object, the system automatically gives it a relevant name,
such as "S7 Program(1)". You can then change this name if you like.
Standard Library
OK Cancel l Help
,
,Standard Library -- C:'" Program Files' ,.Siernens Step7 571ibs stdlib30
—11:11.2s1
Opens a project to be selected or a t 7.WIMI1111101 Comm cation Blocks
-' zv
d IEC Function Blocks
Id Miscellaneous Blocks d Organization Blocks
PID Coned Blocks a S5-S7 Convertng Block:
AD System Function Blocks TI-S7 Convertng Block:
A
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_04E.8 Automation and Industrial Solutions
Introduction Libraries are used to store reusable blocks. The blocks can be copied into a
library from existing projects or they can be created directly in the library
independent of projects.
Standard A Standard Library is installed when you install STEP 7. You can access this
Library standard library from the SIMATIC Manager (File 4 Open 4 Libraries) or from
the Block Editor ( Overviews 4 Libraries). The library contains the following S7
programs :
Communication Blocks:
Functions (FC) for communication between the CPU and the distributed I/O
via communication processors.
Organization Blocks: Organization Blocks (OBs).
S5-S7 Converting Blocks:
Blocks that emulate STEP 5 standard function blocks and that are necessary
for converting STEP 5 programs.
TI-S7 Converting Blocks:
Generally usable standard functions such as analog value scaling.
IEC Function Blocks:
Blocks for IEC functions (IEC: International Electrotechnical Commission), such
as for processing time and date information, for string processing and for
selecting maximum and minimum.
PID Control Blocks: Function blocks (FBs) for PID closed-loop controls.
System Function Blocks:
System Functions (SFCs) and System Function Blocks (SFBs).
Miscellaneous Blocks:
FCs and FBs for switching between daylight savings time and standard time
(summer and winter times).
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 8 The SIMATIC Manager
SIEMENS
DUM?1,1,101 Contents 11
Introduction
Getting Started
Press Hot-key Fl
Using He
About
Project Object
The project represents the entirety of all the data and programs in an automation solution, and is
Provides various waysto ea
located at the top of an object hierarchy .
Position in the Project View
Example
A
SIMATIC S7 Date: 18.09.2009 .
nradi nin
Automation T
ingufsor
tri
al Solutions
Siemens AG 2008 All rights reserved. File: SERV1_04E.9 d
r„,,,MA I IF manager - [St andard t diraity -- 1: ",Program Files >, Siernens Step] \ stdlib90] .J.01LI
c
• Pie Eh Wert PLC New Optia-ss Virdow Help
..1212g
ll ou;11?1,1J6 Fire >
•
u•anisaia Luray
Coarrxxxcaoon Blocks
111
==11=2!!!!=11111111i11 1110111111111=1111111111117Amml
ivi ,J IEC Function Blocks
STL
±rI Misceleneous Blocks
SFC2
p SFC3
SET_RTM
CT RL_R TM OIL
••• System fu •
System Iwiction 1.0
Press Hot-key Fl
± Organcation Blocks
p SFC4
• IA PID Control Blocks
2 SFCS
• S5-S 7 Converting Blocks
SFC6 Fie Edit Bookmark Options Help
- System Function Blocks
S0 SFC7 2 I Help on STEP 7[ I
a Blocks LWent. I Ind" I I E" I Sc I ' Glossary
p SFC9
• al TI 07 Converting Blocks
7 SFC10 Reading the Time with SFC 1 "READ_CLK"
p SFC11
p SFC12
p SFC13 Description
p SEC14
S:/ S FC1 5 With SFC 1 'READ_CLK" (read system clock), you read the current date or current time of the system clock of the
CPU
t;i• SFC17
Error Information
See Chapter Evaluatina Errors with the Output Parameter RET VAL
See also:
Context-Sensitive With the context-sensitive help, you can find information directly connected to
Help ... the selected object. As the slide shows, the object can be a system function or
it can be an STL instruction in a block, for example.
... Activating You can activate the context-sensitive help from any tool by selecting the
relevant object and then pressing the Fl function key.
Use the "Help on STEP 7" button to jump from the context-sensitive help to the
general help.
Note You can find additional information on STEP 7 in the electronic manuals.
Choose the following menu options to open the electronic manuals:
Start - Simatic - Documentation
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 10 The SIMATIC Manager
SIEMENS
Diagnostic
cP5si t impo
CP5611(PPI)
CP5611PROFIBUS DP Slave)
I Copy._
Zj CP56111PROFIB U S I <Active>
._
Properties - CP5611(MPI) 2sJ
Parameter assign MPI
communications
MPI network)
- Station Parameters
- Interlaces --
Add/Remove.
r PG /PC is the only master on the bus
Address: 10
Interface Parameter
CP5611 Assignment Used: OK
Timeout. II s
CP5611 (MPI)
Network Parameters
CPU
OK Default I Cancel I Help
General You use the "Set PG/PC Interface" tool to define the connection between an
application such as STEP 7 and a module such as CP 5611. The tool is
activated with Start - Settings 9 Control Panel .
Interface Parameter Here, enter the module used, such as, CP5611 and the interface used, such
Assignment Used as, MPI. If you connect the PG to the PROFIBUS, use the setting CP5611
(PROFIBUS). To save a switch-over of the PG/PC interface, you can also use
the setting CP5611 (Auto). The bus parameters are then automatically
determined. With this setting, however, the connection takes longer.
Properties In this tab, you adapt the parameters of the interface. For "Address", enter the
MPI address of the PG. This must be unique in the network.
To make communication possible, the "Transmission Rate" and "Highest Node
Address" parameters must be the same for all nodes (stations).
The "PG/PC is the only master on the bus" setting is only activated if only
slaves are connected to the PG.
Diagnostics With this, you can check whether a connection can be made.
a
MyPropect Project
E S7_300_Station
▪ II CPU 315-2 DP
0- ' ....... Q ..... 0- OFFLINE
L1,11101% F
..
a 0.
774 myProlect ...•••
Project S7,30Intation CF 0-
0- 0-
ONLINE ...rill CPU 315-2 DP Systemdaten 061 FC1 FC14 FC15 FC16
••• j E1 1:j S7program
..•
a •
MICROMASTER_420
0- 0- CF
5 g Touchpanel
FC17 FC18 FC19
A
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_04E.12
A SITRAIN Training for
Automation and Industrial Solutions
Offline View In the project window of the SIMATIC Manager, the offline view displays the
project structure stored on the hard disk of the programming device.
• The "S7 Program” folder contains the "Sources" and "Blocks" objects.
• The "Blocks" folder contains the system data created with the HWConfig
tool and the blocks created with the LAD/STL/FBD Editor.
Online View The online view shows the offline project structure in the left window and in the
right window it shows the blocks stored online in the selected CPU.
As a result, the "S7 Program" seen in the online view only contains the "Blocks"
folder which contains the following objects:
• System data (SDB)
• User blocks (OB, FC, FB)
• System blocks (SFC, SFB).
The title bar in the online window is highlighted in color.
Changing Views Changing between offline and online view takes place:
• through the View - Offline or View - Online menu items
or
with the corresponding icon in the toolbar:
- Online
- Offline
Note You can arrange the "ONLINE" and "OFFLINE" views next to each other (as in
the slide) or under each other with Window - Arrange - vertical
(horizontal)
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 12 The SIMATIC Manager
SIEMENS
r--1 1-711X
Insert PLC View Options Window He - 151 X
e File Ed/
..... ar
4
I < No Fier> J'Ytt
ea - , .11 as rth M=1
iiSystem data 0 0131 0 0835 0FB1
= in Accleisible Nodes
= (73 PROFIBUS - 2 0 FB2 0 FB3 gFB4 0. FB 30
0. FB31 0 F899 0 FC31 0 FC42
aPROFIBUS - 4 (passive) gFC50 gFC105 a. DB10 0. DB20
0. DB30 gDB31 0. DB32 g01333
0 DB40 0 DB99 0 08112 a. DB123
gSFBO 0.SFEI1 0. SFB2 0. SFB3
a. SFB4 0 SFB5 10 SFB32 0. SFB52
gSFB53 0. SFB54 gSFB75 0.SF1381
0. SFCO 0 SFC1 0 SFC2 0 SFC3
a. SFC4 0 SFC5 0 SFCS 0. SFC7
0. SFC11 0. SFC12 0. SFC13 0. SFC14
0. SFC15 0. SFC17 a. SFC18 0. SFC19
0. SFC20 0. SFC21 0. SFC22 0 SFC23
a. SFC24 0. SFC28 0. SFC29 0. SFC30
0. SFC31 gSFC32 0. SFC33 0. SFC34
A
SITRAIN Training for
SIMATIC S7 Date: 18.09.2009
SERV1_04E.13
gr Automation and Industrial Solutions
File:
Siemens AG 2008. All rights reserved.
Area of Use This type of connection provides you with quick access, such as for service
purposes. You can access all accessible programmable modules (CPUs, FMs,
CPs) in the network. You choose this method when you don't have any project
data about the target systems on your PG.
What to Do You can activate the "Accessible Nodes" window with the menu options PLC 9
Display Accessible Nodes. In the "Accessible Nodes" object, all accessible
programmable blocks in the network are displayed with their address.
Note Nodes (stations) that are not programmable with STEP 7 can also be displayed
(such as programming devices or operator panels). On the CPU to which the
PG is connected, the addition (directly) is displayed. In the slide, the CPU with
the MPI address =2.
D QUIT 111ft .
X lib rt II < No Fitter >
Accessible Nodes System data 081 OB35 A
Etiji
r PROFIBUS = 2 FB1 la FB2 FB3
to Blocks rat FB 4
• Ea PROFIBUS = 4 (passive)
fa FB30 CZt FB31
Reason During a CPU memory reset, only the RAM work memory of the CPU is reset,
not the memory of the possibly inserted memory or MMC card. That means
that the user program stored on the inserted memory card is retained.
Memory Card is The memory card can be erased online directly on the CPU using the function
Inserted in the CPU "Accessible Nodes":
SIMATIC Manager -4 PLC 9 Display Accessible Nodes
then select all blocks .9 Delete
Memory Card The memory card can be erased using a programming device with a suitable
interface. For this, the memory card must be inserted in the module slot and a
IT] new window has to be opened that displays the contents of the memory card.
SIMATIC Manager 9 File 9 S7 Memory Card 9 Delete...
Note The data format of SIMATIC MMCs does not correspond to the data format that
is used by MS Windows. Accordingly, SIMATIC MMCs can not be read, written
or erased with the Windows Explorer!
Caution If SIMATIC MMCs are formatted in MS Windows, then they can no longer be
used in a SIMATIC S7!
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 14 The SIMATIC Manager
SIEMENS
Diagnostics.
11112=1 —
CP5611IPPI)
CP5611(PROFIBUS - DP Slave] _J Copy..
"itgl CP5611 (PR Fl BUS) <Active) MPI
41 JJ 1
— Station Parameters
Parameter assignment of your
communications processor CP5611 for an PG/PC is the only master on the bus
MPI network]
Address: 1°
[Interfaces
Add/Remove: Select._ [ Timeout _-_J
— Network Parameters
OK Cancel I He
Transmission Rate: 1187. 5 Kbps
Highest Station Address: 1 31
Task The PG's interface is to be switched to MPI so that an online connection to the
CPU can be established.
RUN-P
2. Hold (Press) the mode selector switch in the MRES
RUN position until the STOP LED has flashed twice slowly.
Release the mode selector switch so that it returns to
STOP CID the STOP position.
MRES
RUN-P
RUN RUN
4. Set the mode selector switch to the RUN-P (RUN)
STOP
STOP CI)
position. (A warm restart is carried out in the transition
MRES
from STOP to RUN/RUN-P)
MRES
Task You are to perform a CPU memory reset and check whether the memory reset
was successful.
What to Do 1. If a CPU with MMC is used at your training area, the MMC must first be
explicitly erased.
For example, SIMATIC Manager - Accessible Nodes - in the Blocks
folder select all blocks 4 Delete
2. Carry out the memory reset according to the steps in the slide above
(manually and from the PG).
3. Check if the memory reset was successful. It was successful if only system
blocks (SDBs, SFCs, SFBs) are left in the CPU
SIMATIC Manager 4 Accessible Nodes - Double-click on MPI=2
- Click on Blocks
Notes To make sure that no "old" blocks are left in the CPU, a memory reset of the
CPU should be performed. The following steps are carried out during a
memory reset:
• All user data is deleted (Exception: MPI parameter assignments and the
contents of the diagnostic buffer are retained).
• Hardware test and initialization
• If an Eprom memory card or a Micro Memory Card (MMC) is installed, the
CPU copies all data on the cards that is relevant for execution back into the
internal RAM after the memory reset.
• If no memory card or Micro Memory Card is installed, the preset MPI
address on the CPU is retained. If, however, a memory card is installed, the
MPI address stored on it is loaded.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 16 The SIMATIC Manager
SIEMENS
Gets object Nom the arcNve. Dateityp: PKZip 4.0-Archive ('. zip) Abbrecher
OK I Cancel
Retrieve (3020:58)
OK
Task You are to retrieve a project and save it under the name "My_Project".
Note The following pages contain either further information or are for reference to
complete a topic.
❑ g? ustorritze arl+Alt+E
Simulate Modules
Customize
Columns
Language Genetal
Message numbers
I Date and Time of Day 13=111■11=111=11116F
Columns Message numbers I Archiving
Mnemonics
national Language
Example 1
Language General I Date and Time of Day I View I
German U El .0 - Storage location lot projectsimultiproiects
! ID: SLcourses Browse...
(1" Eng4h A 11 C
ID:197_courses Browse...
OK Cancel I Help
SIMATIC S7 Date:
File:
18.09.2009
SERV1_04E.19
SITRAIN Training for
Re Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
"Language" Tab • National Language: You can select the language you want to use for the
SIMATIC Manager, menus, dialog boxes, help, etc. (Only the languages that have
been installed appear in the list.)
• Mnemonics: You can select the mnemonics you want to use for programming the
S7 blocks
"Date and Here you specify how you want to represent the date and time, for example, in the
Time of Day" Tab Diagnostic Buffer.
"View" Tab This is where you specify how project objects are to be displayed on the screen.
"Columns" Tab This is where you specify which columns are to be displayed when the Detail view is
switched-on (see "Help").
"Message numbers" This is where you specify the type of message number assignment.
Tab
"Archiving" Tab Here you specify the default program that is to be used to archive and retrieve files, as
well as the associated directories.
Contents Page
Objectives ...................................................................................................................................... 2
Hardware Configuration and Parameter Assignment ...... 3
Inserting a Station 4
Starting the Hardware Configuration Editor ...... 5
Generating a Hardware Setpoint Configuration ...... 6
Addressing S7-300 Modules 7
DI/DO Addressing in Multi-Tier Configurations ...... 8
Module Address Overview ....... 9
Variable Addressing 10
Edit Symbols, Monitor/Modify Variables 11
CPU Properties: Cycle/Clock Memory 12
CPU Properties: General (amongst others MPI Address) ............................................................... 13
Saving Station Names in the CPU 14
Saving the Setpoint Configuration and Downloading it in Modules ................................................. 15
Uploading the Actual Configuration to the PG ................................................................................ 16
Exercise 1: Adapting the Setpoint Configuration 17
Exercise 2: Assigning Parameters to the CPU Clock Memory and Testing It 18
If You Want to Know More ............................................................................................................. 19
CPU Properties 20
CPU Properties: Startup 21
CPU Properties: Retentive Memory ............................................................................................... 22
CPU Properties: Protection 23
CPU Properties: Diagnostics/Clock ............................................................................................... 24
CPU Properties: Communication 25
Further Processing of Hardware Stations in the CA01 Electronic Catalog ..................................... 26
Exporting a Hardware Station ........................................................................................................ 27
CA01: Selection Assistant for SIMATIC ......................................................................................... 28
Parts List and Description 29
Objectives
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_05E.2 0 1 SITRAIN Training for
Automation and Industrial Solutions
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 2 Hardware Configuration
SIEMENS
HW Configuration The modules are supplied from the factory with preset parameters. If these
default settings are OK, a hardware configuration is not necessary.
A configuration is necessary:
• if you want to modify preset parameters or addresses of a module (such as
to enable the hardware interrupt of a module)
• if you want to configure communication connections
• with stations that have distributed peripherals (PROFIBUS-DP)
• with S7-400 stations that have several CPUs (multicomputing) or
expansion racks
• with fault-tolerant programmable logic controllers (option package).
Actual Configuration In an assembled system, the actual existing configuration and parameter
assignment of the modules can be uploaded from the CPU. This creates a new
HW station in the project.
A configuration upload is necessary, for example, if the project structure does
not exist locally at the PG. After the actual configuration is read out, you can set
parameters and add part numbers.
Notes With the S7-400, the CPU can be assigned parameters in such a way, that when
there are differences between the setpoint configuration and the actual
configuration, the CPU startup is interrupted.
To call the HW Config tool, there must be a hardware station in the SIMATIC
Manager.
Inserting a Station
VSIMATIC Manager - My_Prtgett
=_Llalx]
He Edit Insert PLC Options ldow Help
Ion Subriet
I SOMATIC 400 Station
SOMATIC 300 Station
<No Fit. > ml,liesemlysemik?
Program 3 SOMATIC H Ration
4 SIMATIC PC Raton
5 SOMATIC HMI Staten
57 Block
6 Other station
M7 Software
7 SOMATIC 55
Symbol Table 8 PG/PC
Text Library 9 SOMATIC OP
Este:mai Source... A SIMATIC 200 Staten
WinCC flexible PT
Pena Oblea
Insert Station
You insert a new station in the current project by selecting the menu options
Insert 4 Station 4 SIMATIC 300 Station or SIMATIC 400 Station.
You can then change the name that is automatically given to this station -
"SIMATIC 300 (1)" - to one of your choice.
ST-SERV1
SITRAIN Training for
Hardware Configuration
Automation and Industrial Solutions Page 4
SIEMENS
Hardware Config. This tool helps you configure, assign parameters to and diagnose the hardware.
"Configuring" This is a window in the "Hardware Configuration" application you use for
inserting components from the "Hardware Catalog" window.
The title bar of this window contains the name of the project and the station
name.
You can add PROFIBUS slaves that do not exist in the catalog later on. To add
slaves, you use GSE files that are provided by the manufacturer of the slave
device. The GSE file contains a complete description of the device according to
PROFIBUS / PROFINET conventions.
To include the slave in the hardware catalog, use the Options 4 Install New
GSE Files menu and then Options 4 Update Catalog.
End
Proas: I tandad
SM 321 0116a4C120V
SM 321 0116a4C1213/
SM 321 0116,0C24V
SM 321 01164)C24V
SM 321 0116pDC24V
SM 321 0116NDC2W
SM 321 13116a0C24V
1
41.1 J (0) UR SM 321 0116NDC24V
SM 321 01164)C24V
Slot Module Order number Finevare MPI a.. I add... O... Cont.. SM 321 011 6NDC241/. In
1 PS 3075A 6E57 3074E400-0AM SM 321 0116eDC24V, In
2 CPU 315-2 DP 6E57 315-2AF03-0A80 V1.1 2 SM 321 011 6,0C2iN, In
,12 DP ..
Urri SM 321 Dll EoDC48-1 25
3 SM 321 D116KNAMUR
4 r D132iDC24V 6E07 321-113L00-0AA0 0 3 SM 321 13116eUC21/484--
5 SM 321 0132x4C120V
6 SM 321 DI3243C24V
7 SM 321 0132,0[24V
8 SM 321 DI4KNAMUR,E:
9 SM 321 DI6i,AC1213/230
3: j
10
11
6E67 321.1BL00-06A0
DOA input module 013224V.
invPing 32; also avoid:kr as SIPLUS
module with order number EAG1
Press F1 to get Help.
Generating a This means specifying how the modules are to be arranged in the rack. This
Setpoint configuration, specified by you, is referred to as the setpoint configuration.
Configuration
Rack For example, you open a SIMATIC 300 station in the Hardware Catalog.
Opening the "RACK-300" folder shows the icon for a DIN rail. You can insert this
in the "Hardware Configuration" window by double-clicking on it (or using drag &
drop).
Two rack component lists then appear in the two-part window: a plain list in the
top part and a detailed view with order numbers, MPI addresses and I/O
addresses in the bottom part.
Power Supply If a load current power supply is required double click or use drag & drop to
insert the appropriate "PS-300" module from the catalog in slot no.1 in the list.
CPU You select the CPU from the "CPU-300" folder, for example, and insert it in slot
no. 2.
Slot No. 3 Slot no. 3 is reserved as the logical address for an interface module (for multi-
tier configurations). If this position is to be reserved in the actual configuration
for the later installation of an IM, you must insert a dummy module DM370
(DUMMY).
Modules From slot no. 4 onwards, you can "insert" a choice of up to 8 signal modules
(SM), communications processors (CP) or function modules (FM) from the
"Hardware Catalog" using drag & drop or with a double-click. The slots on which
the selected module can be inserted are automatically highlighted in green.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 6 Hardware Configuration
SIEMENS
Slots With the S7-300, the slots are logical not physical slots since the rack or the DIN
rail does not have any slots or interfaces. Still, the slots are numbered and each
logical slot has a default address assigned to it which is automatically used
when the system is not parameterized.
Slot 1 This is reserved for the power supply module. With the S7-300, a power supply
module is not necessarily required.
The S7-300 can also be operated with 24V from another power source.
Slot 3 This is solely reserved for an interface module (IM) for multi-tier configurations
using expansion racks. If no IM module is installed, the logical slot remains free
even though physically there is no space.
If the slot is also to be reserved physically (such as, for installing an IM module
at a later date), you can insert a DM370 dummy module.
Slots 4-11 These are the slots for I/O modules, communications processors (CP) or
function modules (FM).
Bit and Byte On slots 4 to 11, each module is assigned a so-called "module address"
Addresses that is always the same as the address of the first input or output byte of the
module. The addresses of the other I/O bytes then follow consecutively.
When you use default addresses, you lose 2 address bytes per slot when 16-
channel DI/DO modules are used!
•
PS 4.0 8.0 12.0 16.0 20.0
CPU IM • 0.0 24.0 28.0
Rack (Send) to to to to to to to to
cj 0 3.7 7.7 11.7 15.7 19.7 23.7 27.7 31.7
Slot 1 2 3 4 5 6 7 8 9 10 11
Multi-Tier The individual slots also have default addresses in a multi-tier configuration.
Configurations
Examples:
• Q7.7 is the last bit of a 32-channel DO module plugged into slot 5 of rack 0.
• IB105 is the second byte of a DI module in slot 6 of rack 3.
• QW60 is the first two bytes of a DO module in slot 11 of rack 1.
• ID80 is all four bytes of a 32-channel DI module in slot 8 in rack 2.
ST-SERV1
SITRAIN Training for Hardware Configuration
Automation and Industrial Solutions Page 8
SIEMENS
PS 307 SA
Met "Address Overview"
II CPU 315-2 DP .4 Isobar
II DP 4, Status Bar
0
Ir Pdate F5
D032x0C24V/0 5A kit° Arrange F4
11" 7
Ir 018/D08,424V/0 54
7 Ir 41202811
Addresses from
Address area horn: 0 to 1023
1111111■11111= Available addr assign Yes
7
Rack/ 0/2
~J 101 UR slot
Dose Help
Address Overview The I/O addresses can be displayed via the menu option View Address
Overview ...
Variable Addressing
I— -
r HW Conlin - (SIMATIC 300(1) (Configuration)
j g gtt e I l
(0) UR
M
Properties - D132xDC249 - (RO/S4)
r Ps 307 5A
IF CPU 315-2 DP General Addresses
II DP — Inputs -
r System Default
OK Cancel 1 Help
Addressing The modules are assigned fixed slot-dependent addresses with the S7-300
(CPUs without DP interface) and S7-400 (without hardware configuration).
Variable With the S7-300 (CPUs with integrated DP interface) and with the S7-400,
Addressing you can assign parameters to the starting addresses of the modules.
Part process images can be defined only in the S7-400. That way, specific
inputs and outputs (such as time-critical signals) can be combined into one
group. A system function triggers the updating of a part process image in the
user program.
Note If the system data is not stored on a memory card, all module parameters and
therefore also the modules' assigned addresses are lost after a CPU memory
reset. Without the memory card this means that the original slot-dependent
addresses of the S7-300 and the default addresses of the S7-400 become valid
once more.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 10 Hardware Configuration
SIEMENS
Delete Del
Go To
•e
elpj
. (0) UR Monitor y
Address I Symbol I Date type Content Path IMy_Prolect SIMATIC 300(11\CPU 315-2 DP
mitum. L_vveight_invidid BOOL Indicator 141- weiptt trveltl
,d Address) Symbol I Dispel Status velue I Modify °Wel 1
Indicator 1511 System ON . •_
2 0 4.1 L_SYSTEM BOOL
3 0 42 L_MAN BOX Muter ligit MAN mode
,
in1, 0 4.0 1__Weight_invele BOOL LI true
4 0 43 L AUTO BOOL IndiCela 1511 Automatic mode 0 41 'L SYSTEM' BOOL 11:. false
0 1 41 0 4.2 -L_MAN" BOOt. (J ean true
SIMATIC S7
Siemens AG 2008. All lights reserved.
Date:
File:
18.09.2009
SERV1_05E.11
win SITRAIN Training for
Automation and Industrial Solutions
Symbols You can directly access the symbol table from the "Hardware Configuration"
tool. This allows you to assign symbolic names to the inputs and outputs during
hardware configuration or at a later date when you can make supplements or
changes.
You open the symbol table with a right mouse click on the module. Select Edit
Symbols in the follow-up box. A section of the symbol table with the relevant
addresses is then opened.
Monitor/Modify You can monitor or modify the addresses of the configured modules directly
Variables from the Hardware Configuration tool. The signals of the input modules can be
"checked" and the signals of the output modules can be "controlled" using the
Monitor/Modify (Variables) function.
Product Support Directly from the Internet, you can fetch information on modules or components
from the Product Support pages. As well, it is also possible to update HW Config
by incorporating individual components such as new CPUs or new DP devices
into the current STEP 7 version.
Requirements:
The PG/PC has an Internet connection, a browser for displaying Internet pages,
and the function is enabled in the Hardware Configuration Settings along with
the specification of the Internet address.
Note "Symbolic Addressing" and the editing of symbol tables is dealt with in depth in
the "Symbols" chapter.
I
4 0132,d)C24V 6E67 321.1BL00-0
5 D032sEiC24V/0 54 6E57 322-181_00-
6 018/D08s24V/0 54 6E57 323-1BH 00-134.40
Al2s1 288 US7 1313T am .riestn
8
Cancel Help
9 Clock Memory Bit 7 1 6 1 5 1 4 3 1 2 1 1 1 0
10
11 Frequency (Hz) 10.5 10.621 1 11.251 2 1 2.5 1 5 1 10
Clock Memory Clock memories are bit memories that change their binary value periodically
(pulse-to-pause ratio 1:1). Each bit in the clock memory byte is assigned a
particular period/frequency.
Example of a flashing light with a flashing frequency of 2Hz:
111 . 3 Q8 .7
)
OK
OK Cancel I Help
/1
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_05E.13
"General" Tab The "General" tab page provides information about the type of module, its
location and, in the case of programmable modules, the MPI address.
MPI Address If you want to network several PLCs using the MPI interface, you must assign a
different MPI address to each CPU.
Click the "Properties..." button to open the "Properties - MPI Interface" dialog
window, which contains the "General" and "Parameters" tabs.
—
Auto Menge
My_Station
7
1.
. Update hardware diagnostics cyclic*
Update Cycle 10 s
tU Blocks:* Ihttp://wowsiemens.com/autornabon/stepThwconfig1
A My_MM420
1:11 My_TP170B OK Cancel I Help
Area of Use When the checkbox is activated (check marked), the identifier of modules, DP
slaves, racks and stations are also included in the system data and are loaded into
the modules together with the system data. You enter the identifier in the
"General" tab of the objects.
This has the benefit that when you download the station !nto the PG (without
having the configuration information for the station), the object names are
contained in the station configuration.
Handling Activate the "Hardware Config" tool and select the Options -> Settings menu
options.
Note This function makes the loaded or diagnosed stations more transparent, however
also increases the load memory requirements!
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 14 Hardware Configuration
SIEMENS
004+P
Print Preview...
Page Setup... Fanwee MPI a.. I add... Q... Commit
1 My Project\SIMATIC 300(1) D 2
2 LusftungInitialsierung‘57_300 Ration Download
3 My_Project1,S7_300 Statim (only when CPU is
4 SE.118‘2_,RS7 31309tabon 0...3 in STOP mode)
• Exit Alt+F4
8 8
7 11 Al2x1213it SES 7 331.M601-n48o 304...307
8 ■..
nv
` S TRAIN
I
SIMATIC S7 Date: 18.09.2009
Training for
ISI Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_050.15
Save You select the Station Save menu to save the current configuration in the
current project (without generating system data blocks).
Save and Compile When you select the Station - Save and Compile menu or click the icon in the
toolbar, the configuration and parameter assignment data are also saved in
system data blocks.
Consistency Check You select the Station 4 Consistency Check menu to check whether it is
possible to generate configuration data from the entries made.
Download in Module You select the PLC 4 Download menu or click the icon in the toolbar to
download the selected configuration to the PLC. The PLC must be in "STOP"
mode!
System Data The system data blocks (SDBs) are generated and modified when you configure
the hardware and compile the hardware configuration. SDBs contain
configuration data and module parameters. When a system data block is
downloaded, it is stored in the CPU's work memory.
This makes it easier to replace modules, because the parameter assignment
data is downloaded to the new module from the system data blocks on startup.
The PLC must be in "STOP" mode!
In the programming device, the system data blocks are saved under: Project \
Station \ CPU \ S7_program \ Blocks \ System_data.
You double-click the System data briefcase icon to see the list of system data
blocks.
1.1
uploads the current station cafroureen to the creadan system (conflpealesn and wow,
Cancel I Help I
Actual Configuration During startup, the CPU generates an actual configuration. That is, the CPU
saves the arrangement of the modules and allocates the addresses in
accordance with a fixed algorithm. If no parameters have been assigned, the
default parameters defined at the factory are used.
The system stores this actual configuration in system data blocks.
Uploading to PG/PC There are two ways of uploading the actual configuration to the PG/PC:
1. In the SIMATIC Manager:
select the PLC 4 Upload Station to PG... menu.
2. In the HW Config tool:
select the PLC 4 Upload menu or click the icon.
Storage on PG/PC The actual configuration read from the hardware is inserted as a new station in
the selected project on the PG/PC.
Note When you read out the actual configuration, the order numbers of the modules
cannot be completely identified. For this reason, you should check the
configuration. If required, insert the exact module type of the existing modules.
To do so, choose the module, and then select the Options -> Specify Module
menu.
4 D1323d)C24V PR OF1BUS DP
5 D032rDC24V/0.54 PROFIBUS-PA
6 D18/D08x24V/0.5A E PROFINET 10
7 Al2x129it E
R E SIMATIC 400
71 p-- SIMATIC HMI Station
E 1111SIMATIC PC Based Control 300/400
Task Since different training units and CPUs are used for the courses, the CPU
available has to be integrated into the setpoint configuration.
ms*
General I Startup Interrupts
PS 307 50
2 r- CPU 315-2 DP Cycle
DP
Update OBI process image cyclically
4 II DI32xDC24V
Scan cycle monitoring time [ms1: 50
5 II D032xDC24V/0.54
6 II D18./D08ex24V/0.5A Minimum scan cycle -
7 II Al2x1213it Scan cycle bedlam communication [511 Fr
Size of the process image
11_1
11 2d
E (0) UR 0885 call up at I/O access error: I No 0B85 call up
Task Assign parameters to the CPU in such a way that the clock memory byte is
available on memory byte MB 10.
Then check the success of your parameter assignment with the "Monitor/Modify
Variable" function.
Note The following pages contain either further information or are for reference to
complete a topic.
For more indepth study we offer advanced courses and self-learning mediums.
CPU Properties
EL:11W Config - [SIMATIC 300(1) (Configuration) — My_Project]
011 Station Edit Insert PLC View Options Wildow Help I
Properties - CPU 315-2 DP - (R0/S2) _xj
JCicirt-e
Time-of-Day Interrupts Cyclic Interrupts I Diagnostics/Clock I Protection I Communication
CIE101111111111=r - General I Startup I Cycle/Clock Memory I Retentive Memory I Interrupts I
1 1 PS 307 5A N,
2 1- CPU 31:2bi. 2x Short Description: CPU 315-2 DP
Xl I- DP
3 64 KB work memory; 0.3 ms/1000 instructions; MP1+ DP connection (D pz-J
I
4 DI32xDC24V master or DP slave); multi-tier configuration up to 32 modules, Send and
Receive capability for lateral communication, constant bus cycle time,
5 D032x0C24V/0.5A
routing, firmware V1.1
6 DI8/D0EQ4V/0 54
7 412x1280 Order No./ firmware 6ES7 315-2AF03-64130 / V1.1
;1
Name: ICPU 315-2 DP
412141
.±.1 (0) UR
r Interface
Type: MPI
Slot Module Order number
Address: 2
1 PS 30754 6E57 3071 EA004440
2 CPU 315-2 DP 6ES7 315-2AF03-OADO Networked: Yes
X? DP
3 Comment:
4 DI32xDC24V 6ES7 321-1BLOO.OAAO
5 D032xDC24V/0.54 6E57 322-113L00-0AA0
6 IDI8/D08x24V/0.54 6ES7 323-113H00-04A0
7 .412x1284 6ES7 331-7K801-0030
8
9
10 OK Cancel I Help
Assigning You assign parameters to the modules to adapt them to the requirements of
Parameters the process.
Time-of-Day Interrupts I
Cyclic Interrupts 1 Diagnostics/Clock 1 Protection 1 Communication
General Startup Cycle/Clock Memory 1 Retentive Memory 1 Interrupts 1
OK I Cancel I Help
Startup The S7-300 and S7-400 CPUs have different startup characteristics.
Characteristics Only with CPUs with integrated DP interface (and S7-400) can you use the
"Startup if preset configuration does not match actual configuration" checkbox to
decide whether the CPU should start up if the setpoint configuration is not the
same as the actual configuration (number and type of modules installed).
The other S7300 CPUs go into RUN when the setpoint configuration is not the
same as the actual configuration.
Warm Restart The S7-300 only recognizes the "Warm restart" startup. Newer S7-CPUs also
recognize "Cold restart". All non-retentive addresses (PII, PIQ, non-retentive bit
memories, timers, counters) are reset (overwritten by 0) and the cyclic program
execution starts at the beginning.
Cold Restart Cold restart behaves the same as Warm restart, except that ALL - even the
retentive memory areas - are reset.
Hot Restart All - even the non-retentive - memory areas retain their contents and program
execution restarts where it stopped.
Retentivity
Number of memory bytes starting with MBO: 16
–Areas
DB No. Byte Address Number of Bytes
Retentive Area 1:
OK Cancel Help
Retentive Memory The "Retentive Memory" tab page is used for specifying the memory areas to be
retained after a power failure or during the transition from STOP to RUN.
A "warm restart" is performed in both cases on the S7-300.
Warm Restart with On warm restart, tne blocks stored in the battery-backed RAM (OB, FC, FB,
Backup Battery DB) as well as the bit memories, timers and counters defined as retentive
are retained. Only the non-retentive bit memories, timers and counters are reset.
Warm Restart If the RAM is not battery-backed, the information in it is lost. Only the bit
without memories, timers and counters defined as retentive and the retentive data
Backup Battery block areas are saved in the non-volatile RAM area.
After a warm restart (without battery backup), the program must be downloaded
again:
• from the memory card (if inserted) or
• from the PG/PC (if no memory card exists).
Note For CPUs delivered after Oct. 2002, a backup battery is no longer necessary.
All retentive data is saved on the MMC card in case of a power failure.
• 3: Write-/read protection
Password: ( Test mode
Enter again:
OK I __:_l
Car ocel Help
— System Diagnostics
r Extended functions
17 Report caused STOP
r Acknowledgment-triggered reporting of SFB33-35
Clock
Synchterization Synchronization Type Time Interval
In the PLC: INone J INone 2, j
On MPI: INone 1
.1 INone 1-1
On MFI: I l one LI INone —II
Correction factor: ID ms
OK I Cancel I Help
A
SITRAIN Training for
SIMATIC S7 Date: 18.09.2009
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_05E.24
System Diagnostics If the "Report cause of STOP" checkbox is deactivated (not checked), no
message is sent to the PG/PC or OP when the CPU goes into Stop mode ("CPU
Messages").
The cause of the stop is still entered in the diagnostic buffer.
Clock With networked stations, it is possible to synchronize clocks. Thus, for example,
a WinCC flexible station can synchronize all remote S7 stations to its own time
of day in a selectable time interval.
It is, however, also possible to automatically reset the clock by a specific
correction value in stand-alone devices.
Correction Factor The correction factor compensates for a loss or gain in the clock time within a
24 hour period.
Positive or negative millisecond values can be specified.
Example: If the clock is 3 seconds fast after 24 hours, this inaccuracy can be corrected
with the "-3000ms" factor.
Note The "Interrupts", "Time-Of-Day Interrupts" and "Cyclic Interrupt" tabs are
discussed in the "Organization Blocks" chapter.
PG Communication:
OP Communication:
S7 Basic Communication:
OK I Cancel I Help
SIEMENS
Export function
Import function
[Hardware
CA01 S7 Hardware
Electronic Catalog Station
Order lists
E-mail dispatch
Further processing
with text editors
Introduction As of STEP 7 V5, it is possible to handle station configurations not only together
with the entire project (such as, save or open), but also to resave them
independent of the project in a text file (ASCII file).
Ctrl+P
Print Preview... Export Fie:
Page Setup...
D: \ S7_Courses S7_300_Station.cfg Browse
I SERVI_S‘S7_300_Stetion
2 My_Project‘SIMATIC 300(1)
3 LueftunglnitialsierungL57_300_Station
Options Format
4 My_ProjectLS7_300_Station
r Export default values (7 Readable
Exit Alt+F4 I✓ Export symbols r Compact
10 I7 Export subnets
11
12
Exporting Open a station configuration or save the just edited station configuration (Menu
option Station 9 Save).
With the station configuration open, select the menu option Station 9 Export.
In the dialog box that then appears, enter the path and the name of the Export
File, the format and other options.
Acknowledge the settings with "Save".
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 27 Hardware Configuration
SIEMENS
ASST
Offline Mall
SILIUMERIK 8 SIMODRIVE
aroTirne PCS7
Fid nrk
apHonfigurator
tAhn-SPSOST ART
Tree search Extended search SNIATIC ABC Industual Automation Systems - PLC
Interactive Catalog Siemens Automation and Driv
Lt....? Drive Technology SIMATIC cord' oilers
11,1[2i Automation Systems
gr SIMATIC Industrial Automation Systems From the corrnact mini controller including the high-pe
meet every demarn and every requirement, whatever
I 1 Ela.,,k[i! PLC File Name: Folder:
I I EI:Ky Distributed I/0s SIMATIC selection assistant - Project Manager
II I Programming Devices let C:1abc
[a}-f SIMATIC Industrial soh, File Edt Paste View Settings ?
Micro Automation Sets Archiv_11_2003.cs bc
Selection Assistant With the SIMATIC selection assistant, you can make the necessary preparations
for importing a STEP7 hardware configuration file (<Name>.cfg).
Parts List Using the CA01 Catalog CD and the various register tabs, you can get
information about module component lists, pricing etc.
Symbolic Addressing
W:Symbol Editor - [S7 Program(2) (Symbols) -- My_Project \SIMATIC 3000Y\ .• r:']
yrnbol Table Edit Insert Mew Options Window Help
far, IA 1 4 ith 1ft I ..--) c-, I lAi Symbols .....s..9 1 k?
1 &
Status I Symbol / Address I Dab:trim I Comment •1,
1 L_Weight_hvalid Q 4.0 BOOL Indicator light - weigN invalid
2 1 L_SYSTEM 0 4.1 BOOL Indicator light System ON
3 1 L_MAN Q 42 BOOL Indicator fight MAN mode
4 L_AUTO 0 43 BOOL bcficator light Automatic mode
5 L_Restart man 0 4S BOOL Indicator light for manual wean rested —
6 L_Resteart_aut 0 4.6 BOOL Indicator fight for automatic warm rested
7 L_Conv_Faut 0 5.0 13001. Imitator fight Conveyor fault
8 L_Faull1 0 5.1 BOOL Indicator light Fault 1
9 L_Faut2 Q 52 BOOL Indicator igN Fault 2
10 L_Faut3 0 53 BOOL Indicator Nil Fault 3
11 L_S4_1411 0 5.4 BOOL Indicate. fight Wing at Bay 3
12 L_S5_3,-LB 0 5.5 BOOL Indicator light Transport Bay 3 -> Light barrier bay
13 L_S6_Final_Check 0 5.6 BOOL Indcator fight Fnal check at LB bay
14 L_Bsy1 0 8.1 BOOL Indeater fight Bay 1
15 L_Bay2 0 82 13001 Indcator light Bay 2
16 L_Bay3 0 83 BOOL Indicator light Bay 3
17 L_Bay-LB 0 8.4 BOOL Indicator tit Light barrier bay
18 K_Conv_RIGHT 0 es eax Run conveyer RIGHT
19 H_Conv_LEFT 0 8.6 8001 Run conveyor LEFT
20 Horn 0 8.7 BOOL Horn
21 QB_Simulator-LED OB 5 BYTE lower Simulator LEDs
22 QW_DigDisp GAM 6 WORD BCD cigltal display
23 Cl1N_Control 141420 GAM 42 WORD Control word for 144420
24 QW_Setp_141420 ON 44 WORD Setpoint speed for 144420
25 DEI_Instance_FB20_F... DB 2 FB 20 Instance DB for F1320, Evaluation of Fault 2
26 DB_Instance_FB20_F... 0f3 3 FB 20 Instance DB for F1320, Evaluation of Fat 3
27 DB_FB11_RurningLight DB 11 FI3 11 Instance DB for FBIl_RtrningLight
28 DB_F1317_Fault DB 17 FB 17 Instance DB for F1317 Faut evahation .1
Press F1 to get Help 1---- I— I 4
Contents Page
...........................................................................................................
Objectives 2
Absolute and Symbolic Addressing 3
Symbolic Addressing 4
The Symbol Table 5
Edit: Find and Replace 6
View: Filter 7
View: Sort 8
Editing Symbols in the LAD/STL/FBD Editor ......... 9
Symbol Information in the LAD/STL/FBD Editor ....... 10
Symbol Selection in LAD/FBD ....... 11
Symbol Table: Export ....... 12
Symbol Table: Import 13
Exercise 1: Creating a Symbol Table for the Conveyor Model ....... 14
Objectives
ll
SITRAIN Training for
SIMATIC S7 Date:
File:
18.09.2009
SERV1_06E.2 gi Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
A 10.0 A "SYSTEM_ON"
Q8.0 "LED ON"
A 10.4 A "M_FORW"
Q20.5 "MOTOR_FOR"
Call FC18 Call "COUNT"
.61
(max. 24 characters) (max. 80 characters)
Absolute In absolute addressing, you specify the address (such as input I 1.0) directly. In
Addressing this case you don't need a symbol table, but the program is harder to read.
Symbolic In symbolic addressing, you use symbols (such as MOTOR_ON) instead of the
Addressing absolute addresses.
You store the symbols for inputs, outputs, timers, counters, bit memories and
blocks in the symbol table.
Symbolic Addressing
Where are symbols used? Where are they stored? With what are they created?
Global Symbols Global symbols are declared in the symbol table and can be used in all blocks
of a program.
The name in the symbol table must be unique, that is, a symbolic name must
appear only once in the table.
Local Symbols Local symbols are declared in the declaration part of a block. They can be used
only within that block.
The same symbolic name can be used again in the declaration part of another
block.
Notes The LAD/STL/FBD Editor always displays symbols declared in the global
symbol table in quotation marks. Local address symbols (local variables and
parameters) are always displayed with a # (hash or pound mark) in front of
them.
You don't have to include the quotation marks or the hash mark when you enter
symbolic addresses. The program editor automatically adds these for you.
E
MyPioject
0111 S7_300_Station _DJ 12
1
II
E CPU 315-2 DP Sources Blocks
E S7ptogram
al Sources
Blocks
yi
E i MICROMASTER_420
2 Touchpanel
-a,Symbol Editor - (57program (Symbols) — MyProject 57_300 Station\ ,.1.g125.1
Symbol Table Edit Insert View motions Window 2_cl
irakia a y, Symbols I WI
Statu Swift( Address ' Data type Comment
70 OB WartnRestart 013 100 013 100 Warm restart OB
71 L_SYSTEM Q 4.1 BOOL Indicator tight System ON
72 L MAN 0 4.2 BOOL hclicetor ION MAN mode
73 L_AUTO 0 4.3 BOOL Include( nigh/ Automatic nada
74 L_Restart_man 0 4.5 BOOL Indicator tight for mental warm restart
75 L_Restart_aut 0 4.6 BOOL. Indicator NM for aulanath wean restart
76 L_Conv_Faut 0 5.0 BOOL Indicator light Conveyor fault
77 X 0 5.1 BOOL Indicator light Fault 1
78 L_Faut2 0 52 BOOL Indicator WI Faut 2
79 L_Fault3 0 5.3 BOOL Indicator Ugh Fault 3
80 = L_E■avl 0 8.1 BOOL Indicator NM Bay 1
61 L_Bay2 0 82 BOOL Indicator light Bay 2
62 = L_Bayl 0 6.3 BOOL Indicator NM Bay 3
63 L_Bay-LB 0 8.4 BOOL Indicator ight Light barrier bay
84 K Cony RIGHT 0 8.5 eoo1 Run conveyor RIGHT
--
Press F1 to get Help. r
Opening the Every "S7 program" has its own symbol table. You can open a symbol table
Symbol Table from the SIMATIC Manager, among other ways, with a double-click on the
"Symbols" icon.
You can also open the symbol table from the LAD/STL/FBD Editor using the
Options - Symbol Table menu option.
Table Structure In the symbol table, a line is created for every variable. You then enter the
symbol name, the address, the data type and a comment for the variable in the
columns. A blank line is automatically added at the end of the table for defining
a new symbol.
"Status" Column Invalid symbol definitions are marked as follows in this column:
= The symbol name or address is identical to another entry in the symbol
table.
X The symbol is incomplete (the symbol name and/or the address is missing).
Note As soon as a symbol table has been created, the declared symbols are also
available in all other tools (such as LAD/STL/FBD Editor, HW-Config, and
Monitor/Modify Variables etc.).
Find and Replace A number of options are available for finding and replacing text in the current
window:
• Find what:
Enter the text you are looking for.
• Replace with:
Enter the replacement text.
• From cursor down:
Searches downwards to the last line in the symbol table.
• From cursor up:
Searches upwards to the first line in the symbol table.
• Match case:
Only searches for the specified text with identical use of uppercase and
lowercase letters.
• Find whole words only:
Searches for the specified text as a separate word, not as part of a longer
word.
• All:
Searches through the whole symbol table, starting from the cursor position.
• Selection:
Searches only the selected symbol lines.
Note When looking for addresses, you must insert a wildcard after the address
identifier (? for one character, * for several characters), otherwise the address
cannot be found.
Example: For find and replace:
for example, replace all outputs that have address 8. with address 4.:
View: Filter
'Symbol Editor - [57 Program(2) (Symbols) -- My_Prolort SIMAT C 300(1) \ CPU 315-2 DPP 11711 J
Et, Symbol rode Eck Sleet I Hew Options Meow He
jranaleslxike - I Del
11111111111■1111111111fiffar-
Zoom In CITH-Nurn-r
Zoom Out CP1+Num-
Stem SYmb01
119 OB_Cycle Zoom Factor...
120 OES_Cycky -Fier List
1 21 081_110_FLT1
122 OB SlareFei
Na: Filter name:
Ce foe Maw
123
124
013 WarrnRe
p%' An
Ccrumns 11, 0, M, C, CC 071+K restart 013
-Pali far
lAll Symbols J (Selection in the Symbol Table
with Alt+0, ..,Alt+9)
MNAl2 Tooear
125 or-Pcri for
126 LWargrtirn 5C to 8w or Iptt - we New filter Dela, cs
127 L_SYSTEM upd.t. PS or Pare Sysl
128 L_MAN or Isrt MAP
129 L_AUTO 0 43 BOOL Incbcdce lett Auk — Display Symbol with Property...
130 L_Reatakman 0 4.5 1300L Indicator ept to r
131 L_Realart_aut 0 46 1930L becalm 1)1 to e Name. Monitoring: I' _II
.2j
'
1 18
132 L_Corn_Fati 0 5.0 DOM tectica VI Cm
133 L_Fautl 0 5.1 BOO. Indloalor Ipla Fad
Address:
_LI Op. Ctrl. + Monitoring: I' z_l
L _Fault2
.:_1
134 0 52 BOX Indicator Ibb Fad
Data Type: Message:
135 L_Fau1.3 0 5.3 SCOL Indicator NMI Feel I' _II
136
137
L S466
L_S5_3-Ple
0
0
5.4
SS
00C4.
13COL
Irdicator iptt Is
Ineacetor fpM Trar
Comment .
.:d Communication: I'
138 L_S6fInal_Cheick 5.5 DOM Indicator qt Fria Control at contact:
F—E
139 L_Bayl 0 6004 Indicator aget Bay
. -
140
Symbol Editor - [57 Prograrn(2) (Symbols) — My_Project S1MATIC Display Symbol with Status...
a
141
,
142 Symbol Table Edit Insert Vow Options Window Help
I Valid lInvalid
143
144
rai: 61 a Et) f' - I r Flared yew 2:1 (non-unique, incomplete)
Status Symbol 1 Mesas I OM* Woe I Cannon
145
LB I 8.0 I BOOL WI Pm
146 TSayl 81 5)00(.
Fiters the 3 T_Bay2 I 82 BOOL Fifer Cancel I Help I
0 8.3 8001 hlorneria
T_Bey-LB II 8.4 BOOL momectarreirmeroprourrierm--
BAY1 I 8.5 0001. Proxbray wary Bay 1
BAY2 1 86 DOOL Proyirdy mace Bay 2
BAY3 I 8.7 8001 Probriy sinew lbw 3
L
SIMATIC S7 Date: 18.09.2009
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_06E.7
View: Filter Only the symbols which meet the active filter criteria ("symbol properties") are
displayed in the current window.
You can apply several criteria at once. The following filter criteria can be linked
with one another:
Name, Address, Data Type, Comment, Operator Control & Monitoring,
Communication, Message.
Permissible wildcards are ? for one character and * for several characters.
Examples • Name: M*
Only the names that begin with "M" and that contain any number of
additional characters are displayed in the symbol table.
• Name: SENSOR_?
Only the names that begin with "SENSOR_" and that contain one other
character are displayed in the symbol table.
• Address: 1*.*
Only the inputs are displayed.
• Valid, Invalid
The symbols must be unique, that is, a symbol or an address must exist
only once in the symbol table. If a symbol or an address appears more than
once, the lines in which it appears are displayed in "Bold". If your symbol
table is long, and you want to find such ambiguous symbols or addresses
more quickly, you can display only these lines of the symbol table by
selecting the menu option View Filter and the attribute "Invalid".
View: Sort
v
a5ymbol Editor - [57 Program(2) (Symbols) -- My_Project \SIN1ATIL 300(1) \ CPU 315-2 DP]
a Symbol Tat* Edit Insertr h
rool Options Wridow Help .1.2J25.1
car, 61 ! IX gla 3 la zocf"^ Ctrl+Num+
wl
ZOOM Out Ctrl+Nurn-
Status I Symbol merit
37 FC_MM420 Zoom Factor... ontrol MM420
38 .FC_Sequenc .equencer for production fne
39 FC_Cornrnark
40 I FC_Scale
41 T_System_O Columns R, 0, 14, C, CC Ctrl+K emery contact Syste
J
42 T_System_O emery contact Syste 'F (NC contact)
43 T _Jou RION' v. 1.Mbar
conveyor R101-17;r:
VI collect
44 T_Jog_LEFT Status Bar -conveyor LEFT, y coiled
45 S_WA_Mode upd,t, FS ch - Operathg
Sort
46 T_M/A_Acc ary collect
47 S_VVeight/Quantity I 0.6 13001- Display quell
Column: Address Ascending
48 T_Ackn_WarrnRestarl I 0.7 BOOL Momentary contact
T_Ackn Fault I 1.0 BOOL Momentary coiled Address 4..c.Pndina
49
Address Descending
50 S_Faut1 I 1.1 BOOL Simulate Foul 1, 0.
Data Type Ascending
51 S_FauL2 I 1.2 BOOL Simulate Fault 2, Data Type Descending
52 SFaul3 I 13 BOOL Simulate Fault 3, Os Comment Asc
53 LB I 8D BOOL Light earner
54 T_Bay1 I 8.1 BOOL Momentary contact
55 T_Elay2 I 8.2 BOOL Momentary contact OK Cancel Help
56 T_Bey3 I 8.3 BOOL Momentary coded
57 T_Bay-LB I 8.4 BOOT Momentary contact Light barrier bay
58 BAY1 I 8.5 BOOL Proximity sensor Bey 1
59 BAY2 I 8.8 BOOL Proximity sensor Bay 2
60 BAYS I 8.7 BOOL Proximity sensor Bev 3
Sorts the display according to specific criteria. r--r---1
Sort The entries in the symbol table can be displayed in alphabetical order. You use
the View - Sort menu option to specify the column to be used as the point of
reference for sorting in the current window.
There is an alternative way to sort:
1. Click the column heading "Symbol, Address, Data type or Comment" for
sorting in ascending order in this column. Answer "Yes" when prompted.
2. Click the column heading once more for sorting in descending order in this
column. Answer "Yes" when prompted.
System ON/OFF
g...1 New network
E yr Bit logic
T_Syst es_ in= E Comparator
Cut Ctri+X
ON SR ESi Converter
II
Copy
0 Paste
Ctrl+C
CIAO
E -a Counter
E DB cal
•r_Systak_
On • Delete Del E Jumps
111 mInteger function
VI Insert Network Ctrl+R E Floating-point fct.
Insert Empty Box Silt+F9 E Move
Insert Symbol Cir1+3 fiA Prooram control
Go To
Edit Symbols... Alt+Return
Special Object Prq ties
— It Program e... Cal struc...
1 Ditpley Columns R, 0. M, C, CC
The symbols an welted eali, DE a 'Apply'
A
SIMATIC S7 Date: 18.09.2009 l v.
SITRAIN Training for
File: SERV1_06E.9 ik Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Edit Symbols With the menu option Edit 9 Symbols..., or a right mouse-click on the address
followed by the menu option Edit Symbols..., you can also assign symbolic
names to absolute addresses at a later point in time. These assigned names
are automatically entered into the symbol table.
If you assign a name that is already in the symbol table, it will be displayed in a
different color. Duplicate names cannot be used in the symbol table.
1
11 14 DIM WHEW 2 Into a Croesreimences Addlets 14o
Addressing In the LAD/STL/FBD Editor you can choose to display the addresses in one of
the following two ways when you select the View - Display with - Symbolic
Representation menu option:
• Symbolic Addressing or
• Absolute Addressing.
You can display the symbolic and absolute address assignments used in the
network along with their comments by selecting the View 9 Display with 9
Symbol Information menu option.
The assignments are found under the network in LAD/FBD and in STL they are
found in the statement line.
Symbol Information In the LAD/STL/FBD Editor settings you can select whether the symbol
information for the addresses is to be displayed directly at the address (see
right picture) or at the lower edge of the network (see left picture).
Note If you position the mouse pointer on an address, a "Tooltip" appears with the
symbol information for this address.
.
L_AUTO . "UTZ" 1.11.• Fault' •L_Bay-LB .
K Cony
RICKY .
lash_218 .
N_Ans_Leh BOOL 14.0 Aux. mg
N_Aux_Nan_ON BOOL 16.2 Edge e.
Network 2: Indicator ligt
Njur_Systam_011 BOOL 15.1 Edge at
M_Bayl_occup BOOL 14.1 Mowry
.
R_Cono_ N_Bey2_ocony POOL 14.2 Memory
.1_1070. RIM"
1_Bay3_occup BOOL 14.3 Memory
I VI- N_Bays_occup_1242 BOOL 33.0 m11 Bory
r1
111_Cono_Yoult BOOL 17.0 Memory
.8171° N_Cono_Yoult_INCE BOOL 33.1 Neaory
vi_ eN_Cono_Jog_11... BOOL 30.3 mono,.
POOL 30.2 Memory
.1_1=0° RIGS(' IIN_Edge_Aux POOL 101.0 Ausi11]
H— kiault1 BOOL 17.1 Memory
IIN_Youle2 3001 17.3 peso,
f----I BOOL 4 10.5 Memory
Network B: Title:
Initiallgtete BOOL 101.1 Memory
Cono_ 11_3og_LIIT 3001 16.3 Memory
sremro• lain_Jeg_BICHT BOOL 16.2 Mowry
16114_11/1_Acc•pt_BNI BOOL 4 30.5 Mowry
Nissing or incorrect. Bit
itM_N/A_ModeSel... BOOL 21 30.4 timnoryyj npai.
mourn WILCII/ ■
Mery cc inconectki eddies, eess <5.2 Pee 1
Introduction To simply writing a symbolic program , you can use the View 4 Display with 4
Symbol Selection menu option to show a selection of symbols.
When you label the address and you enter the first letter of a symbol name, a
section of the symbol table pops up that starts with this letter.
All valid addresses for this block are displayed. These are all global variables
(even those declared in data blocks), local variables (temporary and static) and
the parameters of the affected block.
In the first column of the symbol selection you can either display the symbol or
the absolute address. To make the choice, select the Options 4 Settings 4
View tab menu options in the LAD / FBD / STL Editor and define how you
would like to sort the selection list.
G Open... Ctrl+O
`ETo I le I
—
30
Close Ctrl+F-4
Ctrl-f5
inert
2ontrol of conveyor motor
1 -1
"aut evaluttion
Properties... 2ourt parts
:curt parts using ad;
Where do you want to store the table?
33
Import...
34
35 111311 11111
..=t,c OEMIIIIII■OIIIIM JJ
36 mt.., arhp Store Speichen 1 0 S7 Courses I I iI
7 Print Preview... -.centre
38 Segue ,, LueftunglnitialisierLeigsTest i DSERV2_L
Page Setup...
39 "ontrc „ My_Proje
40 1 fly_Project%5IMATIC 300(1)‘CPU 315-2 DPI...115ymbols for an PRO3_Loe
41 2 My_Profect \ 57_300_5tation1CPU 315-2 DPI. ../Symbols nonfat SERV1_A
42 3 SERV2_5‘57_300_Station 1, CPU 315-2 DP1... \Symbole nentar „ SERVI_L
43 4 SERV1 5‘57 300_5tation I CPU 315-2 DPV.A.Symbole cony. SER92_13
44 come
45 Exit Alt+F4 tch - e
46 I T_MfA_Accept I 0.5 BOOL , Momentar
Dateinarne: FiTbol_Table Speichern
47 S_VVeighbQuartily I 0.6 1E1001 0 ri Distal:
48 T_Ackn WeemRestart I 0.7 BOOL 1.4otnentar
DateitYP: (System Data Format l SDFI Abbrechen
49 T_Aclen_Faut I 1.0 BOOL Momenter
Copies the selected symbol table or parts of it to a file (of a different format).
A
In which format do you want to store
the table?
General The Symbol Table - Export menu option enables you to store symbol tables in
different file formats so that you can work on them with other programs. You
can select the following file formats:
• ASCII Format (*.ASC)
- Notepad
- Word
• Data Interchange Format (*.DIF)
- EXCEL
• System Data Format (*.SDF)
- ACCESS
• Assignment List (*.SEQ)
- STEP 5 assignment list
Inserts a copy of a saved fie (of a different format D alert-lame: Symbol_T able sdf Enter file name
C
D atertyp: I System D ata Format r.SDF) Abbrechen I
General The Symbol Table 9 Import menu option enables you to import symbol tables
that were created with other user programs.
ul
"K_Conv_R1GHT" (Q 8.5) "BAY1" "BAY2" "BAY3" "LB" : .... "Horn"
"K Cony LEFT" (Q 8.6) (I 8.5) (1 8.6) (1 8.7) (1 8.0) .... (Q 8.7)
— —
67"
! I
I
I I I
' "
/ T— Bay1" "T Bay2" 1 "T Bay3" "T_Bay-LB"
i (I 8.1) '
I
8.2) : 8.3) (1 8.4)
"L_Bay1" "L Bay2" "1j Bay3" ".L_Bay-LB"
(Q 8.1) (Q
2) 8. (Q 8.3) (Q 8.4)
A
SIMATIC S7 Date:
File:
18.09.2009
SERV1_06E.14
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Task Include the symbols for the inputs and outputs of the conveyor model as seen
in the slide into the existing symbol table.
Contents Page
Objectives 2
Commissioning Checklist 3
LEDs on the S7-300 Power Supply 4
...........................................................................................................
LEDs on the S7-300 CPU 5
LEDs on Digital Modules 6
LEDs on the S7-400 Power Supply 7
...........................................................................................................
LEDs on the S7-400 CPU 8
Performing a Memory Reset and Warm Restart .......9
Calling the "Monitor/Modify Variable" Tool .....10
Monitoring and Modifying Variables .............................................................................................. 11
Saving the Variable Table ............................................................................................................ 12
Exercise 1: Testing the Conveyor Model's Sensor (Input) Wiring 13
Exercise 2: Testing the Conveyor Model's Actuator (Output) Wiring 14
Objectives
Commissioning Checklist
Checklist The checklist shows the individual preparatory steps for commissioning the
hardware. If you do not want to use the default setting, it may be necessary to
assign parameters to the modules before you check the inputs and outputs.
The individual steps are described in more detail on the following pages.
• up to 130% (static)
• up to 130% (static)
voltage depression,
reduces the service life
LED The power supply has a diagnostic LED "DC24V" on the front side of the
module. Use this LED to determine the state of the power supply.
CRJ315-2 DP _a.
Sr ? SF D:PUP-2 SF
SATS da,
u ,SAMENs
DC5v %Sv
+1 FRcE 4 FRcE
!FluN '{RIND
/stop
STO..
MR Es
S
'S -30 0
2 2
Pn 00,4.
ia
GUSa
Status Displays SF System Fault: group error, programming error or fault from a
( LEDs ) diagnostics-capable module
BATF Battery fault: battery is empty or is not present
DC 5V 5V supply voltage present.
FRCE Lights up when a forcing is active.
RUN Flashes when the CPU starts up and
is steady on in the RUN mode.
STOP Is steady on in the STOP mode,
Flashes slowly when a memory reset is requested and
flashes quickly when a memory reset is carried out.
SF DP System Fault DP: group error in the Distributed Peripherals
is steady on when there is a fault in the distributed peripherals
BUSF (BF) = Bus fault, is steady on when there is an interrupted cable, for
example.
Flashes when there is a station failure, for example
S7-300 S7-400
Status LEDs for every individual channel
• Signal state
at the terminals
(for digital inputs)
• Internal state,
before the opto-
coupler
(for digital outputs)
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_07E.6
A SITRAIN Training for
Automation and Industrial Solutions
Status LEDs There are LEDs for diagnostics purposes for every input and output channel on
the module. These LEDs can be helpful in locating program errors.
The LEDs indicate:
• the process state for digital inputs
• the process state for S7-300 digital outputs
• the internal state before the optocoupler for S7-400 digital outputs.
On/Off switch
(Standby)
Battery compartment I U.
r-
A
SIMATIC S7 Date: 18.09.2009
21 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_07E.7 Automation and Industrial Solutions
Power Supply The power supply (PS) supplies the internal 5V voltage for the modules.
Automatic adjustment is made for line frequencies from 48 to 64 Hz.
LED "BAF" Battery fault. Lights up if the battery voltage on the backplane bus is too low.
Example: No batteries present or battery failure and there is no external power
supply available.
LED "BATT1F/ Lights up in the case of battery reversal, if no battery is present, or the battery
BATT2F" is half discharged. The BATT.INDIC switch for battery monitoring is set to the
1BATT position (for one battery), the 2BATT position (for 2 batteries) or OFF
(no battery monitoring).
LED "DC 5V/DC 24V" Is lit when the 5V/24V DC output voltage is within the tolerance limits and
flashes to indicate voltage recovery after a short circuit or overload.
"FMR" Ackn.Switch Acknowledgement switch for acknowledging and resetting a fault message
when the fault has been eliminated.
ON/OFF Switch Switches the output voltage (5/24 VDC) to OV and switches off the LEDs by
(Standby) interrupting the control current circuit. (The power supply is then in standby
mode because the primary line voltage cannot be switched off.)
INTF 71
Fault LEDs CPUs have fault LEDs that provide first information about an occurred error or
that give the CPU status:
RUN-P
2. Hold (Press) the mode selector switch in the MRES RUN
RUN
position until the STOP LED has flashed twice slowly. STOP
Release the mode selector switch so that it returns to MRES
STOP CV
the STOP position.
MRES
within 1 sec
RUN-P Y
RUN 25.Turn (Press) the mode selector switch to the MRES posi-
;. RUN
tion once more until the STOP LED begins to flash quickly.
; .STOP
STOP CI) Release the mode selector switch so that it returns to MRES
the STOP position.
MRES
RUN-P
RUN 3. Set the mode selector switch to the RUN-P (RUN)
RUN
STOP
position ! (A warm restart is carried out in the transition
MRES
STOP _11.„,) from STOP to RUN/RUN-P) ,
MRES/III
Memory Reset When a memory reset is performed on an S7 CPU, the following happens:
• all CPU user data as well as the entire load and work memory are cleared
• the CPU interrupts all connections to other communications partners
• the CPU parameters and all modules are set to default values
• in the case that a memory card is used, the CPU copies the relevant portion
of the stored program needed for execution into the internal RAM
Warm Restart During a warm restart, the process images and the non-retentive data are
deleted. Then the cyclic program execution begins by reading in the process
image input tables (PII).
Area of Use The "Monitor/Modify Variables" test function can be started from the SIMATIC
Manager or from the LAD/STL/FBD Editor and is used to monitor and/or modify
variables in any format you choose.
Design of the The variables you choose are entered in a VAriable Table (VAT). With the
Variable Table exception of block-local, temporary variables, you can monitor (view) and/or
modify (control and change) all variables or addresses.
You can select the columns of the variable table to be displayed in the View
menu. The columns have the following meanings:
• Address: absolute address of the variable.
• Symbol: symbolic name of the variable
• Symbol comment: comment on the variable displayed
• Display format: a data format you can choose per mouse click (such as
binary or decimal), in which the contents of the variable is displayed
• Status value: value of the variable in the selected status format
• Modify value: value to be assigned to the variable
Inputting into the Entries for the variable table can be absolute or symbolic (provided the symbol
Variable Table exists). The comments displayed in the column "Symbol comment" are from
the symbol table. The comments appear automatically and cannot be changed
here.
Note To check the input and output wiring (regardless of the user program), you can
also call the Monitor/Modify Variables tool (VAT) directly from the HWConfig
tool (see the HWConfig chapter).
.11212_cl
td,.■ Table Edit Insert PLC Variable View Options Window He .12.1x1
The (monitor) status values are updated every cycle when you select the
Variable - Monitor menu option or click the icon (Monitor Variables).
4. Use the "Monitor" function to confirm that the modify value has been
entered in the variable you selected.
Modify Value Valid You can make the "Modify value" entered in a table invalid by selecting that
value and clicking on the icon. The now "invalid" value is displayed like a
4170 I comment. You can make the modify value "valid" again when you click on the
icon again. Only valid modify values can be activated.
Save Cb1+5
Ctr1-P
la
3 O
•
81 1_Bayl -
82 :L_Bay2" BC
My_Project 2:I IDAS7_Courses \My_PToie Browse-
I liTtt
aa O 8.3 1._Bay3' BC
la O 84 1._13ey-LB" BC tE, My_Prolect
la O
O
8.5 1(_ConvIk101-fr
8 6 :KCcrw_LEFT
BC
tic
E
E
SIMATIC 300(1)
CPU 315-2 DP
la • 8 7 1-lom. BC E a S7 Prcgarn(51
a Blocks
E sr My_Program
SERVI_S157_300_51ation
Object type:
1.1
OK Cancel H* I
.3
SIMATIC S7 Date: 18.09.2009
% SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_07E.12
Saving the You can use Table 4 Save or Table 4 Save as... to save a variable table.
Variable Table You can give the variable table any name you choose. The name is inserted as
the symbolic name in the symbol table.
You can reuse saved variable tables for monitoring and modifying, making it
unnecessary to re-enter the variables.
0(0) DR
: maload Module identification...
Online via assigned CPU services
",/load Module Iderticiration to PG...
2 CPU 315-2 Path: ISERV1_S S7_300_5tation\CPU 315-2 DP
If DP Faulty Modules
3 Addr ess Symbol Display format Status value Modify value
5
Ctrla-1)
If DI324/C24V MO". Worm."'
D0324)C24V., 8.0 i.e POOL
If DIS/D08x24V.
ir AI2 2ei
8 1 "T_Bay1"
8 2 "T_Elay2"
POOL
POOL
8.3 "T_Bay3" POOL
Update Firmware...
84 "T_Bay-LB" _ . POOL
411'•il (01 UR 5ave DevIce Nara_ to Mem,/ Card...
8.5 "BAY1" POOL
Slot Madrie Ethan* I ad
8.6 "BAY 2" POOL
8 7 "BAY3" POOL
O 8.0 BIN
.
1EM
E)i Trigger...
<>
Task In this exercise you are to check the wiring of the conveyor model's sensors to
the digital input modules directly from "HW Config". You will check the wiring of
the actuators in the next exercise.
3. To check the input wiring, press the sensors on the conveyor model one
after the other and observe whether the associated input states are
displayed on the screen
Wiring Error? If you discovered an error in your wiring test, please let the instructor know.
9
-- Run conditionally — Atm immedately
10 1..7 Monitor 6i4 Status Value J Enable Periph. Outputs
Close Help
Monitors and =dies the inoutsfoutputs of e modde or process Image
Task Now check the wiring of the conveyor model's actuators to the digital output
modules.
Wiring Error? If you discovered an error in your wiring test, please let the instructor know.
FB FC Symbol infosmation:
10.2 T_Jog_R1GHT -- Pushbutton (PB) jog conveyor
10.3 I' Jog LEFT -- Pushbutton (PB) jog conveyor
08.5 CRT -- Contactor for Conveyor Bolt
.2_11
Contents Page
Objectives .......... 2
Types of Program Blocks .......... 3
Program Structuring Possibilities 4
Process Images .......... 5
Cyclic Program Execution 6
Inserting an S7 Block 7
The LAD / FBD / STL Editor .......... 8
The STEP 7 Programming Languages .......... 9
Selecting the Programming Language 10
Programming in LAD and FBD ........ 11
Programming in STL ........ 12
Saving a Block 13
Calling a Block in OB1 14
Downloading Blocks into the PLC ........ 15
Simple Program Debugging ........16
Modifying Blocks 17
Exercise 1: Jogging the Conveyor Motor (FC 16) ........ 18
Exercise 2: Calling FC 16 in OB 1 19
If You Want to Know More ........ 20
Editor Customization: "General" Tab 21
Editor Customization: "View" Tab ....... 22
Editor Customization: "STL" Tab ....... 23
Editor Customization: "LAD/FBD" Tab ........24
Editor Customization: "Block" Tab ....... 25
Editor Customization: "Sources/Source Text" Tab ....... 26
Objectives
know and be able to select the LAD, FBD and STL programming
languages
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 2 Editing Blocks
SIEMENS
Operating System DB DB
Cycle TL
Time OB
FC FB SFC
Organization
Process Blocks
Error FB FC SFB
SIMATIC S7 Date:
File:
18.09.2009
SERV1_08E.3 V
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Blocks The programmable logic controller provides various types of blocks in which
the user program and the related data can be stored. Depending on the
requirements of the process, the program can be structured in different blocks.
Organization Organization blocks (OBs) form the interface between the operating system
Block and the user program. The entire program can be stored in OB1 that is
OB cyclically called by the operating system (linear program) or the program can
be divided and stored in several blocks (structured program).
Function Block Basically, function blocks offer the same possibilities as functions. In addition,
FB, SFB function blocks have their own memory area in the form of instance data
blocks. As a result, function blocks are suited for programming frequently
recurring, complex functionalities such as closed-loop control tasks.
System function blocks (SFB) are parameter-assignable functions integrated in
the CPU's operating system. Both their number and their functionality are fixed.
More information can be found in the Online Help.
Data Blocks Data blocks (DB) are data areas of the user program in which user data are
DB managed in a structured manner.
Permissible You can use the entire operation set in all blocks (FB, FC and OB).
Operations
---- Recipe A
-----
Pump
OB 1 OB 1 ---- Recipe B OB 1 — — --
---- Mixer
Outlet
-- — — Outlet
All instructions are The instructions for the individual Reusable functions are loaded into
found in one block functions are found in individual individual blocks. OB 1 (or other
(usually in Organization blocks. OB 1 calls the individual blocks) call these blocks and pass on
Block OB 1) blocks one after the other. the pertinent data.
/
SIMATIC S7 Date: 18.09.2009 21 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_08EA Automation and Industrial Solutions
Linear Program The entire program is found in one continuous program block.
This model resembles a hard-wired relay control, that was replaced by a
programmable logic controller. The CPU processes the individual instructions
one after the other.
Partitioned The program is divided into blocks, whereby every block only contains the
Program program for solving a partial task. Further partitioning through networks is
possible within a block. You can generate network templates for networks of
the same type.
The OB 1 organization block contains instructions that call the other blocks in a
defined sequence.
Structured A structured program is divided into blocks. The code in OB1 is kept to a
Program minimum with calls to other blocks containing code. The blocks are parameter
assignable. These blocks can be written to pass parameters so they can be
used universally.
When a parameter assignable block is called, the programming editor lists the
local variable names of the blocks. Parameter values are assigned in the
calling block and passed to the function or function block.
Example:
• A "pump block" contains instructions for the control of a pump.
• The program blocks, which are responsible for the control of special pumps,
call the "pump block" and give it information about which pump is to be
controlled with which parameters.
• When the "pump block" has completed the execution of its instructions, the
program returns to the calling block (such as OB 1), which continues
processing the calling block's instructions.
Process Images
S1 K1
I 2.0 Q 4.3
PII PIQ
Byte 0 Byte 0
Byte 1 Byte 1
Byte 2 Byte 2
•
A I 6.4
Q 4.3
CPU Memory Area CPU Memory Area
Introduction For the storage of all digital input and output states, the CPU has reserved
memory areas: the process-image input table (PII) and the process-image
output table (PIQ). During program execution, the CPU accesses these
memory areas exclusively. It does not access the digital input and output
modules directly.
PII The Process-Image Input table is the memory area in which the states of all
digital inputs are stored. The image is read in from the digital input modules at
the beginning of the cycle.
PIQ The Process-Image Output table is the memory area in which the states of all
digital outputs are stored. The image is output to the digital output modules at
the end of the cycle.
Outputs can be assigned as well as queried in the program.
User Program If inputs are queried in the user program (for example, A I 2.0), then the state of
this input that is stored in the PII is queried from the PII. This state cannot
change within a cycle since the PII is only updated or read in at the beginning of
a cycle. This guarantees that when there are multiple queries of the input in one
cycle, the same result is always delivered.
Double Assignment If an output is assigned a state in several locations in the program, then only the
state that was assigned last is transferred to the particular output module (see
slide):
1. Output Q 4.3 is assigned the state of the input signal I 2.0
2. In the same cycle, output Q 4.3 is assigned the state of the input signal
I 6.4. The result of this last assignment is transferred to the output
module.
As a rule, these types of double assignments are programming errors.
0
Call and execution of OB1
Starting When switching on or when switching from STOP 4 RUN, the CPU carries out
a warm restart (with OB100). During a warm restart, the operating system
deletes the non-retentive bit memories, timers and counters, deletes the
interrupt stacks and block stacks, resets all stored hardware interrupts and
diagnostic interrupts and starts the scan cycle monitoring time.
Scan Cycle The cyclical operation of the CPU consists of three main sections, as shown in
the slide above:
• The CPU checks the status of the input signals and updates the process-
image input table.
• It writes the values from the process-image output table into the output
modules.
Inserting an S7 Block
yorax,
General Part 1 I General - Part2I Cats I Attributes I
57 Software
147 Software
I Organization Block
2 Functionio
wom Et nm
ck E' ,„,-,
Name: II
v
Symbolic Name:
Symbol Table
4 Data Block
Text Library
'5 Data Type Symbol Comment:
External Source..,
WinCC flexible RT
6 Variable Table
Created in Language: I ST L
WinCC Object
Project path:
Parameter
Storage location
External parameters... ID:\S7_Courses My_Proje
of project:
tr:My_Project - i_Lourses My_Proje
Code Interface
E My_Prosect System data
E SIMATIC 300(1) g FC16 Date created: 10/12/2006 02:25:42 PM
E II CPU 315-2 DP g FC42 Last modified: 10/12/2006 02:25:42 PM 10/12/2006 02:25:42 PM
E S7 Program(5)
cr21 Sasser Comment:
illEEG
OK Cancel I Help I
Inserting a Block With the appropriate "Blocks" folder highlighted, from a specific "S7 Program",
select the Insert 4 S7 Block menu option to display a list of block types:
• Organization blocks (OB) are called by the operating system.
These blocks form the interface between operating system and user
program.
• Functions (FC) and function blocks (FB) contain the actual user program.
They enable a complex program to be divided into small, easy-to-follow
units.
After choosing the type of block you want, the "Properties" dialog box opens in
which you have to specify, among other things, the block number and the
programming language (LAD, STL or FBD).
When you have made your settings and confirmed them by clicking the "OK"
button, the new block is inserted in the current program.
y1i1 AD ,11 I AD [FL 1L - r _r Le.ymet or" - SERV 1 _S S7_300_5tatsm CPIS 315-2 OFM,AFC1b) .1Q.125.1
O. He ELIR Inset PLC Doisixi View Options Window Hails
,
D12;12-1611 ell x1Balel . 1_11
r ELI
" F ,,
*.161RI'll MI Id -IFI*1-01011-.1-*1 -1 le?j
3
•
"X_ Cony •M Coto
Jog_RICIFi_ Jog_LIYil "X_Jog_
*1_15AX. HMI' HMI" RIM"
i t VI ( )-I
Code Section El
A Network 2: Jog Conveyor UST
I Address
PDL_MAN
, Mods
FC_ComWslos
Typ Locabsn
R ,
114 1 /A L
Laotian
AW 2 /A
I LosaPte
M_ConsjogjEFIFC_ConyMotor ft kW 1 /AM I VA 2 /A
MCons_Ax01G- , FC_Oxrettitor R Ifh! 1 /A ; WO 2 /An
R M lop RIGHT :FC_Comelotor R INW 4 /0 i
Detail Window
i 113111113111111=NWIIM===IIM111121===WEMW1111130=W
Press Fl to got Help. 1 --- el kifine fAbs <5.2 No I 1 --;:
4
SIMATIC S7 Date: 18.09.2009
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_08E.8
Starting the Editor The easiest way to start the LAD / STL / FBD Editor is by double-clicking on an
S7 block in the SIMATIC Manager. The Editor has the following components:
Declaration Table The declaration table belongs to the block. This table is used for declaring
variables and parameters for the block.
The declaration table is discussed in detail in the "Functions and Function
Blocks" chapter.
Code Section The code section contains the program itself, divided into separate networks if
required.
A syntax check is made during instruction input (in STL) and in labeling
program elements or operation symbols.
Detail Window The detail window provides the following functions and information:
1: Error: lists the syntax errors found in the course of a context
check or a compilation procedure
2: Info: gives additional information such as "expected data
type of an address"
3: Cross references: a list of addresses used in the network and where they
are used in the entire program
4: Address info: enables you to monitor the addresses used in the
network
5: Modify: enables you to modify the addresses used in the
network
6: Diagnostics: display of existing data for process diagnostics (only if
configured)
7: Comparison: Navigation with the function "Compare blocks"
a
io. — Q8. 5
=
TO . 3
Ladder Diagram
FC16 Conveyor Control
?
.tetsicork 1: Jog Conveyor RIGHT
TO 2 TO . 3 08.5
71 I VI
Statement List
Introduction There are several programming languages in STEP 7 that can be used
depending on preference and knowledge. By adhering to specific rules, the
program can be created in Statement List and later converted into another
programming language.
LAD Ladder Diagram is very similar to a circuit diagram. Symbols such as contacts
and coils are used. This programming language often appeals to those who
have a drafting or electrical background.
STL The Statement List consists of STEP 7 instructions. You can program fairly
freely with STL. This programming language is preferred by programmers who
are already familiar with other programming languages.
FBD The Function Block Diagram uses "boxes" for the individual functions. The
character in the box indicates the function (such as & 4 AND Logic Operation).
This programming language has the advantage that even a "non-programmer"
can work with it.
Other Languages In addition to the STEP 7 Basic Package languages, there is a series of
engineering tools for the most varied of applications, such as:
Changes to the STL programming language in the current block. 0 loffhne lAbs < 5.2 I -
Inse 1;
View You choose the View menu to switch from one STEP 7 programming language
to another:
• LAD (Ladder Diagram)
• FBD (Function Block Diagram)
• STL (Statement List).
Program Language You can switch the programming language as you wish when you create as
well as later on.
LAD/FBD => STL You can always convert program sections that have been written in the
graphical programming languages (LAD/FBD) into STL. You should, however,
be aware that the result of this conversion is not always the most efficient
solution in Statement List.
STL => LAD/FBD It is not always possible to convert program sections written in STL into LAD or
FBD. The sections of the program that cannot be converted are left in STL.
Elements Frequently used LAD and FBD elements appear as icons in the toolbar. You
click them with the mouse to insert them at the selected position in the
program.
Toolbar icons in FBD: Toolbar icons in LAD:
Tg=5-Pcl-f AIA-W-0151L+1-11H
Overviews By clicking the "Overviews" symbol, a new window is opened with the following
contents:
Program Elements:
Shows all program elements and operation symbols.
(The contents of this window depends on the programming language -
LAD/STL/FBD selected)
Call Structure:
Shows the program structure and/or the block nesting, which block is called
from where.
Networks When you click the "New Network" icon in the toolbar, a new network is added
after the current network. You can also right mouse click and choose "insert
iu-of network".
s...1
If you want to insert a new network before Network 1, you must select the block
name before you click the "New Network" icon.
Empty Box You can use the Empty Box to insert LAD or FBD elements more quickly. You
can insert elements directly without having to select them from the Program
Elements browser. After you have selected the position in the network where
you want to insert an element, click the "Empty Box" icon in the toolbar.
When you enter the first letters of an element name, a list appears (beginning
with these letters), and you can make a selection.
Insert or Overwrite You use the "Ins" key to toggle between the "Cp" (overwrite) and "Insert"
Mode editor modes. The current mode is displayed in the status bar.
Programming in STL
ii
Iil iiii FC blocks
SFS blocks
W fat RETURN 4;1.• RETURN SFC blocks
A Multiple instances
+ fll Libraries
PC1 : System
nattr:System 01/017
SAAN II0 0.0
8.0
ANOP 00 0.1
8.0
Lil
—
Ptc9am elements .F. Cal structure
311
4
111313 DOI 11111111:11/WIEW a cross-teleran= rt Address Sic.. • t' 6: Diagnostizs 7: Compatison
Statements The user needs to know the statements for writing a program in STL. You can
obtain information about the syntax and functionality from the online help:
Help 9 Help on STL.
The following information is available:
"Statement List Instructions", a description of all the statements that
exist in this programming language
141 "Working with Statement List", a description of
Statement List View and General Syntax
Entering and Viewing Constant Data
Types of Blocks
1E1 Switch Contacts and Signal States
Overviews When you are using the STL Editor, the "Overviews" window contains only the
libraries and the list of already existing blocks which can be called from the
current block.
Networks Networks are inserted in the same way as in the LAD/FBD Editor (see previous
page).
Insert or Overwrite You use the "Ins" key to toggle between the "Cp" (overwrite) and "Insert"
Mode editor modes. The current mode is displayed in the status bar.
Saving a Block
_
Fie Edit cent PLC Debug View Options Widow Help ade.1251
, LAD STL - [FE I -- My_Projert \ SIMATIC 300(0 \ CPU 315-2 DPI
0
, ]*I*1-0 L141—t1h1 PA
Dlis-12-Fal gJ ,x I lell -I c-I t%Iiil F %lee' KIllaTft
________
Consents OE, .invironnems\Inserteee. I.JEI I
Cl- IN la IN Name
Al network
I.
. Inter f ace
E III BitComparator
lux
42. LOOT
- Q. OUT
42. OUT
U. IN_OUT S al
E 43. MVPS Q. Counter
E ri•ir_eA DBcal
1E-IMP E f'. Converter
E l Jumps
RETURN
Ea j
pi]Integer tint-bon
Lti S 2 Floatrig-poont fd.
FC1 - System
Program control _
EECW ShitiRotate
I
IEGd
Status Ists
1eetesork 1 . System OR/ OPP
08.0
ESal(j'rimers
a word _w_l
FE blocks
ICI. 0 SR Q 1 logic
I-5 ril
F/0.1 L
—V1----R
2? — 11111 hogTam elemen
F
41 hE Call ructure
Saving a Block When you have finished editing a block, you can save it on the hard disk of the
programming device:
• By selecting the File 9 Save menu option or
LA] • By clicking the "Save" icon in the toolbar.
Note If more than one block is opened with the Editor, only the block that is visible in
the active window is saved with the action "Save" .
BLOCK—PC
Cyclic To integrate a newly created block in the cyclic program execution of the
Execution CPU, the block must be called in OB1.
The simplest way of inserting the block call in the graphic programming
languages LAD and FBD is through the browser (see picture above). In the
STL programming language, the instruction for calling a block is CALL.
SIEMENS
-
Z=211=111.1■1111=1111111
File pit Insert PLC View Qptions window Help
Downloading With the LAD/STL/FBD Editor, you can create or modify individual blocks and
download them directly into the CPU. Downloading several or all S7 bocks is
possible with the SIMATIC Manager.
If the configuration or parameter assignment data of a hardware station was
changed with the "HW Config" tool, the "system data" that was changed as a
result can be downloaded into the CPU directly from HW Config or you can
also do it later with the SIMATIC Manager:
_J
W111:7/ Inlo
1:113[11 MUM" 2 'do Derawlerwees 4: Afton We 8U.. a
Fde/Sock saved. PressFltoptlielp. VON-<52k+.1
Requirements Before you can activate the monitoring mode, you must open the block you
want to monitor either offline or online with the LAD / STL / FBD Editor.
Note: In order to test a block in the offline mode, the block must first be
downloaded into the PLC.
Activation / There are two ways of activating/deactivating the "Monitor" test function:
Deactivation
• Click the "glasses" icon
:_d • Select the Debug 9 Monitor menu option.
Note When the monitoring function is activated, you cannot change the programming
language in which the block is viewed (LAD / STL / FBD).
Modifying Blocks
Open block
offline I online
E
9-
FC1
2=3:10: Titel:
1.8.0
10..I 0 SR
S 0
80.1—
Block Corrections Normally, block corrections are made in the following sequence:
Open Block With the LAD/STL/FBD Editor, blocks can be opened offline (from the PG's
project data storage) or online (directly from the CPU). Normally it is not
necessary to open a block online.
Modify Block Regardless of whether the block has been opened online or offline, the
changes that are made are first of all only stored in the programming device's
work memory. With that, the changes that are made are neither backed up
offline in the project data storage nor online in the CPU! If the PG is switched
off, all the changes that have been made are lost.
Save Block By using the "Save" icon, the block is always saved offline, that is, in the PG's
project data storage — regardless of whether the block was previously opened
online or offline!
Download Block By using the "Download" icon, the block is always saved online and/or
downloaded into the controller - regardless of whether the block was previously
opened online or offline!
SIEMENS
..:1251
P216 : Jog Conveyor
j
etspork : Jog conveyor RIGHT r:1 New network
.
aa 111111
.
.
T_Jog_ T _Jog_ H Cony_ Al -
I (-
RIGHT . LIFT . ajoa-t• -
II -M-
I VI -11 -NOR-
I )---I
.° -0
<) -(4.}
amma. 2wleawidien: <, --OR)
T_Jog_RIGHT 10.2 -- Jog conveyor RIGHT, amsentary contact -0 -(5)
T_Jog_LIFT 20.3 -- Jog conveyor LIFT, momentarycontact 9 RS
H_Conv_RIGHT 08.5 -- Run conveyor RIGHT 9 SR
.0 -(N)-
betimeek 2 : Jog conveyor LIFT <) -(P)-
-0 -(SAVE)
d_Ceow._ 9 reG
"T
IZ°g.7 "11:71- LIFT. 9 P05
1 I 0-1 El W Comparator
El al Converter
Ev
E ill Counter
Szoliel laterewties: E it De al
T_Jog_RIGHT /0.2 -- Jog conveyor RIGHT, aomentary contact 81 f limps
T_Jog_LIFT 10.3 -- Jog conveyor LIFT, momentary contact
H_Conv_LIFT 08.6 -- Run conveyor LIFT IIII0
C 1C t
Task Using the simulator "pushbutton" I 0.2, you should be able to jog the conveyor
motor to the RIGHT (Q 8.5). Using the simulator "pushbutton" I 0.3, you should be
able to jog the conveyor motor to the LEFT (Q 8.6). If both "pushbuttons" are
pressed simultaneously, then the conveyor motor may not start in either direction
(Lock-out!).
5. Then insert a new, second network and program this in a similar manner as
described in Point 4
Programming Also observe your block in the different programming languages. To do so select
Language LAD / STL / FBD Editor - View 4 choose either LAD, STL, or FBD.
Exercise 2: Calling FC 16 in OB 1
1 ,[012_
<I
LAD/STLABD - [0131 — "OB_Cycle" -- My_Project \ SIMATIC 300(1)),CPU 31S-2 DP ,—Wen
Insert PLC Debug View Options Window Fklp _c AI
0 He Eck
-
plcal2-1 611
,
ir F %lee' ! I !I ratilt t_i -11-1-14-1-orli-1-thl2.1
Al ,t102 1e1 --)1 -IsliLd
,
Axl d
ta FC17 FC Fault
U FC18 FC Count
UFC19 FC_Count_Add
0 FC42 FC_M14420
is SFB blocks
la SFC docks
a 14.itiple instances
E IS Lbraries
A
SITRAIN Training for
SIMATIC S7 Date: 18.09.2009
lit; Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_08E.1 9
Task In OB 1 program the call of the FC 16 so that this block is executed cyclically.
What to Do 1. Open the OB 1 block with the LAD / STL / FBD Editor
2. In the "View" menu, choose the LAD programming language and select the
code section of Network 1
3. In the " Overviews", open the Program Elements browser and in it the FC
Blocks folder
4. Program the call of the FC 16 by copying the block symbol into the network
using drag & drop.
6. Test the FC 16 function, that is, whether or not the conveyor motor can be
jogged
7. Open the FC 16 block with the LAD / STL / FBD Editor and activate the
icd "
Monitor
program execution
block" test function to follow the signal sequences during the
Note The following pages contain either further information or are for reference to
complete a topic.
For more indepth study we offer advanced courses and self-learning mediums.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 20 Editing Blocks
SIEMENS
.
T_ Ttem_ 88.0
Further options
SR
I 1--- S S I i r Report cross-accesses as error
"T_S1 1,
■, F Save window arrangement on exit
l
OFF" l , Set network title automatically
—Program status
Symbol information:
Momentnr
ip, r Control at Contact
r Automatic Program S tatus Change on Blocks
T Zystem_uN
T_System_OFF Moment al w Terminate ONLINE connection after program status
Tree Lag: (0.60) seconds
41
Font Here you select using "Select" the font and the size of the text to be used for
programming blocks.
Control at Contact Inputs and bit memories that were given the attribute CC (Control at Contact) in
the symbol table, can be controlled directly from the Program Editor using
buttons (on the contact).
Report Cross Here you can specify that global accesses to instance data blocks, that were
References as Error entered as such in the symbol table, be reported as errors.
Save Window The contents and the arrangement of possibly still open windows are saved
Arrangement on Exit when you exit. The next time you start, they are reestablished.
Set Network Title Here you can specify that the symbol comment of the first output, bit memory,
Automatically timer or counter address that is assigned a state in a network ("=", "S" and "R"),
be automatically used as network title.
SIEMENS
F0 yst. am_
77'
17 Block/network comments
1— Address identification
17 Permanently forced addresses (FORCE)
17 Process diagnostic addresses (PDIAG)
Sfflibel islormation:
T_System_ON I0.0 -- Momentary With background coior. Select..
T_System_OFF I0.1 -- Momentary
11.11
Not faisafe addresses: Sant..
TI MaIMILII11111101111M1231/ 3 Cross-references 4 Ad
I Type and number J I Type and number J
Changes various nividual settings of tNs application.
OK I Cancel
I H.*
I
View after After opening with the Editor, you can display blocks as follows:
Block Open • with symbolic or absolute addressing
• with or without symbol information
• with or without symbol selection (only in LAD and FBD)
• with or without block and network comments
• with or without address identification for forced addresses and/or
addresses that are used for process diagnostics
...Logic Blocks From the selection box you can choose the programming language of the
blocks - "STL", "LAD", "FBD" or Created in Language.
...Data Blocks You can display data blocks in the following views:
• declaration view or
• data view
Program Elements - Here you can specify how logic blocks are to be sorted in the "Overviews"
Overview browser - according to type and number or according to family name (entry in a
block's Properties dialog).
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 22 Editing Blocks
SIEMENS
Default
OK Abbrechen I Hie
4
11
" SITRAIN Training for
SIMATIC S7 Date: 18.09.2009
MI, Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_08E.23
Status Fields When you monitor the status of a block in STL, only the status fields you
activate in this dialog box will be displayed.
The following options are available:
r Element
Representation: I3-dimensional
Line/Color
Reference: 'Status fulfilled
[Color: Select.. I
OK I Abbrechen I Hilfe
Address Field Width You can set the limit for the maximum number of characters in an address
name to a number between 10 and 26. With symbolic representation, a line
break takes place according to the Address Field Width.
In LAD and FBD the number of representable operation symbols on the screen
or in the printout also changes with the Address Field Width.
Line/Color You use this box to choose how you want the following to be displayed
• Selected Element (color)
• Contacts (line)
• Status Fulfilled (color and line)
• Status Not Fulfilled (color and line).
Type Check When you edit a block, the type of address entered in bit logic instructions is
always checked. You can deactivate the Type Check of Addresses: for
comparisons, mathematical operations etc. ( for experienced users only! ).
Symbol Information If you activate this function, the symbol information is not overlaid at the lower
at Address edge of the networks, rather is overlaid directly at the address.
Default
OK Abbrechen I Hille
Create Reference When you modify blocks and save them, the reference data is automatically
Data updated if the "Create Reference Data" option in the "Block" tab is checked.
If this option is not checked, the reference data is not updated at first. But the
next time you open: Options Reference Data 9 Display, you must decide
whether you want to update the reference data and for which blocks.
Note: The topic "Reference Data" is discussed in detail in the
"Troubleshooting" chapter.
Create Logic Blocks Here you specify which programming language (LAD / STL / FBD) is to be
automatically suggested when you insert a new block.
General I View I STL I LAD/FBD I Block Sources Souce Text I General) View I STL I LAD /FBD I Block I Sources Source Ted
Preview t.st
r Standard font
Defaue
Compiling Sources In the "Sources" tab, you can select with which options executable S7 blocks
are to be generated from an STL or ASCII source. The individual options are
explained completely in the STEP 7 Online Help.
Source Text Here you select options of how the text is to be displayed in the source files.
The individual options are explained completely in the STEP 7 Online Help.
ST-SERV1
SITRAIN Training for Editing Blocks
Automation and Industrial Solutions Page 26
•
•
SIEMENS
Binary Operations
Ze Help on Function Block Diagi-alti.flv, ,_1[1_12c]
Uij Bit logic File Ed Bookmark Opttons He
Cantatas index I Rock I E*'' I
>=1 1..e4s on ITER 7 Isittery
.. XOR Symbol
address
SR
-0
1
R —
-- -
[A
111- erieleStel.
address
MAIM
BOOL
MtdMIlLAttel
I, O. M. D. L
Qasniotiar
The address specifies Which bltwlll be
set or reset
--[R] S
•
BOOL
BOOL
I, O. M. D. L. T, C
I, M. D, L, T, C
Set Instruction enabled
Reset instruction enabled
▪ BOOL I, O, M, D, L Signal state of saddreSS•
• -[5]
-
RS Description
The Set Reset Flip Flop instruction executes Set (S) or Reset (R) instructions only when the
RLO is 1 An RLO of 0 has no effect on these instructions, the address specified in the
elm instruction remains unchanged.
--[N]-- Set Reset Flip Flop is set when the signal state at input S is 1 and the signal state at input
R 1.0 If input S is 0 and input R is 1, the flip flop is reset. If the RLO at both inputs is 1 the flip
flop is reset.
The Set Reset Flip Flop instruction is affected by the Master Control Relay (MCR) For more
detailed information ahout how the MCR functions , refer to MCR snloff.
--[SAVE]
Status Word
NEG
4..(4 89 DR 5.117 FLU SO
Contents Page
Objectives .......... 2
Binary Logic Operations: AND, OR ..........3
Binary Logic Operations: Exclusive OR (XOR) ..........4
Sensors and Symbols .......... 5
First Check, Signal State, Result of Check and Result of Logic Operation 6
Exercise 1: Sensors and Symbols .......... 7
Assignment, Setting, Resetting .......... 8
Setting and Resetting a Flip Flop .......... 9
Midline Output Coil 10
Instructions that Affect the RLO ........ 11
Example 2: Programming the Operating Mode Section (FC 15) ...... 12
Exercise 2: "FC—Mode" (FC 15), Solution Hints ....... 13
Exercise 3: Conveyor in AUTO Mode (Expanding FC 16) .......14
Exercise 3: "FC_ConvMotor" (FC 16), Solution Hints .......15
RLO — Edge Detection ........ 16
Signal — Edge Detection ........ 17
Exercise 4: Integrating the Edge Detection in FC 16 .......18
Exercise 5: Putting Indicator Lights + Horn (FC 14) into Operation .......19
If You Want to Know More ........ 20
Additional Exercise 6: Optimizing the Operating Mode Section (FC 15) ......21
Unconditional Jump (Regardless of the RLO) ....... 22
Conditional Jump (Dependent on RLO) ........23
Objectives
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 2 Binary Operations
SIEMENS
I 0.2 Q 8.2
I 0.2 Q 8.2 0 10.2
) >=1
O I 0.3
1 0.3
I 0.3 = Q 8.2
Logic Tables
0 0
0 1
1
1 1
0 0
0 1
1
LAD FBD
A 1 0.4
I 0.4 I 0.5 Q 8.0 AN 1 0.5
) 0
AN 1 0.4
A 1 0.5
10.4 10.5 Q8.0
Logic Table
Rule With an EXCLUSIVE OR logic operation, the signal state is "1", if the
signal state of one of the two given addresses is "1".
With XOR elements for checking more than two addresses, the result of
logic operation is:
"1" — if an uneven number
of checked addresses deliver the result of check "1"
"0" — if an even number
of checked addresses deliver the result of check "1"
NO activated
LAD: LAD:
contact yes 1 Yes" "No"
H I— 1
—0— 0
"NO contact--.4 "NC contact'
not no
activated 0 "No" I: "Yes"
1 0 , 1
FBD: FBD:
l&
NC activated L
( no
contact 0 "No" "Yes"
0 1
.
.11.141.11 1
Process The use of normally open or normally closed contacts for the sensors in a
controlled process depends on the safety regulations for that process.
Normally closed contacts are always used for limit switches and safety
switches, so that dangerous conditions do not arise if a wire break occurs in the
sensor circuit.
Normally closed contacts are also used for switching off machinery for the
same reason.
Symbols In LAD, a symbol with the name "NO contact" is used for checking for signal
state "1" and a symbol with the name "NC contact" to check for signal state "0".
It makes no difference whether the process signal "1" is supplied by an
activated NO contact or a non-activated NC contact.
Example If an NC contact in the machine is not activated, the signal in the process
image table will be "1". You use the NO contact symbol in LAD to check for a
signal state of "1".
General:
The "NC contact" symbol delivers the result of check "1" when the checked
address state or status is "0".
First Check, Signal State, Result of Check and Result of Logic Operation
Result of Check
Result of Check
Result of Check
Result of Logic
Result of Logic
Result of Logic
Signal State
Signal State
Signal State
First Check
First Check
First Check
Operation
Operation
Operation
= M 3.4
A I10 0 1 1
AN I 1.1 0 1 0
A M 4.0 0 1 1
= Q 8.0
= Q 8.1
A I 2.0 0 1 0
Signal State A logic operation is made up of a series of instructions to check the states of
signals (inputs (I), outputs (Q), bit memories (M), timers (T), counters (C) or
data bits (D) ) and instructions to set Q,M,T,C or D.
Result of Check When the program is executed, the result of check is obtained. If the check
condition is fulfilled, the result of check is "1". If the check condition is not
fulfilled, the result of check is "0".
First Check The first check that follows an RLO limiting operation (such as S, R, CU, = ...)
or the first check in a logic string is called a First Check (FC) since the result of
this check - regardless of the last RLO - is accepted as the new RLO.
Result of Logic When the next check instructions are executed, the result of logic operation is
Operation gated with the result of check and a new RLO is obtained.
When the last check instruction in a logic operation has been executed, the
RLO remains the same. A number of instructions using the same RLO can
follow.
Note The result of the first check is stored without being subjected to a logic
operation. Therefore, it makes no difference whether you program the first
check with an AND or an OR instruction in STL. To convert your program to
one of the other programming languages, you should, however, always
program using the correct instruction.
Hardware
r_>
I I
11 S1 I= \ S2 1=\ S1 14 S2 I= S1 I= S2
DU
I I I
11.0 11.1 11.0 11.1 11.0 11.1
Programmable controller Programmable controller Programmable controller
Q 4.0 Q 4.0 Q 4.0
itiLight Light
4 )Light
Software
1
H
1 1.0 I 1.1 Q 4.0 1.0 11.1 Q 4.0 11.0 11.1 Q4.0
III LAD > HI--1 ( )
-
I I I ( ) - ---
I1 HI ( )
1
SIMATIC S7 Date: 18.09.2009 11 SITRAIN Training for
File: SERV1_09E.7 Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Exercise Complete the programs above to obtain the following functionality: When switch
S1 is activated and switch S2 is not activated, the light should be ON in all
three cases.
Note ! The terms "NO contact" and "NC contact" have different meanings depending
on whether they are used in the process hardware context or as symbols in the
software.
LAD FBD
H I 1.2 11.3
081 I 1.2
Q 8.1
A 11.2
A I 1.3
I 1.3 S S Q 8.1
11.4 Q 8.1
(R) I 1.4 O I 1.4
>=1 Q 8.1 O 11.5
Reset I 1.5 R Q 8.1
11.5 I R
Assignment An assignment passes the RLO on to the specified address (Q, M, D). When
the RLO changes, the signal state of that address also changes.
Set If RLO= "1", the specified address is set to signal state "1" and remains set until
another instruction resets the address.
Reset If RLO= "1", the specified address is reset to signal state "0" and remains in this
state until another instruction sets the address again.
LAD FBD
M 5.7 M 5.7
11.2 Q 9.3 A 11.2
SR SR S M 5.7
Dominant ) 11.2 -
A 1 1.3
Reset Q9.3
11.3 R M 5.7
A M 5.7
11.3 - = Q 9.3
M 5.7 M 5.7
11.3 Q 9.3 A 1 1.3
Dominant RS R RS R M 5.7
I I -R ) 11.3 -
Set A 1 1.2
Q9.3 S M 5.7
11.2
A M 5.7
11.2 - S = Q 9.3
Flip Flop A flip flop has a Set input and a Reset input. The memory bit is set or reset,
depending on which input has an RLO=1.
If there is an RLO=1 at both inputs at the same time, the priority must be
determined.
Priority In LAD and FBD there are different symbols for Dominant Set and Dominant
Reset memory functions. In STL, the instruction that was programmed last has
priority.
Note With a warm restart of the CPU, all outputs are reset. That is, they are
overwritten with the state '0'.
If the M 5.7 in the example above has been declared retentive, it's state will be
retained even after a warm restart of the CPU. If the memory bit was set before
the warm restart, it's state remains state '1' even after the warm restart and the
output Q 5.7 would be immediately activated once again.
LAD
1---(#)--I I II ( )--1
FBD
11.0 —
M 20.7
11.1 —
120 — Q 4.0
12.1 —
Midline Output Coil The midline output coil exists only in the LAD and FBD graphic languages. It is
an intermediate assignment element with assignment function that assigns the
current RLO at a specified address (M20.7 in the slide). The midline output coil
provides this same address in the same network for subsequent gating.
In the STL language, this is equivalent to
= M 20.7
A M 20.7
In the LAD language, when connected in series with other elements, the
"midline output coil" instruction is inserted in the same way as a contact.
LAD FBD
A I 0.0
Q 8.0 A I 0.1
!IF NOT I0.0 10.1
NOT ) NOT
= Q 8.0
Examples:
STAT 0 — Bit memory
CLR
not available not available = M 0.0
CLR The CLEAR instruction sets the RLO to "0" without pre-conditions (available
only in STL).
SET The SET instruction sets the RLO to "1" without pre-conditions (available only
in STL).
Note The CLR and SET instructions limit the result of logic operation, that is, the next
programmed scan becomes a first check.
First Check The first processed check operation after a conditional operation is called a first
check. It has a particular meaning since the CPU takes over the result of check
directly as a result of logic operation (RLO). The "old" RLO is thus lost. The first
check always represents the beginning of a logic operation. The operation
(AND, OR, XOR) that comes with the first check is of no importance.
DI DO
1 0.0 T_System_ON
1 0.1 T_System_OFF L_SYSTEP Q 4.1
1 0.2 T_Jog_RIGHT L MAN Q 4.2 U U
I 0.3 T_Jog_LEFT L AUTO Q 4.3
U V
1 0.4
1 0.5
-15V...+15V -15V...+15V
Ail A01
All A02
cs
0 0
All Al2
0 0 0 I=1
0 0 0 0
0 8 1 5 All Al2 A01 A02
0 CI CI 0
0 0 0 0
Task For the distribution conveyor, you are to program an operating mode section in
FC 15 and interlock the MANUAL mode (Q4.2) in FC 16 as an additional
condition for jogging the conveyor motor.
Function of the operating mode section in FC 15:
• The system (LED Q4.1) is turned "on" using the simulator momentary
contact I 0.0. It is turned "off' using the simulator momentary contact I 0.1
(NC contact).
• You can preselect "MANUAL" mode (LED Q 4.2) or "AUTO" mode
(LED Q 4.3) through switch I 0.4 as follows:
- I 0.4 switched off (= "0"): "MANUAL" mode preselected,
- I 0.4 switched on (= '1 "): "AUTO" mode preselected.
• The operating mode that you presele-ct through switch I 0.4 is confirmed or
switched on through momentary contact I 0.5
• The operating modes are switched off when you change the preselection of
the operating mode (I 0.4) or when the system is switched off (Q 4.1 = "0").
Integrating the MANUAL mode (Q 4.2):
• The "Jog Conveyor Motor" programmed in FC 16 is now only to be possible
when the "MANUAL" mode is switched on. Program the relevant lock-out in
FC 16.
What to Do 1. Insert the new FC 15 block and program the required function
2. Program the lock-out in FC 16.
3. Download all blocks into the CPU and test your program
Solution Hints You will find solution hints on the following page !
OFF-Condition Q —
OFF-Conditions Q ____
OFF-Conditions Q ____
4
SIMATIC S7 Date: 18.09.2009
21 SITRAIN Training for
File: SERV1_09E.13 qr Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Whole Function In FC 15, the operating modes and the indicator lights: System ON, MANUAL
of the FC 15 mode and AUTO mode are to be programmed with the functions described in
the task.
Partial Functions The whole function of FC 15 can be divided into the following partial functions,
of the FC 15 as shown in the slide above. These partial functions can be programmed in
separate networks:
• Network 1 indicator light for System ON
• Network 2 indicator light for MANUAL mode
• Network 3 indicator light for AUTO mode
Partial Functions Every network can then be logically divided into two sections which can be
of the Networks programmed independent of one another:
• ON conditions (Set condition)
• OFF conditions (Reset condition)
Example:
- The conditions for the ON state of the MANUAL mode:
System switched on ( Q 4.1 = '1 ') AND MANUAL mode preselected
("ModeSelect" switch I 0.4 = '0') AND "Accept" switch pressed (M.C.Switch
I 0.5 = '1 ')
- The conditions for the OFF state of the MANUAL mode:
System switched off ( Q 4.1 = '0') OR AUTO mode preselected
("ModeSelect" switch I 0.4 = '1')
Prox.Sens.Bay 1
I 8.5
Mom.Cont.Bay 1
I 8.1
Prox.Sens.Bay 2
I 8.6
Mom.Cont.Bay 2
I 8.2
Light Barrier
I 8.0
Run Conveyor
RIGHT
Q8.5
Function In AUTO mode, parts are to be transported from Bay 1 or Bay 2 to the "Final
Check" (light barrier).
Run Conveyor RIGHT starts when
• Bay 1 proximity sensor is occupied AND NOT Bay 2 proximity sensor is
occupied
AND
Bay 1 momentary contact is pressed
OR
• Bay 2 proximity sensor is occupied AND NOT Bay 1 proximity sensor is
occupied
AND
Bay 2 momentary contact is pressed
Run Conveyor RIGHT is stopped when
• the part has reached the Final Check (the light barrier)
OR
• AUTO mode is switched off
Solution Hints You will find solution hints on the following page !
M 16.4
Conditions for
Memory bit for
Run Conveyor RIGHT S
Run Conveyor RIGHT
in AUTO mode R in AUTO mode
M 16.2 >=1
Q 8.5 Run Conveyor RIGHT
M 16.4 ---
Problem The Run Conveyor RIGHT (0 8.5) must be controlled under two conditions:
• In the MANUAL mode while jogging RIGHT (in the slide - Network x)
OR
in the AUTO mode under the conditions described in the task (in the slide -
Network y)
If the result of logic operations in both network x and y were assigned the
output Run Conveyor RIGHT (Q8.5), an error in the form of a double
assignment would occur. The jogging RIGHT of the motor in manual mode
(Network x) would no longer function, since the state assigned to the output
would be overwritten in Network y.
Solution The problem can be solved by programming a memory bit for each condition or
by first assigning the results of the logic operations to a memory bit in both
networks x and y. These are then used in Network z to control the conveyor
motor.
RLO Edge Detection An "RLO edge" detection is when the result of a logic operation changes from
"0" to "1" or from "1" to "0".
Positive Edge (Positive RLO Edge Detection) detects a signal change in the address from "0"
to "1", and displays it as RLO = "1" after the instruction (such as at M 8.0) for
one cycle.
To enable the system to detect the edge change, the RLO must be saved in an
FP bit memory (such as M 1.0), or a data bit.
Negative Edge (Negative RLO Edge Detection) detects a signal change in the address from
"1" to "0" and displays it as RLO = "1" after the instruction (such as at M 8.1) for
one cycle.
To enable the system to detect the edge change, the RLO must be saved in an
FN bit memory (such as M 1.1), or a data bit.
1 1.0 A 1 1.0
1 1.1
M8.0 1 1.1 A (
POS POS M8.0 A 1 1.1
FP M1.0
MB1T M1.0— M_B1T
M8.0
A 1 1.0
1 1.1 11.0
M8.1 A (
1 1.1
NEG M8.1 A 1 1.1
NEG FN M1.1
M_B1T M1.1- M_B1T
M8.1
Example Input 11.0 acts as a static enable. Input 1 1.1 is to be monitored dynamically
and every signal change is to be detected.
Positive Edge When the signal state at 11.1 changes from "0" to "1", the "POS" check
instruction results in signal state "1" at output Q for one cycle, provided input
11.0 also has signal state "1" (as in the example above).
To enable the system to detect the edge change, the signal state of I 1.1 must
also be saved in an M_BIT (bit memory or data bit) (such as M 1.0).
Negative Edge When the signal state at 1 1.1 changes from "1" to "0", the "NEG" check
instruction results in signal state "1" at output Q for one cycle, provided input
1 1.0 has signal state "1" (as in the example above).
To enable the system to detect the edge change, the signal state of I 1.1 must
also be saved in an M_BIT (bit memory or data bit) (such as M 1.1).
Part at
Light barrier
Start condition
in AUTO mode
Light Barrier
(I 8.0) I
F)
Run Conveyor
RIGHT
(Q8.5)
A
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_09E.18 Mr1 SITRAIN Training for
Automation and Industrial Solutions
FC 16 Up Till Now In MANUAL mode (Q 4.2 = "1"), you can jog the conveyor motor direction to
the RIGHT and LEFT using the simulator momentary contacts I 0.2 and I 0.3.
In AUTO mode (Q 4.3 = "1"), the Run Conveyor RIGHT is switched on when a
part is laid on the conveyor exactly in front of a proximity sensor of Bay 1 or
Bay 2, (EXOR -logic operation) and the occupied Bay's momentary contact is
pressed.
The conveyor motor is stopped when the part has reached the Final Check
(the light barrier) OR the AUTO mode is switched off.
Task The function of the FC 16 to control the conveyor motor in AUTO mode is to
remain fundamentally unchanged. However, the conveyor motor is to be
stopped as soon as the part has passed through the light barrier (4 edge
detection necessary, see slide).
What to Do: 1. Program the necessary changes in FC 16, by interlocking the result of the
edge detection as the reset condition for M 16.4 (bit memory for Run
conveyor RIGHT in AUTO mode) instead of the light barrier signal itself
(I 8.0 ).
For the necessary edge detection of the light barrier signal use the bit
memory M 16.0 as an edge memory bit.
2. Save the modified FC 16 block and download it into the CPU.
3. Check whether your program fulfills the desired function.
SIEMENS
in MANUAL mode:
2Hz pulsed honking
while conveyor jogging
"BAY1" "BAY2"
"Horn"
(Q 8.7)
"L_Bay1" "L_Bay
2"
(Q 8.1) (Q 8.2)
in AUTO mode:
Constant light at both bays when a new part can be placed (both bays empty)
1Hz flashing light at the bay where the part is placed and the conveyor has not yet been started
- 2Hz flashing light at both bays during conveyor movement
A
SIMATIC S7 Date: 18.09.2009
_11 SITRAIN Training tor
File: SERV1_09E.19 gr Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Function The indicator lights at Bay 1 and Bay 2 as well as the horn are to be controlled
as follows:
When AUTO mode (Q4.3) is switched on, the indicator lights show ...
• constant light when a new part can be placed on the conveyor
(conveyor motor is standing and both proximity sensors are free)
1Hz flashing light at the bay where the associated proximity sensor detects
a part, and only so long as the conveyor has not yet been started
• 2Hz flashing light as long as the conveyor motor is moving
The horn sounds with a 2Hz pulsed tone as long as the conveyor motor is
jogged to the right or to the left in MANUAL mode.
What to Do 1. Copy the block "FC_Signal" (FC 14) from the project "SERV1_B" in the S7
program "Chap9_binary_Op" into your S7 program called "My Program"
2. Put the block into operation
3. Correct the block so that it fulfills the required functions.
Note The following pages contain either further information or are for reference to
complete a topic.
T_System_OFF
(I 0.1, NC contact)
i
L_SYSTEM
(Q4.1)
I
FC 15 Up Till Now The system (Q 4.1) is switched on with the simulator momentary contact I 0.0,
and switched off with the simulator momentary contact I 0.1 (NC).
If you press both contacts simultaneously, the system remains switched off or
is switched off if currently on. However, if both contacts are pressed and you let
go of the OFF contact, the system switches on again without having to first
press the ON contact once more (see slide, upper function diagram "OLD:
without edge detection").
Task (1) Expand the functionality of FC 15 using edge detection so that the ON contact
must be pressed every time the system is switched on (see slide, lower
function diagram "NEW: with edge detection").
The criteria for switching on the system is no longer to be the pressed ON
contact or its '1' signal, but the function of pressing or the "positive edge" of
the ON contact signal.
What to Do: 1. In the set condition for "L_SYSTEM", insert an edge detection of the
momentary contact "T_System_ON". For the edge detection, use the
memory bit "M_Aux_System_ON" (M 15.1) as edge memory bit.
2. Save the modified FC 15 block and download it into the CPU.
3. Check whether your program fulfills the desired function!
Task (2) Just as with switching on the system, accepting and/or switching on "L_MAN"
(Q 4.2) and "L_AUTO" (Q 4.3) is also to happen using "S_M/A_ModeSelect"
(I 0.4).
Every time there is a mode change, the momentary contact "T_ M/A _Accept"
(I 0.5) must be pressed once more.
Use the bit memories "M_Aux_Man_ON" (M 15.2) and "M_Aux_Auto_ON"
(M 15.3) for the required edge detections.
LAD FBD
•
Network x Network x Network x
NEW1 • NEW1 4
Jump Instruction With jump instructions, you can jump individual instructions or even whole
networks so that these are not executed.
Jumps can be made both forwards and backwards. The jump instruction and
the jump destination must both be in the same block (max. jump length =
64kbyte). The jump destination must be unique within this block, that is, it may
only exist once.
Jump instructions can be used in FBs, FCs and OBs.
Jump Label A jump label (also called a "Label") marks the location in the block where
program execution is to continue from after a successful jump. In STL, the jump
label is located to the left of an instruction; in FBD and LAD, it is always at the
beginning of a network.
You will find the jump label symbol in LAD and FBD in the Program Elements
browser:
Program Elements 9 Jumps 9 LABEL.
The name of the jump label can consist of up to 4 characters of which the first
must be a letter (in STL the special character "_" is also permitted).
LAD FBD
-I
Jump if I 0.2 1 0.3 1 0.2 A 1 0.2
NEW2 NEW2
RLO=0 A 1 0.3
(JMPN) 1 0.3 — JMPN JCN NEW2
JCN The "JON" conditional jump is only executed if the RLO is "0".
If the RLO is "1", the jump is not executed and program execution continues
with the next instruction.
Note STL provides additional jump operations, which are discussed in an advanced
programming course.
Digital Operations
Contents Page 10
Objectives ....................................................................................................................................................... 2
Acquiring, Processing and Outputting Data 3
Integer (INT, 16-Bit Integer) Data Type ....... 4
Double Integer (DINT, 32-Bit Integer) Data Type ....... 5
REAL (Floating-point Number, 32 Bit) Data Type ....... 6
The BCD Code for Inputting and Outputting Integers 7
Loading and Transferring Data 8
Data Storage in Accumulator 1 ....... 9
Exercise 1: Number Formats ...................................................................................................................... 10
S5 Counter Functions 11
Counters: Function Diagram ........................................................................................................................ 12
Exercise 2: Counting the Transported Parts (FC 18, C 18) ................................................................... 13
S5 Timer Functions 14
Timers: ON Delay (SD) ................................................................................................................................. 15
Exercise 3: Monitoring the Transport Functions (FC 17) 16
Conversion Operations BCD <-> Integer ................................................................................................... 17
Comparison Operations ................................................................................................................................ 18
Basic Mathematical Functions 19
Exercise 4: Counting the Transported Parts (FC 19) ............................................................................. 20
If You Want to Know More 21
Additional Exercise 5: Counting the Conveyor Belt Fault Conditions (FC17) ...................................... 22
Additional Exercise 6: Timely Lock-out of the Conveyor Motor Jogging ............................................. 23
Counters: Bit Instructions ............................................................................................................................. 24
Timers: Stored ON Delay (SS) .................................................................................................................. 25
Timers: Pulse (SP) ......................................................................................................................................... 26
Timers: Extended Pulse (SE) 27
Timers: OFF Delay (SF) 28
Time Formats for Traditional S5 Timers in STEP 7 ................................................................................. 29
Timers: Bit Instructions 30
Conversion Operations I -> DI -> REAL 31
Digital Logic Operations ............................................................................................................................... 32
Application Example: Digital Edge Detection 33
SITRAIN Training for ST-SERV1
Automation and Industrial Solutions Page 1 Digital Operations
SIEMENS
Objectives
be familiar with the INT, DINT, REAL data types and the
BCD display
A
SIMATIC S7 Date: 18.09.2009 SITRAIN Training tor
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_10E.2
ST-SERV1
SITRAIN Training for Digital Operations
Automation and Industrial Solutions Page 2
SIEMENS
Operating Thumbwheel
1
0■248
0 buttons,
•• •
+ monitoring
Potentiometer,
processes 7-segment
01 81 11 5
IN IN IN MI
display
Operator Panel
DI/ All
DO AO
such as PROFIBUS
Field devices
Process
controller
10
Binary/Digital True logic control systems are recognizable in the fact that they exclusively
Processing process binary data.
The performance of today's control computer, as well as tasks in the data
processing, quality control areas, among others, has increased the importance
of digital data processing using PLCs.
Digital process variables can be found in all areas of open-loop control - such
as in connected devices for process operating and monitoring or in the control
of field devices.
Operating and The goal of process monitoring is to provide the operator with up-to-the-minute
Monitoring information about the working machine or system quickly, concisely and clearly
as well as the opportunity to intervene and control and influence the process.
While in the past mostly simple, that is, "dumb" input and output devices, such
as 7-segment displays and thumbwheel buttons were used to display and enter
digital values, today "intelligent" operating and monitoring devices are
frequently connected to a PLC.
Field Devices Today as well, field devices that acquire process data or that control the
process are supplied directly with digital variables through field bus systems.
The connection of field devices, such as drives or weighing systems, using
analog input and output modules is becoming more and more a thing of the
past.
Formats Depending on the type of device connected, different number formats for the
coding of data are used to transmit data between device and PLC, as well as
for storing and processing data in the PLC.
Display Formats:
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
A
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
File: SERV1_10E.4 Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Integer Data Type An Integer data type value is a whole number value, that is, a value without a
(16-bit Integer) decimal point.
SIMATIC S7 stores Integer data type values with sign in 16 bit code. This
results in the value range shown in the slide above. As well, SIMATIC S7
provides arithmetic operations for processing Integer values.
Decimal STEP7 uses the Decimal (not BCD!) display format to specify the constants of
the Integer data type with sign and without explicit format description. The use
of constant Integer values in the Binary and Hexadecimal display formats is
possible in principle, but because of the poor legibility, they are more or less
not suitable. For this reason, the syntax of STEP7 provides the specification of
Integer values only in the decimal display format.
Binary In a digital computer system, all values are stored in a binary-coded form. Only
the digits 0 and 1 are available in the binary number system. Base 2 of this
numbers system results from the number of available digits. Accordingly, the
value of every position of a binary number results from a power of Base 2. This
is also expressed in the format specification 2#.... .
Negative values are represented as binary numbers in twos complement. In
this representation, the most significant bit (bit no. 15 for the Integer data type)
has the value - 215. Since this value is greater than the sum of all residual
values, this bit also has the sign information. That is, if this bit = 0, then the
value is positive; if the bit is = 1, then the value is negative. The conversion of a
binary number into a decimal number is made by adding the values of the
positions that have a 1 (see slide).
Display Formats:
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
,' Sign s,
positive
`, numbers;
HEX: DW#16# 0 0 0 8 4 0 8 9
(without sign)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SIMATIC S7 18.09.2009
SITRAIN Training for
Date:
Siemens AG 2008. All rights reserved. File: SERV1_10E.5 Nr Automation and Industrial Solutions
10
Double Integer SIMATIC S7 stores Double Integer data type values with sign as 32 bit code.
(32-Bit Integer) This results in the value range shown in the slide above. As well, SIMATIC S7
provides arithmetic operations for processing DINT values.
Decimal STEP7 uses a decimal number (not BCD!) to specify a constant of the Double
Integer data type with sign and the format L# for "long" (double word, 32 bit).
When a value smaller than -32768 or greater than 32767 is specified, the
format L# is automatically added. For negative numbers smaller than -32768,
the user must specify the format as L# - (for example: L# -32769). This is
imperative if the value is to be further processed arithmetically as a double
integer since you would otherwise work with false values (value + sign)!
Example: 0.75
Sign of
Real no. e = Exponent (8 Bit) f = Mantissa (23 Bit)
I I I
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
11111
10 1 0 1 0000000000000000000000
27 26 25 24 23 22 21 20 2-12-22-32_4 2-23
Real The previously described INT and DINT data types are used to store whole
number values with sign. Accordingly, only operations that supply a whole
number value as the result can be performed with these data types.
In cases where analog process variables such as voltage, current, and
temperature have to be processed, it becomes necessary to use Real values
(real numbers, "decimal numbers"). In order to be able to represent such
values, binary digits have to be defined whose value is less than 1 (power of
base 2 with negative exponent).
Real Format In order to be able to form the greatest possible value range within a defined
memory capacity (for SIMATIC S7: double word, 32 bit) (see slide), you must
be able to select the decimal point position. Early on, IEEE defined a format for
floating-point numbers. This format was laid down in IEC 61131 and was
included in STEP 7. This format makes it easy to process a variable decimal
point position.
In a binary coded floating-point number, a portion of the binary digits contain
the mantissa (23 Bit) and the rest contain the exponent (8 Bit) and the sign of
the floating-point number.
When you specify real values, you do so without specifying the format. After
you enter a constant real value (for example: 0.75), the Editor automatically
makes a conversion to scientific notation (for example: 7.5000e-001).
Application Floating-point numbers are used for "analog value processing", among others.
A great advantage of floating-point numbers is in the number of operations
possible with such numbers. These include, in addition to the standard
operations such as: +, * , / also instructions such as sin, cos, exp, In, etc, that
are used mainly in closed-loop control algorithms.
r r r
■ ■ ■ NEI
0 2 9 6
••••••••••••••••
16 Bit: I BIN.: 2# 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 0
Sign (+) 2 9 6
Sign (+) 0 0 0 0 2 9 6
I
III II II—I—II—I—II I
II I
II
32 Bit: BIN.: 2# Oxxx 0000000000000000001010010110
10
Origin In the past, the specification and visualization of whole numbers was done
exclusively using simple, mechanical thumbwheel buttons and digital displays.
These thumbwheel buttons and digital displays were connected to the PLC's
digital input and output modules through parallel wiring.
BCD Code Each digit of a decimal number is encoded in four bit positions (a nibble). Four
bits are used because the highest decimal digit, 9, requires at least four bit
positions in binary code.
Negative Numbers So that negative numbers can also be specified using a BCD thumbwheel
button, STEP 7 codes the sign in the most significant bit of the most significant
digit (see slide). A sign bit = 0 indicates a positive number. A sign bit = 1
indicates a negative number.
STEP 7 recognizes 16-bit-coded (sign + 3 digits) and 32-bit-coded (sign + 7
digits) BCD numbers.
Data Formats There is no data format for specifying BCD-coded values in STEP 7. You can,
however, specify the decimal number whose BCD code is to be given, as a
HEX number. The binary code of the HEX number and that of the BCD-coded
decimal number is identical.
As you can see in the slide, the DEC data format is not suitable for specifying
BCD coded numbers!
1:1111•11111111111■11M111111110m.alusi
FC1 : loading and transferring Data PC1 loading and transferring Data
'
network 4: in view LAD network 4: in view !HD
MOVE INNS/Wall
MOW IN OUT 30
IN ISO
1464111111Scsato INNSINNOneN 11#160CAll IN INC
— IN OUT —NI130
41 I
MMENIM MIMEMW
IrC1 : loading and transferring Data (ACCU 1)
'
network 4: in view STL 12345678 AlB2C3D4
L li016SCAFI oats 12345678
30 oafs 12345671
NOP 0 cats 12345ST•
41 I
MOVE (LAD/FBD) If the EN input is active, the value at input "IN" is copied to the address
specified at output "OUT". "ENO" has the same signal state as "EN".
L and T (STL) Load and transfer instructions are executed regardless of the RLO. Data is
exchanged through the accumulator ACCU1.
Standard / ACCU1 Accumulator 1 (ACCU1) is the main register in the CPU. The load instruction
writes the value from the source address right-justified into the (standard)
accumulator 1 and pads the remaining bits (32 bits in all) with "0"s.
The transfer instruction copies some or all of the contents of accumulator 1 to
the specified memory address without clearing the contents of accumulator 1
(see next page). All arithmetic and digital operations store their result in
accumulator 1.
ACCU2 When a load instruction is executed, the old contents of accumulator 1 are first
shifted to accumulator 2 and accumulator 1 is cleared (reset to "0") before the
new value is written into accumulator 1.
31 23 15 7 0
Load
L MW 0 000 00 00 oie 0 0 0 0 0 0 01 MBO I MB1
31 23 15 7 0
T QD 4
QD 4
II/Transfer T QW 4 411
QW 4
T QB 4 41
QB 4
10
General Accumulators are auxiliary memories in the CPU for data exchange between
various addresses as well as for comparison and mathematical operations.
The S7-300 usually has two accumulators with 32 bits each and the CPU 318-2
and the S7-400 each have four accumulators also with 32 bits each.
Load The load instruction loads the contents of the specified byte, word or double
word into accumulator (ACCU) 1.
Transfer When a transfer instruction is executed, the contents of ACCU 1 are retained.
Consequently, the same information can be transferred to different
destinations. If only one byte is transferred, the eight bits farthest to the right
are used (see slide).
I 0 7 "T_AcknVVermRestart" BOOL
I 0.0 _"T_Systern_04s# BOOL
I 1.0 "TAcknFeur BOOL
W 2 _"WThumbw" HEX
WV 2 "W_Thurnbw" BIN
W 2 "W_Thurnbw" DEC
V
MB 20 BIN 2/00000000
MB 21 201000_0100 4—
Display Formats Different display formats can be selected in both the "Monitor / Modify Variables" and the
"Monitor (Block)" test function to display variables or register contents.
Every variable can be monitored with several display format options. Depending on the
variable's data type, it becomes apparent that monitoring with the appropriate display
format makes more sense.
BOOL: Display a single bit
(only possible for a variable of the BOOL data type)
BIN: Display the individual bits of a variable
(makes sense for variables of the BYTE, WORD, DWORD data types)
HEX: Display the contents of a variable as hexadecimal number (BCD)
(makes sense for variables of the BYTE, WORD, DWORD data types)
DEC: Display the contents of a variable as decimal number (not BCD!) with sign
(makes sense for variables of the INT, DINT data types)
FLOATING_ Display the contents of a variable as floating-point number
POINT (makes sense for variables of the REAL data type)
What to Do Open the given variable table "VAT_NumberFormats" and specify various values for the
output and memory words with "Monitor Variables" or set the different values on the BCD
thumbwheel button IW 2. In the process, monitor the values in the different number
formats.
ST-SERV1
SITRAIN Training for -
Automation and Industrial Solutions Page 10 Digital Operations
SIEMENS
S5 Counter Functions
LAD FBD
A 10.4
C5
CU C5
S_CUD A 10.5
10.4 Q 8.3
CU CD C5
Q
A 10.3
10.5 L C#5
CD CV — MW 4
S C5
10.3 A 10.7
S CV_BCD — QW 12 R C5
L C5
C#5 PV T MW4
LC C5
10.7
T QW12
A C5
Q8.3
10
Counter Value A 16-bit word is reserved for each counter in the system data memory. This
word is used for storing the counter's value (0 to 999) in binary code.
Count Up When the RLO at the "CU" input changes from "0" to "1", the counter's current
value is incremented by 1 (upper limit = 999).
Count Down When the RLO at the "CD" input changes from "0" to "1", the counter's current
value is decremented by 1 (lower limit = 0).
Set Counter When the RLO at the "S" input changes from "0" to "1", the counter is set to the
value at the "PV" input.
Reset Counter When the RLO at the Reset changes from "0" to "1", the counter's value is set
to zero. If the reset condition is fulfilled (stays "high"), the counter cannot be set
and counting in either direction is not possible.
PV The preset value (0 to 999) is specified in BCD format at the "PV" input as:
• as a constant (C#...)
• a BCD format through a data interface.
CV / CV_BCD The counter value can be loaded into the accumulator at the binary output as
an Integer value (CV) or at the decimal output as a BCD number (CV_BCD)
and then transferred from there to other addresses.
Notes When the counter reaches the value 999 during count up, the counter value
stays at 999 with subsequent count up signals. Likewise, when the counter
reaches the value 0, the counter value stays at 0 with subsequent count down
signals.
If an up count and a down count signal occurs at the same time, the count
remains the same.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 12 Digital Operations
SIEMENS
DI DO
I 0.0 T_System_ON
Act Quantity
I 0.1 T_System_OFF L_SYSTEM a Q 4.1
I 0.2 L_MAN Q 4.2 7 U
Log
T_Jog_RIGHT
I 0.3 T_Jog_LEFT L_AUTO Q 4.3
U
I 0.4 S_M/A_ModeSelect
I 0.5 T_M/A_Accept "QW_DigDisp" (QW 6)
-15V...+15V
Ail A01
All A02
a 0 0
All Al2
a
I= CI
0 0 0
0 0
0
• 0 0 0 0
0 0 I=1 I=1
z
SIMATIC S7 Date: 18.09.2009 IA1 SiT R AlN T rainin for
Automation and lnclstrial Solutions
Siemens AG 2008 All rights reserved. File: SERV1_108.13
Function Up Till Now In AUTO mode, parts are transported from Bay 1 or Bay 2 to the Light Barrier
10
Bay until they pass through the light barrier. The transportation function starts
as soon as a part is placed on Bay 1 or Bay 2 and the associated bay's
momentary contact is pressed and it ends as soon as the part has passed the
light barrier.
Task • The parts transported in AUTO mode are to be counted as soon as they
have passed through the "LB" (I 8.0) light barrier ("LB" 0 4 1).
• The number of transported parts (ACTUAL quantity) is to be recorded with
the S5 counter C 18 and displayed on the BCD digital display.
• The counter is to be reset when the system is switched off (Q 4.1 = "0").
What to Do 1. Program the counting of the transported parts in the block "FC_Count"
(FC18). Use the S5 counter C 18.
2. Program the call of FC 18 in OB 1.
S5 Timer Functions
Pulse Timer (SP) Extended Pulse (SE)
T44 T44
S_PULSE S_PEXT
1 0.7 — S BI — MWO 1 0.7 — S BI — MWO
S5T#35s — QW12 S5T#35s — TV BC QW12
TV BC
M8.5 M8.5
10.5 — R Q I 0.5 — R Q H=
ON Delay (SD)
T44
S_ODT
I 0.7 — S B1 — MWO
S5T#35s Tv BCE QW12
M8.5
10.5 — R
Stored ON Delay (SS) OFF Delay (SF)
T44 T44
S_ODTS S_OFFDT
1 0.7 — S BI — MWO 1 0.7 — S BI — MWO
S5T#35s — TV BC QW12 S5T#35s — TV
M8.5 QW512
BCD— m8
10.5 — R Q 10.5 — R
Q =
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_10E.14
A
V.
SITRAIN Training for
Automation and Industrial Solutions
General In control engineering, the following traditional timer functions (S5 timer
functions) have long since established themselves:
• Pulse Timer (S_PULSE or SP),
• Extended Pulse (S_PEXT or SE),
• ON Delay (S_ODT or SD),
• Stored ON Delay (S_ODTS or SS),
• OFF Delay (S_OFFDT or SF)
Memory Timers have their own reserved memory area in the CPU in which each timer
function occupies one word. To find out how many timer words and thus timer
functions are available in a CPU, please check the CPU's technical data.
Time Value The time value can be specified via a variable (such as MW50) or - as shown in
the slide - via a constant. The syntax for specifying a constant time value is
(can be entered with or without underscore):
S5T#aH_bM_cS_dMS e.g. S5T#1h_20m_10s
T4 T4
I 0.7 S_ODT S_EVERZ A 10.7
Q8.5
I I BI MWO L S5T#35s
) I 0.7 — S
S5T#35s -TV B1 — MWO SD T4
S5T#35s — Tv BCD
—
QW12
1 0.5 Q8.5 A 10.5
R BCD — QW12 I 0.5 — R T4
1 1
L T4
T MWO
RLO at S LC T4
RLO at R T QW12
A T4
Time = Q8.5
operation
>Example
1 1 1 1 1 1 1 1 1 1 1 1
Data type 0.01s <— 0 0
0.1s <-- 0
"S5T1ME" 1s <- 0 Units of time: 0 to 999 (BCD-coded)
10s
10
Start The timer starts when the RLO at the Start input "S" changes from "0" to "1".
The timer starts with the time value specified at the Time Value "TV" for as long
as the signal state at input "S" =1.
Reset When the RLO at the Reset input "R" changes from "0" to "1", the current time
value and the time base are deleted and the output "Q" is reset.
Digital Outputs The current time value can be read as a binary number at the "BI" output and
as a BCD number at the "BCD" output.
The current time value is the initial value of "TV" minus the value for the time
that has elapsed since the timer was started.
Binary Output The signal at the "0" output changes to "1" when the timer has expired without
error and input "S" has signal state "1".
If the signal state at the "S" input changes from "1" to "0" before the timer has
expired, the timer stops running and output "Q" has a signal state "0".
Note In STEP 7, you can replace the traditional timer and counter functions with IEC
—conforming system function blocks (SFB). The use of system function blocks
is dealt with in an advanced programming course.
DI DO
I 0.0 \
O T_System_ON
I 0.1 T_System_OFF L_SYSTEM Q 4.1
I 0.2 N
O T_Jog_RIGHT L_MAN Q 4.2
I 0.3 \g T_Jog_LEFT L_AUTO Q 4.3
I 0.4 \gi S_M/A_ModeSelect
I 0.5 T_M/A_Accept
N
O
N
O
T_Ackn L_Conv
1 1.0 \
CI Q 5.0
_Fault Fault
\
O
\
O
\
Ig
\
CI
\
O
N
O
Task The transport functions while in AUTO mode are to be monitored. The
monitoring is to function as follows:
• If the transport function takes longer than the 6 second monitoring time (if a
part does not pass through the light barrier within 6 seconds of its start
time), then there is a fault in the system and the conveyor motor is
automatically switched off (logic in FC 16).
• A fault is displayed with a 2Hz flashing light (bit no. 3 of the CPU clock
memory byte MB 10) on the simulator LED "L_Conv_Fault" (Q 5.0)
• A fault can be acknowledged via the simulator momentary contact
"T_Ackn_Fault" (I 1.0)
• The indicator lights at Bays 1 and 2 only once more show a constant light (=
place a new part), when the fault has been acknowledged (lock-out in
FC 14)
I= MI MI NI
Number Conversion
entered in BCD
0 81 5 BCD->Integer
OM
User program
> Task
1.......,
with Integer
math operations
Number
displayed
Conversion
BCD<-Integer <=1
in BCD
LAD FBD
1
SIMATIC S7 1.SITRAIN Training for
.4
Date:
File
18.09.2009
SERV1_10E.17
4
,1kr Automation and Industrial Solutions
Siemens AG 2008 All rights reserved.
10
Application Since there are no arithmetic operations for the direct processing of BCD-
coded values, these have to be converted into arithmetic data types (I, DI or R)
through format conversions.
Conversion S7-300 / 400 has a series of conversion operations available– here a few
Operations examples:
Siemens AG 2008. All rights reserved. File: SERV1_10E.18 Ir Automation and Industrial Solutions
CMP You can use comparison instructions to compare the following pairs of
numerical values:
Compare integers (on the basis of 16 bit fixed-point number)
D Compare integers (on the basis of 32 bit fixed-point number)
R Compare floating-point numbers (on 32 bit real number basis =
IEEE floating-point numbers).
If the result of the comparison is "true", then the RLO of the operation is "1",
otherwise it is "0".
The values at inputs IN1 and IN2 are compared for conformity with the
specified condition:
SIMATIC S7 Date:
File:
18.09.2009
SERV1_10E.19 gr
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008 All rights reserved.
10
Arithmetic S7-300 / 400 has a series of arithmetic operations for the processing of
Operations variables of the integer (I), double integer (DI) and real (R) arithmetic data
types.
IN1 / IN2 The arithmetic calculation is applied to the values delivered to IN1 and IN2 (in
STL, the value loaded first with the value loaded second, in general: ACCU2
with ACCU1) and the result is output to OUT.
I 0.1 \
O T_System_OFF L_SYSTEM • Q 4.1
0 8 1 5 7
I 0.2 T_Jog_RIGHT L MAN Q 4.2
1 0.3 0 0 0 0
\
O T_Jog_LEFT L AUTO 0 Q 4.3
I 0.4 \
O S_M/A_ModeSelect • "IW_Thumbw" (IW 2) "QW_DigDisp" (QW 6)
I 0.5 \
O T_M/A_Accept •
\
O •
\
O
Function Up Till Now • The parts transported in AUTO mode are counted (with the S5 counter C18)
in FC 18 as soon as they have passed through the light barrier "LB" ("LB": 0 4 1)
• The number of transported parts (ACT quantity) is displayed on the BCD
digital display.
• The counter is reset when the system is switched off (Q 4.1 = "0").
New Function FC19 • The counting of the transported parts is no longer to be done with the counter C 18,
but rather by addition using MW 20.
• The SETPOINT Quantity of how many parts are to be transported can be set
using the BCD thumbwheel. When the given SETPOINT Quantity is reached, it is
displayed with the message "ACT=SET' on the conveyor model LED "L_Bay-LB"
(Q 8.4).
• As long as the message "ACT=SET' (Q 8.4) exists, the indicator lights at Bay 1 and
Bay 2 are dark (= no new part can be place on the conveyor - lock-out in FC 14)
and no new transport function can be started (- lock-out in FC 16).
• The message "ACT=SET' can be acknowledged using the conveyor's momentary
contact "T Bay-LB" (I 8.4) by resetting the actual quantity (MW 20). Also, when the
system is switched off, the ACT Quantity (MW 20) is reset to "0".
What to Do 1. Copy the block "FC_Count_Add" (FC 19) from the S7 program "Chap10_digital_Op"
of the project "SERV1_B" into your S7 program called "My_Program" of your project
called "My_Project"
2. In OB1, call the new FC 19 instead of the old FC 18
3. In the blocks "FC_Signal" (FC 14) and "FC_ConvMotor" (FC 16), program the
appropriate lock-outs
Note When you set the SETPOINT Quantity, the CPU occasionally goes into the STOP
state because the BCD thumbwheel "bounces" when you change the numbers or it
delivers invalid BCD values.
Note The following pages contain either further information or are for reference to
complete a topic.
For more indepth study we offer advanced courses and self-learning mediums.
Cony
Fault
M 17.0
3—
Cony
Fault 2—
Counter C 17 l-
e
M/A AUTO
Q 4.3
A
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_10E.22 Automation and Industrial Solutions
Function Up Till Now The transport functions in AUTO mode are monitored. If the transport function
takes longer than the 6 second monitoring time (if a part does not pass through
the light barrier within 6 seconds of its start time), then there is a conveyor belt
fault condition in the system and the conveyor motor is automatically switched
off (logic in FC 16).
Task: The conveyor belt fault conditions in AUTO mode are to be counted. After 3
conveyor belt fault conditions have occurred, the AUTO mode is to be switched
off for safety reasons. To start a new transport function, the fault condition must
be acknowledged (as already programmed) and the AUTO mode must be
switched on once more.
What to Do: 1. In FC 17, in a new network, program the counting of the conveyor belt fault
conditions using the S5 counter C 17 as the count down counter.
- When the "Auto" mode is switched on, the counter is set to 3 (number of
conveyor belt fault conditions until the AUTO mode is switched off)
- The counter counts down 1 every time a conveyor belt fault condition
occurs (M 17.0 = "1").
2. In FC 15 (operator mode section), program the switching off (reset) of the
AUTO mode after three conveyor belt fault conditions.
The AUTO mode must switch off when the counter C 17 has counted down
from 3 to 0 or when its binary state changes from 1 4 0. In FC 15
"FC_Mode", use the bit memory M 15.7 as auxiliary bit memory to record
the negative edge of C 17.
Jog RIGHT
I 0.2
Cony motor
RIGHT
(Q8.5)
Lock-out
RIGHT -
T 15 (SF)
Jog LEFT
I 0.3 <—
lock-out
time RIGHT
Cony motor
LEFT
(Q8.6)
Lock-out
LEFT
T 16 (SF)
SIMATIC S7 Date:
File:
18.09.2009
SERV1_10E.23
A
r
,
41
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
10
The Function Jogging In MANUAL mode (Q 4.2 = '), you can jog the conveyor motor to the RIGHT
in FC 16 Up Till Now: and to the LEFT using the simulator momentary contacts I 0.2 and I 0.3.
Task: In order to avoid too great a load change, it should only be possible to jog the
conveyor motor in the opposite direction after it has been jogged to the RIGHT
or to the LEFT after a lock-out time of 2 seconds (see slide). If, for example, the
motor has been jogged to the RIGHT, then it can only be jogged back to the
LEFT after the lock-out time of 2 seconds has expired.
Solution Hint: By using a "branch", you can integrate the timers in the two networks Jog
Conveyor RIGHT and Jog Conveyor LEFT as follows:
S5T#2s- TV
LAD FBD
Network 1: C5
0.0 I 0.0 SC
I C5
A 1 0.0
II SC
( ) C#20 CV L C#20
C#20 S C5
Network 2:
I 0.1 C5 C5
I 0.1 CU A 1 0.1
(CU) I
CU C5
Network 3:
I 0.2 C5 C5
A 10.2
(CD) I 10.2 —I CD I CD C5
Network 4:
C5 Q 4.0 Q 4.0
A C5
C5 = Q 4.0
) I I
Bit Instructions All counter functions can also operate with simple bit instructions. The
similarities and differences between this method and the counter functions
discussed so far are as follows:
• Similarities:
Setting conditions at the "SC" input
- Specification of the counter value
- RLO change at the "CU" input
- RLO change at the "CD" input
• Differences:
- It is not possible to check the current counter value since
there are no Binary (CV) or BCD (CV_BCD) outputs.
- There is no binary output Q in the graphical representation.
T4 T4 A 1 0.7
I 0.7 S_ODTS Q8.5 S_ODTS L S5T#35s
II S Q ( ) I 0.7 — S BI MWO SS T4
S5T#35s — TV BI — MW0 S5T#35s — A 1 0.5
TV BCD QW12
Q8.5 R T4
10.5
R BCD — QW12 I 0.5 — R L T4
I I T MWO
LC T4
T QW12
A T4
Q8.5
RLO at S L
RLO at R
Timer
operation
> Example
10
Start The stored-on-delay timer starts when the RLO at the "S" input changes from
"0" to "1". The timer runs, starting with the time value specified at input "TV",
and continues to run even if the signal at input "S" changes back to "0" during
that time.
If the signal at the start input changes from "0" to "1" again while the timer is
still timing down, the timer starts again from the beginning.
Reset When the RLO at reset input "R" changes from "0" to "1", the current time value
and the time base are deleted and output "Q" is reset.
Binary Output The signal state at output "0" changes to "1" when the timer has expired
without error, regardless of whether the signal state at input "S" is still "1".
RLO at S
RLO at R
Timer
operation
> Example
Start The pulse timer starts when the RLO at the "S" input changes from "0" to "1".
Output "Q" is also set to "1".
T4 T4 A 1 0.7
10.7
S_PEXT Q8.5 S_PEXT L S5T#35s
SH Q ( ) I 0.7 — S BI MWO SE T4
S5T#35s — Tv BI — MW0 A I 0.5
S5T#35s — TV BCD — QW12
10.5 Q8.5 R T4
R BCD — QW12 I 0.5 R L T4
I I
T MWO
LC T4
T QW12
A T4
Q8.5
RLO at S
RLO at R
Timer
operation
> Example
10
Start The extended pulse timer starts when the RLO at the "S" input changes from
"0" to "1". Output "Q" is also set to "1".
The signal state at output "Q" remains at "1" even if the signal at the "S" input
changes back to "0".
If the signal at the start input changes from "0" to "1" again while the timer is
running, the timer is restarted.
T4 T4
A 1 0.7
I 0.7
S_OFFDT S_OFFDT L S5T#35s
Q8.5
I I S Q ) I 0.7 — S BI —MWO SF T4
S5T#35s - TV BI — mwo A 1 0.5
S5T#35s — TV BCD —QW12
10.5 Q8.5 R T4
R BCD — QW12 I 0.5 — R Q L T4
I I
T MWO
LC T4
T QW12
A T4
Q8.5
RLO at S J
RLO at R
Timer
operation
> Example
7 I-
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_10E.28 Automation and Industrial Solutions
Start The off-delay timer starts when the RLO at the "S" input changes from "1" to
"0". When the timer has expired, the signal state at output "0" changes to "0".
If the signal state at the "S" input changes from "0" to "1" while the timer is
running, the timer stops. The next time the signal state at the "S" input changes
from "1" to "0", it starts again from the beginning.
Reset When the RLO at reset input "R" is "1", the current time value and the time
base are deleted and output "Q" is reset.
If both inputs (S and R) have signal states of "1", output "Q" is not set until the
dominant reset is deactivated.
Binary Output Output "Q" is activated when the RLO at the "S" input changes from "0" to "1". If
input "S" is deactivated, output "Q" continues to have signal state of "1" until the
programmed time has expired.
S5T#35s200ms
Time specifications as constants
(Time base: 01 (100ms), Number of units of time: 352)
01 3 5 2
29 28 27 26 25 24 23 22 21 2°
Accu 1 contents after "L T..." exec x x x x x x 0 0 0 0 0 0 0
01 3 5 2
I
I
Time base Residual units of time (BCD-coded)
10
Time Specification Time values can be fixed and are specified as time constants. The permissible
range in which the time values are found ranges from S5T#10ms to
S5T#2h46m30sOms.
Variable times can be specified using variables (such as memory words or data
words) containing the S5TIME data type. The user must make sure that the
appropriate time base and the number of units of time, as shown in the slide,
are stored in the variable in his program.
Time Base The time base defines the interval at which the number of units of time is to be
decremented by one unit when the timer runs. Bits 12 and 13 of the variable
must contain the time base as a binary-coded number:
Units of Time The number of units of time must be specified as a BCD-coded number. When
the number of units of time are multiplied by the time base, this results in the
desired time value. The range from 1 to 999 is possible. When there is a time
specification using a constant (S5T#...), the system automatically uses the
smallest possible time base and the number of units of time.
L / B1 At output "BI" or with the instruction "L T..." , the residual time value (number
of units of time) of the timer is queried as an integer without time base.
LC / BCD At output "BCD" or with the instruction "LC T..." , the residual time value
(number of units of time) of the timer is queried as a BCD-coded number with
the time base in Bit 12 and 13.
Network 1:
I 0.0 T4
A 10.0
(SD) L S5T#5s
S5T#5s SD T4
Network 2:
T4 8.0
A T4
= Q 8.0
Network 3:
I 0.1 A I 0.1
R T4
Bit Instructions All timer functions can also be started with simple bit instructions. The
similarities and differences between this method and the timer functions
discussed so far are as follows:
• Similarities:
- Start conditions at the "S" input
- Specification of the time value
- Reset conditions at the "R" input
Signal response at output "Q"
• Differences for LAD and FBD:
- It is not possible to check the current time value (there are no "BI" and
"BCD" outputs).
> Task
11> Conversion from
integer to
double integer
i=>
Conversion from
double integer
to real number
Math
program
with
real numbers
B
EN
I Dl
OUT — MD14
EP
D DI R
11)1 DIR
EN ENO EN ENO —
11 SITRAIN
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_10E.31 qv Training for
Automation and Industrial Solutions
Application Basically, arithmetic operations can only process values of the same data type.
Therefore, there are operations with which integer values (I or DI) can be
converted into real values (R) and vice versa.
I_DI (in STL: ITD) converts a 16-bit integer (I) into a 32-bit double integer (DI)
DI_R (in STL: DTR) converts a 32-bit double integer (DI) into a floating-point number (R)
Other Conversion
Operations are discussed in one of the advanced programming courses:
INV _I (INVI) Inverts an integer (I)
(formation of the ones complement)
NEG _I (NEGI) Negates (sign reversal) an integer (I)
(formation of the twos complement)
TRUNC (TRUNC) Conversion R - DI: cut off after decimal positions
ROUND (RND) Conversion R - Dl: round
CEIL (RND+) Conversion R 4 DI: general rounding up
FLOOR (RND-) Conversion R - DI: general rounding down
INV_DI (INVD) Inverts a double integer (DI)
(formation of the ones complement)
NEG_DI (NEGD) Negates (sign reversal) a double integer (DI)
(formation of the twos complement)
NEG_R / NEGR Negates (sign reversal) a floating-point number (R)
WX0R_W L IW 0
WORW
L W#16#5F2A
WAN D_W
AW / OW / XOW
EN ENO-
T MW10
IWO IN1
OUT MW10 15 0
W#16#5F2A IN2
IWO = 0 0 0 0 0 0 0 0 0 0 0 1 0
W#16#5F2A = 0 0 0 0 0 0 1 0
AND OR XOR
WAND_W The "AND Word" operation gates the two digital values at inputs IN1 and IN2
bit by bit in accordance with the AND truth table. The result of the AND
operation is stored at the address at output OUT.
The instruction is executed when EN = 1.
Example: Masking out the 4th decade of the thumbwheel buttons :
IW4= = 0100 0100 1100 0100
W#16#OFFF =0000 1111 1111 1111
MW30 = 0000 0100 1100 0100
WOR_W The "OR Word" operation gates the two digital values at inputs IN1 and IN2 bit
by bit in accordance with the OR truth table. The result of the OR operation is
stored at the address at output OUT.
The instruction is executed when EN = 1.
Example: Setting bit 0 in MW32 :
MW32 =0100 0010 0110 1010
W#16#0001 = 0000 0000 0000 0001
MW32 = 0100 0010 0110 1011
WXOR_W The "Exclusive OR Word" operation gates the two digital values at inputs IN1
and IN2 bit by bit in accordance with the XOR truth table. The result of the OR
operation is stored at the address at output OUT. The result of the XOR
operation is stored at the address at output OUT.
The instruction is executed when EN=1.
Example: detecting signal changes in IWO :
IWO = 0100 0100 1100 1010
MW28 = 0110 0010 1011 1001
MW24 =0010 0110 0111 0011
L MW 220
L 1W 0
XCW
L MW 220
AW
T MA 224
Network 3: raving
L 1W 0
T MW 220
211 2.f.:1
Press Fl to get Help. E431--
0 keine iAbs <5.2 'W3 in 1 4
4
SITRAIN Training for
SIMATIC S7
Siemens AG 2008. All rights reserved. File: 18.09.2009
Date: SERV1_10E.33 Automati on and Industrial Solutions
10
General The program example displayed in the slide implements a logic for detecting a
signal change of 16 binary digits (edge detection for 16 bit) using digital word
instructions.
Network 1 For the detection of a positive edge detection, that is, the detection of a signal
change from 0 4 1, it suffices to carry out a digital AND operation of the
change pattern (MW 220) with the new signal states (IW 0).
Network 2 If only the 1 4 changes are to be detected, a digital AND operation of the
change pattern with the old signal states is to be carried out.
Network 3 Save the old states so that the signal state change can be detected.
SNAIL-. PANEL
TA
PROFIBUS DP
r
SIMATIC S7 Date: 18.09.2009
"" S TRAIN
1 Training for
CPI
-.T., Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_11E.1
Contents Page
Objectives ........................................................................................................................................ 2
Structure of a PROFIBUS DP System ...... 3
Configuring a PROFIBUS DP Master System ...... 4 11
Configuring Compact and Modular DP Slaves 5
Exercise 1: Configuring the DP System (ET 200S) ...... 6
Control and Monitoring with SIMATIC HMI ...... 7
Communication between SIMATIC S7 and the HMI System ...... 8
Configuring Phase, Downloading Phase and Process Control Phase ...... 9
WinCC flexible 10
Touchpanel: Setting the Interface for the Project Transfer 11
HW Config: Setting the Runtime Interface 12
WinCC flexible — Configuration Tool 13
Input and Output Fields .................................................................................................................. 14
Buttons ............................................................................................................................................ 15
Defining the Connection to the Controller ....................................................................................... 16
Transfer Settings in WinCC flexible 17
Exercise 2: Setting the Touchpanel Interface for Transfer 18
Exercise 3: Switching the PG Interface to PROFIBUS DP ............................................................. 19
Exercise 4: Checking the PROFIBUS DP ........................................................................................ 20
Exercise 5: Checking the RT Interface of the WinCC flexible Station 21
Exercise 6: Checking the Connection to the Controller ................................................................... 22
Exercise 7: Transferring the WinCC flexible Project into the Touchpanel ....................................... 23
Exercise 8: Testing the WinCC flexible Project ................................................................................ 24
Exercise 9: Testing the WinCC flexible Buttons .............................................................................. 25
If You Want to Know More .............................................................................................................. 26
PROFIBUS - DP Terminating Resistor .......................................................................................... 27
Segment Length Depending on the Baud Rate ............................................................................. 28
PROFIBUS Connector ..................................................................................................................... 29
Preparing a Fast Connect Cable ................................................................................................... 30
Installing PROFIBUS-DP Slaves Later On 31
Objectives
be familiar with the principle of interfacing the touch panel via tags
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 2 Introduction to HMI and PROFIBUS DP (1)
SIEMENS
Master
PS S7 S7
10A PS S7-300 S7-300 S7
S7-400 S7-300
CPU CP
314 342-
5 DP
PROFIBUS -DP
ET 200M
SIMATIC S7-300
P S7 S7 ST S7
S7
SI
Slaves CP STAND.
DP
342-
SLAVE
5 DP
STAND.
DP
SLAVE
Overview The units installed in the field for automating technical processes, such as
sensors, actuators, transducers and drives more and more make use of field
bus systems for exchanging information with the higher-level controller units.
PROFIBUS is an established fieldbus system which can be used by all 11
automation equipment, such as PLCs, PCs, Human-Machine Interfaces as well
as actuators and sensors, for exchanging data.
PROFIBUS-DP PROFIBUS-DP is a protocol optimized for speed which was specially designed
for communication between PLCs (DP masters) and distributed I/Os (DP
slaves).
PROFIBUS-DP is a low-cost, flexible substitute for transmission of signals on
cumbersome parallel 24V and 20mA lines.
PROFIBUS-DP is based on DIN 19245 Part 1 and the user-specific extensions
in DIN 19245 Part 3. In the course of the European fieldbus standardization
process, PROFIBUS-DP was integrated into the European fieldbus standard
EN 50170.
Master Devices PROFIBUS makes a distinction between master and slave devices. The
PROFIBUS masters are in charge of data traffic on the bus. A master can send
messages without being requested to do so, provided it is in possession of the
token that entitles it to access the bus. Masters are also referred to as active
nodes in the PROFIBUS protocol.
Slave Devices PROFIBUS slaves are simple I/O devices, such as actuators, sensors,
transducers, etc. They do not receive the token, that is, they can only
acknowledge the receipt of messages or send messages (data) to a master on
request. Slaves are also referred to as passive nodes.
:: Address:
1 57_300_
Master System
Highest address.. 126
DI3240C24V
5 D0321rDC24V/0.54
6 DIEVDO8k24V/0.5A
7 Al2x12Bit
8
9
Dc32- 11 %I& -
TP- i8I It It? &Atm
_Z
SIMATIC S7 Date: 18.09.2009 'SITRAIN Training for
File: SERV1_11E.4 Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Distributed I/O All master systems consisting of a DP master and DP slaves that are connected
using a bus cable and that communicate via the PROFIBUS-DP protocol are
designated as distributed I/Os.
.0'1 wren*.
I
4 D132)0 C24V iIM151 -1 FO Standard . -1
'
5 0032xDC24V/0.5A 1 IM151-1 HF
6 D18/1)08a4V/0.5A F 1 IM151 -1 HF
7 Al2x12Bit IM151-1 Standard
8 E TN 1M151 -1 Standard < .......1
9 1 +, AI
10 El 0 AO
.
41 El a cP
q-ca DI
3..0 DO
110±.1 (4) IM151-1 Standard
. Pack Addresses 1 F-R0 24V..2301/5A
200 AC24..230V/1A
Slot f Module Order Number I Address 0 Address '
200 DC24V/0,54 HF
1 PM-E DC24V 6E S7 138-4CAOCI-CIAA0
MO DC24V/0.5A HF
4D1 DC24V ST 6E57 131-413D00-0AA0 eH 23
200 DC24V/0,5A ST
401 DC24V ST BEST 131-413000-00AD e4 87 I 200 DC24V/0,5A ST
4 400 DC241//01,54 ST 6E97 132-413ND-045J) 8.0...8.3 ,nn nriavoe wr
5 4D0 D124V/0,54 ST 6ES7 132-Q000-0AM 8.4...8.7 41 ■
6
7
6E S7 151-1AAG2-0ABO tS
Interface module IM151-1 for ET 2005
li
r electronic modules, send capability for diect
data exchange
Press Fl to get Help.
Task You are to commission the DP system for your training unit so that the conveyor
model can be controlled using the ET 200 S when you have the same
functionality, without having to modify the S7 program.
What to Do 1. Expand the existing configuration to include the distributed (remote) station
ET 200S (additional connection possibility for the conveyor model).
Notes: Insert the PROFIBUS DP master system as follows:
OFF ON Select the DP interface of the CPU - Menu Insert - Master System -
New...
64
32 To connect the ET200S, use the mouse to drag the interface module IM151
from the module catalog to the master system (see slide)
16
8 2. On the IM 151-1's address switches, set the Slave Address to 4
4 (see slide left) and check the PROFIBUS cabling
2 Note: Changes to the slave address only take effect after Power ON/OFF!
3. Change the addresses of the mixed DI/DO module in the URO Universal
Rack to IB 88 and QB 88.
4. For the input and output addresses in the ET200 S, configure the addresses
IB 8 and QB 8.
Note: So that the 8 channels of a module are located in one byte, you have to
pack the addresses. To do so, select both modules and then click on "Pack
Addresses" (see slide)
4. Connect the conveyor model to the interface of the ET200S.
5. After "Save and Compile" download the configuration into the CPU.
6. Verify that the configuration is error-free. The error LEDs — Group error (SF)
and bus error (BUSF) must be dark on the CPU.
7. Test the program you have created up until now. Everything should work as
before.
Process
Visualization System
SIMATIC WinCC
SIMATIC Panels
ProTool I Pro
SIEMENS
200. 5moms...A lighrtt men.
c.1wIndowIllssern•A0actsysem astall 0.5000.0 b7755c5619315089•malsall
Overview With SIMATIC HMI, there is a field-proven HMI system for user-friendly process
control and monitoring available for the SIMATIC S7. The products range from
simple text display to the process visualization system.
SIMATIC S7 and SIMATIC HMI are completely harmonized and integrated. This 11
greatly simplifies the use of the SIMATIC HMI control and monitoring system.
• The SIMATIC S7 has already integrated HMI services. The HMI system
requests process data from the SIMATIC S7. Data transmission between
SIMATIC S7 and SIMATIC HMI is handled by the two operating systems
and does not have to be taken care of by the user.
SIMATIC HMI systems can be connected directly to PPI (S7-200) and MPI,
i.e., PROFIBUS (S7-300 and S7-400) and Industrial Ethernet, i.e.,
PROFINET. A networking via PROFIBUS or Industrial Ethernet, i.e.,
PROFINET makes the process control and monitoring possible even over
greater distances and to several controllers.
• Numerous features from the uniform data base and symbols to the same
user-friendly Windows-oriented user interface make it easy to use HMI
systems.
-dom isno._
wopro • MPI
SIEMENS SIMATIC PANEL
• PROFIBUS DP
fr4N/ • Industrial Ethernet
Trahrig for
Automata" and Crives
Update n
• •••
Fault
Re screen
Tag Process tags are used to make the data exchange between SIMATIC S7 and the
HMI system. Tags are created in the configuration with WinCC flexible and are
assigned to a CPU data area for this. The HMI system cyclically reads out the
tag values and displays them in an output field, for example.
Data Areas In the configuration of tags, the following CPU data areas - global tags - can be
used:
• Data blocks (DB)
• Bit memories (M)
Inputs (I) and Outputs (Q)
Peripheral input (PI) and Peripheral output (PQ)
• Timers (T) and Counters (C)
HMI systems also recognize local tags without process connection. That is, these
tags are processed exclusively internally and do not require any communication
resources.
Communication The operator panels can communicate with the PLC using the MPI or
PROFIBUS DP or Industrial Ethernet bus systems. The S7 protocol is used here.
Communication is organized through the S7 CPU and HMI system operating
systems. User programming on the S7 is therefore not necessary.
An operator panel can exchange data with several PLCs simultaneously.
Updating Data transfer between SIMATIC S7 and the HMI system takes place cyclically.
That is, process tags are cyclically read and written depending on the configured
update times.
PC/PG
WinCC flexible
PC/OP/TP
Configuration Configuration
data data
Flash Flash
Source file
<Name>.hmi
Ethernet I MPI
DP
A
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_118.9
4,1 SITRAIN Training for
Automation and Industrial Solutions
Introduction You configure your project on a PC or programming device (PG). You then
generate the configuration under WinCC flexible and download it to the
PC/OP/TP.
If the PC/OP/TP is connected to the PLC, the PC/OP/TP displays the current 11
values in the tags and graphics. The three phases of working with the
configuration data are shown in the slide.
1. Defining the PLC and the type of connection (MPI, PROFIBUS DP,
Industrial Ethernet etc.)
2. Making general settings for the PC/OP/TP (defining the current
connections etc.)
3. Generating objects such as tags, screens, messages etc.
4. Downloading (transferring) the generated database to the HMI system via
MPI, PROFIBUS DP, or Industrial Ethernet
Editors WinCC flexible includes a set of editors (tools) for configuring the different types
of objects. You create each object under a symbolic name. You must specify
this symbolic name time and again, for example, when creating, editing,
referencing or deleting the object.
WinCC flexible
Advanced
Advanced Demo
- Complete functional scope
Standard - Limited to a max. 30 days
Compact
*) Options *) Options *) Options
Micro
• R PIM
. .......
WinCC flexible The Engineering System (ES) is the software with which you carry out all the
Engineering System necessary configuring tasks in order to create an interface for controlling and monitoring
machines and systems.
Editions The Engineering System of WinCC flexible is modularly graded into different editions.
The edition determines which operator panels of the SIMATIC HMI spectrum can be
configured.
With each higher edition, a wider range of target devices and functions is supported. The
configuration data is compatible.
Micro: Configuring the micro panels
Compact: Configuring the micro panels and panels of the 70 and 170 series
Standard: Configuring all panels (micro panels, panels of the 70/170/270 and 370
series)
Advanced: Configuring the PC-based and all other panels (micro panels, panels of the
70/170/270/370 series and PC Runtime)
Advanced Demo:Test version limited to 30 days
Changing the With the WinCC flexible Compact edition and above, you can change to a higher
WinCC flexible Edition WinCC flexible edition with a "Powerpack".
Runtime WinCC flexible Runtime (RT) is the software for process visualization on the operator
panel. With Runtime, you execute the project during process operation.
The various panels already come delivered with operating system and the appropriate
Rutime version. Possible, additionally required Runtime components are loaded along
with the project onto the panel.
Transfer PROFIBUS •K X
Control
— Station Parameters
Address:
( Panel Time-out: 1 s
Profile: DP
Pe2knal 57-Trrnir., Screw&wet
Settrcs Sett,C5
Bus Parameters...
Transfer Settings
Channel I Directories 1
Channel 1:
S7-Transfer Settings MEI
Serial:via R5232 /Zero Modern Cable MPI
,
F.Enable Channel Remote Control Profibus
Channel 2:
I MFVProtibus Properties...
Enable Channel F.; Remote Control advanced
Transfer Settings The interface of the TP170B must be set up for the project transfer.
These settings are only relevant for downloading the project, not for later
communication between panel and controller during the process control phase.
The interface parameters necessary for this are defined with WinCC flexible 11
within the project.
JJxJ
O My_Projett Object name Symbolic name Type
E S7300_Station Ilk Configuration MR" &ion ntiguration
E g TP170B_Color flexible RT
HW Config - [TPI70B_Color (Configuration) -- My_Projeitt
Mk Station Edit Insert PLC View Options Wndow Help JJJ
k% a gAermiligm annisav
03 (0) HMI
Press Fl to get Help.
Order No.:
Interface
Index Module Order numb
Type IPROFIBUS
Addis=
Netweiked Yes
Comment
Communication For a WinCC flexible project that is integrated in STEP7, the interface
Settings parameters (address and network) are set up with the HW Config tool — as
shown in the slide. With the parameters set here, the panel will later
communicate with the controller or controllers during Runtime or during the
process control phase.
For WinCC flexible projects not integrated in STEP7, these parameters are
defined with WinCC flexible in the configuration of the "Connections" (see
following pages).
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 12 Introduction to HMI and PROFIBUS DP (1)
SIEMENS
•
•
• 11=2_ COP:- •
i•eiC4 •
l
SIEMENS
It *•
E s TP17CEL.Colot(TP 1708 mice/ Simple Objects
E 17=3 Samna
4 Add Screen SIMATIC PANEL] / Line
Template PolylMe
Conveys,
HM420 Cis Polygon
Training tor Ellipse
0 Stan
Automation and Drives
▪ !rst Communication 3 Circle
Tops ▪ Rectangle
Cennetrions ........ si[B1111M•11111 111 •••11gr i,
Sae Cycler
El Text Field
▪ Aisne hlamgement
•
........ Editor.SeCtion ............ff Ei 10 Field
P IR
1/4 Analog Akins
Discrete Alum
w (Work Area) ............ K
..................
Date-Time Field
.""""" 11 :11 • 11 - 1.0 WWI! •- : El Graphic 10Field
E Seaga
• Recipes
Symbolic 10 Field
• Teri and Graphics Ltels Q Graphic. Mee
• Airtime Wet Admevreation NI Button
Deese Seems ▪ Switch
-
S ti Language Settings
S Inroad Languages EU I .
Graphics
Propel Teets
• •Direonaner
Shretures
g Varian Managernent
; Properties *
General "" "" . .....
la Properties
..... nhanced Objects
—
Activating For projects integrated in STEP7, WinCC flexible can be started directly from
the SIMATIC Manager.
After software installation, the engineering tool starts with an initial start screen. 11
The most important windows are opened.
Project Window The project window is the central switching position for configuration. All
components and all available configuration editors of a project are displayed in
the project window in the form of a tree structure and can be opened from
there. Each Editor has an icon assigned to it through which you can identify the
associated objects. Only elements that are supported by the selected operator
panel are displayed in the project window. In this window, you have access to
the operator panel's device settings, the language support and the version
administration.
Work Area The work area is the central configuring area in which the objects of the
operator panel are edited using the editor that has been started. Several editors
can be open at the same time.
Properties Window In the Properties window, you edit the properties of selected objects (such as,
the properties of screens, screen objects, tags). The Properties window is only
available in those editors where object properties have to be set.
Tool Window The Tool window contains all configurable objects that can be configured in
screens and it also enables the access to libraries.
Task Window The Task window displays all engineering system messages that are created
when generating a project, for example.
Output i.
I/O Field Mode Tag values are displayed through output fields. The values of tags can also be
specified through input/output fields using a screen keyboard. The mode can be
set in the Properties window as shown in the slide.
Format Type With Format Type you define in which format the value of the tag is to be
displayed.
Tag In the field Tag you define from which WinCC flexible tag the value in the I/O
Field is to be displayed or specified.
The WinCC flexible tag is, as a rule, linked to a variable of the S7 controller.
However, it can also be an internal tag that is not linked to a variable of the S7
controller and that merely serves to store values within the HMI device.
Buttons
WinCC flexible Advanced - My_Project - Touchpanel
New rat .
English (Unked States) v Tahoma No 1 8 No
( (Cc oaveyor
ler PRO1
Touchpanel(TP 1776 6"
e
.... Simple Objects
Screens
A
-11 Add Screen Jog Graphics View
Template right
0 Conveyor Button
MM420 switch
0 Start
...-
Enhanced Objects
Communication
Tags Graphics
Connections
- jud PRO1
Cycles ack
IS Touchpanel M_Conv_Fault M 17.0
Alarm Management Lau
1E1 /3. Communicatior M_Conv Jog_LEFT_HMI M 30.3
RA Analog Alarms
Tags M_Conv Jog_RIGHT_HMI M 30.2
EA Discrete Alarms
My_Project _MiA_Accept_HMI M 30.5
• r Settings MIA_Mode5elect_HMI M 30.4
Recipes
+ , Reports
Or Events 7>>
> New
r_ Text and Graphics L I CI
ak, ail• •
+ 2 Runtime User Admin
It Press ti=>SetBit
+ Device Settings
• *MA&
,= 4 Language Settings
• Tag I InOutj Conv3og_RIGHT,EIMI t
• Activate w.
Project Languages
2 crio function>
Fif Graphics
output
Buttons The operator can use buttons to initiate system functions such as the selection
of a screen or the setting of a tag as shown in the slide.
Through the "Events" of a button, you define in which event which system
function is to be executed. 11
Variable If the selected system function is executed with a WinCC flexible tag, this tag
must be specified.
The WinCC flexible tag is, as a rule, linked to an S7 controller variable. It could,
however, also be an internal tag that is not linked to an S7 controller variable,
but is simply used to store values within the HMI device.
I.PRO
oip 0 start 0 m,-;:: .sy.......... ci o e
TP171:8_Colagl. 1708
i J J ''-', r_.:i'l rj _1 _1_7j
-
C
r:1 J
tt Screens
-2 Add Screen FIE. ornmunication driver artner
zjMIMI
1....1:1 Template =111.=;
PEI Conveyor
II .....Uun_I On :ISIMA17C 57 3001400 L•illiy_Project15... •• CPU 315-2 DP DP °n
:1 :1
1.... In MM420
, ,..-1:1 Stan
al!Communication I 4I I I.1
I ,.-- tle Tags
Comadions 2xL miet"s Area pointer
I ,*--S--110 Cycles
1
8 NI Mem Management
VI Analog Alan= TP 1708 color Babe)
EA Discrete Alarms "—,...
.„-.-.—
Interface
* v. Settings
= 'HMI 11.1iDmi
Fr.: .. Recipes ........■
Ir- Text and Graphics Li
B ti4 Rtmline User Admini
E tz Devkits Settings HMI device Network PLC device
B Language Settings
Type Baud rate
O Languages Profie I, Address
! it Graphics 0 TTY A
1500000 •
'. r - e Project
i 01.4 Dictionaries
Terns 0 R5232
Address F -
Highest station acldress (RSA) Expansion slot
r----
EP % Sbuptuies 0 R5422 77, Rack
Eli ro Version Management 0 R5485 Access Pant CitaINE
C) %nett El Orly master on the bus Hurter of masters 7 0 Cyck operation
II ■
-
1
7 A Objects
Creating Connections With the configuring of the connection(s), the communication partners of the
operating panel are defined with which the Runtime exchanges data in the later
process control phase.
For WinCC flexible projects integrated in STEP7, connections to partners
(controllers) are merely created here. The addresses of the operator panel and
the S7 controller as well as the associated network (MPI, PROFIBUS, Ethernet)
have already been determined in the hardware configuration of the operator
panel and the S7 controller.
For a WinCC flexible project not integrated in STEP7, the connections must be
configured completely here (address of the operator panel and the controller,
network).
New Project with Projec riettings for TP17013_Color (IP 17133 color)
Close
Mode IMPI/OP
save
Station add.= 11
Save As Version...
Change device Type...
Import Tag;...
Integrate in STEP 7 .
Copy from STEP 7... Iran le,
I rr* Project Docurnenta.—....
Z\
■
• Print Selection Ctrl+W )
1708 color SIMATIC PANEL
PROFINET CBA . _ lilted
Co5pler 7,7
1-1 Dv
kansfer Transfer kettings7-1
Recent Proiects Backtransfer
j czit Lockup...
mcsecr Languages Restore... ems
sf Graphics TTY
Project Texts License keys... nsion
i
R5232
EEI - 4 Dctionaries R5922 Qptions...
Structures
C) R5985 05 Update
Version Management
Slinatic 2 Only master on the b sclic of
.1
I I
Objects 1111
Transfer Settings Transfer is the transmission of the project onto the operator panel that is to
execute the project. The transfer settings necessary for this are only relevant for
the project transfer, not for the data exchange with the controller later on during
the process control phase. 11
Transfer Mode For the transfer, the operator panel must be in "Transfer Mode". Depending on
the current interface parameterization, the operator panel must be switched to
the Transfer mode manually or it switches automatically.
Transfer PROFIBUS K x
Panel is the only master on bus
Start
Station Parameters
Language Conveyor Mk+120
Address:
Control
Panel
Time-out: 1 s
Elle loner I
— NetworkParameters
Transfer Settings
Channel Directories
Channel 1.
S7-Transfer Settings MEI
Serial:via RS232 Zero Modem Cable
MPI
,
IT Enable Channel F.; Remote Control
Profibus
Channel 2.
tbus
Properties...
F Enable Channel F Remote Control Advanced
1 A
Task The interface of the touchpanel is to be set up as in the slide, so that the WinCC
flexible project can then be downloaded from the PG to the panel.
Before you can parameterize the interface, you must exit Runtime. For this,
there is, as a rule, a button in the Start screen for doing so. After exiting
Runtime, the "Loader" appears through which the "Control Panel" (see slide)
can be activated. The Loader also appears after every voltage recovery.
Bus Parameters...
(User parameter assignment of your
communications processor CP5611 for
SOFTNET DP Master) Network Configuration
Interfaces
r Include network configuration belsrs
[ Add/Remove: Select
Master: 11 Slaves 1
Task So that the WinCC flexible project can be downloaded from the PG onto the
touch panel, the PG's interface parameters and the transfer settings of the
touch panel must both be parameterized to PROFIBUS DP.
11
What to Do 1. Change the PG's interface to PROFIBUS DP. Use the parameters shown in
the slide.
Important:
For "Interface Parameter Assignment Used" DO NOT select
"PROFIBUS-DP Slave", since the PG is not used as a PROFIBUS slave.
2. Connect the online cable of the PG with a PROFIBUS DP interface.
Test 10K
Access Path
Station address:
Access Point of the Application:
Bus parameters:
I _ NLINE (STEP 7) --> CP5611(PROFIBUS) Baudrate: 1500.00 Kbps
(Standard for STEP 7) Highest station address (HSA): 126
Minimum station delay Time (Min Tsdr): 11 tBit
zi
Interface Parameter Assignment Used Maximum station delay Time (Max T sal 150 tBit
Properties...
Setup time (tsetj: 1 te it
ICP5611(PROFIBUS) <Active>
_N Bus Nodes
1r-4 CP5611fMPlj Diagnostics...
11 --v> 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
1'4 CP5611(PPI) o irirrrrrrrrrrrrrrrrr
- ------
CP5611(PROFIBLIS DP Slave] J Copy ri rrEFFEEFF1 1 1 1 1 1 Fr
20 I—
14 CP5611(PROFIBUS) <Active> 4C EFFErrr- rr-- 1-1-1-1-1-Fri- Frr
60 rrrrrrrrrrrrrrrrrrrr
80 FrrEFFErri- r- rEFFI-1-1-1-1-
User parameter assignment of your
communications processor CP5611 for looFFEEFFErrrrrrrrrrrrr
- - -- -
SOFTNET DP Master) nor r r r rr r Key
E Station passive
- Interfaces I 17 Station active
F Station active ready
Read
j
Add/Remove: Select..
OK I Cancel I Help
OK Cancel I Help
Note The "active" and "passive" node properties indicate whether a node can (active)
or cannot (passive) initiate communication to another node.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 20 Introduction to HMI and PROFIBUS DP (1)
SIEMENS
Order No:
Name:
Interface
Type: 7
1: I OK I CarrlorM
sI
Address: 1
OK I Cancel Help
Press Fl to get Help.
Task So that the panel's Runtime can communicate with the S7 station during the
process control phase, the panel's interface must be parameterized with the
HW Config tool.
11
What to Do Using the HW Config tool, check the parmeterization of the panel's interface. If
necessary (see slide) make the appropriate corrections.
7 Output R econnect...
Task Make a connection so that the panel's Runtime communicates with your training
unit.
What to Do 1. Start WinCC flexible by opening the WinCC flexible station Touchpanel in
the SIMATIC Manager (see left slide)
2. Open the object "Connections" and check whether your S7 station is
specified as connection partner.
3. Connect the WinCC flexible tags with the controller's variables
right mouse button on "Connections" -4 Reconnect...
4. Complete the dialog that appears as follows:
—
Connect STEP7/SIMOTION symbols with WinCC flexible tags if
symbol name matches (address and data type are not relevant)
OK Cancel
4
- 0 "n.
r • •- -•
S.- New • par 11..g it, '<Undefined>
• Transfer APPIY
• 4
*rums sabot access trDA)
Arirlrecc
Task The given WinCC flexible project "Touchpanel" is to be downloaded into the
panel.
What to Do 1. Activate the Transfer function and make the settings as shown in the slide 11
2. Start the data transfer to the panel using "Transfer"
\
GI T_Ackn_Fault L_Conv_Fault Training for
Automation and Drive
)1D •
N
O •
•
•
What to Do Select the screen "Conveyor" and check whether the following information is
correctly displayed via the output fields:
• States of the proximity sensors of Bays 1 — 3 and the light barrier
• Display of conveyor faults
• Operating states (System ON, Manual and Auto modes)
• ACT quantity
SIMATIC S7 18.09.2009
SITRAIN Training for
Siemens AG 2008. All rights reserved.
Date:
File: SERV1_11E.25 1c Automation and Industrial Solutions
Task In the WinCC flexible project, find out with which S7 variables the buttons
"System on", "System off', "Jog left", "Jog right", "Mode select", "Enter Mode"
and "ackn fault" are connected and enter the variables in a Variable Table (see
slide). 11
In the "Conveyor" screen, press the buttons and with the STEP7 test function
"Monitor/Modify Variables" observe how the touchpanel sets and resets the
associated variables in the S7-CPU.
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_11E.26 „Xi SITRAIN Training for
Automation and Industrial Solutions
Note The following pages contain either further information or are for reference to
complete a topic.
ii..l
Master Slave Slave
,,,,""..1
t i
ft i E
0 M9I
1
0
of
. iii i , NI
Setting the Switch on the terminating resistor on the first and last nodes of a segment.
Terminating To do this, you open the cover of the bus connector and set the switch to the
Resistor ON position.
11
The PROFIBUS is only correctly terminated if the power supply of the node in
which the terminating resistor is inserted is actually switched on. If this is not
always the case, the PROFIBUS can also be terminated with an active RS485
terminating resistor (6ES7972-0DA00-0AA0). The terminating resistor is then
either permanently supplied with power separately from the other modules or is
supplied with voltage from the peripheral modules.
Termination of the bus system enables the nodes (for example ET 200L) to be
connected and disconnected at will, without causing malfunctions.
Segment Length
Segment Length In the slide you can see the cable lengths of a segment without a repeater
depending on the transmission speed.
RS 485 Repeater An RS 485 repeater boosts the data signals on the bus cables and connects
bus segments. You will require an RS 485 repeater, if:
• more than 32 stations are connected to the bus,
• bus segments are to be operated ungrounded on the bus or
• the maximum cable length of a segment is exceeded.
If you set up the bus with RS 485 repeaters, only a maximum of 9 RS 485
repeaters may be switched in series. The maximum cable length between two
nodes is 10,000 meters at 9.6 to 187.5 kBaud.
Standard connector
with screw terminal
PROFIBUS Connectorin the slide you can see two different versions of the PROFIBUS connectors.
The incoming cable is connected to the terminals Al and Bl.
If a connection to a further PROFIBUS partner is required, the connection is
then made to terminals A2 and B2. 11
General PROFIBUS cables can be produced quickly and error-free with Fast Connect.
You require a special stripping tool, cable and connector for Fast Connect.
What to Do 1. Measure the cable length by placing the cable on the template.
2. Place the measured cable ends in the stripping tool. Limit for the
placement depth is the pointer finger of the left hand. Fasten the cable in
the stripping tool. Turn the stripping tool clockwise four times to strip the
cable.
3. Pull the closed stripping tool from the cable end. The residual cable parts
remain in the tool. After opening the tool you can remove the residual parts.
If the white filling did not come off during stripping, you can remove it by
hand. To make it easier to remove the protective foil cut it carefully between
the wires using a screwdriver. Remove the protective foil from the wires.
Type Files STEP 7 requires a GSD or a type file for every DP slave, so that you can select
Integrating DP Slaves A new DP slave can be integrated into the Hardware Catalog as follows:
1. Select the menu options Options 4 Install New GSD
2. In the dialog field that then appears open the drive/directory with the
appropriate GSD file.
The slave is entered in the window "Hardware Catalog" (only in the catalog
profile "Standard"!) under "Additional Field Devices" and is then available
for the configuration.
DI DO
.0 T_System_ON • .0
1 ‘0 T_System_OFF L_SYSTEM • 1
.2 s
e T_Jog_RIGHT L MAN • .2
.3 s
0 T_Jog_LEFT L AUTO • .3
.4 S_M/A_ModeSelect • .4
Set_Quantity
.5 s
e T_M/A_Accept • .5 NI
.6 • 6
7 • .7 0 0 1 5
.0 s
0 T_Ackn_Fault L_Conv_Fault • .0
.1 • .1
.2 s
e • .2
.3 s
e • .3 SIEMENS SIMATIC PANEL
4 • .4
.5 s
0 • .5
6 s
0 • .6
.7 • .7
Ell C)
• • • . start screen
Contents Page
Objectives ..................................... 2
Areas of Use .................................. 3
Rewiring using Absolute Addresses 4
Rewiring Results 5
Leading Symbols .......................... 6 12
Rewiring using "Leading Symbols" ................................. 7
Rewiring with the LAD/STL/FBD Editor ......................... 8
Rewiring with the "Check Block Consistency... " Function 9
Comparing Blocks (1) ....................................................... 10
Comparing Blocks (2) 11
Exercise 1: Creating a Backup Copy of the S7 Program 12
Exercise 2: Rewiring using Absolute Addresses .......... 13
Exercise 3: Comparing Blocks ......................................... 14
Objectives
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_12E.2 4 1 SITRAIN Training for
Automation and Industrial Solutions
Areas of Use
program program
Operation via Operation via
simulator TP177B
04.1 04.1
10.0 SR SR
---
II s 0 S 0
10.1
R
Rewiring
Symbol information: • absolute addresse Symbol information:
I0.0 T_System_ON 130.0 H_System_OH_HMI
I0.1 T_System_OFF 130.1 H_System_OFF_HHI
04.1 L_SYSTEM 04.1 L sysnim
"S_N/ "M_M/
A_ "H M/ A_
"T H/ ModeSelect "LHAN A_Accept_ ModeSelect MAN"
A_Accept" SR HMI" HMI" SR
II s Rewiring using 1I s
"l_STSTIHT"
symbolic addresses "L_SYSTEM"
IA IA
Note. I
Rewiring... Independent of the symbol table, the old addresses (in the example, bits of the
IW 0) are replaced with the new addresses (in the example, bits of the MW 30)
in the existing user program. The original blocks are overwritten with the new,
rewired blocks.
When you rewire using absolute addresses, you must select "Address priority:
Absolute value" in the Blocks folder's Object Properties.
...in Specific If you are only going to replace the addresses in one or several blocks, you
Blocks have to select these blocks before you start the function.
...in All Blocks If you are going to rewire or replace the addresses in all blocks, you have to
select the Blocks folder of the S7 program before you start the function.
...All Accesses If you check (activate) this option, the individual bits of the specified byte, word
Within the Specified or doubleword addresses are also rewired. In the example shown, all bits of the
"old address" IWO are rewired to the bits of the "new address" MW30.
What to Do 1. In the SIMATIC Manager select the Blocks folder or the blocks to be rewired
2. Choose the setting "Address priority: Absolute value"
SIMATIC Manager - Edit 9 Object Properties 4 Address Priority tab
3. Start the rewiring
SIMATIC Manager 9 Options 4 Rewire...
4. In the Rewire screen, enter the old and the new addresses and, if
necessary, activate "All accesses within the specified addresses"
5. Acknowledge with "OK"
Wiring Results
FC15 Title: jj
Ilet.mork 4: System alum
..... 04.1
: • N1S.1 SR
•.
4
.
4 -'
Symbol informmtlma:
T_System_ON • FC15 "FC_Mode" SERV I _5 57_300_Station \ CPU 315-2 DP
M_Aux_System_ON
T_Systea_OFF
L_SYSTEM PCIS : Title:
..... 04.1
M15.1
aI
SR
'
Tr
Symbol information:
M30.0 M_System_ONFRII -- Memory bit System ON (TP170)
MI5.1 M_Aux_System_ON -- Edge auxiliary memory bit System ON
M30.1 M_System_OFF_HMI -- Memory bit System OFF (TP170)
04.1 l_SYSTEM -- Indicator light System ON
41 I 11
Result In the rewired blocks and/or in the entire user program, the old addresses (in
the example, I 0.0 and I 0.1) have been replaced with the new addresses (in
the example, M 30.0 and M 30.1). The old blocks (FC 15 in the example) have
been overwritten with the new ones.
Rewiring Protocol After rewiring, you can print out a protocol which shows how many
replacements were made in which blocks:
12
r chwinlo.txt - Editor
Datei Bearbeiten Format Ansicht ?
Address list:
Old address: New address:
Iwo MW30
Block list:
FC14: Number of replacements:2
FC15: Number of replacements:8
FC16: Number of replacements:4
FC17: Number of replacements:1
FC18: Number of replacements:0
FC19: Number of replacements:0
B1: Number of replacements:0
Leading Symbols
6i LAD ,'511 .FEID - [FC15 --"FC_Mode"-- SERVI_S S7_300_Stritto
Hn. ...11:11A1
Cl. File Edlt Insert PLC Debug View Options Window Help ..1.2121
1:11 41-.1121 ell b
ji F
Ned !‹1›,!1 o_jr
gg
7C15 Title:
System OM/011,
•T System_ •N
ON" System ON"
•T_Sys.A._
077 •
vi
thj er FI
14 4 P 14 1: Eno A 2 1r4o A 3 Cseeteletences Adams iJo. A 5: M. 211111111.e ter A 21NO 3Gesaelemnces _A Address into.
Press Fl to got Help. loffline bs Press Fl SCO Help. IthIn. Oh. "
Introduction If you want to change the assignments in the symbol table of an already
existing program, you can also decide whether the absolute address or the
symbolic address has priority.
Selection In the SIMATIC Manager, right mouse click the "Blocks" object of an S7
program. Select the Object Properties menu option and then the "Blocks" tab.
You can choose between "Absolute Value" or "Symbol" in the "Address priority"
field.
Address Priority: With this setting, the absolute address of an operand does not change if you
Absolute Value change the address assignment in the symbol table later on.
In the example above, the output Q8.0 (symbol name "L_SYSTEM") was
changed to output Q4.0 in the symbol table. With the "Address Priority:
Absolute Value" setting, the program continues to use the output Q8.0.
Address Priority: With this setting, the absolute address of the operand is changed to the
Symbol new entry in the symbol table (functionality: "Rewire with Address Priority:
Symbol").
In the example above, the output Q8.0 (symbol name "L_SYSTEM") was
changed to output Q4.0 in the symbol table.
Note When you change the address priority later on, you must recompile all blocks
with the function
"Check Block Consistency... 4 Program 4 Compile All"
Without this compilation, the changed address priority is only valid for blocks
that are created after the address priority change.
a
6 II CPU 315-2 OP Ck OB1 OB_Cycle LAD 54 Organization Bk
B S7 Pim:m.151 0 FC1 LAD 48 Function
Sauces ,
PC Mode FBD 104 Function
CI FC15
i5l 111" otor LAD 50 Function
cut Ctrl+X
conveys Venable Table
Cagy Ctrl+C
posts arl+V
Delete Cal
OK Cancel I Help
After every change activate the "Check Block Consistency ..." function!
General You can also rewire an S7 program using "Leading Symbols" with the
LAD/STL/FBD Editor or the function "Check Block Consistency...".
Prerequisites are
• an existing symbol table
• in the Block Folder's Object Properties, select the setting "Symbol has
priority.... For all accesses (I, Q, M, T, C, and DB)"
Adapting the Before you rewire with the LAD/STL/FBD Editor or with the "Check Block
Absolute Addresses Consistency..." function, you have to enter the absolute addresses of the new
operands in the symbol table. The symbols of the operands must not be
changed.
Note The property "leading symbols" offers considerable benefits when data block
variables are frequently used especially in connection with the function "Check
Block Consistency...". If variables are deleted or inserted later on within
already existing data blocks, the necessary address correction of the remaining
data block variables can automatically be undertaken with the function "Check
Block Consistency...".
The easiest way to replace the traditional PLC operands (I, Q, M, T, C) is to
use the previously described function "Rewiring with the SIMATIC Manager".
E My_Station O FC16
El -;SA chapt09
E chaptl0 Whig At least one symbol assignment changed
E ,21] Rewiringl
al Sources CLAD; STL'FBD - [FC99 SERV1_3251.Ftewiringl
1.0 Blocks
OK
Edit Insert PLC Debug View Options Window _LejJ
lei L-± Lioul rk7)
• Rewiring2
Elia Upload
---
6
221 !<<I -Al rig 1!:11 *1-14-1-01D11.1-tk-:I
Press Fl to get Help. r
FC99 : Title:
Xietwork 11: Title:
A
SIMATIC S7
1
Date: 18.09.2009 SITRAIN Training for
File: SERV1_12E.8 k Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Rewiring After you have set "Symbol" as the address priority in the Object Properties of
the Blocks folder and then adapted the absolute addresses in the symbol table,
you can proceed to rewire with the LAD/STL/FBD by opening the block. After
you acknowledge the message "At least one symbol assignment changed", the
modified addresses are automatically inserted by the Editor.
Attention Rewiring is only made in the blocks that are explicitly opened with the Editor!
As well, rewiring of a block is only effective when the block is then saved.
If one or more addresses in several or all blocks of an S7 program are to be
rewired or exchanged, all blocks must be opened one after the other with the
Editor and then saved.
Object Hierarchy.
S7 program Call Tree [References I
• FC15 "FC_Mode" [FBD]
• FC16 "FC_Conveyor" IFBDI
• FC17 'TC_Faults" [FBI)]
Cut COW • FC19 ''FC_Math" [FBD]
• FC42 "FC_MM420" [FBI)]
Copy
• OB1 "Main_progiam" [FBI)]
FC15 "FC_Mode" [FBD]
Delete Del FC16 "FC_Conveyor" [F131/]
57 ptoryam Cal Tree (References
FC17 "FC_Faults" [FBD[
"FC_Math" [FBI)] FC15 "FC_M ode" [FBD]
Insert New Object FC19
FC42 "FC_MM420" [RD] FC16 "FC_Conveyor" [FBD]
PLC
o FC17 "FC_Faults" [FBD]
Rewiring.. FC19 "FC_Math" [FBD]
Compare Blocks... FC42 "FC_MM420" [FBD]
Reference Data STEP7 Project: D: \ S7_coueses \My_Proje 0 081 "M am_program" [FBD]
Check Block Consistency... program' My_Prolect1Demo_5 Bausteme o FC15 "FC_M ode" [HD]
program setting address alio* Symbol. O FC16 "FC_Conveyor" [FBD]
Pont
Number of Blocks: 6 o FC17 "FCFaulte [FBD]
Rename F2 The 57 program contains blocks of the folovang editors. o FC19 "FC_M ath" [HD]
Object Properties... Att+Return FBD o FC42 "FC_MM420" [RD]
Special Object Properties ► 2Into
less F1 for help.
Rewiring After you have set "Symbol" as the address priority in the Object Properties of
the Blocks folder and then adapted the absolute addresses in the symbol table,
you can proceed to rewire with the function "Check Block Consistency... ".
This is a good method when addresses are used in several blocks, since the
blocks affected do not have to be opened.
What to Do 1. In the SIMATIC Manager, right click with the mouse on "Blocks" and
select the menu option Check Block Consistency...
2. If there are blocks that are displayed in red, a compilation is necessary. You
IP I can trigger this compilation with the icon.
e:
lemesetless ! Path I Path 2 OMNI „bki,Vciclgs are different.
Clew I Mate
...see next page4
SIMATIC S7
ge
Date: 18n9.2009 l SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_12E.10 Automation and Industrial Solutions
Introduction You can compare blocks between online and offline data management or
between two user programs on the hard disk of the PG.
With this function, you can determine whether, for example, program
corrections were made in the CPU later on and in which network the blocks
differ.
What To Do 1. With the right mouse button, select the Blocks folder of an S7 program.
2. Select the Compare Blocks menu option.
3. Choose whether you want to compare online/offline or between 2 offline
programs and acknowledge with the "OK" button.
4. In the follow-up screen, the blocks that differ are listed.
5. Select the line in which a difference was determined and then select the
"Details" button.
6. In the "Compare Blocks - Details" window you can ascertain when the block
was modified and if the block length was changed.
7. After you select the "Go To..." button, the differing block is opened online
and offline in two windows, for example, and the network, in which the first
difference was determined is displayed.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 10 Rewiring a User Program
SIEMENS
-._ ,..Lcij id
He Edt Insert PLC Debug View options Window 11*,
❑Ir1-1®I ell x Nei .L-1-_j Lkkii F ezj thl nrit Li' -H-144-1-nr771 14-I .1211
• FCI7 — SERY2_325 \ • ,_1P_125.1 • Ilk•i::E.•..
-
• .s.al,I. - _IIoJ al
"N_Feul tl" —Repot t_Dersory "M_Feultl" —Freport_liessory
"DBInstance_F "DB_Instence F
sal t2" eult2"
"FBFaults"
_ "FEI_Faults"
EN EN ENO
A _J
Disturbence_I Disturbance _I
"4_Fault2" —nput Display-89.4 "4Fault2" —zPut Display -89.2
4
1 1 2
Al
A Le-..: I 0,1 : I Next ,,pdare I
1u ?: Cros eferencas 4 Address info. 7: Coe arson J
,
1.4 4 ijj\
1. ii.i 1:Effo ,10 ,,...
Press Fl to get Help. I 0111111.111.11 Abs < 52 144 4 P----
SITRAIN
SIMATIC S7 Date: 18.092009 g
tr
Training for
Automation and Industrial Solutions
Siemens AG 2008 All rights reserved. File: SERV112E.11
Differences After you select the "Go To..." button (see previous page), the Program Editor
is opened with two windows side-by-side, in which the network with the first
difference is displayed.
You can navigate between the differing networks or program locations using
the "Previous" and "Next" buttons.
Example In the example shown above, the blocks of two different S7 programs are
compared in an offline - offline comparison. Both S7 programs contain an FC16
12
block, but each have a different program code. You can read out which of the
two blocks was the last one saved or which has the newer date from the time
stamps in the "Compare Blocks - Results" screen.
Task Before you rewire your S7 program, you are make a backup copy. This backup
copy is to be created as a hardware-independent S7 program in the project.
What to Do 1. With the mouse, drag your S7 program called "My_Program" directly onto
the project symbol so that the copy is assigned to the project as a
hardware-independent S7 program (see slide).
2. Rename the original S7 program assigned to the CPU "Rewire".
ST-SERV1
SITRAIN Training for
Rewiring a User Program
Automation and Industrial Solutions Page 12
SIEMENS
3
04.1 4 04.1
10.0 H15.1 SR 5 3130.0 1115.1 OR
P I 0
Rewire
.1 30.1
E VI Effi El I r
Notes
S3441m43. lasfmertion:
Spiel tagesatioa:
I0.0 T_System_ON il
medRom Delft Row H30.0 H_Syscem_ON_HHI
015.1 M_Aux_Systea_OH •• H1S.1 H_Aux_Systes_OH
I0.1 T_Systa._OFF P /8 acmees within the spec:tied addresses (not fee Petherals1 H30.1 M_System_OFF_HKI
04.1 1_SYSTIM
04.1 L_SYSTEN
OK
Task 1 The S7 program is to be adapted in such a way that operating the system or the
conveyor model (System ON/OFF, operating mode selection, specifying the
SETPOINT quantity, jogging RIGHT/LEFT) is no longer done via the simulator
but is done via the touchpanel. You are now to make the appropriate adjustments
to the S7 program with the function "Rewire".
What to Do 1. In the S7 program called "Rewire" select the property "Address priority:
Absolute value".
12
SIMATIC Manager 4 select the Blocks folder of the S7 program 4 Edit 4
Object Properties 4 Address priority tab
2. Activate the "Rewire" function.
SIMATIC Manager 4 select the Blocks folder of the S7 program 9 Options 4
Rewire...
3. In the table of the Rewire dialog, enter the old and the new addresses and
activate (check) the option "All accesses within the specified addresses" (see
slide).
4. In FC 17, the input "T_Ackn_Fault" (I 1.0) has been replaced with the memory
bit M 31.0. Modify the block in such a way that you can acknowledge a
conveyor fault (M17.0) either via the touchpanel (M 31.0) or, as before, via the
simulator momentary contact "T_Ackn_Fault" (I 1.0).
5. Download all blocks into the CPU and test the functions
6. The (hardware) NC contact "T_System_OFF" (I 0.1) has been replaced with
the (NO contact) memory bit "M_System_OFF_HMI" (M 30.1). Modify FC 15
so that the system can be switched on again
Result With the exception of specifying the setpoint quantity, you can operate the system
completely via the touchpanel.
Task 2 Modify the program of the FC 19 block in such a way that the setpoint quantity no
longer has to be specified via the BCD thumbwheel buttons on the simulator but
can be made via the corresponding input field on the touchpanel.
Solution tip: The touchpanel transfers the setpoint quantity specified in the
"Parts Setpoint" input field into the variable "MW_SETP" (MW 22).
plum -
ofra;12-lial J x nlryl coo + .J 11-141-1-01ff'11.1-1.1 -1
n FCIS -
FC_Plode- - mael _5 \57_3003tation\CPU 315-2 ...121z1 ff FC15 "FC.Iiode — SER1/1_S 57 3003tatimo \ CPU 315-2 DP \ FC1 5
.. .
.
54.1 04.1
IO.o 011.1 SR
Q1 :M30.0 % 015.1 SR
:50.1 1
I •
4
e T.
1--‘7l a!
lafeammtion: Symbol lateaantioa:
/0.0 T_System_ON -- Momentary cont■ 5500.0 M_System_ON_HMI -- Memory bit
010.1 M_Aux_Systea_ON -- 14g. auxiliary 5515.1 M_Aux_System_ON -- Edge auxil
$0.1 T_Systam_011, -- Momentary COD, 5510.1 M_System_OFF_HM/ -- Memory bit
04.1 L_V/STIN -- Indicator ligt
:tr ml 04.1 L_TYSTIff -- Indicator
■ 11
Task With the "Compare Blocks" function, check the changes you made during
rewiring. To do so, compare the rewired S7 program called "Rewire" with the
backup copy of the original program called "My_Program".
What to Do 1. In the SIMATIC Manager select the Blocks folder of the program "Rewire"
and start the "Compare Blocks" function
SIMATIC Manager - Options 4 Compare Blocks
2. In the follow-up dialog box choose "Type of comparison: Path 1/ Path 2".
Then, in the SIMATIC Manager window, click on the Blocks folder of the S7
program called "My_Program" and start the function via "Compare".
3. The box "Compare Blocks — Results" appears. Use "Go To..." to display the
different versions of the FC 15 block
Task Expansion Also compare the program stored online with the current program called
"Rewire".
ST-SERV1
SITRAIN Training for
Rewiring a User Program
Automation and Industrial Solutions Page 14
SIEMENS
Contents Page
Objectives .......... 2
Principle of an Inverter .......... 3
Overview: Standard Drives .......... 4
Communication: PROFIBUS DP ..........5
Main Tasks of the Master — Slave Communication ........ 6
Structure of the Control Word .......... 7
Integrating a Drive in the HW-Config .......... 8
BOP (Basic Operator Panel) Standard Operator Panels .........9 13
Keys on the Operator Panel ........10
PROFIBUS Communications Module: Setting the Address ...... 11
Exercise 1: Reset to Factory Default ....... 12
Exercise 2: Controlling the Micromaster via the BOP .......13
Exercise 3: Setting the MM420 Parameters with the BOP ...... 14
Exercise 4: Integrating a Drive in HW-Config ....... 15
Exercise 5: Controlling a Drive via the Touchpanel ....... 16
Objectives
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_13E.2 41 SITRAIN Training for
Automation and Industrial Solutions
ST-SERV1
SITRAIN Training for Introduction to Micromaster (1)
Automation and Industrial Solutions Page 2
SIEMENS
Principle of an Inverter
zs
Induction
mo Or
Inverter Variable
speed
,111,1111111,
41111•11110-
11•111107- -
WNW
SITRAIN Training for
SIMATIC S7 Date: 18.09.2009
gir Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_13E.3
Direct On-line Three-phase AC motors (here: induction motors) can be operated directly on
Operation the three-phase mains system. They are switched on and off by means of a
contactor (= relay for high currents). For example: a pump for a water storage
tank.
Motor Starter To achieve a smooth start-up, a reduced voltage starter (= motor starter) is
frequently used. After start-up, the motor is then operated directly on the mains.
For example: the drive of an escalator.
Inverter If the motor speed is to be variable, an inverter is used.
For example: the drive of a container crane.
Some applications require a precise adherence to a predefined speed. This is
frequently connected to positioning tasks. These are then servo drives. In 13
simple terms, servo drives are used everywhere where movement used to be
carried out manually.
For example: machine tools, packaging machines, robots.
The Way it Works With a rectifier circuit, the three-phase current of the public supply system is
rectified. This results in a DC voltage that is buffered by capacitors (DC link). A
power module with transistors generates a three-phase current with variable
frequency and voltage from this DC voltage.
Variable voltage? The motor represents an inductive resistance for the current
flow. With rising frequency the inductive resistance increases. For that reason,
the inverter must also increase the output voltage proportional to the output
frequency.
Configuration It is possible to connect several power modules for several motors to a rectifier
(such as SIMODRIVE 611, MASTERDRIVES).
Rectifier If a rectifier circuit with transistors instead of diodes is used then electrical
energy can be fed back into the system during ramping down.
4.
c7=
Application example:
Controlled pumps and
fans in an air
conditioner
MICROMASTER 4 Inverter
(here the different sizes with a Application example:
performance of about 0.1 to 250 kW) Conveyor belt
Categorization Standard drives are used for applications that only require a low to medium
dynamic as far as speed control is concerned. Many applications in the past
used to be driven with three-phase motors connected directly to the mains. In
the 90s, inverters became so economical that the advantages of a speed-
controlled drive could be utilized in many areas (energy savings in the partial-
load operation, smooth ramp-up and controlled ramping down, quality
improvement in production).
Design The MICROMASTER inverters are now in the fourth generation. They are
"Stand-Alone" devices. That is, the inverter is complete and is connected
between the mains and the motor.
The MICROMASTER 4 inverter family comprises several versions:
MICROMASTER 420: for simple control requirements such as pumps and
430: fans.
MICROMASTER 440: for demanding control requirements (dynamic and
precise speed control).
MICROMASTER 410: for the simplest requirements with only a limited ability
to parameterize.
MICROMASTER 411: the integration of motor and converter
(= COMBIMASTER). The inverter is located in a
special housing piggy-backed on the motor.
Applications • Pumps and fans (for heating, air conditioning, ventilation, chemistry,
foodstuffs ...)
• Conveyor belt systems (for packages, baggage, mail)
• Automatic doors ([house] entrances, elevator doors, garages)
• Washing machines, dryers and ironing machines (industrial field)
• Car washes ...
ST-SERV1
SITRAIN Training for Introduction to Micromaster (1)
Automation and Industrial Solutions Page 4
SIEMENS
Field Bus A field bus connects distributed sensors and actuators (such as, valves, light
barriers, measuring devices, drives, operator control panels) with the central
PLC. PROFIBUS DP is a manufacturer-independent, open field bus.
PROFIBUS has been standardized and continuously further developed by the
PNO (Profibus User Organization) since 1990.
Master-Slave The master (usually a PLC with a PROFIBUS interface module, such as,
S7-315-2 DP) controls the data communication on the bus. Slaves only send
data when they are prompted by the master. That way, no collision results
between two senders.
13
Cyclical Range The slaves are cyclically (= one after the other) supplied with process data by
the master and their process data is scanned. In Drives, process data are, for
example,
• speed setpoint, switch-on signals from the master or
• actual speeds, error signals from the drive.
The data telegrams consist of 2 to 16 words (a 16 bit).
Cycle times lie between about 2 to 20 ms.
Event-driven Range As well, there is often the need to read or change the parameters of a drive.
This occurs (in today's applications) only when prompted. The cyclic operation
is then briefly interrupted and a longer data telegram with up to 117 words is
sent.
Master Class 2 The "normal" master is called Master Class 1. For commissioning, you can also
connect a PC or PG (= SIMATIC programming device) as a Master Class 2.
Independent of the actual data communication, the Master Class 2 can access
the drives.
PROFIBUS Address The minimum requirement for commissioning the PROFIBUS option module is
the setting of the PROFIBUS address.
Master-Slave Communication
Reading and writing of parameters Controlling the drive process
Reading out of fault and diagnostic values Permanent setting of control bits and setpoints
Reading and modifying function values Constant reading of status bits and actual values
Process Control Fast data transmission of short data telegrams to all participating stations with
the maximum speed available on the bus. In drive systems these are typically
setpoints, control commands, status replies and actual values (measured
values).
Operating Control In addition to this permanently available data, there is data that is only needed
in particular cases. It would therefore be senseless to permanently put load on
the bus if this data is only needed once per hour or per day, for example, when
starting up the machine (Class 1 Master). Another reason for an expanded
communication need could be the commissioning, optimization or diagnosis of
machine components from a central location. In this case, (such as a fault) a
detailed access of an Engineering Tool to the system components or the drive
is enabled. Since, as a rule, only one affected device/component is directly
addressed, this window is only made available once per bus cycle for one bus
station and not simultaneously for every station.
ST-SERV1
SITRAIN Training for Introduction to Micromaster (1)
Automation and Industrial Solutions Page 6
SIEMENS
W # 16 # 0 4 7 F = Motor ON
:
. .....
Rising edge for switching on !
W # 16 # 0 4 7 E
: :13 = Motor OFF
15 14 13 12 9 8I7 6 5 4
L
ON/OFF 1
OFF 2
- OFF 3
- Pulse-Enable
Ramp-function Generator-Enable
Ramp-function Generator-Startup
Setpoint-Enable
Fault-Acknowledge
JOG right
- JOG left
- Control from PLC
- Reverse
---
- Motor-Poti up
- Motor-Poti down
Command Data Set Bit 0
Control Word The control word (bits 0 to 10) conforms to the Standard PROFldrive Profile.
Bits 11 to 15 are MICROMASTER-specific.
ON/OFF1 To switch on the inverter, a rising edge of this bit is necessary, and the bits
OFF2 and OFF3 must have the state = 1. When switching off via this bit, the
motor is braked on the braking ramp of the ramp-function generator (P1121)
and the inverter then switches off.
OFF2 The inverter switches off immediately and as a result the motor ramps down
without braking (coasts to a standstill). To switch the inverter on again, this bit 13
must be set to 1 once more and a rising edge at ON/OFF1 is necessary.
OFF3 The motor is braked on the OFF3 braking ramp and the inverter remains
switched on. This function is often used as EMERGENCY STOP.
Note For reasons of wirebreak safety, the inverter is always switched off if the signal
state of the associated OFF bit is = 0.
II
CPU 315-2 DP
np
Properties - PROFIBUS interface MICROMASTER_4_PR
L PROFIBUSI11. DP master system (1) End
froliec IDriyeES
Delete slot
Mastatislave configuration 1
OK Mester. 121DP
Stat., S7 Staten
Corrrrent
OK Cancel
I 'I*
General The cyclic data exchange between CPU and MM4420 via PROFIBUS must be
configured in HW Config.
Properties
Dialogs The following properties are defined in the dialogs:
PROFIBUS interface: PROFIBUS address and subnet
SINAMICS: Firmware version of the Micromaster (to be found on the
nameplate of the MM420 such as, "Issue: A06/1.17")
DP Slave: In addition to the I/O addresses for data exchange between CPU
and Micromaster, the type of communication must be defined here:
ST-SERV1
SITRAIN Training for Introduction to Micromaster (1)
Automation and Industrial Solutions Page 8
SIEMENS
Parameter keypad
As delivered from factory
for easy
LED Status display
commissioning
Monitoring parameters:
or changing
individual parameters
SDP The MICROMASTER is fitted with the SDP (= Status Display Panel). The
MICROMASTER is already parameterized in such a way that it can be
operated through the terminal strip.
The SDP has a status indicator with a green and yellow LED (16 different
messages).
BOP The BOP (= Basic Operator Panel) can be ordered as an option. It is inserted
instead of the SDP — temporarily for commissioning or long-term. Available
functions are:
Parameter List Unlike a PLC controller (SIMATIC), drives are not programmed. No program is
written.
Settings are made in parameters. The basic program in the digital drive is fixed
and is called firmware. By assigning parameters, the inverter is adapted to the
task.
Indexed Parameter Many parameters contain sub-parameters. Parameters with similar functions
are often grouped there.
Trigger Parameters Some parameters can only be changed from 0 to 1. An internal action in the
MICROMASTER is usually triggered with this, for example, Reset to Factory
Default.
MICROMASTER 420
C s Parameter access. Is used to select the parameter number
and to accept the value
.. .•• 4....
• ,.....,f
iii .......—
'
,
PC.A.54 .11 Ble
1, “
CI Increase parameter number or value
Access Levels For simple applications, only a few parameters have to be changed. For
complex applications, an "exotic" parameter may be needed from time to time.
For that reason, access levels were established in parameter P003:
• Level 1 = Standard: Only the 17 most important parameters are
displayed
• Level 2 = Extended: In this level, additional parameters are visible for the
input and output terminals, as well as for
communication through field bus or for example, for
the setpoint channel
• Level 3 = Expert: Here you have access to all necessary parameters.
For the MICROMASTER, this is about 600
parameters
• Level 4 = Service: Some specific parameters are only meant for
authorized service personnel. The level is protected
by codeword.
Command Source Commands are: on signal, off signal, jog, and acknowledge fault messages, for
example. On the training unit, you can select the following sources using
parameter P0700:
• P0700= 1 BOP operator panel
• P0700 = 2 Switches S1-S3 on the demo case
• P0700 = 6 From the CPU through PROFIBUS
Setpoint Source Setpoint is, the inverter frequency, for example. On the training unit, you can
select the following sources using parameter P1000:
• P1000 = 1 BOP operator panel with the higher/lower
buttons (only with r0000)
• P1000 = 2 Potentiometer on the demo case
• P1000 = 6 From the CPU through PROFIBUS
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 10 Introduction to Micromaster (1)
SIEMENS
Switch number 1 2 3 4 5 6 7
Add to address 1 2 4 8 16 32 64
Address Meaning
PROFIBUS address is specified
0 by Parameter P0918
Note To change the DIP switch, the inverter must be in a switched off state (no voltage)
(for already mounted communications module). A change to the DIP switch only
takes effect after the PROFIBUS module is restarted.
13
The restart must be triggered by a Power OFF / Power ON. This is true for an
inverter supply as well as through a separate 24V supply.
P0970 1 End
11111/141.1111.1
S1 = Drive On/Off LI
P0010 = Commissioning filter
S2 = Reverse direction of rotation
P0970 = Reset to factory defaults
S3 = Acknowledge fault
P3900 = End of quick commissioning
H1 = Fault (is lit when there is no fault)
P1 = Potentiometer for the frequency/speed
Task First of all, carry out a Reset to Factory Default to establish a defined initial
state.
Factory Default In the factory default, the inverter is already functional. It is parameterized for a
4-pole Siemens motor with the same power rating as the MM420 and can be
controlled via the binary inputs (see slide).
Quick If Parameter P0010 is set to the value 1, the quick commissioning mode of the
Commissioning inverter is activated. Only the most important or the most frequently required
parameters are displayed.
The quick commissioning mode is always required when motor (characteristic)
data are to be changed. With the end of the quick commissioning via
Parameter P3900, additional parameter data are recalculated out of the
changed motor data:
• P3900 = 1 4 Reset to factory default and motor data calculation
• P3900 = 2 - Only motor data calculation
• P3900 = 3 4 Reset the parameter assignments of inputs and outputs
This procedure is also described in the "Getting Started" Guide that is included
with every unit. We will not practice the quick commissioning in this exercise.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 12 Introduction to Micromaster (1)
SIEMENS
•• 11 • •
Reverse direction
• ••
With selected
Parameter r0000:
ON—.
ncrease frequency
OFF1—. Decrease frequency
Jog operation
(set-up operation)
Task Switching on and off as well as the specification of the drive's speed is to be
done via the BOP operator panel.
What to Do 1. On the BOP, set the parameters shown in the slide to the specified values
2. Switch on the motor using the ON key
3. Select the parameter r0000 using the arrow keys and press the P key so
that the current frequency is displayed
4. Change the frequency and with that the motor speed using the arrow
keys.
13
Note: Arrow Keys Pressing the higher/lower (arrow) keys only affects the speed when the
parameter r0000 is selected and the parameterization mode has been exited
via the P key. Otherwise the arrow keys continue to used for assigning
parameters.
Changing the frequency or the speed using the arrow keys is also called motor
potentiometer (MOP).
Jog Key: The drive or motor can be jogged using the Jog key.
By default, the control signals and the setpoint come from a SIMATIC S7-CPU.
When setting up the drive or in the case of service, it can become necessary to
control the MM420 "by hand" using the Jog key.
The Jog key only functions in the ready state. That is, the signal OFF1 = 1.
The frequency is 5 Hz in the factory default.
Fn Key With the "Fn" (Function key) key, you can carry out the following actions:
• acknowledge alarm and fault messages when the error no longer exists
• jump between decimal positions in parameter changes
• display important inverter data, such as, voltage of DC current link
(Roll function when "Fn" key is pressed for 2 seconds).
Internally generated
Setpoint frequency Setpoilt frequency ramp-fu
/ ction
50 Hz
50 Hz
AIL
P1120 P1121
1
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date:
File:
18.09.2009
SERV1_13E.14 4 1 SITRAIN Training for
Automation and Industrial Solutions
Task The drive is to be assigned parameters in such a way that it receives the
control signals from the CPU via the PROFIBUS.
What to Do Use the BOP to set the parameters as shown in the slide.
Diagnosis An LED is located on the front of the PROFIBUS-DP interface of the MM420.
The following table explains possible LED displays and error causes and helps
you with the following exercise:
Off no power
Red flashing invalid PROFIBUS address (126/127 is invalid) or hardware / software error
Red on temporary state during startup or new communication configuration; if constant
state, then PROFIBUS interface or inverter defective
Orange flashing communication to inverter built-up; no connection to PROFIBUS, or PROFIBUS
connector not inserted or faulty or PROFIBUS master is switched off.
Orange on communication is established, but no cyclic data exchange is taking place.
Green flashing cyclic process data exchange exists, but setpoints are invalid (control word = 0,
because S7 master is in the "STOP" state, for example.
Green on cyclic process data exchange is established.
Ramp-up Time Internally, the setpoint value changes according to a step function. To achieve
a controlled ramp-up transition, a ramp-function generator is integrated that
generates a ramp-type setpoint for the controller.
ST-SERV1
SITRAIN Training for Introduction to Micromaster (1)
Automation and Industrial Solutions Page 14
SIEMENS
J o ci:1-ez wu a R2Ielimilimitolialtel
LZS7_300_Station (Configuration) -- MyProject JJ
OP
CPU 315-2 DP
10
Cl I -
Merle-sieve conlIguation 1 — —
OK Menem 121 DP
Stelon S7_300_Station
I OK I Comment
_J
OK Cancel I Hein
General The cyclic data exchange between CPU and MM420 via PROFIBUS must be
configured in HW Config. Proceed as follows:
Result When the MM420 has been successfully parameterized and integrated in the
hardware configuration of the S7 Station, the LED of the MM420 PROFIBUS
interface shows a green flashing or constant light.
SIEMENS
A
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_13E.16 Automation and Industrial Solutions
Task You should be able to switch the drive on and off from the touchpanel. During
switched off continuous operation, the MM420 can be jogged to the right and to
the left via the appropriate keys; during switched on continuous operation, it
turns at the speed that is set on the potentiometer of the MM420 training unit.
What to Do 1. Copy the "FC_MM420" (FC 42) block from the project called "SERV1_B"
located in the S7 program called "Chap13_MM420" into your S7 program.
2. Put the block into operation
3. On the touchpanel, activate the screen "MM420"
4. Test the functions described.
Notes on the The QW42 output word declared by you in the Hardware Configuration serves
Program as so-called "control word" for the MM420. Per program you can control the
MM420 by transferring defined values.
The values (HEX constants) specified in our example have the following
meanings:
ST-SERV1
SITRAIN Training for Introduction to Micromaster (1)
Automation and Industrial Solutions Page 16
SIEMENS
Contents Page
Objectives ......... 2
Other Documentation Tools ............ 3
Block Documentation ............ 4
Page Setup ............. 5
Print Preview ............................ 6
Managing Multilingual Project Documentation ........... 7
Overview: Saving User Data ............8
Uploading an S7 Program from the CPU to the PG ............9
Uploading a Hardware Station to the PG (PLC Copy) ........... 10
Transferring a Program onto a Memory Module ........11
Saving a Project onto a Memory Card ......... 12
Loading a Project from the Micro Memory Card (MMC) ........13
Archiving a Project .......................................................14
Memory Concept of the S7-300 until Oct. 2002 ......... 15
Memory Concept of the S7-300 after Oct. 2002 ..........16
Memory Concept of the S7-400 ......... 17
Exercise 1: Documenting a Block and Printing It Out ........ 18
Exercise 2: Saving the Program and Hardware Configuration (PLC Copy) ........ 19
Exercise 3: Archiving "My Project" .............................................................................................................20
If You Want to Know More ......... 21
MMC - as Additional Data Memory on the CPU ........ 22
PLC: Storing Data on the Memory Card .......... 23
PLC: Getting Data from the Memory Card ..........24
Objectives
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 2 Documenting, Saving, Archiving
SIEMENS
Cross references
Symbol table
Configuration
Network
configuration
Reference Data If you print out the reference data it makes troubleshooting, in particular, easier.
You will find more information in the "Troubleshooting" chapter.
Symbol Table The symbol table contains the association between absolute address, symbol
names and symbol comments. See the "Symbols" chapter for more
information.
Configuration Configuration data generated with the "Hardware Configuration" tool. The
printout is in text form. If you want a graphic printout, you can copy the graphics
onto the clipboard and then paste them in another program such as Winword
and print it out.
Network Displays in graphic form the stations of a networked system with the relevant
Configuration configuration data such as the MPI address.
14
Printer The printer used for documentation is the one installed under Windows. If you
want to use a different printer, you must set it up with the Windows Control
Panel.
DOCPRO The DOCPRO optional software is also available for superior documentation
and for writing wiring manuals.
Block Documentation
Network comment: To enter a comment, select menu options "View -> Display with
-> Comment". You have up to 64 kBytes per Block for block and network comments.
A "T_System_ON" // Statement comment up to 160 characters
// Comment can also be inserted between the lines
S "L_System" // LED for System ON
AN "T_System_OFF" // System OFF
R "L_System" // LED for System ON
_Li
Ell <Li ■ ■I 1: Errs 2:14o a Cross-references _A 4: Address MM. ) 5: Modify A___ 6: Diaprrostics A 7: Cowen=
Press Fl to get Help. 1---- Cr ickfline lAbs <5.2 INvii 1 In 6 triert {Cho A
Block Comments The slide above shows the different comment facilities available for a program
block (OB, FC, FB).
Print Setup You can change the printer settings by selecting the File Print Setup... menu
option.
-Paper Orientation
r Landscape I -V"1 r Rotatild
Size: I Letter ( Portrait
A Print on troth Sides (Duplex Printing)
Source: !Automatically Select r Landscape
EI 6 None r Short Side [:0(- LongSile
A
Network... I OK Cancel I
Color Appearance
OK I Cancel
ST-SERV1
SITRAIN Training for
Documenting, Saving, Archiving
Automation and Industrial Solutions Page 4
SIEMENS
Page Setup
Seite einrichten
Papierformat I Schrittfeldet Pa terformat Schalk's,
Layouts. Kopfze4e
Ausrichturg —Fuezeie
Votgabe
Page Setup When you select the File 4 Page Setup... menu option, a dialog box in which
you can select the print format (such as A4 Margin) appears.
Paper Format Selection of the paper format that is used for printing.
Labeling Fields The header and footer edited in the "Labeling fields" later appears on each
page of the printout regardless of with which tool (for example, HW Config or
LAD/STL/FBD Editor) the printout was undertaken.
Fields for printing out the current date of the printout, the page number, or the
name of the object are provided in the headers and footers (such as {Date}
{Time}, Page {Page}, {Object}).
14
Print Preview
SINATIC By Prolect\ My Station1CPII 314\ —11,020 - <offline> 01/22/2003 9:20:24
FC20 - <offline>
•1C ?malt" Evaluation of Faults no memory
rte: Vanily:
Autbor: WardLan: 0.1.
Aim* varsina: 2
00 stamp Cada: 10.01.2002 09:17:22
Istarfaca: 1.2.07.2000 14:24:45
Idadtbs (blackflafFinidnta): 00152 00048 00000
Ia.*. ocn
Page 1 of 1
Print Preview For a preview of what your printout will look like, select the File 4 Print
Preview... menu option.
Note The appearance of LAD program printouts depends on the settings made under
the Options 4 Customize 4 LAD/FBD menu option in the LAD/STL/FBD
editor.
Example: The setting for the length of the address field affects the number of
contacts that can appear side by side in the printout and the number of
characters of the symbol name that fit on a line above the contacts.
ST-SERV1
SITRAIN Training for
Documenting, Saving, Archiving
Automation and Industrial Solutions Page 6
SIEMENS
.3
DI I 1?lel Customize...
Ctri+Ak-FE o Fiter > J vg 9
111*1
Text libraries
2 titil TIA-PRO1-Solutton_en I Symbolic name I Created in langur
My project_C9_HMI Display language...
My_prolect_CI O_MM420 Manage h9ultiLnqual Te.. Export...
E
E II test station Rewiring...
E. I CPU 315-2 DP Change Language...
Run-Time Properties...
E. 0 CI OMy_Proi Delete Language...
al Sources Compare Blocks... Reorganize
MEI Reference Data
MICROMASTER. Define Global Dote
■ Settings for Comment Management...
FC_Faults FBD
My_project_C11_C14 Configure Network
FC Count FBD
• test station
Simulate Modules FC_Edge_Detection STL
E. a C12 FC_FB_E1
E C12_FC_FB_E2 FC_MM420 LAD
SIMATIC PDM FC_Scaing STL
IE Cl2_FC_FB_E3
III 0 Cl 2 FC_FB_E4 Configure Process Monitoring Control Micromaster
E C13_organisat_block
ad Sources Charts
fill Blocks Import objects
F C14_analog_value_E
PLC-OS Connection Data
E a Chapter12_FC_FB_ei
Manages user texts
Set PG/PC Interface...
Function STEP 7 lets you multilingually manage the documentation (texts and
comments) created in a project. These can be exported from the project for
translation purposes and then later be reimported in the language in which they
were translated. The opportunity then exists to choose between different
languages for the documentation.
The following types of texts can be managed multilingually.
• Block titles and block comments
• Network titles and network comments
• Line comments from STL programs
• Comments from symbol tables, variable declaration tables, user-defined
data types and data blocks
• Comments, status names and so on, of blocks that were created with
engineering tools such as S7-GRAPH or S7-PDIAG.
14
Export The Export is carried out for all blocks and symbol tables that are located in the
selected object folder. For every text type (see above), an export file is
generated that can then be edited with EXCEL. This file contains a column with
the source text in the original language and a column in which the translated
text can be written.
Import During Import, the translated text is accepted into the selected project. The
translated text is only accepted if the original source text still exists.
Change Language For Change Language, all languages can be selected that were imported into
the project. The change is carried out for all selected object folders.
Delete Language When you delete a language, all text in that language is deleted from the
internal data management.
/
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Mr Automation and Industrial Solutions
Siemens AG 2008. All rights reserved . File: SERV1_14E.8
Uploading a Program With this function, you copy all blocks and the system data without
from CPU into PG/PC documentation (symbol table, variable and parameter names, comments) from
the CPU into the selected program folder. The selected program folder then
contains a "PLC copy" with the current online program.
Upload Station With this function, you load the complete hardware station as a new
in PG/PC station in the project. It is not possible to overwrite an already existing station.
Load Program You can load the blocks and system data from the blocks folder of an S7
from PG/PC to program onto a memory card. You can insert the memory card in the interface
Memory Card of the PG/PC or in the slot provided by the CPU if the CPU supports this service.
Copy Program If a user program is stored on a memory card, you can still make program
from CPU to changes online. The modified blocks are stored in the internal RAM of the CPU,
Memory Card while the unchanged block remains stored on the memory card. You can store
the modified blocks on the memory card with the Copy RAM to ROM function.
Archiving Project You save the entire data of the project (such as user programs with all
on Memory Card comments, symbol tables, and hardware configurations from all hardware
stations) on the memory card with the "Save Project on Memory Card" function.
Archiving Project With the "Archive Project" function, you save the complete data of the project
(such as user programs with all comments, symbol tables, and hardware
configurations from all hardware stations) in an archive file in compressed format
(*.zip, *.arj etc.). The archive file is much smaller than the non-archived project
and you can move or copy the archive as often as you like with the Windows
Explorer.
ST-SERV1
SITRAIN Training for Documenting, Saving, Archiving
Automation and Industrial Solutions Page 8
SIEMENS
SIMATIC S7 Date:
File:
18.09.2009
SERV1_14E.9
1 1 SITRAIN Training for
11.1
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
Copying a CPU Before you make changes to an existing program, you should at least make a
Program onto a PG backup copy of the CPU's S7 program.
Note: Only the complete S7 program is "uploaded" into the project, not the complete
hardware station. Even though the CPU's "system data" are also copied during
upload it is not possible to retrieve the configuration and parameterization data
of the complete hardware station,
As well, the uploaded S7 program has no documentation whatsoever. That is,
there are no comments such as network titles, no symbols and also no variable
and parameter names.
Diagnostic/Setting
PROFIBUS
Edit Ethernet Node...
Assign PG/PC
Cancel PG/PC Assignment
Update Firmware
Update the Operating System...
Press Fl to get Help.
Save Service Data...
SIMATIC S7 Date:
File:
18.09.2009
SERV1_14E.10
A
Mr
SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008 All rights reserved.
PLC Copy Before you make changes to an existing program, you should make a backup
copy of the entire hardware station (PLC copy) in the offline project.
What to Do The uploaded station is always stored as a new hardware station in a new or
already existing project (as in the slide).
PLC - Upload Station to PG...
Note: The uploaded hardware station contains all configuration and parameterization
data of the station (including networks and components) as well as the
complete user program. The uploaded S7 program, however, has no
documentation, that is, there are no comments such as network titles, no
symbols and also no variable and parameter names.
ST-SERV1
SITRAIN Training for Documenting, Saving, Archiving
Automation and Industrial Solutions Page 10
SIEMENS
04====11M111=111111111L
view delp
He EdIt riser. 41,C Qptions Window
12
:fop e Er= Ill
< No Filter >
Prerequisite The memory module (Memory Card or MMC) must be inserted in the PG.
As well, the Memory Card driver must be loaded in the STEP 7 software. If this
is not the case, you can install the driver via
"Start" 4 Simatic STEP 7 Memory Card Parameter Assignment"
Then, the "Memory Card" icon exists in the SIMATIC Manager's toolbar.
Erasing the Before you can transfer the program onto the memory module, the memory
Memory Module module must be erased.
The Memory Card can always only be erased completely. That is, individual
blocks can not be erased or overwritten.
Transferring the 1. In addition to the project window, open the Memory Card in a further
Program window in the SIMATIC Manager ( File 9 S7 Memory Card 9 Open)
2. Arrange the Project window and the Memory Card window one below the 14
other as shown in the slide.
3. In the Project window, in the appropriate Blocks folder, select the desired
blocks and drag them with the mouse into the Memory Card window.
Note With most of the CPUs, the Memory Card can also be written in the CPU using
PLC Download User Program to Memory Card
ManageC17 S, itern...
Drive
STEP 7Daa
Display Force Values Caaulawaw aaa
Ma ma wawa* Taraawavlbe waradaial Varna
McmitorlModfy Variables POWarawkaad
P Cieeipreo
Diagnostic/Setting
PROFIBUS
area
Assim Monet Address...
Assign PGIPC Soechit
:J
41 fEM
i
Cancel PGIPC assignmer mix OP tr NC pa
Update Operating System... mix a.m.*. x aiX re
Pao/MIX aw
1
Saves desired data to the Memory Card. J
SUM.loWatta PLC
May Led
_J
Function With the functions "Save to Memory Card..."and "Retrieve from Memory
Card...", you can save and retrieve the complete data of a project (user
programs with all comments, symbol tables, hardware configurations etc. from
all hardware stations) on a memory card. The memory card can be located in a
CPU or in the memory card programming slot of a PG or PC.
The project data are compressed before they are saved on the memory card
and are extracted when retrieved. The size of the project data to be saved
corresponds to the archive file size of the project. If the memory capacity of the
memory card is not sufficient a message will appear indicating so.
Project Data Similar to the archive of a project - the project data contains all data
with / without belonging to the project and all user programs of the CPUs.
User Program The user programs contained in the project data can not be read by the CPUs
and thus cannot be executed. With the option "Load the user program also", the
executable user program is also stored in addition to the project data. This user
program is the one assigned to the CPU on which the memory card is inserted.
Area of Use If several co-workers in the service and maintenance area have the job of
maintaining the SIMATIC S7 PLC, it is difficult to quickly provide every worker
with the current project data for a service assignment. When the project data
are available locally in one of the CPUs to be maintained, every worker can
access the current project data and make changes, if necessary, which in turn
are current and available to all other workers.
Note The functions Save to Memory Card and Retrieve from Memory Card are
unrestricted in the S7-400 system. They are available for the S7-300 system
after Oct. 2002.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 12 Documenting, Saving, Archiving
▪
SIEMENS
Manage M7 System...
Drive
OS I Mauer ordneri
Introduction With the PLC 4 "Save to Memory Card" and PLC 4 "Retrieve from Memory
Card" functions, you can save all project data and any files you wish for a later
application on a Memory Card and then you can retrieve it later on. The
functions for saving project data and retrieving from the Memory Card are,
however, only available for newer CPUs (after Oct. 2002).
The project data is compressed (zipped) before it is saved on the Memory Card
and is unzipped when it is retrieved. The size of the project data to be stored
corresponds to the archive file size of this project.
Operating If the project data does not exist on the programming device used (PG/PC),
you can select the source CPU in the window "Accessible Nodes". Open the
window "Accessible Nodes" with the menu options PLC - Display Accessible
Nodes and select the desired Connection/CPU with the Data on the Memory
Card. Now select the menu options PLC 9 Retrieve from Memory Card. In the
follow-up dialog, choose the data to be transmitted and the project path.
Note You can protect CPUs against unauthorized access by using a Password. See
the Hardware Configuration chapter for more information.
Archiving a Project
IA=1===11111M1011111M111=1111V
File Edit Insert PLC View Options Window Help
New... Ctrl+N
New Project' Wizard...
EI- *I d II<NoFiker> 1_179 113
Open... Archiving
111111111•11112k
Close
User projects I Libraries I Sample projects I Multiprojects I
Multiproject
Name Storage path
57 Memory Card MyProject D: \Courses WyProject
Memory Card File
Save As...
Archiving - Select an archive -:
Delete...
Archive That Goes across Diskettes:
Reorganize...
Manage... I N°
r Incremental Archiving
EMEZI >
Retrieve... r Reset Archive Bit
Print r Check Consistency
User projects:
Page Setup...
Libraries:
1 57 memory card OK Cancel I Help
Sample projects:
2 Loesungsprojekt_PRO 14 I
Multiprojects:
3 SERV1 5 (Project) — File name: IMyprojec zip Save I
4 SERV1_13 (Project) —
OK Save as lype: I PKZip 12.0-Archive('.zip) Cancel ell)
Exit
Lit
Saves project or library (compressed) h an archive. A
Introduction Since the data in a project can take up a lot of memory space and might not fit
completely onto a disk, an archive function is provided.
This archive function compresses the data so that it only takes up
approximately 1/8 of its original amount of memory. It uses the normal file
compression utilities, such as PKZIP, ARJ, LHARC, RAR or WINZIP. One of
these programs must first be installed on the PG/PC. If you want to use long file
names for the projects, you will need PKZIP, WinZip or RAR.
The ARJ and PKZIP file compression utilities are supplied with STEP 7.
You set the path for the archive program by selecting the Options - Customize
4 Archive menu options in the SIMATIC Manager.
Load memory:
Blocks:
> • Logic blocks
(OB,FC,FB) -a-rn
• Data blocks
(DB) RAM Flash
Additional info EPROM
Comments
Load Memory The load memory is a component of a programmable module. It contains load
objects (logic blocks, data blocks, and additional information) created on the
programming device.
The load memory can either be a plug-in memory card (EPROM) or an
integrated RAM.
Work Memory The work memory (integrated RAM) contains the parts of the S7 program
relevant for running your program.
The RAM work memory is integrated in the CPU and is backed up by the
battery.
System Memory The system memory contains the memory areas for:
• Process image input and output tables (PII, PIQ)
• Bit memories (M)
• Timers (T)
• Counters (C)
• L stack (L).
Retentive Memory The retentive memory is a non-volatile RAM used for backing up bit memories,
timers, counters and data blocks even if there is no backup battery. A Flash
EPROM Memory Card must be used to do this. You specify the areas to be
backed up when assigning the CPU's object parameters.
Inserting a When you insert a memory card, the operating system requests a memory
Memory Card reset. (STOP LED flashes slowly). You perform the memory reset by turning
the mode selector to the "MRES" position. The sections of the program relevant
for execution are then transferred from the memory card (with load memory
function) to the work memory.
You must leave the memory card inserted while the program is being
executed..
Memory Reset During a memory reset, all user data - with the exception of the diagnostic
buffer and the MPI parameters - are deleted.
Blocks:
4j Load
Load Memory The Micro Memory Card (MMC) is used as the load memory of the CPU. It is
Micro Memory Card used to store logic and data blocks as well as the system data (hardware
(MMC) configuration, communication connections etc.). If you like, the complete project
can be stored. That way, you have the symbols, comments and configuration
data, for example, for HMI or drives, available.
The MMC contents are retentive.
If a block or the entire user program is downloaded into the CPU from the PG,
the information is stored on the MMC. All block sections relevant for execution
are automatically copied into the work memory (RAM).
It is only possible to load a block or the user program as well as operate
the CPU when the MMC is inserted!
A memory reset is required every time the MMC is pulled or inserted!
Work Memory The work memory (RAM) is integrated on the CPU and only contains the parts
of the S7 program relevant for running your program (such as, only the current
values of the data blocks, not the initial values).
System Memory The system memory contains the memory areas for:
• Process image input and output tables (PII, PIQ)
• Bit memories (M)
• Timers (T)
• Counters (C)
• Local data (L)
Retentive All data that are saved in a power failure and/or which don't lose their contents
are considered retentive. This is all the work memory data as well as the bit
memories, timers and counters declared as retentive in the hardware
configuration.
Retentiveness is achieved in that the above-mentioned data are stored on the
MMC in a power failure and are written back to the RAM after a warm restart
when the power comes back on.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 16 Documenting, Saving, Archiving
SIEMENS
Blocks:
• Logic blocks
rm.
-111
(OB,FC,FB)
• Data blocks Flash EPROM
(DB) Memory Card in PG
Additonal info (inserted later in the
CPU)
SITRAIN Training for
SIMATIC S7 Date: 18.09.2009
Rtr Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: SERV1_14E.1 7
Load Memory The load memory can either be a plug-in memory card or integrated RAM. In
the S7-400, the memory card (RAM or Flash EPROM) expands the internal
load memory. A memory card is always required for the S7-400, since the
internal load memory only has a limited size.
Work Memory The work memory contains only the data relevant at runtime. The RAM work
memory is integrated in the CPU and is backed up by the battery.
System Memory The system memory contains the memory areas for:
• Process image input and output tables (PII, PIQ)
• Bit memories (M)
• Timers (T)
• Counters (C)
• L stack (L).
14
Memory Card When a RAM memory card is used, the system must be operated with a
battery. The battery backs up the data on the memory card and any internal
RAM in case of a power failure.
When a Flash EPROM memory card is used, the user program is stored in the
memory card making it power failure safe. The data found in the internal RAM
are backed up by the battery.
The "Hot Restart" mode is possible only in a backed up system.
Inserting a When you insert a memory card, the operating system requests a memory
Memory Card reset (STOP LED flashes slowly). You perform the memory reset by turning the
mode selector to the "MRES" position. The sections of the program relevant for
execution are then transferred from the memory card (load memory) to the
work memory.
You must leave the memory card inserted while the program is being executed.
DoeleS21
'1' NM Accept - is WV Z. occ• 191
-
:C Disoulemee SETSSE -IV
CD -
2
.S2/ANodmEel
eet .
SMILE
::D ConveyorE
S_POL111
-
TV
-
B BCO
Task 1 Provide the networks of a block with network comments and network titles.
Then take a look at a print preview of the block with headers and footers.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 18 Documenting, Saving, Archiving
SIEMENS
E F
Configure... ttrl+K
S Back r6 E.
E MI S7_30
Compile and Download Objects...
71
E0 Slot: ..,
,
Upload tc PG
Touch
d Sr.ahrri to PS
Copy RAM to ROM... Target Station: 6 Local
Download User Program to Memory Card
r Can be reached by means of gateway
Save to Memory Card...
Retrieve from Memory Card... Enter core ection to target station:
PROFD3U5 address 1 Module type I Station name I Module name I Plant designation
Manage M7 System... 2 CPU 315-... S7 300 S... CPU 315-2...
Drive
,_1_11125.1
pe EcIA Insert KC Dew captions Niindow bslip
gib e
IL3; MyProject -- D: \ Courses \ MyProject ,igjiLci UPdate
E z., MyProject Hardware i CPU 315 DP
E II F LC_■ ■_. ,,
-
Task You are to make a data backup (a so-called "PLC Copy") that includes the
hardware configuration and parameter assignment data and the complete S7
program as well as the current production data (quantities etc.).
What to Do 1. Load your complete hardware station into your current project
SIMATIC Manager PLC 9 Upload Station to PG...
2. In the dialog "Select node address" that then appears, activate the button
"View" to display all the accessible nodes.
3. Select your CPU and start the upload by pressing "OK".
4. Rename the newly created station "PLC Copy".
Result A new hardware station has been created in your project (in the slide "PLC
Copy") whose CPU contains the current S7 program with the current
production data, such as, quantities etc. The "uploaded" S7 program, however,
does not contain any comments, any variable and parameter names and also
no symbols!
VSIMATIC Manager
Fie PLC View Options Window Help
Archiving 2
New...
New Project' Wizard. , .
User projects I Libraries Sample projects Mukiprojects
Open...
Open Version 1 Project... Name I Storage path
GD_Cornmunication CAS7_Kurse1GD_Kommu
S7 Memory Card Mein_Nojekt C: S7_Kurse Mein_Pro
Memory Card Fie ojec 7_Lourses My_Proje
SERV1_32S C. S7_Courses S ervl _32
Delete... SERV2_32S C: S7_Courses Serv2_32
Reorgaize...
Manage...
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 20 Documenting, Saving, Archiving
SIEMENS
Note The following pages contain either further information or are for reference to
complete a topic.
14
PROFIBUS ►
Edk Ethernet Node..
Assi n PG /PC
Cancelg PG/PC Assi nment
Update Firmware g
Update the Operating System..
Save Service Data...
141
Downloading and controlfrig blocks and programs, modifying and monitoring modulI es.
A
4
Date: TrainIndustri
ing for al Solutions
File: 18.09.2009
SIMATIC S7 111 SITRAIN
Siemens AG 2008. All rights reserved. SERV1_14E.22 mc Automation and
General The Micro Memory Card (MMC) is used by the CPU operating system as a
load memory and can also be used by the user for any data storage.
The loading procedure is the known procedure for integrated load memories:
Menu option: PLC - Download or the appropriate icon in the toolbar.
Note It is not necessary to compress the MMC. Deleted areas (pages) are
completely reused the next time information is saved. During CPU startup,
there is also an MMC Check in which "lost pages" are "recaptured".
The loading times vary depending on the operating mode of the CPU:
Operating mode RUN - slow, since the user program has priority in
processing. Operating mode STOP 4 fast, since the user program doesn't
have to be processed.
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 22 Documenting, Saving, Archiving
SIEMENS
IF14,1,11
Geschatzte Dauer 4 me 23 sec
Geserries Derenvoiumen. 1 396 MB
Bemis ubereagen. 1.396 MB
OK Help I
Starts transmission
.•**
Note The transmission is finished when the blue bar has reached the end and the
message "Data transmission to the memory card is finished" appears.
Innummilemmommmummounnommo
Total duration: 35 s
Total data volume: 981 kB
Total transmitted: 981 kB
Close it
I
Fie name:
OK 6e_j
Ab eken Mee
Ordner lit piles • ems
Starts transmission
I...
4
Note The transmission is completed when the blue bar has reached the end and the
message "Data transmission to the programming device (PG) is finished"
appears.
- When S7 projects are "gotten", they are copied, unzipped and, if necessary,
opened (after being prompted).
- When other files are "gotten", they are only copied in the target directory.
Transfer files to PG
Source IIIIPROFINET -10 (CPU)
Target: D: \S7 courses
Total duration: 27 s
Total data volume: 358 kB
Total transmitted: 358 kB
Close I
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions
Page 24 Documenting, Saving, Archiving
SIEMENS
Contents Page
Objectives 2
Task ... 3
Exercise 1: Performing a CPU Memory Reset and a Warm Restart .......... 4
Exercise 2: Setting the PG Interface to MPI .......... 5
Exercise 3: Deleting an Old Project and Retrieving a New Project .......... 6
Exercise 4: Hardware Commissioning .......... 7
Exercise 5: Software Commissioning 8
Exercise 6: Software Expansion .......... 9
15
Objectives
ST-SERV1
SITRAIN Training for Closing Exercise
Automation and Industrial Solutions Page 2
SIEMENS
Task
DO
T_System_ON • SIEMENS SIMATIC PANEL
T_System_OFF L_SYSTEM •
T_Jog_RIGHT L_MAN •
T_Jog_LEFT L_AUTO •
S_M/A_ModeSelect •
T_M/A_Accept •
•
•
T_Ackn_Fault L_Conv_Fault
Task The TIA project that is now to be commissioned is to fulfill exactly the same
functions as the project you have already created during the course. As well, it is
also to be expanded by some smaller functions.
Software Commissioning:
The logic errors in the given S7 program have to be eliminated.
15
MRES
RUN-P
2. Hold (Press) the mode selector switch in the MRES
RUN position until the STOP LED has flashed twice slowly. tIN
S TOEs
P
Release the mode selector switch so that it returns to mR
if
MRES
within 1 sec
RUN-P
RUN 3. Turn (press) the mode selector switch to the MRES posi-
I1RUN
tion once more until the STOP LED begins to flash quickly.
STOP
STOP Cl. Release the mode selector switch so that it returns to MRES
the STOP position.
MRES
RUN-P
RUN
— RUN
4. Set the mode selector switch to the RUN-P (RUN)
STOP
STOP CI)
position. (A warm restart is carried out in the transition
MRES
from STOP to RUN/RUN-P)
MRES
Task You are to perform a CPU memory reset and check whether the memory reset
was successful.
What to Do 1. If a CPU with MMC is used at your training area, the MMC must first be
explicitly erased.
For example, SIMATIC Manager 9 Accessible Nodes 9 in the Blocks
folder select all blocks 9 Delete
2. Carry out the memory reset according to the steps in the slide above
(manually and from the PG).
3. Check if the memory reset was successful. It was successful if only system
blocks (SDBs, SFCs, SFBs) are left in the CPU
SIMATIC Manager 9 Accessible Nodes 9 Double-click on MPI=2
9 Click on Blocks
Notes To make sure that no "old" blocks are left in the CPU, a memory reset of the
CPU should be performed. The following steps are carried out during a
memory reset:
• All user data is deleted (Exception: MPI parameter assignments and the
contents of the diagnostic buffer are retained).
• Hardware test and initialization
• If an Eprom memory card or a Micro Memory Card (MMC) is installed, the
CPU copies all data on the cards that is relevant for execution back into the
internal RAM after the memory reset.
• If no memory card or Micro Memory Card is installed, the preset MPI
address on the CPU is retained. If, however, a memory card is installed, the
MPI address stored on it is loaded.
ST-SERV1
SITRAIN Training for Closing Exercise
Automation and Industrial Solutions Page 4
SIEMENS
CP5611(MPI) Diagnostics
CP5611(PPI)
CP5611(PROFIBUS - DP Slave) _J Copy..
CP5611(PROFIB US) <Active> zi Delete MPI
— Station Parameter-.
Parameter assignment of your
communications processor CP5611 for an r PG/PC is the only master on the bus
MPI network)
— Interfaces -
Address: ID
Add/Remove: Select... Timeout 11 s
Network Parameters -
OK Cancel 1 He
Transmission Rate: 1187 5 Kbps
OK Default I Cancel I He I
Task Depending on the type of CPU used, it could be that after the CPU memory
reset the PROFIBUS interface is no longer parameterized and so the PG can
no longer access the CPU. If this is the case, the PG's interface has to be
switched to MPI and connected to the MPI interface of the CPU.
What to Do 1. Using the "Accessible Nodes" function, check whether you can set up a
connection to the CPU.
SIMATIC Manager 4 PLC 4 Display Accessible Nodes
57 Memory Card
Memory Card File
Reorganize...
File name: I SERVl_StartU p. zip 2pen
Files of lype: I PI(.74. 1 2.0-Archive (".zip)
Pitt
Page Setup.
SERVI_Startlip D: Courses SERV1_StartUp _1J xl
1 Loesungsprojeld_PRO1 V59
Object name Symbolic
2 SERV1_5 (Project) — D:\Courses\5ERV1. E S7_300_Station S7_300_Station SIMATIC 300
3 5IZRVI_B (Project) — DACoursesliSIERVI. E CPU 315-2 DP Touchpanel SIMATIC HMI
4 SERVl_A (Project) — DACcurseASERVI ID 0 Chap15_StartUp
VMPI(1) MPI
al Sources
Exit VPROFIBUS(1) PROFIBUS
Blocks
E aMICROMASTER_420
Touchpanel 4l
Task Delete — insofar as it exists — the old project "SERV1_StatUp" and then retrieve
the project archive "SERV1_StatUp.zip"
Result ...is the retrieved project "SERV1_StatUp" that you are now to commission.
ST-SERV1
SITRAIN Training for
Closing Exercise
Automation and Industrial Solutions Page 6
SIEMENS
Task The hardware configuration and parameter assignments given in the project
"SERV1_StartUp" must be adapted accordingly to your actual training unit.
What to Do Check the parameterization data highlighted in the slide and make — as far as
necessary — the appropriate corrections.
15
Task The given program is to fulfill exactly the same functions as the program that
you have created during the course.
The given S7 program is to be corrected by you and commissioned.
Note: The touchpanel program is error-free !
What to Do Check the following functions and — as far as necessary — correct the program:
1. Can you switch the operating modes "L_SYSTEM" (Q4.1), "L_MAN" (Q4.2)
and "L_AUTO" (Q4.3) on and off via the touchpanel?
2. Can you jog the conveyor motor to the right and to the left in the
MAN (Q4.2 = '1') operating mode?
3. While in AUTO mode (Q4.3 = '1'), are the parts placed at Bay 1 or Bay 2
transported through the light barrier?
ST-SERV1
SITRAIN Training for Closing Exercise
Automation and Industrial Solutions Page 8
SIEMENS
1 0.4 S_M/A_ModeSelect a
1 0.5 T_M/A_Accept a
a
a
1 1.0 T_Ackn_Fault L_Conv_Fault a Q 5.0
a left Jog right
Contents Page
Exercise Solutions ......... 2
Symbol List ......... 3
Symbol List ......... 4
Ch3 Ex1: Using the S7-300 Manuals ......... 5
Ch3, Ex2: Wiring the Signal Modules ......... 6
Ch8, Ex1 + 2: Jogging the Conveyor Motor (FC 16) / Calling FC 16 in OB 1 ......... 7
Ch9, Ex1 : Sensors and Symbols ......... 8
Ch9, Ex2: Programming the Operating Mode Section (FC 15) ......... 9
Ch9, Ex3: Conveyor in AUTO Mode (Expanding FC 16) ....... 10
Ch9, Ex4: Integrating the Edge Detection in FC 16 ....... 11
Ch9, Ex5: Putting Indicator Lights + Horn (FC 14) into Operation ....... 12
Ch9, Ex6: Optimizing the Operating Mode Section (FC 15) ....... 13
Ch10, Ex2: Counting the Transported Parts (FC 18, C 18) ....... 14
Ch10, Ex3: Monitoring the Transport Functions (FC 17) ....... 15
Ch10, Ex4: Counting the Transported Parts (FC 19) ....... 16
Ch10, Ex3 - 4: Lock-out in FC 14 ....... 17
Ch10, Ex3 - 4: Lock-out in FC 16 ....... 18
•
Ch10, Add.-Ex5: Counting the Conveyor Belt Fault Conditions (FC17) ....... 19
Ch10, Add.-Ex5: Lock-out in FC15 ....... 20
Ch10, Add.-Ex6: Timely Lock-out of the Conveyor Motor Jogging (FC16) ....... 21
Ch12, Ex2: Rewiring using Absolute Addresses (FC15) ....... 22
Ch12, Ex2: Rewiring using Absolute Addresses (FC16) ....... 23
Ch12, Ex2: Rewiring using Absolute Addresses (FC17) ....... 24
Ch12, Ex2: Rewiring using Absolute Addresses (FC19) ....... 25
Ch13, Ex5: Controlling a Drive via the Touchpanel (FC 42) ....... 26
SITRAIN Training for ST-SERV1
Automation and Industrial Solutions Page 1 Exercise Solutions
SIEMENS
Contents Page
Ch15: Closing Exercise: Overview ........ 27
Ch15: Software Commissioning (0B1) ........ 28
Ch15: Software Commissioning (FC14) ........ 29
Ch15: Software Commissioning (FC15) ........ 30
Ch15: Software Commissioning (FC16) ........ 31
Ch15: Software Commissioning (FC16) ........ 32
Ch15: Software Commissioning (FC17) ........ 33
Ch15: Software Commissioning (FC19) ........ 34
Ch15: Software Commissioning (FC42) ........ 35
Ch15: Software Expansions (FC14) ........ 36
Ch15: Software Expansions (FC14) ........ 37
Ch15: Software Expansions (FC16) ........ 38
Ch15: Software Expansions (FC16) ........ 39
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 2 Exercise Solutions
Symbol List
ST-SERV1
SITRAIN Training for Exercise Solutions
Automation and Industrial Solutions Page 4
Ch3, Exl: Using the S7-300 Manuals
1. How many racks with how many modules each can be installed in the
S7-300?
max. ..... 4 ........ racks with ...... 8 ....... modules each
designed for an input voltage of ...... 120 ........ VAC or ...... 230 ............ VAC
Tolerance Range of ...... 20.4 ........... VDC to ...... 28.8 ......... VDC
4. How many digital inputs and outputs can the CPU 314 address and how
large is the process-image input table (PII) and the process-image output table (PIQ)?
Process-image input table: ...128 ..... bytes = ....1024 ....... digital inputs
Process-image output table: 128 ...... bytes = ....1024 ....... digital outputs
5. At which voltage levels does the digital input module SM321; DI32/24V deliver
signal state "0": ...-30... V to .+5 .... V
signal state "'I': ...+15...V to ....+30 .. V
6. What is the maximum output current that the digital output module SM322;
D032; DC24V/0.5A delivers at
signal state "0": ....0.5.mA (residual current)
signal state '1 ": ....0.6...A
L+ L
00 0 0 17-
20
0 13-
16
00
DI/
DO
323
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 6 Exercise Solutions
Ch8, Ex1-2: Jogging the Conveyor Motor (FC 16) / Calling FC 16 in OB 1
FC16
EN ENO
Symbol information:
FC16 FCConvMotor -- FC Control of conveyor motor
Symbol information:
10_2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10.3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
Q8.5 K Conv RIGHT -- Run conveyor RIGHT
Symbol information:
10_2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10.3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
Q8.6 K_Conv_LEFT -- Run conveyor LEFT
Hardware
I I
OU 11 S1 I-‘ 2 I=‘ S1 I= S2 1=-- S1 I=1 S2
I I I I
I 1.0 I 1.1 I 1.0 I 1.1 I 1.0 I 1.1
Programmable Controller Programmable Controller Programmable Controller
Q 4.0 Q 4.0 Q 4.0
Software
4 )Light (1) Light
1 )Light
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 8 Exercise Solutions
Ch9, Ex2: Programming the Operating Mode Section (FC 15)
maw
FC15 : Mode Section
Indicator Light System On/Off
Q4.1
I0.0 SR
Q
I0.1
Symbol information:
I0.0 T_System_ON -- Momentary contact System ON
I0.1 T_System_OFF -- Momentary contact System OFF (NC contact)
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.2
IO.S 10.4 SR
II IA Q-
Q4.1
IA
10.4
Symbol information:
I0.5 T_M/A_Accept -- Momentary contact, confirm operating mode
10.4 S_M/A_ModeSelect -- Switch - Operating Mode Preselect: '0'=MANUAL
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.2 LMAN -- Indicator light MAN mode
04.3
10.5 10.4 SR
Q-
Q4.1
I/I
10.4
I/I
Symbol information:
I0.5 T_M/A_Accept -- Momentary contact, confirm operating mode •
10.4 S_M/A_ModeSelect -- Switch - Operating Mode Preselect: '0'=MANUAL
Q4.1 L_SYSTEM -- Indicator light System ON
Q4_3 LAUTO -- Indicator light Automatic mode
FC16 : Title:
Network 1: Jog to the right
Symbol information:
Q4.2 L_MAN -- Indicator light MAN mode
10.2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10_3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
Symbol information:
Q4_2 L_MAN -- Indicator light MAN mode
10.2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10.3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
Q8.6 KConvLEFT -- Run conveyor LEFT
M16.4
18.5 18.6 18.1 SR
I I I/I 0-
18.5 18.6 18.2
04.3
I/1
18.0
I/1
Symbol information:
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAYZ -- Proximity sensor Bay 2
18.1 T_Bayl -- Momentary contact Bay 1
18.2 T_Bay2 -- Momentary contact Bay 2
Q4.3 L_AUTO -- Indicator light Automatic mode
18.0 LB -- Light barrier
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
M16.2 08.5
II
M16.4
Symbol information:
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 10 Exercise Solutions
Ch9, Ex4: Integrating the Edge Detection in FC 16
FC16 : Title:
Network 1: Jog to the right
Symbol information:
Q4.2 L_MAN -- Indicator light MAN mode
10.2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10.3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
Symbol information:
Q4.2 L_MAN -- Indicator light MAN mode
10.2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10.3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
08.6 XConvLEFT -- Run conveyor LEFT
P116.4
18.5 18.6 18.1 SR
II '1/I I 0-
Symbol information:
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAYZ -- Proximity sensor Bay 2
18_1 T_Bayl -- Momentary contact Bay 1
18.2 T_Bay2 -- Momentary contact Bay 2
Q4.3 L_AUTO -- Indicator light Automatic mode
18.0 LB -- Light barrier
M16.0 M_Aux_LB -- Edge auxiliary memory bit Light barrier
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
1116.2 08.5
II
M16.4
Symbol information:
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
Q8.5 KConvRIGHT -- Run conveyor RIGHT
Symbol information:
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAY2 -- Proximity sensor Bay 2
M10.5 M_Flash_lHz -- Memory bit - flashing frequency 1Hz
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q8.2 L_Bay2 -- Indicator light Bay 2
Symbol information:
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAY2 -- Proximity sensor Bay 2
M10.5 M_Flash_lHz -- Memory bit - flashing frequency 1Hz
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q8.2 L_Bay2 -- Indicator light Bay 2
Network 3: Horn
08.6
I Logic Error:
Remove negation
Symbol information:
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
08.6 K_Conv_LEFT -- Run conveyor LEFT
Q4.2 L_MAN -- Indicator light MAN mode
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q8.7 Horn -- Horn
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 12 Exercise Solutions
Ch9, Ex6: Optimizing the Operating Mode Section (FC 15)
FC15 : Title:
Network 1: Indicator Light System On/Off
Q4.1
M15.1 SR
S Q-
Symbol information:
10.0 T_System_ON -- Momentary contact System ON
MI5.1 M_Aux_System_ON -- Edge auxiliary memory bit System ON
I0.1 T_System_OFF -- Momentary contact System OFF (NC contact)
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.2
10.5 MI5.2 10.4 SR
(P) I/I Q-
Q4.1
Symbol information:
10.5 T_M/A_Accept -- Momentary contact, confirm operating mode
M15.2 M_Aux_Man_ON -- Edge auxiliary memory bit Manual mode ON
10.4 S_M/A_ModeSelect -- Switch - Operating Mode Preselect: '0. =MANUAL
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.2 L_MAN -- Indicator light MAN mode
Q4.3
10.5 M15.3 10.4 SR
II (P) Q-
04.1
I/I
10.4
I/I
Symbol information:
I0.5 T_M/A_Accept -- Momentary contact, confirm operating mode
M15.3 M_Aux_Auto_ON -- Edge auxiliary memory bit Auto mode ON
10.4 S_M/A_ModeSelect -- Switch - Operating Mode Preselect: '0'=MANUAL,
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.3 LAUTO -- Indicator light Automatic mode
C18
18.0 M18.0 04.3 S_CU
CU
PV CV BCD —0W6
Q4.1
I/I
Symbol information:
18.0 LB -- Light barrier
M18.0 M_Aux_Auto -- Auxiliary memory bit Edge AUTO on
Q4.3 L_AUTO -- Indicator light Automatic mode
04.1 L_SYSTEM -- Indicator light System ON
QW6 QW_DigDisp -- BCD digital display
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 14 Exercise Solutions
Ch10, Ex3: Monitoring the Transport Functions (FC 17)
FC17 : Title:
Network Conveyor fault (time monitoring)
T17
Q4.3 Q8.5 S_ODT
S Q
S5T116S- TV BI
BCD
Symbol information:
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8_5 K_Conv_RIGHT -- Run conveyor RIGHT
T17 OD_Conv_Monitoring -- Timer, Conveyor monitoring in Auto mode
H17.0
T17 SR M10.3 Q5.0
Il. 0 —
Symbol information:
T17 OD_Conv_Monitoring -- Timer, Conveyor monitoring in Auto mode
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
I1.0 T_Ackn_Fault -- Momentary contact Fault acknowledgement
M10.3 H_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q5.0 LConv_Fault -- Indicator light Conveyor fault
04.1 MOVE
I/1 EN ENO
08.4 18.4 0— IN OUT —NWZO
I I
Symbol information:
Q4.1 L_SYSTEM -- Indicator light System ON
Q8.4 L_Bay-LB -- Indicator light Light barrier bay
18.4 T_Bay-LB -- Momentary contact Light barrier bay
MW20 MW_ACT -- Memory word, ACTUAL quantity of transported parts
1— INZ
Symbol information:
18.0 LB -- Light. barrier
M19.0 M_Aux_Count -- Edge auxiliary memory bit Light barrier
Q4.3 L_AUTO -- Indicator light Automatic mode
MW20 MW_ACT -- Memory word, ACTUAL quantity of transported parts
BCD!
EN ENO
Symbol information:
11E2 IWThumbw -- BCD thumbwheel
MWEZ MW_SETP -- Memory word, SETPOINT quantity of parts to be transp.
MW20 — IN1
MWZ2 — INZ
Symbol information:
MW20 MW_ACT -- Memory word, ACTUAL quantity of transported parts
MW22 MW_SETP -- Memory word, SETPOINT quantity of parts to be transp.
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8.4 L_Bay-LB -- Indicator light Light barrier bay
L8CD
EN ENO
Symbol information:
truzo MW_ACT -- Memory word, ACTUAL quantity of transported parts
0.16 QW_DigDisp -- BCD digital display
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 16 Exercise Solutions
Ch10, Ex3 - 4: Lock-out in FC 14
II I I IA II III VI
Q4.3 08.5 110.3
.1 I
Symbol imformatioa:
Q4.3 L_AUTO Indicator light Automatic mode
Q8.5 R_Conv_RIGHT Run conveyor RIGHT
18.5 BAY1 Proximity sensor Bay 1
18.6 BAY2 Proximity sensor Bay 2
M17.0 MConv_Fault Memory bit Conveyor fault
08.4 LBay-LB Indicator light Light barrier bay
M10.5 M_Flash_lHz Memory bit - flashing frequency 1Hz
110.3 /1 Flash_ZHz Memory bit - flashing frequency 2 Hz
08.1 L_Bayl Indicator light Bay 1
Symbol iaformatioa:
04.3 LAUTO -- Indicator light Automatic mode
08.5 RConv_RIGHT -- Run conveyor RIGHT
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAY2 -- Proximity sensor Bay 2
M17.0 MConvFault -- Memory bit Conveyor fault
Q8.4 L_Bay-LB -- Indicator light Light barrier bay
M10.5 M_Flash_lHz -- Memory bit - flashing frequency 1Hz
110.3 MFlash_2Hz -- Memory bit - flashing frequency 2 Hz
08.2 LBay2 -- Indicator light Bay 2
Net-work 8:Horn
Symbol information:
08.5 K_Conv_RIGHT Run conveyor RIGHT
Q8_6 K_Conv_LEFT Run conveyor LEFT
04.2 L_MAN Indicator light MAN mode
M10.3 M_Flash_2Hz Memory bit - flashing frequency 2 Hz
Q8_7 Horn Horn
1116.4
18.5 18.6 18.1 SR
1 I 1/1 Q—
18.5 18.6
Q4.3
I/I
18.0 M16.0
1 1 (P)
1117.0
1 1
08.4
Symbol information:
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAY2 -- Proximity sensor Bay 2
18.1 T_Bayl -- Momentary contact Bay 1
18.2 T_Bay2 -- Momentary contact Bay 2
Q4.3 L_AUTO -- Indicator light Automatic mode
18.0 LB -- Light barrier
M16.0 M_Aux_LB -- Edge auxiliary memory bit Light barrier
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
Q8.4 L_Bay-LB -- Indicator light Light barrier bay
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
M16.2 Q8.5
1 1 0-1
M16.4
Symbol information:
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 18 Exercise Solutions
Ch10, Add.-Ex5: Counting the Conveyor Belt Fault Conditions (FC17)
FC17 : Title:
117
Q4.3 08.5 S_0 DT
I I I S 0
SST#6S — TV BI
R BCD
Symbol information:
Q4_3 L_AUTO -- Indicator light Automatic mode
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
T17 OD_Conv_Monitoring -- Timer, Conveyor monitoring in Auto mode
H17. 0
T17 SR M10.3 QS.0
- —______i
I I
11.0—
Symbol information:
117 OD_Conv_Monitoring -- Timer, Conveyor monitoring in Auto mode
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
I1.0 T_Ackn_Fault -- Momentary contact Fault acknowledgement
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q5.0 LConv_Fault -- Indicator light Conveyor fault
C17
M17.0 S_CD
I1------- CD
04.3 — S CV—...
Cf 3 — PV CV BCD
... —
Symbol information:
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
C17 C_Conv_Fault -- Counter Conveyor faults
Q4.3 L_AUTO -- Indicator light Automatic mode •
1111:
04.1
I0.0 M15.1 SR
II
I0.1
I/I
Symbol information:
I0.0 T_System_ON -- Momentary contact System ON
M15.1 M_Aux_System_ON -- Edge auxiliary memory bit System ON
I0.1 T_System_OFF -- Momentary contact System OFF (NC contact)
Q4.1 L_SYSTEM -- Indicator light System ON
04.2
I0.5 M15.2 10.4 SR
II (P) S Q
Q4.1
I/I
10.4
Symbol information:
IO.S T_M/A_Accept -- Momentary contact, confirm operating mode
M1S.2 M_Aux_Man_ON -- Edge auxiliary memory bit Manual mode ON
10.4 S_M/A_ModeSelect -- Switch - Operating Mode Preselect: .0'=MANUAL,
Q4.1 L_SYSTEM -- Indicator light System ON
04.2 L_MAN -- Indicator light MAN mode
Q4.3
10.5 H15.3 10.4 SR
1 (P) 1 1--S 0-
C17 M15.7
-1I (N)--
Q4.1
IA
10.4
VI
Symbol information:
10.5 T_M/A_Accept -- Momentary contact, confirm operating mode
M15.3 M_Aux_Auto_ON -- Edge auxiliary memory bit Auto mode ON
10.4 S_M/A_ModeSelect -- Switch - Operating Mode Preselect: '0'=MANUAL, .1'=AUTO
C17 C_Conv_Fault -- Counter Conveyor faults
M15.7 M_Aux_C17 -- Edge auxiliary memory bit Counter-Conveyor faults
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.3 L_AUTO -- Indicator light Automatic mode
FC16 : Title:
Network 1: Jog to the right
SST#25— TV BI
BCD
Symbol information:
04.2 L_MAN -- Indicator light MAN mode
10_2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10.3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
T16
S_OFFDT
Q -
S5T#2S — TV BI
BCD
Symbol information:
04.2 L_MAN -- Indicator light MAN mode
10.2 T_Jog_RIGHT -- Jog conveyor RIGHT, momentary contact
10.3 T_Jog_LEFT -- Jog conveyor LEFT, momentary contact
08.6 K_Conv_LEFT -- Run conveyor LEFT
ti
Q4.1
M30.0 SR
M30.1— R
Symbol information:
M30.0 M_System_ON_HMI -- Memory bit System ON (TP170)
M15.1 M_Aux_System_ON -- Edge auxiliary memory bit System ON
Q4.1 L_SYSTEM -- Indicator light System ON
M30.1 M_SystemOFFHMI -- Memory bit System OFF (TP170)
Q4.2
M30.5 M15.2 M30.4 SR
I I (p) 1/ Q-
Q4.1
IA
M30.4
Symbol information:
M30.5 M_M/A_Accept_HMI -- Memory bit, confirm operating mode (TP170)
M15.2 M_Aux_Man_ON -- Edge auxiliary memory bit Manual mode ON
M30.4 M_M/A_ModeSelect_HMI -- Memory bit Operating Mode Preselect: .0..MANUAL
Q4_1 L_SYSTEM -- Indicator light System ON
Q4.2 L_MAN -- Indicator light MAN mode
04.3
M30.5 M15.3 M30.4 SR
I1 (p) Q-
04.1
N30.4
SyMbol information:
M30.5 M_M/A_Accept_HMI -- Memory bit, confirm operating mode (TP170)
M15.3 M_Aux_Auto_ON -- Edge auxiliary memory bit Auto mode ON
M30.4 M_M/A_ModeSelect_HMI -- Memory bit Operating Mode Preselect: '0'=MANUAL
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.3 L_AUTO -- Indicator light Automatic mode
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 22 Exercise Solutions
Ch12, Ex2: Rewiring using Absolute Addresses (FC 16)
FC16 : Title:
Network 1: Jog to the right
Symbol information:
04.2 L_MAN -- Indicator light MAN mode
M30.2 M_Conv_Jog_RIGHT_HMI -- Memory bit Jog Conveyor RIGHT (TP170)
M30.3 M_Conv_Jog_LEFT_HMI -- Memory bit Jog Conveyor LEFT (TP170)
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
Symbol information:
Q4.2 L_MAN -- Indicator light MAN mode
M30.2 M_Conv_Jog_RIGHT_HMI -- Memory bit Jog Conveyor RIGHT (TP170)
M30.3 M_Conv_Jog_LEFT_HMI -- Memory bit Jog Conveyor LEFT (TP170)
Q8.6 K_Conv_LEFT -- Run conveyor LEFT
FC17 : Title:
T17
Q4.3 Q8.5 S_ODT
S 0
S5T#6S — TV BI
BCD — . .
Symbol information:
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8.5 H_Conv_RIGHT -- Run conveyor RIGHT
T17 OD_Conv_Monitoring -- Timer, Conveyor monitoring in Auto mode
Network 2: Title:
M17.0
T17 SR M10.3 05.0
0
I I 0-1
11.0
I I
M31.0
I I
Symbol information:
T17 OD_Conv_Monitoring Timer, Conveyor monitoring in Auto mode
I1.0 T_Ackn_Fault Momentary contact Fault acknowledgement
M31.0 M_Ackn_Fault_HMI Memory bit, acknowledge conveyor fault (TP170)
M17.0 M_Conv_Fault Memory bit Conveyor fault
M10.3 M_Flash_ZHz Memory bit - flashing frequency 2 Hz
Q5.0 L_Conv_Fault Indicator light Conveyor fault
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 24 Exercise Solutions
-
Q4.1 MOVE
IA EN ENO
Symbol information:
Q4.1 L_SYSTEM - - Indicator light System ON
Q8.4 L_Bay-LB - - Indicator light Light barrier bay
18.4 T_Bay-LB - - Momentary contact Light barrier bay
MW20 MILACT - - Memory word, ACTUAL quantity of transported parts
1— IN2
Symbol information:
18.0 LB - - Light barrier
M19.0 M_Aux_Count -- Edge auxiliary memory bit Light barrier
Q4.3 L_AUTO - - Indicator light Automatic mode
MW20 MW ACT - - Memory word, ACTUAL quantity of transported parts
NW20— IN1
NW22— INZ
Symbol information:
MW20 MILACT Memory word, ACTUAL quantity of transported parts
MW22 MW_SETP Memory word, SETPOINT quantity of parts to be transp
Q4.3 L_AUTO - - Indicator light Automatic mode
Q8.4 LBay-LB - - Indicator light Light barrier bay
LBCD
EN ENO
Symbol information:
MY20 MILACT - - Memory word, ACTUAL quantity of transported parts
QW_Dignsp - - BCD digital display
M40.0 MOVE
I 1------ EN ENO
Symbol information:
M40_0 M_ME420_0n_HMI -- Switch On Memory bit MM420 (TP170)
QW42 QWControlMM420 -- Control word for MM420
M40.0 MOVE
EN ENO
Symbol information:
M40.0 M_MM420_0n_HMI -- Switch On Memory bit MM420 (TP170)
QW42 QWControlMM420 -- Control word for MM420
Symbol information:
M40.2 M_MM420_Jog_RIGHT_HMI Memory bit MM420 Jog RIGHT (TP170)
M40.3 M_MM420_Jog_LEFT_HMI Memory bit MM420 Jog LEFT (TP170)
M40.0 M_MM420_0n_HKI Switch On Memory bit MM420 (TP170)
QW42 QW_Control_MM420 Control word for MM420
Symbol information:
M40.3 M_MM420_Jog_LEFT_HMI -- Memory bit MM420 Jog LEFT (TP170)
M40.2 M_MR420_Jog_RIGHT_HMI -- Memory bit MM420 Jog RIGHT (TP170)
M40.0 M_MM420_0n_HMI -- Switch On Memory bit MM420 (TP170)
QW42 QWControlMM420 -- Control word for MM420
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 26 Exercise Solutions
SIEMENS
1 CPU type and I/O module types ...replace with CPU actually used
Software Startup
Error Malfunction Error Location Correction
insert
Network 2: Control the Conveyor Motor
CALL FC15
FC16
EN ENO
Symbol information:
FC16; FCCorfollot or - FC Control of conveyor motor
FC14
EN ENO
Symbol information:
FC14 FC_Signal FC Indicator lights + Horn
FC19
EN ENO
Symbol information:
FC19 FC_Count_Add -- FC Count parts using addition
FC17
EN ENO
FC42
EN ENO
Symbol information:
FC42 FC 241420 - FC Control 11/1420
ST-SERV1
SITRAIN Training for
Exercise Solutions
Automation and Industrial Solutions Page 28
Ch15: Software Commissioning (FC14)
FC14 : Indicator lights + Horn
Network 1: Indicator Light bay 1
Symbol information:
04.3 L_AUTO -- Indicator light Automatic mode
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAY2 -- Proximity sensor Bay 2
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
Q8.4 L_Bay -LB -- Indicator light Light barrier bay
M10.5 M_Flash_lHz -- Memory bit - flashing frequency 1Hz
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q8.1 L_Bayl -- Indicator light Bay 1
Symbol information:
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
18.5 BAY1 -- Proximity sensor Bay 1
18.6 BAY2 -- Proximity sensor Bay 2
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
Q8.4 L_Bay-LB -- Indicator light Light barrier bay
M10.5 M_Flash_lHz -- Memory bit - flashing frequency 1Hz
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q8.2 L_Bay2 -- Indicator light Bay 2
Network 3: Horn
Symbol information:
08.5 K_Conv_RIGHT -- Run conveyor RIGHT
Q8.6 K_Conv_LEFT -- Run conveyor LEFT
Q4.2 L_MAN -- Indicator light MAN mode
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q8.7 Horn -- Horn
Q4.1
M30.0 M15.1 SR
Symbol information:
M30.0 M_System_ON_HMI -- Memory bit System ON (HMI)
M15.1 M_Aux_System_ON -- Edge auxiliary memory bit System ON
Q4.1 L_SYSTEM -- Indicator light System ON
M30.1 M_SystemOFFHMI -- Memory bit System OFF (HMI)
Q4.2
M30.5 M15.2 M30.4 SR
II (P) 1/1— S
Q4.1
I/1 QL
M30.4
Symbol information:
M30.5 M_M/A_Accept_HMI -- Memory bit, confirm operating mode (HMI)
M1S.2 M_Aux_Man_ON -- Edge auxiliary memory bit Manual mode ON
M30.4 M_M/A_ModeSelect_HMI -- Memory bit Operating Mode Preselect: '0'..4LU
Q4.1 L_SYSTEM -- Indicator light System ON
Q4.2 L_MAN -- Indicator light MAN mode
Q4.3
M30.5 M15.3 M30.4 SR
—
0
Q4.1
I/1
M30.4
I/I
Symbol information:
M30.5 M_M/A_Accept_HMI -- Memory bit, confirm operating mode (HMI)
M15.3 M_Aux_Auto_ON -- Edge auxiliary memory bit Auto mode ON
M30_4 M_M/A_ModeSelect_HMI -- Memory bit Operating Mode Preselect: '0'.=MA/
Q4.1 L_SYSTEM -- Indicator light System ON
Q4_3 L_AUTO -- Indicator light Automatic mode
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 30 Exercise Solutions
Ch15: Software Commissioning (FC16)
FC16 : Title:
Network 1: Jog conveyor motor to the Right Q8.5 -> M 16.2
SST#2S — TV BI
BCD —...
Symbol information:
04.2 L_MAN -- Indicator light MAN mode
M30.2 M_Conv_Jog_RIGHT_HMI -- Memory bit Jog Conveyor RIGHT (HMI)
M30.3 M_Conv_Jog_LEFT_HMI -- Memory bit Jog Conveyor LEFT (HMI)
Q8.5 KConvRIGHT -- Run conveyor RIGHT
T16
S_OFFDT
Q —
SST#28— TV BI
R BCD
Symbol information:
04.2 L_MAN -- Indicator light MAN mode
M30.2 M_Conv_Jog_RIGHT_HMI -- Memory bit Jog Conveyor RIGHT (HMI)
M30.3 M_Conv_Jog_LEFT_HMI -- Memory bit Jog Conveyor LEFT (HMI)
08.6 K_ConvLEFT -- Run conveyor LEFT
M16.4
18.5 18.1 SR
I I
18.6 18.2
04.3
1/1
18.0 M16.0
II
M17.0
II ->
08.4
I
Symbol information:
18.5 BAY1 -- Proximity sensor Bay 1
18.1 T_Bayl -- Momentary contact Bay 1
18.6 BAY2 -- Proximity sensor Bay 2
18.2 T_Bay2 -- Momentary contact Bay 2
Q4.3 L_AUTO -- Indicator light Automatic mode
18.0 LB -- Light barrier
M16.0 M_Aux_LB -- Edge auxiliary memory bit Light barrier
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
Q8.4 L_Bay-LB -- Indicator light Light barrier bay
M16.4 MAuto_RIGHT -- Memory bit Conveyor AUTO RIGHT
H16.2 Q8.5
II
N16.4
SyMbol information:
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
Q8.5 K_Conv_RIGHT -- Run conveyor RIGHT
ST-SERV1
SITRAIN Training for Exercise Solutions
Automation and Industrial Solutions Page 32
Ch15: Software Commissioning (FC17)
FC17 : Title:
etuark : Conveyor fault (time monitoring)
T17 M17.0
Q4.3 Q8.5 S_ODT SR M10.3 Q5.0
------
II I ------ S
1 Q S Q 1
S5T#6S — TV BI M31.0 — It
BCD
Symbol information:
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8.5 H_Conv_RIGHT -- Run conveyor RIGHT
T17 OD_Conv_Monitoring -- Timer, Conveyor monitoring in Auto mode
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
M31.0 M_Ackn_Fault_HMI -- Memory bit, acknowledge conveyor fault (HMI)
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q5.0 L_Conv_Fault -- Indicator light Conveyor fault
C17
M17.0 S_CD
I I------ CD
Q4.3 — S CV —...
C#3 PV CV BCD
Symbol information:
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
C17 C_Conv_Fault -- Counter Conveyor faults
Q4.3 L_AUTO -- Indicator light Automatic mode
Q4.1 MOVE
I/I EN ENO
08.4 18.4 0- IN OUT —MWZO
I I
Symbol information:
Q4.1 L_SYSTEM Indicator light System ON
Q8.4 L_Bay-LB Indicator light Light barrier bay
18.4 T_Bay-LB Momentary contact Light barrier bay
MW20 MW_ACT Memory word, ACTUAL quantity of transported
INZ
Symbol information:
18.0 LB -- Light barrier
M19.0 M_Aux_Count -- Edge auxiliary memory bit Light barrier
Q4.3 L_AUTO -- Indicator light Automatic mode
MI620 MW ACT -- Memory word, ACTUAL quantity of transported
131120— IN1
MWZZ-,INZ
Symbol information:
MW20 MW_ACT -- Memory word, ACTUAL quantity of transported
MW22 MW_SETP -- Memory word, SETPOINT quantity of parts to
Q4.3 L_AUTO -- Indicator light Automatic mode
Q8.4 LBay-LB -- Indicator light Light barrier bay
LIMO
EN ENO
Symbol information:
MW20 MW_ACT -- Memory word, ACTUAL quantity of transported
QW6 QW_DigDisp -- BCD digital display
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 34 Exercise Solutions
Ch15: Software Commissioning (FC42)
FC42 : Title:
Network 1: Motor ON
M40.0 MOVE
I I------ EN ENO
Symbol information:
M40.0 M_MM420_0n_HMI -- Switch On Memory bit MM420 (HMI)
QW42 QWControlMM420 -- Control word for MM420
M40.0 MOVE
1/1 — EN ENO
Symbol information:
M40.0 M_MM420_0n_HMI -- Switch On Memory bit MM420 (HMI)
QW42 QWControlMM420 -- Control word for MM420
Symbol information:
M40.2 M_MM420_Jog_RIGHT_HMI -- Memory bit MM420 Jog RIGHT (HMI)
M40.3 M_MM420_Jog_LEFT_HMI -- Memory bit MM420 Jog LEFT (HMI)
M40.0 M_HM420_0n_HMI -- Switch On Memory bit MM420 (HMI)
QW42 QW_Control_HM420 -- Control word for HM420
W#16#67E- IN OUT
•
Symbol information:
M40.3 M_MM420_Jog_LEFT_HMI Memory bit MM420 Jog LEFT (HMI)
M40.2 M_HM420_Jog_RIGHT_HMI Memory bit MM420 Jog RIGHT (HMI)
M40.0 M_MM420_0n_HMI Switch On Memory bit MM420 (HMI)
QW42 QWControlHM420 Control word for MM420
Symbol information:
Q4.3 L_AUTO Indicator light Automatic mode
Q8.5 R_Conv_RIGHT Run conveyor RIGHT
18.5 BAY1 Proximity sensor Bay 1
18.6 BAY2 Proximity sensor Bay 2
18_7 BAY3 Proximity sensor Bay 3
M17.0 M_Conv_Fault Memory bit Conveyor fault
Q8_4 L_Bay-LB Indicator light Light barrier bay
M10.5 M_Flash_lHz Memory bit - flashing frequency 1Hz
M10.3 M_Flash_2Hz Memory bit - flashing frequency 2 Hz
Q8.1 L_Bayl Indicator light Bay 1
Symbol information:
Q4.3 L_AUTO Indicator light Automatic mode
Q8.5 R_Conv_RIGHT Run conveyor RIGHT
18.5 BAY1 Proximity sensor Bay 1
18.6 BAY2 Proximity sensor Bay 2
18.7 BAY3 Proximity sensor Bay 3
M17.0 M_Conv_Fault Memory bit Conveyor fault
Q8.4 L_Bay-LB Indicator light Light barrier bay
M10.5 M_Flash_lHz Memory bit - flashing frequency 1Hz
M10.3 M_Flash_2Hz Memory bit - flashing frequency 2 Hz
Q8.3 L_Bay3 Indicator light Bay 3
ST-SERV1
SITRAIN Training for Exercise Solutions
Automation and Industrial Solutions Page 36
Ch15: Software Expansions (FC14)
new NW for
indicator light
Bay 3
s I/I I/I
04.3 18.5 18.6 • 18.7 18.7 M10.5 M17.0 Q8.4
/I II I/I II I/I ICI
Q4.3 08.5 2110.3
I I
Network 4: Horn
Symbol information:
08.5 K_Conv_RIGHT -- Run conveyor RIGHT
Q8.6 KConv_LEFT -- Run conveyor LEFT
Q4.2 L_MAN -- Indicator light MAN mode
M10.3 M_Flash_2Hz -- Memory bit - flashing frequency 2 Hz
Q8.7 Horn -- Horn
FC16 : Title:
Network 1: Jog conveyor motor to the Right
R BCD —...
Symbol information:
Q4.2 L_MAN -- Indicator light MAN mode
M30.2 M_Conv_Jog_RIGHT_HMI -- Memory bit Jog Conveyor RIGHT (HMI)
M30.3 M_Conv_Jog_LEFT_HMI -- Memory bit Jog Conveyor LEFT (HMI)
18_0 LB -- Light barrier
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
........ • 116
S_OFFDT
0
Jog LEFT
only up to Bay1 S5T/12S- TV BI
BCD
Symbol information:
Q4.2 L_MAN -- Indicator light MAN mode
M30.2 M_Conv_Jog_RIGHT_HMI -- Memory bit Jog Conveyor RIGHT (HMI)
M30.3 M_Conv_Jog_LEFT_HMI -- Memory bit Jog Conveyor LEFT (HMI)
18.5 BAY1 -- Proximity sensor Bay 1
08.6 K_Conv_LEFT -- Run conveyor LEFT
ST-SERV1
SITRAIN Training for Exercise Solutions
Automation and Industrial Solutions Page 38
Ch15: Software Expansions (FC16)
Symbol information:
18_7 BAY3 -- Proximity sensor Bay 3
18_6 BAY2 -- Proximity sensor Bay 2
18.5 BAY1 -- Proximity sensor Bay 1
18.1 T_Bayl -- Momentary contact Bay 1
18.2 T_Bay2 -- Momentary contact Bay 2
18.3 T_Bay3 -- Momentary contact Bay 3
Q4_3 L_AUTO -- Indicator light Automatic mode
18.0 LB -- Light barrier
M16.0 M_Aux_LB -- Edge auxiliary memory bit Light barrier
M17.0 M_Conv_Fault -- Memory bit Conveyor fault
Q8_4 L_Bay-LB -- Indicator light Light barrier bay
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
M16.2 08.5
-I 1 C)-1
M16.4
Symbol information:
M16.2 M_Jog_RIGHT -- Memory bit Jog conveyor RIGHT
M16.4 M_Auto_RIGHT -- Memory bit Conveyor AUTO RIGHT
Q8.5 KConvRIGHT -- Run conveyor RIGHT
SIEMENS 1011111001
• 11•11•0111•0110•1 7/110,01
• Mr...V. c■ Ome•Hia•
•••••••••■
• •••••■■ ••■■•
.1••••• ■••••■••
lirmemelgessen•weneare
Contents Page
he Intern t:
siemens /sitrain
4
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_178.2 %■T Automation and Industrial Solutions
ST-SERV1
SITRAIN Training for Training and Support
Automation and Industrial Solutions Page 2
SIEMENS
www.siemens.com/sitrain or sitrain.automation.siemens.com/sitrainworld
Acrotess http://streineutomatron.semax.cornistrernworkdi LI fi7 G°
Lairs
re
SIEMENS
1
SIMATIC S7 Date: 18.09.2009
1SITRAIN Training for
_1
File: SERV1_17E.3 NIT. Automation and Industrial Solutions
Siemens AG 2008. All rights reserved.
The complete course selections are accessible through the following links:
www.siemens.de/sitrain or
www.siemens.com/sitrain
Course Search With Course Search it is possible, through various search filters, such as,
keyword, target group etc., to find your desired course selections. The filters
can also be combined.
Top Links With Top Links, various course selections can be accessed directly, such as,
SIMATIC S7, SINUMERIK solution line ...
Training News Here, new SITRAIN course selections and actions are presented at a glance.
Course Catalog The Course Catalog enables you to find the desired course through learning
paths or through the structure of the Siemens Mall.
SIMATIC S7 SIMATIC S7
TIA Service Training 1 TIA Programming 1
SIMATIC TIA for
Non-Technicians
wAT4
WinCC flexible (WBT) WinCC flexible (WBT)
SIMATIC S7 SIMATIC S7
TIA Service Training 2 TIA Programming 2 Production Automation
with TIA
WRIO) wRT2)
Industrial Ethernet (WBT) Industrial Ethernet (WBT)
Siemens Certified Service
WinCC flexible (WBT) Technician Level 1 WinCC flexible (WBT)
SIMATIC S7 SIMATIC S7
TIA Service Training 3 TIA Programming 3
ST-SERV1
SITRAIN Training for Training and Support
Automation and Industrial Solutions
Page 4
SIEMENS
SIMATIC 57 SIMATIC 57
TIA Programming 1
tfdlik,
TIA Service Training 1
it
Non Technicians
wIrrn
SIMATIC S7
TIA Programming 2 Produ lion Automation
with TIA
Automation and Drives I Product Support I Applications & 1 oohs Services !Firm glaring I For um
Service & Support
I. tigri 1 Register [Advanced] Se artti
Ertee your specific ;sabot Int median Wow to Welty go to our globe Menne we webs** enact specr -0 to personal:cabal
extract the IMP related entries from ea globel dateesse FAGS, menial& downbede and approvelskertil cations
l
le= Ones Help
en Weal Toe
View eesong careeredions
-
and talk to other users sboal Send your question drectir to a Siemens !anneal ni t
specific scaliest applications and issues. Please note the expert Ws our aerie Support Request
you we reed to Login to actively partcpate
-8 Support Request
A Now start your discussion math other users
Communication • Forum:
Direct customer - customer communications in case of technical questions
• Support Request:
Technical requests are answered by experts
ST-SERV1
SITRAIN Training for Training and Support
Automation and Industrial Solutions Page 6
SIEMENS
Automation and Drives I Product Support I Applications & Tools I Services Information I Forum
Service • Support !ogint Register [Afwara-mf]
Delivery
IPC 840 P4 for SIMATIC PCS 7 V524 SP/
S FC vie Touchpenel TP17013
Product Support
Services & Infos
Techn. information and Information on range of
btormalion below to quid* to Our glabal dobbin. and explore the
downloads for products s trom our global database FACts, mammas, dovenloads and approvals
services offered
4 Product Support
Prock.rct None or Part
or sttornabon system internam and c
cbcii below 10, erbecatIon examPle7 . 7.7007.
4 field Semite
Search Text (key words) aeon systems and more
Tnni
4 Sweepers
-1J■nnhr.
Information on
specific prodixt
View exestrog carwersations end let
aorsceccs and
you we need to Login to actively pa
automation solutions
4 Wormetion maw
One Service products are dessgned to meet your support needs la the elite lie cycle or Your ttStalabbn- Automation Value Card
Warfel
w User stew
- Service on-site -a Configuring and Software engineering
-a Optimization and modernization • Technical Support
General The online support with its comprehensive information system and many types
of services is available around the clock. From product support over service
information to interactive services, online support is always your first step you
need to take for obtaining a quick solution.
Product Support Profound expertise in our products and systems and up-to-date information are
the Product Support's support know-how basis in form of FAQs, downloads of,
for example, updates / upgrades, up-to-date product information from
Marketing & Sales, manuals in electronic form in PDF format, test certificates
and characteristics
Applications & Tools Applications & Tools is the new platform for solutions and system overviews in
the Service & Support portal. Applications & Tools help you solve your
automation tasks. This support is provided in the form of programming
examples and tools, background knowledge, functional descriptions,
recommendations on possible actions, performance data etc. The focus is not
on the individual product but rather on the individual products working together.
Services Here you can find our complete range of services and detailed information on
our Service & Support processes and a database containing the contact
persons.
Information Are you looking for the latest Service & Support brochures - or do you want to
know at which trade show you can meet us personally? All of this and much
more can be found under "Information".
Automation and Drives Home I Product Support I Applications & Tools I Services I Information I Forum
Service & Support
Loon I RecKler
bscrIbe to our
4
Release for delivery, SIMOTION C240
4
7/Er Power T-Tap PRO Connector Released for Delivery Choose a country
4
Sales/Delivery Release, Basic Versions of the Model IPC 840 P4 for SIMATIC PCS 7
4
Application sample for diagnosis and set up of ET2005 FC via Touchpanel TP170B
Technical Forum
Self-help
Discussion platform for
Search Product Support Documents Browse Support Docu
customers
melon below to quickly Go to our global database
om our global database. FAQs, manuals, clownloa, and appro s ce ic Ions
-0 Product Support Contact
Online requests to the A&D
For automation system interaction and connectivity Contacts worldwide
hotline questions, click below for application examples, samples,
-0 Field Service
demonstration systems and more
Go 4 Application & Tools Spare parts
Help
Support by experts worldwide
Onins risc
lechnical Forum the Siemens expert
Guided Tour
View existing conversations and talc to other users about Send your question directly to a Siemens technical support
specific product applications and Issues Please note that expert via our online Support Request
-
Technical Forum In addition to the comprehensive scope of services, we support the direct dialog
among experts with the help of modern web technology. The new Technical
Forum is an attractive discussion platform (English and German) where users
and experts can exchange information.
Support Request With the online Support Request you will always find direct answers to your
questions. In the online screens you can describe your requests. Through the
knowledge base you will immediately be informed about possible solutions. If
the suggested solution does not resolve your problem, you can send the web
form directly to your team of experts in Technical Support (Hotline).
ST-SERV1
SITRAIN Training for Training and Support
Automation and Industrial Solutions Page 8
SIEMENS
..• just a few mouse clicks away from the required information 1/2
International ->Automation and Drives Deutsch I Francais] Itahanoi EsparlelI °PIZ Contact I Siternap
Automation and Drives Home Product Support Applications & Tools I Services I Information I Forum
Service & Support Login I Register
To find the required information, you can use the intelligent Search function and
a the user-friendly navigation:
Search An intelligent and comprehensive search function provides you with the relevant
results.
Navigation You can also do a targeted search in the product tree to obtain
the required information. Use the index for easy selection of the product.
... just a few mouse clicks away from the required information 2/2
Automation and Drives Horne 1 Product Support Applications & Tools I Services I htforrnation I Forum
Service & Support
Loge; I Register (Advanced) Search
Functions:
Forum: Experts exchange in forum contributions
Registration After registering with our service "mySupport", you can utilize our complete
range of online services after entering your data only once.
myTree Your personal product tree. As a mySupport user, you can adjust the product
tree so that it only shows those products and services from the comprehensive
A&D range that are important to you.
Thus you can always maintain an overview and find the required information
faster.
myForum Direct access to our Technical Forum. As mySupport user you also
automatically have direct access to our Technical Forum
ST-SERV1
SITRAIN Training for
Automation and Industrial Solutions Page 10 Training and Support
Siemens AG
Industry Sector
Gleiwitzer Str. 555
90475, NURNBERG
DEUTSCHLAND
www.siemens.corn/automation