Sitrain Simatic S7
April 15, 2017 | Author: Asi Sheratzki | Category: N/A
Short Description
Download Sitrain Simatic S7...
Description
www.infoPLC.net
The SIMATIC S7 System Family
SIMATIC PCS 7 SIMATIC NET
SIMATIC Software
SIMATIC PC
SIMATIC HMI
SIMATIC SIMATIC WinCC
SIMATIC DP SIMATIC Controller
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.1
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
The SIMATIC S7 System Family
SIMATIC PCS 7 SIMATIC NET
SIMATIC Software
SIMATIC PC
SIMATIC HMI
SIMATIC SIMATIC WinCC
SIMATIC DP SIMATIC Controller
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.2
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Objectives Upon completion of the chapter the participant will ...
SIMATIC S7 Siemens AG 2006. All rights reserved.
...
have an overview of the SIMATIC S7 system family
...
be familiar with the S7-300 and S7-400 automation systems
...
have an overview of the modules available for these automation systems
...
understand the concept of "Totally Integrated Automation" (T.I.A.)
...
be familiar with the programming devices
...
be familiar with the PC requirements for working with STEP7
...
be familiar with the tools of the STEP7 basic programming package
…
have an overview of the most important tools used in the T.I.A. concept
Date: File:
1/16/2012 PRO1_01E.3
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
SIMATIC S7 Overview SIMATIC PG SIMATIC PC
SIMATIC HMI
SIMATIC Software
MPI Network Industrial Ethernet PROFIBUS PROFINET
SIMATIC NET
PC-based
SIMATIC Controller SIEMENS
SF RUN STOP
I0.0 I0.1 I0.2 I0.3 I0.4 I0.5
Q0.0 Q0.1 Q0.2 Q0.3 Q0.4
CPU 212
Q0.5
I0.6 I0.7
SIMAT IC S7-200
PROFIBUS DP
AS-Interface
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.4
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
What does “Totally Integrated Automation“ Mean
PCS 7
WinCC
Engineering
NET
SIMATIC S7
NET Instrum.
Drives M
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.5
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
The SIMATIC S7/C7 and WinAC Controllers modular
Upper and middle performance range
SIMATIC WinAC Slot SIMATIC S7 - 400 Lower and middle performance range
complete
modular
SIMATIC C7 – 6xx
SIMATIC S7 - 300 Micro PLC
compact
SIMATIC S7 - 200
SIMATIC S7 Siemens AG 2006. All rights reserved.
SIMATIC WinAC Basis
Logo
Date: File:
1/16/2012 PRO1_01E.6
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7-200 Micro Controller
Status Indicators for Integrated DO Status Indicators
- Potentiometer - Memory Card - Mode Selector
PPI Connection
Status Indicators for Integrated DI
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.7
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7-200: Modules / Expansion Modules (EM)
I / O Modules
SIMATIC S7 Siemens AG 2006. All rights reserved.
Function Modules (FM)
Date: File:
1/16/2012 PRO1_01E.8
Communications Processors (CP)
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7 - 300 Automation System
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.9
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7-300: Modules
PS (optional)
CPU
SIMATIC S7 Siemens AG 2006. All rights reserved.
IM (optional)
SM: DI
SM: DO
SM: AI
Date: File:
1/16/2012 PRO1_01E.10
SM: AO
FM: - Counting - Positioning - Closed-loop control
CP: - Point-to Point - PROFIBUS - Industrial Ethernet
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7-300: CPU Design CPU 314 after Oct. 2002
CPU 314 until Oct. 2002
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.11
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
CPU Memory Areas
System Memory
Load Memory User Program Hardware Configuration
Work Memory
Address Areas
Inputs (I)
Accumulators
Outputs (Q)
Address Registers
Bit Memories
Executing Program
Registers
Status Word
(M)
MCR Stack
Timers (T)
Nesting Stack
Counters (C)
Temporary Local Data
(L)
System Messages
Data Block (DB) (DI)
Diagnostic Buffer
Peripheral Inputs
Interrupt Stack
(PI)
Peripheral Outputs
(PQ)
Block Stack Communication Buffer
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.12
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Addressing
Byte 0
7
Byte 1
6
5
4
3
2
1
0
7
6
Byte 2
5
4
3
2
1
0
7
Byte 3
6
5
4
3
2
1
0
7
6
LSB
5
4
3
2
1
0
MSB
I1.4
Bit
Q3.3
MOVE MD IW IB 242
QD 12 12 QW QB 6
Byte Word Double Word
Control Statement A Operational Part
A
I
3.4 Address Part
I
3.4
Address Identifier
I
SIMATIC S7 Siemens AG 2006. All rights reserved.
Parameter
3.4
Parameter = Byte Address and Bit Address
Date: File:
1/16/2012 PRO1_01E.13
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7-400 Automation System
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.14
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7-400: Modules
PS
SIMATIC S7 Siemens AG 2006. All rights reserved.
CPU
SM: DI
SM: DO
SM: AI
Date: File:
SM: AO
1/16/2012 PRO1_01E.15
CP
SM
FM
IM
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7-400: CPU Design
Error LEDs Slot for Memory Card Mode Selector MPI/DP Interface DP Interface
External Battery Supply
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.16
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
PG/PC Requirements for Installing STEP 7 Operating Systems:
Microsoft Windows 2000 Professional Microsoft Windows XP Professional
Memory on the Hard Drive: Depending on the installation, between 400 MB and 800 MB Mouse:
Yes
Interfaces:
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.17
• • • • Interface (NIC) • for Memory Card
CP5611 (PCI) or CP5512 (PCMCIA) or PC adapter (USB) Industrial Ethernet
Programming interface (optional)
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Installing the STEP 7 Basic Package Double-click on icon
Activate through Start menu
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.18
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
STEP 7 Tools
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.19
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
STEP 7 Software Packages (Examples) Which PLC? SIMATIC S7-200
SIMATIC S7-300
SIMATIC S7-300
Necessary STEP 7 Micro/WIN
STEP 7 Lite
Tele Service
S7- PLCSIM
STEP 7
S7- SCL
CFC
S7- GRAPH
S7- HiGraph
Fuzzy Control
Standard PID Control
Modular PID Control
DOCPRO
TeleService
S7- PDIAG
S7- PLCSIM
PRODAVE MPI
S7- SCL
S7- PLCSIM
S7- GRAPH
SIMATIC S7-400
STEP 7 Professional
SIMATIC S7 Siemens AG 2006. All rights reserved.
Options
STEP 7
Date: File:
1/16/2012 PRO1_01E.20
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
If You Want to Know More about the Topic “TIA“
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.21
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
More Information
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.22
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Programming Sequence Control Systems with S7- GRAPH
S7-GRAPH: The tool for programming sequence cascades
Compatible with DIN EN 6.1131-3 Designed for the requirements of production engineering Graphic division of the process into steps and transitions Steps contain actions Transitions check the conditions for switching to the next step
S1
T1 S2
The following phases of automation can be optimized with S7-GRAPH:
Siemens AG 2006. All rights reserved.
S5
T2
S6
T5
S4
Planning, Configuring Programming Debugging Commissioning Maintenance, Diagnostics
SIMATIC S7
T4
T3
Date: File:
1/16/2012 PRO1_01E.23
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
The State Diagram Method S7- HiGraph
Position Cam-operated Index out switch Turn left 1 2 4 piece
S7-HiGraph: The tool for programming using State Diagrams Division of the machine into functional units Creating state diagrams for every function unit States contain actions State diagrams communicate using messages
Turn right Motor
Index
Counterbearing lock/release
Motor
The following phases of automation can be optimized with S7-HiGraph:
Index in
Counterbearing
Coordinator
Planning, Configuring Programming and Debugging Commissioning Maintenance, Diagnostics Supports reusability
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.24
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Programming in the High Level Language S7- SCL
S7-SCL: High level language for creating PLC programs
Compatible with DIN EN 6.1131-3 (ST=Structured Text)) Certified according to “PLC open“ Base Level Contains all the typical elements of a high level language, such as operands, terms, control statements PLC specifics are integrated, such as I/O access, timers, counters...)
Advantages:
Well structured, easy to understand program For those knowlegeable in high level langugages For complex algorithms
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
FUNCTION_BLOCK Integrator VAR_INPUT Init : BOOL; // Reset output value x : REAL; // Input value Ta : TIME; // Sampling interval in ms Ti : TIME; // Integration time in ms olim : REAL; // Output value upper limit ulim : REAL; // Output value lower limit END_VAR
VAR_OUTPUT y : REAL:= 0.0; END_VAR
// Initialize output value with 0
BEGIN IF TIME_TO_DINT(Ti) = 0 THEN // Division by ? OK := FALSE; y := 0.0; RETURN; END_IF; IF Init THEN y:= 0.0; ELSE y := y+TIME_TO_DINT(Ta)*x/TIME_TO_DINT(Ti); IF y > olim THEN y := olim; END_IF; IF y < ulim THEN y := ulim; END_IF; END_IF; END_FUNCTION_BLOCK
1/16/2012 PRO1_01E.25
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
CFC - Tool for Graphic Interconnection of S7 Blocks
CFC (Continuous Function Chart): Tool for graphic creation of PLC programs
Blocks are placed on function charts and interconnected Interconnection is possible: - between I/O fields - also to blocks in other charts Sources and destinations are managed in the margins
Advantages
Program creation for technologists quick creation, testing and commissioning times
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.26
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Process Diagnosis with S7- PDIAG
Process diagnosis: Detection of faults occurring outside the PLC
S7- PDIAG: Tool for configuring the fault definition in STL, LAD, FBD
Sensor/actuator defective, movement faulty, ...
Integrated in the development environment Simple formulation of fault monitoring and message texts (during and after the program session) Fault detection and criteria analysis are conducted automatically Comprehensive information for the operator on: type of fault location of fault cause of fault
Message
I 1.0
I 1.1
Q1.0
Reduction of down-time
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.27
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Testing User Programs with S7- PLCSIM
S7-PLCSIM: Simulation software for offline testing of PLC programs
Functional program test on a simulated CPU with display/modify I/O Testing of user blocks in LAD, FBD, STL, S7-SCL, S7-GRAPH, S7-HiGraph, CFC S7-PDIAG, WinCC
Advantages
Faults can be detected early and eliminated Many tests are already possible in the office without the final hardware
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.28
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Overview
Configuration tool
Runtime Software for Closed-loop Control Engineering Tasks
Basic SW or option package
PID Controller
No
Basic SW
Basic SW PID Control
Yes
Basic SW
Standard PID Control
Yes
Option
Modular PID Control
Yes
Option
Fuzzy Control
Yes
Option
Neuro Systems
Yes
Option
Closed-loop control m.
Yes
S7-200™
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
S7-300™
1/16/2012 PRO1_01E.29
S7-400™
C7
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Communicating with SIMATIC NET
Pr ocess Saf et y
Real - Ti me Communi cat i on
SafNetzwerk et y Motr al i on Dezent e a S f et y Di st r i but ed IT t S andar ds ITManagement - St andar dsPROFINET Feldgeräte PROFINET Codevi nt rcesol Fi el d & Secur i t y Dezentrale e V r t ei l te R P F O INE T ITInstallation -Netzwerk SNet t andar ds Feldgeräte e V r t ei l te Mot i ion zw er k-dszwer Intkel genz IT- St Net andar Motli on wor kNet Int loli genz Coel nt rrol CoVerteilte nt Inst at Net zw er kInst alalMotion ll Inst ati on iVeDion rEchtzeitt ei lLeitebene ted e st r ilbut al at i on Automation Control lli igence IntIntelelal Inst lgenz at i on Kommunikation
Industrial Ethernet
Zellebene PROFIBUS
Field level
Actuatorsensor Interface
SIMATIC S7 Siemens AG 2006. All rights reserved.
Actuatorsensor level
Date: File:
1/16/2012 PRO1_01E.30
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Operator Control and Process Monitoring with SIMATIC ® HMI Process visualization system SIMATIC WinCC
Process visualization system SIMATIC WinCC flexible
SIMATIC PG, PC
SIMATIC Panels, PGs, PCs
WinCC flexible 2005
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.31
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Process Visualization and Operator Control with WinCC
anzahl () float zae begin if wert > 0 begom zae = zae + 1 end end
Motor on Valve closed Flap up
Programming Interfaces
Alarm Logging (Message System)
Process visualization Standard Interfaces
Tag Logging (Archiving) Protokolle
Report Designer (Report System) SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
PLC Communication 1/16/2012 PRO1_01E.32
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Process Automation with SIMATIC® PCS 7
Engineering System
Process terminal 1
Process terminal 2
Process terminal 3
Terminal bus WinCC OS
WinCC OS-Server
System bus S7-400 as central unit FM
SV
ET 200M
DP FM
SV
DP
Field devices
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.33
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
DRIVES Technology
Consistent drives spectrum for all applications From standard drives with 100 W up to large drives with 50 MW Motion and vector control Technology-specific closed-loop controllers
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.34
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
SINUMERIK® and SINAMICS Drives
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.35
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_01E.36
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Training Units and Addressing
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.1
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Training Area Setup with S7 - 300
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.2
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Configuration of the S7 - 300 Training Unit
Module
-->
PS
CPU
DI 32
DO 32
DI8/DO8
AI 2
Slot No.
-->
1
2
4
5
6
7
I/O Address
-->
0
4
8
304
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.3
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
The Simulator Potentiometers for setting the analog values “PIW_AI1“ (PIW 304)
BCD Digital Display “QW_DigDisp“ (QW 6) DI
DO
.0
..........
..........
.0
.1
..........
..........
.1
.2
..........
..........
.2
.3
..........
..........
.3
.4
..........
..........
.4
.5
..........
..........
.5
.6
..........
..........
.6
.7
..........
..........
.0
..........
..........
.1
..........
..........
.2
..........
..........
.3
..........
..........
.4
..........
..........
.5
..........
..........
.6
..........
..........
.7
..........
..........
V
-15V...+15V AI1
.7
AI2 AO1 -15V...+15V AO2
.0 .1
AI1
V
.2
AI2
.3 .4 .5
0 8 1 5
AI1
AI2
AO1
AO2
.6 .7
LEDs Thumbwheel Buttons Switches / Momentary Contact Switches (QW 4) “IW_Thumbw“ (IW 2) (IW 0)
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.4
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
The Conveyor Model "K_Conv_RIGHT" (Q 8.5) "K_Conv_LEFT" (Q 8.6)
"BAY1" (I 8.5)
"BAY2" (I 8.6)
"BAY3" (I 8.7)
"LB" (I 8.0)
"Horn" (Q 8.7)
"T_Bay1" "T_Bay2" "T_Bay3" "T_Bay-LB" (I 8.1) (I 8.2) (I 8.3) (I 8.4) "L_Bay1" "L_Bay2" "L_Bay3" "L_Bay-LB" (Q 8.1) (Q 8.2) (Q 8.3) (Q 8.4)
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.5
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Complete Symbol List (1)
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.6
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Complete Symbol List (2)
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.7
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Complete Symbol List (3)
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.8
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
If You Want to Know More
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.9
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Training Area Setup with S7- 400
SIMATIC S7 Siemens AG 2007. All rights reserved.
Date: File:
1/16/2012 PRO1_02E.10
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Configuration of the S7-400 Training Unit Slot No.
1
PS
SIMATIC S7 Siemens AG 2007. All rights reserved.
2
3
CPU
4
5
6
DI 32
7
DI 32
8
9
10
11
12
13
14
15
16
17
18
DO DO AI 32 32 8
Date: File:
1/16/2012 PRO1_02E.11
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
The SIMATIC Manager
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.1
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Objectives Upon completion of the chapter the participant will ... ...
understand the project structure in the SIMATIC Manager
…
understand the function "accessible nodes"
...
be familiar with the offline / online view in the SIMATIC Manager
...
be familiar with the STEP7 Standard Libraries
...
be familiar with the STEP7 help system
...
be able to create and manage a project with the SIMATIC Manager
…
be able to set the PG´s interface
…
be able to erase an MMC
…
be able to perform an S7 CPU memory reset
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.2
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
From Process to Project
Project Management
SIMATIC Manager
Hardware Communication
FB21 OB1 I 1.0
Siemens AG 2006. All rights reserved.
Q4.0
Software
Prozess
SIMATIC S7
I 1.1
Date: File:
1/16/2012 PRO1_03E.3
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Opening a Project, Deleting a Project, and Project Save As
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.4
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
STEP 7 Project Structure
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.5
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
S7 Program Blocks
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.6
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Cyclic Program Processing Scan Cycle Timer Start/Reset
User Program Execution OB1
Network 1 A( O O ) A =
I Q
0.0 4.1
I Q
0.1 4.1
FC 0
1
Network 2
Call NOP Network 3
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.7
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Interesting Facts about Multiprojects
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.8
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Creating an S7 Project
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.9
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Inserting an S7 Program
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.10
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Standard Library
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.11
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
STEP 7 Help System
Press Hot-key F1
Example
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.12
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Context Sensitive Help in STEP 7
Press Hot-key F1
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.13
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Setting the PG/PC Interface STEP 7
Access Point of the Application: S7ONLINE
CP5611
Interface Parameter Assignment Used: CP5611 (MPI)
CPU
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.14
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Offline / Online View in the SIMATIC Manager
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.15
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Online Connection using "Accessible Nodes"
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.16
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Erasing Data Stored on the MMC Accessible Nodes: Icon or
Menu option “PLC display accessible nodes“
Project – Online – View: any user file
Icon
S7 project archive
or Menu option “View online“
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.17
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Exercise 1: Setting the PG Interface to MPI
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.18
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Exercise 2: Performing a CPU Memory Reset and a Warm Restart Until Oct. 2002
After Oct. 2002
RUN-P RUN
1. Set the mode selector switch to STOP
STOP
RUN STOP MRES
MRES
RUN-P RUN
STOP
2. Hold (Press) the mode selector switch in the MRES position until the STOP LED has flashed twice slowly. Release the mode selector switch so that it returns to the STOP position.
RUN STOP MRES
MRES
within 1 sec RUN-P
3. Turn (press) the mode selector switch to the MRES posi-tion once more until the STOP LED begins to flash quickly. Release the mode selector switch so that it returns to the STOP position.
RUN STOP
RUN STOP MRES
MRES RUN-P RUN
4. Set the mode selector switch to the RUN-P (RUN) position. (A warm restart is carried out in the transition from STOP to RUN/RUN-P)
STOP
RUN STOP MRES
MRES
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.19
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Calling the "Monitor/Modify Variables" Tool
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.20
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Establishing Trigger Points for "Monitor/Modify Variable" PII
Trigger point "Beginning of Scan Cycle"
Monitor / Modify depending on Trigger setting
Set Trigger
Cyclic program execution
Update Status / Modify Values (one time monitor / modify)
Trigger point "Transition to STOP"
Trigger point "End of Scan Cycle" PIQ
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.21
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Opening a Variable Table and Establishing a Connection to the CPU
Accessible CPUs Directly connected CPU
Station 1
Configured CPU (VAT from HW Station "Station 2")
Station 2
Station 3
PG
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.22
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
Exercise 3: Creating a Project
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.23
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
If You Want to Know More
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.24
SITRAIN Training for Automation and Industrial Solutions
www.infoPLC.net
SIMATIC Manager Customizing Options
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/16/2012 PRO1_03E.25
SITRAIN Training for Automation and Industrial Solutions
Hardware Configuration
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.1
SITRAIN Training for Automation and Industrial Solutions
Objectives Upon completion of this chapter the participant will ... ...
be able to create a setpoint configuration and assign parameters to it
...
be able to read out an actual configuration and assign parameters to it
...
be familiar with the addressing of S7-300 input and output modules
...
be able to adapt a given hardware configuration to an existing hardware
…
as an option, be familiar with the Catalog CA01 hardware Import/Export function
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.2
SITRAIN Training for Automation and Industrial Solutions
Hardware Configuration and Parameter Assignment Configuration
Assignment of racks, cards, blocks and distributed I/O in the station window of the Hardware Configuration
tool. You can select the components from a hardware catalog.
Parameter assignment
Setpoint configuration
Actual configuration
SIMATIC S7 Siemens AG 2006. All rights reserved.
Specifying the behavior of parameter assignable modules such as startup behavior, retentive areas, etc.
Planned hardware configuration and parameter assignment using the Hardware configuration tool.
Actual configuration and parameter assignment of existing hardware. Date: File:
1/24/2012 PRO1_04E.3
SITRAIN Training for Automation and Industrial Solutions
Inserting a Station
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.4
SITRAIN Training for Automation and Industrial Solutions
Starting the Hardware Configuration Editor
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.5
SITRAIN Training for Automation and Industrial Solutions
Generating a Hardware Setpoint Configuration
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.6
SITRAIN Training for Automation and Industrial Solutions
Addressing S7-300 Modules Slot No.
1
2
4
5
Modules
PS
CPU
SM
SM
6
SM
7
8
9
10
SM
SM
SM
SM
Address Address Address Address
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.7
0.0 0.7 1.0 1.7
SITRAIN Training for Automation and Industrial Solutions
DI/DO Default Addressing in Multi-Tier Configurations PS
Rack 3
IM (Receive)
PS
IM
Rack 2
(Receive)
PS
Slot 1
SIMATIC S7 Siemens AG 2006. All rights reserved.
108.0 to 111.7
112.0 to 115.7
116.0 to 119.7
120.0 to 123.7
124.0 to 127.7
64.0 to 67.7
68.0 to 70.7
72.0 to 75.7
76.0 to 79.7
80.0 to 83.7
84.0 to 87.7
88.0 to 91.7
92.0 to 95.7
52.0 to 55.7
56.0 to 59.7
60.0 to 63.7
0.0 to 3.7
IM (Send)
2
104.0 to 107.7
32.0 to (Receive) 35.7
CPU
Rack 0
100.0 to 103.7
IM
Rack 1
PS
96.0 to 99.7
3
4
36.0 to 39.7
40.0 to 43.7
44.0 to 47.7
48.0 to 51.7
4.0 to 7.7
8.0 to 11.7
12.0 to 15.7
16.0 to 19.7
5
6
Date: File:
1/24/2012 PRO1_04E.8
7
8
20.0 to 23.7 9
24.0 to 27.7 10
28.0 to 31.7 11
SITRAIN Training for Automation and Industrial Solutions
Module Address Overview
“Address Overview”
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.9
SITRAIN Training for Automation and Industrial Solutions
Variable Addressing
2x
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.10
SITRAIN Training for Automation and Industrial Solutions
Edit Symbols, Monitor/Modify Variables
1x right
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.11
SITRAIN Training for Automation and Industrial Solutions
CPU Properties: Cycle/Clock Memory
Double-click
Clock Memory Bit Frequency (Hz) Period (s)
SIMATIC S7 Siemens AG 2006. All rights reserved.
7
6
0.5 0.62 2
1.6
5
4
3
2
1
0
1
1.25
2
2.5
5
10
1
0.8
0.5
0.4
0.2
0.1
Date: File:
1/24/2012 PRO1_04E.12
SITRAIN Training for Automation and Industrial Solutions
CPU Properties: General (amongst others MPI Address)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.13
SITRAIN Training for Automation and Industrial Solutions
Saving Station Names in the CPU
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.14
SITRAIN Training for Automation and Industrial Solutions
Saving the Setpoint Configuration and Downloading it in Modules
Download (only when CPU is in STOP mode)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.15
SITRAIN Training for Automation and Industrial Solutions
Uploading the Actual Configuration to the PG
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.16
SITRAIN Training for Automation and Industrial Solutions
Exercise 1: Creating a HW Station
1.
2.
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.17
SITRAIN Training for Automation and Industrial Solutions
Exercise 2: Adapting the Actual Configuration
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.18
SITRAIN Training for Automation and Industrial Solutions
Exercise 3: Assigning Parameters to the CPU Clock Memory and Testing It
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.19
SITRAIN Training for Automation and Industrial Solutions
Hardware Configuration Editor Catalog Update
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.20
SITRAIN Training for Automation and Industrial Solutions
Edit Hardware Profile
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.21
SITRAIN Training for Automation and Industrial Solutions
If You Want to Know More
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.22
SITRAIN Training for Automation and Industrial Solutions
CPU Properties
2x
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.23
SITRAIN Training for Automation and Industrial Solutions
CPU Properties: Startup
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.24
SITRAIN Training for Automation and Industrial Solutions
CPU Properties: Retentive Memory
Relevant only for CPUs until Oct. 2002 that have no backup battery
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.25
SITRAIN Training for Automation and Industrial Solutions
CPU Properties: Protection
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.26
SITRAIN Training for Automation and Industrial Solutions
CPU Properties: Diagnostics/Clock
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.27
SITRAIN Training for Automation and Industrial Solutions
CPU Properties: Communication
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.28
SITRAIN Training for Automation and Industrial Solutions
Further Processing of Hardware Stations in the CA01 Electronic Catalog
Export function
Import function
CA01 Electronic Catalog
S7 HardwareStation
Order lists E-mail dispatch Further processing with text editors
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.29
SITRAIN Training for Automation and Industrial Solutions
Exporting a Hardware Station
1
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.30
SITRAIN Training for Automation and Industrial Solutions
CA01: Selection Assistant for SIMATIC
1
4
2
3
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.31
SITRAIN Training for Automation and Industrial Solutions
Parts List and Description
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
1/24/2012 PRO1_04E.32
SITRAIN Training for Automation and Industrial Solutions
Block Architecture and the LAD / STL / FBD Editor
OB 1
FB
FB
FC
FB
FB
FB
FB
SIMATIC S7 Siemens AG 2006. All rights reserved.
FC
FC
Date: File:
2/3/2012 PRO1_06E.1
SITRAIN Training for Automation and Industrial Solutions
Objectives Upon completion of this chapter the participant will ... ...
know the different types of S7 blocks
...
understand the principle of "structured programming"
...
know the meaning of the process images (PII, PIQ)
...
be able to explain the principle of cyclic program execution
...
know and be able to select the LAD, FBD and STL programming languages
...
be able to edit, save and download a block with the LAD/STL/FBD Editor
...
be able to carry out a simple program debugging with the "Monitor Block" test function
...
as an option, be able to make customizations to the LAD/FBD/STL Editor
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.2
SITRAIN Training for Automation and Industrial Solutions
Types of Program Blocks Operating System
DB
DB
FC
FB
SFC
FB
FC
SFB
Cycle
Time Process
OB Organization Blocks
Error
Legend: OB FB FC SFB SFC DB
= Organization Block = Function Block = Function = System Function Block = System Function = Data Block
SIMATIC S7 Siemens AG 2006. All rights reserved.
Maximum nesting depth: S7-300: 8 (16 for CPU 318) S7-400:
FB
(for each priority class, 2 to 4 additional levels for Error OBs)
FB with Instance DB
Date: File:
24
2/3/2012 PRO1_06E.3
SITRAIN Training for Automation and Industrial Solutions
Program Structuring Possibilities
Linear Program
Program Partitioned into Areas
Structured Program
Recipe A
OB 1
OB 1
RecipeB Mixer
OB 1
Pump
Outlet
Outlet
All instructions are found in one block (usually in Organization Block OB 1)
SIMATIC S7 Siemens AG 2006. All rights reserved.
The instructions for the individual functions are found in individual blocks. OB 1 calls the individual blocks one after the other.
Date: File:
2/3/2012 PRO1_06E.4
Reusable functions are loaded into individual blocks. OB 1 (or other blocks) call these blocks and pass on the pertinent data.
SITRAIN Training for Automation and Industrial Solutions
Process Images S1
K1
I 2.0
Q 4.3
PII
PIQ User Program
Byte 0 Byte 1 Byte 2 : : :
1
1
A =
1
2
A =
CPU Memory Area
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
: : I Q : : I Q :
2.0 4.3
Byte 0 Byte 1 Byte 2 : : :
1
6.4 4.3 CPU Memory Area
2/3/2012 PRO1_06E.5
SITRAIN Training for Automation and Industrial Solutions
Cyclic Program Execution
Before October 1998
• Startup program: Call and execution of OB 100 (once, after Power ON, for example) • Transfer PIQ to the digital output modules
Start of the cycle monitoring time
digital input module
CPU Cycle
Reading the input states from the digital input modules and saving the states in the process image (PII)
Call and execution of OB1 (possible interruption by call of other OBs for events such as time-of-day interrupt, hardware interrupts etc. )
digital output module
Writing the process-image output table (PIQ) in the digital output modules
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.6
SITRAIN Training for Automation and Industrial Solutions
Cyclic Program Execution
After October 1998
Startup block (OB 100) Execution once after Power ON, for example
Start of the cycle monitoring time
Output module
CPU Cycle
Writing the process-image output table (PIQ) to the output modules
Reading the signal states from the modules and saving the data in the process image (PII)
Input module
Execution of the program in OB1 (cyclic execution) Events (time-of-day interrupt, hardware interrupts etc.) call other OBs, FBs, FCs, etc.
Communications
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.7
SITRAIN Training for Automation and Industrial Solutions
Inserting an S7 Block
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.8
SITRAIN Training for Automation and Industrial Solutions
The LAD / STL / FBD Editor
Declaration Table
Code Section
Detail Window
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.9
SITRAIN Training for Automation and Industrial Solutions
The STEP 7 Programming Languages Function Block Diagram
Ladder Diagram
Statement List
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.10
SITRAIN Training for Automation and Industrial Solutions
Selecting the Programming Language
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.11
SITRAIN Training for Automation and Industrial Solutions
Programming in LAD and FBD
Insert / Cp
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.12
SITRAIN Training for Automation and Industrial Solutions
Programming in STL
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.13
SITRAIN Training for Automation and Industrial Solutions
Saving a Block Current project directory with block name
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.14
SITRAIN Training for Automation and Industrial Solutions
Calling a Block in OB1
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.15
SITRAIN Training for Automation and Industrial Solutions
Downloading Blocks into the PLC
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.16
SITRAIN Training for Automation and Industrial Solutions
Simple Program Debugging
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.17
SITRAIN Training for Automation and Industrial Solutions
Downloading and Saving Modified Blocks
Open offline offline Öffnen
Speichern Save
Öffnen Open online
Download Laden
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.18
SITRAIN Training for Automation and Industrial Solutions
Exercise 1: Jogging the Conveyor Motor (FC 16)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.19
SITRAIN Training for Automation and Industrial Solutions
Exercise 2: Calling FC 16 in OB 1
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.20
SITRAIN Training for Automation and Industrial Solutions
If You Want to Know More
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.21
SITRAIN Training for Automation and Industrial Solutions
Editor Customization: "General" Tab
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.22
SITRAIN Training for Automation and Industrial Solutions
Editor Customization: "View " Tab
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.23
SITRAIN Training for Automation and Industrial Solutions
Editor Customization: "STL" Tab
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.24
SITRAIN Training for Automation and Industrial Solutions
Editor Customization: "LAD/FBD" Tab
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.25
SITRAIN Training for Automation and Industrial Solutions
Editor Customization: "Block" Tab
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.26
SITRAIN Training for Automation and Industrial Solutions
Editor Customization: "Sources/Source Text" Tab
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/3/2012 PRO1_06E.27
SITRAIN Training for Automation and Industrial Solutions
Symbolic Addressing
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.1
SITRAIN Training for Automation and Industrial Solutions
Objectives Upon completion of the chapter the participant will ...
SIMATIC S7 Siemens AG 2006. All rights reserved.
...
know the difference between absolute and symbolic addressing
...
know the difference between local and global symbols
...
be able to edit a global symbol table
...
be able to use the Block Editor to edit global symbols
Date: File:
2/4/2012 PRO1_04E.2
SITRAIN Training for Automation and Industrial Solutions
Absolute and Symbolic Addressing Absolute Representation
Symbolic Representation
A
I0.0
A
"SYSTEM_ON"
=
Q8.0
=
"SYSTEM_ON"
A
I0.4
A
"M_FORW"
=
Q20.5
=
"MOTOR_FOR"
Call
FC18
Call
"COUNT"
Symbol
Address
Data Type
Comment
MOTOR_FOR
Q20.5
BOOL
Motor moves forward
COUNT
FC18
FC18
Count bottles
SYSTEM_ON_SW
I0.0
BOOL
Switch system on
SYSTEM_ON_LT
Q8.0
BOOL
Indicator: System is “On”
M_FORW
I0.4
BOOL
Pushbutton: Motor forward
(max. 24 characters)
SIMATIC S7 Siemens AG 2006. All rights reserved.
(max. 80 characters)
Date: File:
2/4/2012 PRO1_04E.3
SITRAIN Training for Automation and Industrial Solutions
Symbolic Addressing Where are symbols used?
Where are they stored?
Global Data: - Inputs - Outputs - Bit mem., timers, counters - Peripheral I/O
Symbol Table
Symbol Editor
Local Block Data: - Block parameters - local / temporary data
Declaration part of the block
Program Editor
Jump Labels
Code section of the block
Program Editor
Block Names: - OB - FB - FC - DB - VAT - UDT
Symbol Table
Symbol Editor
DB Components
Declaration part of the DB
Program Editor
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.4
With what are they created?
SITRAIN Training for Automation and Industrial Solutions
The Symbol Table
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.5
SITRAIN Training for Automation and Industrial Solutions
Edit: Find and Replace
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.6
SITRAIN Training for Automation and Industrial Solutions
View: Filter
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.7
SITRAIN Training for Automation and Industrial Solutions
View: Sort
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.8
SITRAIN Training for Automation and Industrial Solutions
Editing Symbols in the LAD/STL/FBD Editor
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.9
SITRAIN Training for Automation and Industrial Solutions
Symbol Information in the LAD/STL/FBD Editor
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.10
SITRAIN Training for Automation and Industrial Solutions
Symbol Selection in LAD/FBD
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.11
SITRAIN Training for Automation and Industrial Solutions
Symbol Table: Export
Where do you want to store the table?
In which format do you want to store the table?
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.12
SITRAIN Training for Automation and Industrial Solutions
Symbol Table: Import
Select directory path
Enter file name
Select file format
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.13
SITRAIN Training for Automation and Industrial Solutions
Exercise 1: Importing a Symbol Table
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_04E.14
SITRAIN Training for Automation and Industrial Solutions
Binary Operations
F1
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.1
SITRAIN Training for Automation and Industrial Solutions
Objectives Upon completion of the chapter the participant will …
SIMATIC S7 Siemens AG 2006. All rights reserved.
...
understand the difference between „real„ connected NC contacts and NO contacts, and programmed symbols
...
be able to explain the terms Result of Logic Operation (RLO), Status (STAT) and First Check
...
be able to program basic binary logic operations
Date: File:
2/4/2012 PRO1_07E.2
SITRAIN Training for Automation and Industrial Solutions
Binary Logic Operations: AND, OR LAD
Circuit Diagram
FBD
STL
S1 (I 0.0) I 0.0
I 0.1
Q 8.0
&
I 0.1
S2 (I 0.1)
AND
I 0.0
Q 8.1 =
Q 8.1
L1 (Q 8.0)
A A = =
I 0.0 I 0.1 Q 8.0 Q 8.1
O O =
I 0.2 I 0.3 Q 8.2
L2 (Q 8.1)
S3 (I 0.2)
I 0.2 S4 (I 0.3)
OR
Q 8.0 =
Q 8.2 I 0.2 I 0.3
I 0.3
>=1
Q 8.2 =
L3 (Q 8.2)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.3
SITRAIN Training for Automation and Industrial Solutions
Binary Logic Operations: Exclusive OR (XOR)
LAD
FBD
I 0.4 I 0.4
I 0.5
Q 8.0
I 0.4
I 0.5
&
I 0.5 I 0.4
>=1
I 0.5
I 0.5
Siemens AG 2006. All rights reserved.
Q 8.0 =
&
I 0.4
SIMATIC S7
STL
Date: File:
2/4/2012 PRO1_07E.4
XOR
Q 8.0 =
A AN O AN A =
I 0.4 I 0.5
X X =
I 0.4 I 0.5 Q8.0
I 0.4 I 0.5 Q8.0
SITRAIN Training for Automation and Industrial Solutions
Sensors and Symbols Process
The sensor is a ...
NO contact
The sensor is ...
Interpretation in the PLC Program
Voltage present at input?
Signal state at input
activated
1
yes
Check for signal state “1”
Check for signal state “0”
Symbol / Instruction
Result of check
Symbol / Instruction
LAD:
“Yes” 1
LAD:
“NO contact”
not activated
no
0 FBD:
NC contact
activated
not activated
0
yes
1
A I x.y
SIMATIC S7 Siemens AG 2006. All rights reserved.
“No” 0
Date: File:
2/4/2012 PRO1_07E.5
FBD:
“Yes” 1
& “No” 0
STL:
“No” 0
“NC contact”
& no
Result of check
“Yes” 1
“Yes” 1
STL:
AN I x.y
“No” 0
SITRAIN Training for Automation and Industrial Solutions
Exercise 1: Sensors and Symbols Task: In all three examples, the light should be on when S1 is activated and S2 is not activated! Hardware S1
S2
E 1.0 I1.0
S1
EI1.1 1.1
EI1.0 1.0
Programmable controller
E 1.1 I1.1
Programmable controller
Q 4.0
I 1.1
I 1.0
Q 4.0
I 1.1
E I1.1 1.1
Programmable controller
Q 4.0
Light
Software
S2
EI1.0 1.0
Q 4.0
Light
I 1.0
S1
S2
Light
Q 4.0
I 1.0
I 1.1
Q 4.0
LAD
I 1.0
&
FBD
Q 4.0
I 1.1
STL
SIMATIC S7 Siemens AG 2006. All rights reserved.
&
I 1.0
Q 4.0
I 1.1
....... I 1.0 ....... I 1.1 ....... Q 4.0
....... I 1.0 ....... I 1.1 ....... Q 4.0
Date: File:
I 1.0
2/4/2012 PRO1_07E.6
& Q 4.0
I 1.1 ....... I 1.0 ....... I 1.1 ....... Q 4.0
SITRAIN Training for Automation and Industrial Solutions
Exercise 2: Add Conveyor “Master” Control Logic Start
Stop R
R
ON
M
CPU Digital Input Module
Hard Wire Circuit
CPU Digital Output Module
1
1
2
2
Start I0.0 Stop
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.7
ON I0.1 3
3
4 . .
4 . .
Q4.1
SITRAIN Training for Automation and Industrial Solutions
Assignment, Setting, Resetting LAD
I 1.0
I 1.1
FBD
Q 8.0
( )
Assignment
I 1.0
&
I 1.3
Q 8.1
(S )
Set
I 1.2
&
SIMATIC S7 Siemens AG 2006. All rights reserved.
A I 1.0 A I 1.1 = Q 8.0
A I 1.2 A I 1.3 S Q 8.1
Q 8.1
(R) Reset
Q 8.1 S
I 1.3
I 1.4
Q 8.0 =
I 1.1
I 1.2
STL
I 1.5
I 1.4 I 1.5
Date: File:
2/4/2012 PRO1_07E.8
>=1
Q 8.1 R
O I 1.4 O I 1.5 R Q 8.1
SITRAIN Training for Automation and Industrial Solutions
Setting and Resetting a Flip Flop
LAD M 5.7
I1.2
Dominant Reset
FBD
S
SR
STL
M 5.7
Q 9.3 Q
I1.2
S
SR Q9.3
I1.3
I1.3
R
M 5.7
I1.3
Dominant Set
R
R
RS
Q
M 5.7
Q 9.3 Q
I1.3
R
RS Q9.3
I1.2 I1.2
S
SIMATIC S7 Siemens AG 2006. All rights reserved.
=
Date: File:
2/4/2012 PRO1_07E.9
S
Q
=
A S A R A =
I 1.2 M 5.7 I 1.3 M 5.7 M 5.7 Q 9.3
A R A S A =
I 1.3 M 5.7 I 1.2 M 5.7 M 5.7 Q 9.3
SITRAIN Training for Automation and Industrial Solutions
Midline Output Coil
LAD
I 1.0
I 1.1
STL
M 20.7
I 2.0
I 2.1
Q 4.0
( )
( )
FBD
I 1.0
A A = A A A =
I I M M I I Q
1.0 1.1 20.7 20.7 2.0 2.1 4.0
& M 20.7
I 1.1
SIMATIC S7 Siemens AG 2006. All rights reserved.
&
I 2.0
Q 4.0
I 2.1
=
Date: File:
2/4/2012 PRO1_07E.10
SITRAIN Training for Automation and Industrial Solutions
Result of Logic Operation, First Check, and Examples
A
I 1.0
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
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.11
First Check
M 3.4
Result of Logic Operation
: : =
Result of Check
Signal State
Example 3
First Check
Result of Logic Operation
Result of Check
Signal State
Example 2
First Check
Result of Logic Operation
Result of Check
Signal State
Example 1
SITRAIN Training for Automation and Industrial Solutions
Instructions that Affect the RLO
LAD
NOT
I 0.0
FBD
Q 8.0
I0.1 NOT
( )
I 0.0
&
I 0.1
STL
Q 8.0 =
A I 0.0 A I 0.1 NOT = Q 8.0
Examples: STAT 0 – Bit memory
CLR
not available
not available
CLR = M 0.0
STAT 1 – Bit memory
SET
SIMATIC S7 Siemens AG 2006. All rights reserved.
not available
not available
Date: File:
2/4/2012 PRO1_07E.12
SET = M 0.1
SITRAIN Training for Automation and Industrial Solutions
Exercise 3: Programming the Operating Mode Section (FC 15)
DI
DO
I 0.0
T_System_ON
I 0.1
T_System_OFF
I 0.2 I 0.3
I 0.4
S_M/A_ModeSelect
I 0.5
T_M/A_Accept
L_SYSTEM
Q 4.1
T_Jog_RIGHT
L_MAN
T_Jog_LEFT
L_AUTO
Q 4.2 Q 4.3
V
-15V...+15V
AI2
AO1
-15V...+15V AO2
AI1
AI1
AI2
V
0 8 1 5
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.13
AI1
AI2
AO1
AO2
SITRAIN Training for Automation and Industrial Solutions
Exercise 3: "FC_Mode" (FC 15), Solution Hints Network 1:
Indicator Light System ON
Q 4.1 SR
Network 2:
ON-Condition
S
OFF-Condition
R
Q
Indicator Light MAN Mode
Q 4.2 SR
Network 3:
ON-Conditions
S
OFF-Conditions
R
Q
Indicator Light AUTO Mode
Q 4.3 SR
SIMATIC S7 Siemens AG 2006. All rights reserved.
ON-Conditions
S
OFF-Conditions
R
Date: File:
2/4/2012 PRO1_07E.14
Q
SITRAIN Training for Automation and Industrial Solutions
Exercise 4: Conveyor in AUTO Mode (Expanding FC 16) Conv. Start
Transport Phase
Conv. Stop
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
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.15
SITRAIN Training for Automation and Industrial Solutions
Exercise 4: "FC_ConvMotor" (FC 16), Solution Hints Network x
Jog RIGHT in MANUAL mode Conditions for JOGGING RIGHT In MANUAL mode
Network y
M 16.2
=
Run Conveyor RIGHT in AUTO mode M 16.4
Conditions for Run Conveyor RIGHT in AUTO mode
Network z
Memory bit for Run Conveyor RIGHT in AUTO mode
S R
Control Run Conveyor RIGHT M 16.2
>=1 Q 8.5
Siemens AG 2006. All rights reserved.
Run Conveyor RIGHT
=
M 16.4
SIMATIC S7
Memory bit for Jog RIGHT In MANUAL mode
Date: File:
2/4/2012 PRO1_07E.16
SITRAIN Training for Automation and Industrial Solutions
RLO – Edge Detection LAD I 1.0
I 1.1
FBD
M1.0
M8.0
P I 1.0
I 1.1
M1.1
N
I 1.0
&
STL
M1.0
M8.0
P
=
I 1.1
M8.1
I 1.0
&
M1.1
M8.1
N
=
I 1.1
A A FP =
I 1.0 I 1.1 M1.0 M8.0
A A FN =
I 1.0 I 1.1 M1.1 M8.1
I 1.0 I 1.1 & -RLO M8.0 OB1 Cycle
OB1 Cycle
M8.1 OB1 Cycle
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
OB1 Cycle
2/4/2012 PRO1_07E.17
SITRAIN Training for Automation and Industrial Solutions
Signal – Edge Detection LAD I 1.0
I 1.1
POS M_BIT
I 1.0
I 1.1
M1.1
M1.0
I 1.1 POS M_BIT
M1.1
I 1.1 NEG M_BIT
M8.0 Q
M1.0
NEG
FBD
M8.1 Q
M_BIT
I 1.0
I 1.0
STL & M8.0
= I 1.0
& M8.1
=
A I 1.0 A ( A I 1.1 FP M1.0 ) = M8.0 A I 1.0 A ( A I 1.1 FN M1.1 ) = M8.1
I 1.1 M8.0 OB1 Cycle
M8.1 OB1 Cycle
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.18
SITRAIN Training for Automation and Industrial Solutions
Exercise 5: Integrating the Edge Detection in FC 16
Conv. Start
Transport Phase
Conv. Stop
Part at Light barrier
Start condition in AUTO mode
Light Barrier (I 8.0)
Run Conveyor RIGHT (Q8.5)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.19
SITRAIN Training for Automation and Industrial Solutions
Exercise 6: Optimizing the Operating Mode Section (FC 15) OLD: without edge detection T_System_ON (I 0.0)
T_System_OFF (I 0.1, NC contact) L_SYSTEM (Q4.1)
NEW: with edge detection T_System_ON (I 0.0)
T_System_OFF (I 0.1, NC contact) L_SYSTEM (Q 4.1)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.20
SITRAIN Training for Automation and Industrial Solutions
Unconditional Jump (Regardless of the RLO)
LAD
Network 1
FBD
NEW1
( JMP ) Network 2 : : : : Network x
NEW1 JMP
....
Network 1
JU NEW1
Network 2 : : : : Network x
Network 2 : : : : Network x
NEW1
NEW1
M5.5
Network 1
STL
I 4.7
M69.0
( )
SIMATIC S7 Siemens AG 2006. All rights reserved.
M5.5 I 4.7
Date: File:
&
NEW1: M69.0 =
2/4/2012 PRO1_07E.21
AN M5.5 AN I 4.7 = M69.0
SITRAIN Training for Automation and Industrial Solutions
Conditional Jump (Dependent on RLO)
LAD
Jump if RLO=1
Jump if RLO=0
I 0.0
I 0.2
SIMATIC S7 Siemens AG 2006. All rights reserved.
I 0.1
I 0.3
FBD
NEW1
I 0.0
(JMP)
I 0.1
I 0.2
NEW2
(JMPN)
Date: File:
I 0.3
2/4/2012 PRO1_07E.22
&
&
STL
NEW1 JMP
A I 0.0 A I 0.1 JC NEW1
NEW2 JMPN
A I 0.2 A I 0.3 JCN NEW2
SITRAIN Training for Automation and Industrial Solutions
Exercise 7: Putting Indicator Lights + Horn (FC 14) into Operation
"BAY1" (I 8.5)
in MANUAL mode: 2Hz pulsed honking while conveyor jogging
"BAY2" (I 8.6)
"Horn" (Q 8.7)
"L_Bay1" (Q 8.1)
"L_Bay2" (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
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_07E.23
SITRAIN Training for Automation and Industrial Solutions
Digital Operations
F1
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_08E.1
SITRAIN Training for Automation and Industrial Solutions
Digital Operations
F1
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_08E.2
SITRAIN Training for Automation and Industrial Solutions
Objectives Upon completion of the chapter the participant will
SIMATIC S7 Siemens AG 2006. All rights reserved.
...
be familiar with the INT, DINT, REAL data types and the BCD display
...
be able to apply the selectable display formats in the "Monitor / Modify Variable" test function
...
understand the "Load" and "Transfer" instructions
...
be able to apply and program the S5 counter and timer functions
...
understand conversion operations for number formats
...
be able to apply and program the comparison operations
...
understand basic mathematical functions
Date: File:
2/4/2012 PRO1_08E.3
SITRAIN Training for Automation and Industrial Solutions
Acquiring, Processing and Outputting Data Operating + monitoring processes
0248 V
0 8 1 5
Thumbwheel buttons, Potentiometer, 7-segment display
Operator Panel
Control unit
such as MPI
Processing the values
DI/ DO
AI/ AO
such as PROFIBUS Field devices
Process controller
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_08E.4
SITRAIN Training for Automation and Industrial Solutions
Integer (INT, 16-Bit Integer) Data Type Value range
-32,768 to +32,767
Arithmetic operations: such as + I, * I, =I ) =
M 3.4
IW 0 IW 2
Q 9.7
SITRAIN Training for Automation and Industrial Solutions
Basic Mathematical Functions LAD
Addition
MW4 MW10
MW4 MW6
MW10
SUB_I EN ENO
Subtraction
MW8 MW12
Multiplication
ADD_I EN ENO IN1 IN2 OUT
FBD
MD6 MD12
Division
MD40 MD4
SIMATIC S7 Siemens AG 2006. All rights reserved.
IN1 IN2
MW8
OUT
MUL_DI EN ENO IN1 IN2 DIV_R EN ENO IN1 IN2 OUT
MW6
MW12
ADD_I EN OUT IN1 IN2 ENO
SUB_I EN OUT IN1 IN2 ENO
MUL_DI EN OUT MD6 MD66
MD12
MD40 MD32
Date: File:
MD4
2/4/2012 PRO1_08E.14
IN1 IN2
STL
MW6
MW6
MD66
ENO
DIV_R EN OUT IN1 IN2 ENO
MD32
L L +I T
MW4 MW10
L L -I T
MW8 MW12
L L *D T
MD6 MD12
L L /R T
MD40 MD4
MW6
MW6
MD66
MD32
SITRAIN Training for Automation and Industrial Solutions
S5 Counter Functions LAD
FBD
C5
C5
S_CUD
I 0.4
S_CUD
Q 8.3
CU
Q Q
CD
CV
STL
I 0.4
CU
MW 4
I 0.5
CD
QW 12
I 0.3
S
C#5
PV
I 0.5
I 0.3 S C#5
PV
CV_BCD
CV CV_BCD
MW 4 QW 12
Q 8.3
I 0.7 R
SIMATIC S7 Siemens AG 2006. All rights reserved.
I 0.7
Date: File:
R
2/4/2012 PRO1_08E.15
Q Q
=
A CU A CD A L S A R L T LC T A =
I 0.4 C5 I 0.5 C5 I 0.3 C#5 C5 I 0.7 C5 C5 MW4 C5 QW12 C5 Q8.3
SITRAIN Training for Automation and Industrial Solutions
Counters: Function Diagram CU
CD
S
R
5 4
Count
3
2 1 0
Q
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_08E.16
SITRAIN Training for Automation and Industrial Solutions
Exercise 1: Counting the Transported Parts (FC 18, C 18)
DI
DO
Act Quantity
I 0.0 I 0.1
T_System_ON
I 0.2 I 0.3
T_Jog_RIGHT
I 0.4
S_M/A_ModeSelect
I 0.5
T_M/A_Accept
T_System_OFF
L_SYSTEM
Q 4.1
L_MAN
Q 4.2
L_AUTO
Q 4.3
T_Jog_LEFT
V
"QW_DigDisp" (QW 6) -15V...+15V
AI2
AO1
-15V...+15V AO2
AI1
AI1
AI2
V
0 8 1 5
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/4/2012 PRO1_08E.17
AI1
AI2
AO1
AO2
SITRAIN Training for Automation and Industrial Solutions
S5 Timer Functions T44 S_PULSE S BI
I 0.7 S5T#35s
TV
BCD
R
Q
I 0.5
MW0
I 0.7
QW12 M8.5
S5T#35s I 0.5
=
Pulse Timer (SP)
S5T#35s I 0.5
I 0.5
TV
BCD
R
Q
Siemens AG 2006. All rights reserved.
R
Q
QW12 M8.5
=
T44 S_ODT S BI TV
BCD
R
Q
MW0 QW12 M8.5
= OFF Delay (SF)
T44 S_ODTS S BI
SIMATIC S7
BCD
Extended Pulse (SE)
Stored ON Delay (SS)
S5T#35s
MW0
TV
ON Delay (SD)
I 0.7
I 0.7
T44 S_PEXT S BI
MW0
I 0.7
QW12 M8.5
S5T#35s
=
I 0.5
Date: File:
2/4/2012 PRO1_08E.18
T44 S_OFFDT S BI
MW0
TV
BCD
R
Q
QW12 M8.5
=
SITRAIN Training for Automation and Industrial Solutions
Timers: ON Delay (SD) LAD
FBD
T4 S_ODT
I 0.7 S
S5T#35s I 0.5
STL
T4
S_EVERZ
Q8.5 Q
I 0.7 S5T#35s
TV
BI
MW0
R
BCD
QW12
I 0.5
Data type “S5TIME”
0.01s Monitor" LAD/STL/FBD Editor -> Options ->Customize
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
... or in running status: right mouse click on
2/23/2012 PRO1_14E.23
SITRAIN Training for Automation and Industrial Solutions
Displaying Reference Data
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.24
SITRAIN Training for Automation and Industrial Solutions
Displaying the Program Structure
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.25
SITRAIN Training for Automation and Industrial Solutions
Displaying Cross References
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.26
SITRAIN Training for Automation and Industrial Solutions
Filtering Cross References
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.27
SITRAIN Training for Automation and Industrial Solutions
Block Correction using Cross References
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.28
SITRAIN Training for Automation and Industrial Solutions
Go To Location
1 x right
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.29
SITRAIN Training for Automation and Industrial Solutions
"Find" In Reference Data
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.30
SITRAIN Training for Automation and Industrial Solutions
Assignment of I, Q, M, T, C
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.31
SITRAIN Training for Automation and Industrial Solutions
Unused Symbols / Addresses without Symbols
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.32
SITRAIN Training for Automation and Industrial Solutions
Comparing Blocks (1)
...see next page
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.33
SITRAIN Training for Automation and Industrial Solutions
Comparing Blocks (2)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.34
SITRAIN Training for Automation and Industrial Solutions
"Force" Variables
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.35
SITRAIN Training for Automation and Industrial Solutions
Exercise 3: Testing the Motor Jog
!!!
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.36
SITRAIN Training for Automation and Industrial Solutions
Exercise 4: Testing the Quantity Display
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.37
SITRAIN Training for Automation and Industrial Solutions
If You Want to Know More
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.38
SITRAIN Training for Automation and Industrial Solutions
Selecting Process and Test Operation
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.39
SITRAIN Training for Automation and Industrial Solutions
Trigger Conditions for Block Monitoring (1)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.40
SITRAIN Training for Automation and Industrial Solutions
Trigger Conditions for Block Monitoring (2)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.41
SITRAIN Training for Automation and Industrial Solutions
Exercise 5: Testing the Evaluation of Fault 4
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.42
SITRAIN Training for Automation and Industrial Solutions
Testing the Program Execution using Breakpoints (Part 1)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.43
SITRAIN Training for Automation and Industrial Solutions
Testing the Program Execution using Breakpoints (Part 2)
Breakpoint
Next statement
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_14E.44
SITRAIN Training for Automation and Industrial Solutions
Documenting, Saving, Archiving
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.1
SITRAIN Training for Automation and Industrial Solutions
Objectives Upon completion of the chapter the participant will ... ...
be familiar with the documentation possibilities of blocks
...
understand the "Managing multilingual project" function
...
be able to print out programs
...
understand the memory concept of the SIMATIC S7-300/400
...
be able to make a "PLC Copy" (online data storage)
...
be able to load/read a program to/from a Memory Card
...
be able to achrive/retrieve a project onto/from a diskette or other storage media
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.2
SITRAIN Training for Automation and Industrial Solutions
Other Documentation Tools Reference data
Program structure
Cross references Assignment of I/Q/M/T/C
Unused addresses
Checklists
Addresses without symbols
Symbol table
Configuration
Network configuration
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.3
SITRAIN Training for Automation and Industrial Solutions
Block Documentation
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.4
SITRAIN Training for Automation and Industrial Solutions
Page Setup
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.5
SITRAIN Training for Automation and Industrial Solutions
Print Preview
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.6
SITRAIN Training for Automation and Industrial Solutions
Managing Multilingual Project Documentation
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.7
SITRAIN Training for Automation and Industrial Solutions
Overview: Saving User Data Uploading program from the CPU to PG
1. 2. 3. 4.
Create a new S7 program in the SIMATIC Manager Switch to the online view Open the new S7 program and select Blocks folder SIMATIC Manager PLC Upload
Upload station in PG
•
SIMATIC Manager PLC Upload Station
Load program from PG to Memory Card... ... inserted in PG/PC or ... Inserted in CPU
1. Open two windows in the SIMATIC Manager: "Blocks folder of the S7 program" and "S7 Memory Card" 2a. Use drag & drop to copy blocks to the "S7 Memory Card"
Copy program from CPU to Memory Card (only S7-300)
2b. SIMATIC Manager PLC Download user program to Memory Card
•
SIMATIC Manager PLC Copy RAM to ROM...
Project archiving on Memory Card/MMC (S7-400, S7-300 after 10.02)
1. Select the CPU on whose Memory Card the project data are to be saved 2. SIMATIC Manager PLC Save Project on Memory Card
Project archiving on diskette
SIMATIC Manager File Archive Select project to be archived Specify name and storage path of the archive file and start function In the Windows Explorer, copy archive file onto diskette
SIMATIC S7 Siemens AG 2006. All rights reserved.
1. 2. 3. 4.
Date: File:
2/23/2012 PRO1_15E.8
SITRAIN Training for Automation and Industrial Solutions
Uploading a Program from the CPU to the PG
System data blocks
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.9
SITRAIN Training for Automation and Industrial Solutions
Memory Concept of the S7-300 until Oct. 2002 Load memory: Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB) Additional info
Comments
Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB) Additional info
SIMATIC S7 Siemens AG 2006. All rights reserved.
Flash EPROM
Working memory: • OB,FC,FB
Symbols
Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB)
RAM
•
DB n. reten. reten.
With Power ON without battery backup
System memory: • PII,PIQ • M, T, C n. reten. reten.
Retentive memory:
With Power OFF without battery backup
• Retentive M, T, C • Retent. Data blocks
Flash EPROM Memory Card in PG (inserted later in the CPU) Date: File:
2/23/2012 PRO1_15E.10
SITRAIN Training for Automation and Industrial Solutions
Loading Blocks into / out of a Flash EPROM Memory Card
Load memory Flash EPROM
"Load in EPROM"
Load memory internal RAM
"Load"
"Load in PG" Sections relevant for execution
After inserting the Memory Card: Memory reset request and coping in work memory
Working memory RAM
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.11
SITRAIN Training for Automation and Industrial Solutions
Memory Concept of the S7-300 after Oct. 2002 Micro Memory Card (CPU load memory) Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB) • System data
Comments Symbols
Load
Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB) Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB) • complete project, if desired
SIMATIC S7 Siemens AG 2006. All rights reserved.
Working memory: Sections of the • logic blocks • data blocks relevant for execution
Power OFF
Warm restart after Power ON
System memory: • PII, PIQ • Local data Micro Memory Card in the PG (inserted later in the CPU) Date: File:
• M, T, C
2/23/2012 PRO1_15E.12
Power OFF retentive n. retent.
SITRAIN Training for Automation and Industrial Solutions
Memory Concept of the S7-400 Load memory: Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB) Additional info
Comments
Working memory: • OB,FC,FB
Symbols
Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB)
Blocks: • Logic blocks (OB,FC,FB) • Data blocks (DB) Additonal info
SIMATIC S7 Siemens AG 2006. All rights reserved.
• DB
RAM
Flash EPROM
Backup via battery
System memory: • PII,PIQ • M, T, C
Flash EPROM Memory Card in PG (inserted later in the CPU) Date: File:
2/23/2012 PRO1_15E.13
SITRAIN Training for Automation and Industrial Solutions
Copying a Program onto a Memory Card
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.14
SITRAIN Training for Automation and Industrial Solutions
Saving a Project on a Memory Card
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.15
SITRAIN Training for Automation and Industrial Solutions
Loading a Project from the Micro Memory Card (MMC)
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.16
SITRAIN Training for Automation and Industrial Solutions
Determining the Size of a Project
Right click
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.17
SITRAIN Training for Automation and Industrial Solutions
Project Archiving
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.18
SITRAIN Training for Automation and Industrial Solutions
Exercise 1: Documenting a Block and Printing It Out
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.19
SITRAIN Training for Automation and Industrial Solutions
Ex.2: Saving the Program and Hardware Configuration (PLC Copy)
View / Update Button
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.20
SITRAIN Training for Automation and Industrial Solutions
Exercise 3: Archiving a Project
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.21
SITRAIN Training for Automation and Industrial Solutions
Exercise 4: Deleting a Project and Retrieving It
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.22
SITRAIN Training for Automation and Industrial Solutions
If You Want to Know More
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.23
SITRAIN Training for Automation and Industrial Solutions
MMC - as Additional Data Memory on the CPU
Load Memory
Data Memory
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.24
SITRAIN Training for Automation and Industrial Solutions
PLC: Storing Data on the Memory Card Corresponds to “Load user program on MC“ Currently open project is compressed and copied All individual files except archives (e.g. *.zip) and directories
Current Selection List !! No current MMC content
Starts transmission
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.25
SITRAIN Training for Automation and Industrial Solutions
PLC: Getting Data from the Memory Card Contents are displayed Attention! File type by default only “S7 Projects“; if necessary, set to “all files“
Select + highlight particular files
Save where ?
Starts transmission
SIMATIC S7 Siemens AG 2006. All rights reserved.
Date: File:
2/23/2012 PRO1_15E.26
SITRAIN Training for Automation and Industrial Solutions
AS-i Communications System
SIMATIC S7 Siemens AG 2005. All rights reserved.
Date: File:
23.02.2012 PRO1_18E.1
SITRAIN Training for Automation and Industrial Solutions
Area of Use and Basic Properties
SIMATIC S7 Siemens AG 2005. All rights reserved.
Date: File:
23.02.2012 PRO1_18E.2
SITRAIN Training for Automation and Industrial Solutions
AS-i Cable
Geometrical ribbon cable
Contacts
SIMATIC S7 Siemens AG 2005. All rights reserved.
Date: File:
23.02.2012 PRO1_18E.3
Slave housing
SITRAIN Training for Automation and Industrial Solutions
AS-i Modules
AS-i Bus Compact Modules
Profibus DP
Analog Modules DP/AS-i Link 20
Power Supply
SIMATIC S7 Siemens AG 2005. All rights reserved.
Date: File:
23.02.2012 PRO1_18E.4
SITRAIN Training for Automation and Industrial Solutions
Hardware Configuration
Profibus Slave AS-i Master
SIMATIC S7 Siemens AG 2005. All rights reserved.
Date: File:
23.02.2012 PRO1_18E.5
SITRAIN Training for Automation and Industrial Solutions
Addressing AS-i slaves
26.7 26.6 26.5 26.4
SIMATIC S7 Siemens AG 2005. All rights reserved.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
7 6 5 4 3 2 1 0 slave 1 slave 2 slave 3 slave 4 slave 5 slave 6 slave 7 slave 8 slave 9 slave 10 slave 11 slave 12 slave 13 slave 14 slave 15 slave 16 slave 17 slave 18 slave 19 slave 20 slave 21 slave 22 slave 23 slave 24 slave 25 slave 26 slave 27 slave 28 slave 29 slave 30 slave 31
Date: File:
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
23.02.2012 PRO1_18E.6
7 6 5 4 3 2 1 0 slave 1 slave 2 slave 3 slave 4 slave 5 26.3 26.2 26.1 26.0 slave 6 slave 7 slave 8 slave 9 slave 10 slave 11 slave 12 slave 13 slave 14 slave 15 slave 16 slave 17 slave 18 slave 19 slave 20 slave 21 slave 22 slave 23 slave 24 slave 25 slave 26 slave 27 slave 28 slave 29 slave 30 slave 31 SITRAIN Training for Automation and Industrial Solutions
View more...
Comments