Professional Documents
Culture Documents
net
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
www.infoPLC.net
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
www.infoPLC.net
Objectives
Upon completion of the chapter the participant will ...
SIMATIC S7
Siemens AG 2006. All rights reserved.
...
...
...
...
...
...
...
Date:
File:
1/16/2012
PRO1_01E.3
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
www.infoPLC.net
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
www.infoPLC.net
Upper 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.
Logo
Date:
File:
1/16/2012
PRO1_01E.6
www.infoPLC.net
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
www.infoPLC.net
I / O Modules
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.8
Communications
Processors (CP)
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.9
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
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.11
www.infoPLC.net
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)
(L)
System Messages
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
www.infoPLC.net
Addressing
Byte 0
Byte 1
Byte 2
Byte 3
LSB
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
3.4
Address Part
3.4
Address
Identifier
SIMATIC S7
Siemens AG 2006. All rights reserved.
Parameter
3.4
Date:
File:
1/16/2012
PRO1_01E.13
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.14
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
www.infoPLC.net
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
www.infoPLC.net
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)
CP5611 (PCI) or
CP5512 (PCMCIA) or
PC adapter (USB)
Industrial Ethernet
Programming interface
(optional)
www.infoPLC.net
Activate
through
Start menu
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.18
www.infoPLC.net
STEP 7 Tools
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.19
www.infoPLC.net
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
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.21
www.infoPLC.net
More Information
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.22
www.infoPLC.net
S1
T1
S2
S5
T2
S6
T5
S4
Planning, Configuring
Programming
Debugging
Commissioning
Maintenance, Diagnostics
SIMATIC S7
T4
T3
Date:
File:
1/16/2012
PRO1_01E.23
www.infoPLC.net
Position
Cam-operated Index out
switch
Turn left
1 2 4
piece
Turn right
Motor
Index
Counterbearing
lock/release
Motor
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
www.infoPLC.net
Advantages:
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
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
www.infoPLC.net
Advantages
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.26
www.infoPLC.net
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
www.infoPLC.net
Advantages
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.28
www.infoPLC.net
Overview
Configuration
tool
Basic SW
or
option
package
PID Controller
No
Basic SW
Yes
Basic SW
Yes
Option
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
www.infoPLC.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 Feldgerte
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
Feldgerte
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
www.infoPLC.net
Process visualization
system
SIMATIC WinCC flexible
SIMATIC PG, PC
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.31
www.infoPLC.net
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
www.infoPLC.net
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
www.infoPLC.net
DRIVES Technology
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.34
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.35
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_01E.36
www.infoPLC.net
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.1
www.infoPLC.net
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.2
www.infoPLC.net
Module
-->
PS
CPU
DI 32
DO 32
DI8/DO8
AI 2
Slot No.
-->
I/O Address
-->
304
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.3
www.infoPLC.net
The Simulator
Potentiometers for
setting the
analog values
PIW_AI1 (PIW 304)
DO
.0
..........
..........
.0
.1
..........
..........
.1
.2
..........
..........
.2
.3
..........
..........
.3
.4
..........
..........
.4
.5
..........
..........
.5
.6
..........
..........
.6
.7
..........
..........
.0
..........
..........
.1
..........
..........
.2
..........
..........
.3
..........
..........
.4
..........
..........
.5
..........
..........
.6
..........
..........
.7
..........
..........
-15V...+15V
AI1
.7
.0
.1
AI1
.2
AI2
.3
.4
.5
0 8 1 5
AI1
AI2
AO1
AO2
.6
.7
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.4
www.infoPLC.net
"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
www.infoPLC.net
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.6
www.infoPLC.net
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.7
www.infoPLC.net
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.8
www.infoPLC.net
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.9
www.infoPLC.net
SIMATIC S7
Siemens AG 2007. All rights reserved.
Date:
File:
1/16/2012
PRO1_02E.10
www.infoPLC.net
PS
SIMATIC S7
Siemens AG 2007. All rights reserved.
CPU
DI
32
DI
32
10
11
12
13
14
15
16
17
18
DO DO AI
32 32 8
Date:
File:
1/16/2012
PRO1_02E.11
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.1
www.infoPLC.net
Objectives
Upon completion of the chapter the participant will ...
...
...
...
...
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.2
www.infoPLC.net
Project Management
SIMATIC Manager
Hardware
Communication
FB21
OB1
I 1.0
Q4.0
Software
Prozess
SIMATIC S7
I 1.1
Date:
File:
1/16/2012
PRO1_03E.3
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.4
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.5
www.infoPLC.net
S7 Program Blocks
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.6
www.infoPLC.net
Network 1
A(
O
O
)
A
=
I
Q
0.0
4.1
I
Q
0.1
4.1
FC
0
Network 2
Call
NOP
Network 3
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.7
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.8
www.infoPLC.net
Creating an S7 Project
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.9
www.infoPLC.net
Inserting an S7 Program
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.10
www.infoPLC.net
Standard Library
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.11
www.infoPLC.net
Press Hot-key F1
Example
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.12
www.infoPLC.net
Press Hot-key F1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.13
www.infoPLC.net
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
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.15
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.16
www.infoPLC.net
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
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.18
www.infoPLC.net
RUN-P
RUN
STOP
RUN
STOP
MRES
MRES
RUN-P
RUN
STOP
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
STOP
RUN
STOP
MRES
MRES
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.19
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.20
www.infoPLC.net
Trigger point
"Beginning of Scan Cycle"
Monitor / Modify
depending on
Trigger setting
Set
Trigger
Cyclic
program
execution
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
www.infoPLC.net
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
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.23
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.24
www.infoPLC.net
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/16/2012
PRO1_03E.25
Hardware Configuration
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.1
Objectives
Upon completion of this chapter the participant will ...
...
...
...
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.2
tool.
You can select the components from a
hardware catalog.
Parameter assignment
Setpoint configuration
Actual configuration
SIMATIC S7
Siemens AG 2006. All rights reserved.
1/24/2012
PRO1_04E.3
Inserting a Station
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.4
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.5
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.6
Modules
PS
CPU
SM
SM
SM
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
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)
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
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
Date:
File:
1/24/2012
PRO1_04E.8
20.0
to
23.7
9
24.0
to
27.7
10
28.0
to
31.7
11
Address Overview
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.9
Variable Addressing
2x
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.10
1x right
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.11
Double-click
SIMATIC S7
Siemens AG 2006. All rights reserved.
0.5 0.62
2
1.6
1.25
2.5
10
0.8
0.5
0.4
0.2
0.1
Date:
File:
1/24/2012
PRO1_04E.12
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.13
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.14
Download
(only when CPU is
in STOP mode)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.15
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.16
1.
2.
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.17
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.18
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.19
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.20
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.21
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.22
CPU Properties
2x
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.23
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.24
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.25
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.26
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.27
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.28
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
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.30
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.31
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
1/24/2012
PRO1_04E.32
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
Objectives
Upon completion of this chapter the participant will ...
...
...
...
...
...
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
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.2
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.
FB
FB with
Instance DB
Date:
File:
24
2/3/2012
PRO1_06E.3
Linear Program
Structured Program
Recipe A
OB 1
OB 1
RecipeB
Mixer
OB 1
Pump
Outlet
Outlet
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.4
Process Images
S1
K1
I 2.0
Q 4.3
PII
PIQ
User
Program
Byte 0
Byte 1
Byte 2
:
:
:
A
=
A
=
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
:
:
I
Q
:
:
I
Q
:
2.0
4.3
Byte 0
Byte 1
Byte 2
:
:
:
6.4
4.3
CPU Memory Area
2/3/2012
PRO1_06E.5
digital
input
module
CPU Cycle
digital
output
module
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.6
Output
module
CPU Cycle
Input
module
Communications
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.7
Inserting an S7 Block
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.8
Declaration Table
Code Section
Detail Window
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.9
Ladder Diagram
Statement List
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.10
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.11
Insert / Cp
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.12
Programming in STL
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.13
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
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.15
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.16
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.17
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
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.19
Exercise 2: Calling FC 16 in OB 1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.20
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.21
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.22
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.23
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.24
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.25
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.26
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/3/2012
PRO1_06E.27
Symbolic Addressing
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.1
Objectives
Upon completion of the chapter the participant will ...
SIMATIC S7
Siemens AG 2006. All rights reserved.
...
...
...
...
Date:
File:
2/4/2012
PRO1_04E.2
Symbolic Representation
I0.0
"SYSTEM_ON"
Q8.0
"SYSTEM_ON"
I0.4
"M_FORW"
Q20.5
"MOTOR_FOR"
Call
FC18
Call
"COUNT"
Symbol
Address
Data Type
Comment
MOTOR_FOR
Q20.5
BOOL
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
(max. 24 characters)
SIMATIC S7
Siemens AG 2006. All rights reserved.
(max. 80 characters)
Date:
File:
2/4/2012
PRO1_04E.3
Symbolic Addressing
Where are symbols used?
Global Data:
- Inputs
- Outputs
- Bit mem., timers, counters
- Peripheral I/O
Symbol Table
Symbol Editor
Program Editor
Jump Labels
Program Editor
Block Names:
- OB
- FB
- FC
- DB
- VAT
- UDT
Symbol Table
Symbol Editor
DB Components
Program Editor
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.4
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.5
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.6
View: Filter
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.7
View: Sort
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.8
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.9
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.10
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.11
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.12
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.13
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_04E.14
Binary Operations
F1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_07E.1
Objectives
Upon completion of the chapter the participant will
SIMATIC S7
Siemens AG 2006. All rights reserved.
...
...
...
Date:
File:
2/4/2012
PRO1_07E.2
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
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
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
The
sensor
is a ...
NO
contact
The sensor
is ...
Voltage
present
at input?
Signal
state
at
input
activated
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
yes
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
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
Stop
R
ON
CPU
Digital
Input
Module
CPU
Digital
Output
Module
Start
I0.0
Stop
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_07E.7
ON
I0.1 3
4
.
.
4
.
.
Q4.1
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
LAD
M 5.7
I1.2
Dominant
Reset
FBD
SR
STL
M 5.7
Q 9.3
Q
I1.2
SR
Q9.3
I1.3
I1.3
M 5.7
I1.3
Dominant
Set
RS
M 5.7
Q 9.3
Q
I1.3
RS
Q9.3
I1.2
I1.2
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_07E.9
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
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
I 1.0
AN I 1.1
M 4.0
Q 8.0
Q 8.1
I 2.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
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
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
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
-15V...+15V
AI2
AO1
-15V...+15V
AO2
AI1
AI1
AI2
0 8 1 5
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_07E.13
AI1
AI2
AO1
AO2
Q 4.1
SR
Network 2:
ON-Condition
OFF-Condition
Q 4.2
SR
Network 3:
ON-Conditions
OFF-Conditions
Q 4.3
SR
SIMATIC S7
Siemens AG 2006. All rights reserved.
ON-Conditions
OFF-Conditions
Date:
File:
2/4/2012
PRO1_07E.14
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
Network y
M 16.2
Conditions for
Run Conveyor RIGHT
in AUTO mode
Network z
S
R
>=1
Q 8.5
M 16.4
SIMATIC S7
Date:
File:
2/4/2012
PRO1_07E.16
I 1.1
FBD
M1.0
M8.0
P
I 1.0
I 1.1
M1.1
I 1.0
&
STL
M1.0
M8.0
I 1.1
M8.1
I 1.0
&
M1.1
M8.1
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
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
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
T_System_OFF
(I 0.1, NC contact)
L_SYSTEM
(Q4.1)
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
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
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
"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
Digital Operations
F1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.1
Digital Operations
F1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.2
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
...
...
...
...
...
...
Date:
File:
2/4/2012
PRO1_08E.3
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
-32,768 to +32,767
Arithmetic
operations: such as + I, * I, <I, ==I
Display Formats:
15 14 13 12 11 10 9 8 7
DEC: + 662
6 5
4 3 2 1 0
BIN.: 2# 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 0
+2
Sign
positive
numbers
+2
6 5
4 3 2 1 0
BIN.: 2# 1 1 1 1 1 1 0 1 0 1 1 0 1 0 1 0
-2
Sign
negative
numbers
Representation as
Twos complement
SIMATIC S7
Siemens AG 2006. All rights reserved.
15
14
+2 13
+2 12
+2 11
+2 10
8
6
+2 +2 +2 5
3
1
+2 +2 +2
- 662
Date:
File:
6 x 16 = 6
1
9 x 16 = 144
2
2 x 16
= 512
662
+2 1
+2
+ 662
15 14 13 12 11 10 9 8 7
DEC: - 662
without
sign
+2
HEX: W#16#0 2 9 6
2/4/2012
PRO1_08E.5
HEX: W#16#F D 6 A
without
sign
0
10 x 16 =10
1
6 x 16 = 96
2
13 x 16 = 3328
3
15 x 16 = 61440
64874
L# -2,147,483,648 to L#+2,147,483,647
(without sign: 0 to 4,294,967,295)
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
DEC: L# +540809
6 5
4 3 2 1 0
BIN.: 2# 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1
Sign
positive
numbers
HEX: DW#16#
(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
DEC: L# -540809
6 5
4 3 2 1 0
BIN.: 2# 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1
Sign
negative
numbers
Representation as
Twos complement
SIMATIC S7
Siemens AG 2006. All rights reserved.
HEX: DW#16#
(without sign)
Date:
File:
2/4/2012
PRO1_08E.6
Value range
+1.17549510-38 to +3.40282310+38
Sign of
Real no.
31
30
e = Exponent (8 Bit)
29
28
27 26
25
24
23
22
21
20 19
18
17
16 15
14
13
12
11 10
0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
27 26 25 24 23 22 21 20 2-1 2-2 2-3 2-4 .....
2-23
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.7
16 Bit:
32 Bit:
- 999 to + 999
-9999999 to + 9999999
Conversion
operations:
Sign (+)
HEX:
32 Bit:
BIN.: 2# 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 0
16 Bit:
Sign (+)
W#16#
0
DEC: + 662
BIN.: 2# 0 x x x 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 0
HEX:
DW#16#
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.8
DEC: + 662
SITRAIN Training for
Automation and Industrial Solutions
Conversion
BCD->Integer
0 81 5
Task
Number
displayed
in BCD
Conversion
BCD<-Integer
0 2 4 8
LAD
FBD
BCD_I
IW4
EN
ENO
IN
OUT
IN
SIMATIC S7
Siemens AG 2006. All rights reserved.
OUT
STL
MW20
L
IW4
BTI
T
MW20
QW12
L
MW10
ITB
T
QW12
BCD_I
MW20
IW4
I_BCD
EN
ENO
MW10
User program
with Integer
math operations
EN
OUT
IN
ENO
I_BCD
QW12
MW10
Date:
File:
EN
OUT
IN
ENO
2/4/2012
PRO1_08E.9
Number Formats
Accessed in between
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.10
Accumulator 1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.11
L MB 0
23
L MW 0
23
15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
31
L MD 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
31
Load
15
23
MB0
MB0
7
MB0
15
MB1
MB1
7
MB2
MB3
T QD 4
QD 4
Transfer
T QW 4
QW 4
T QB 4
QB 4
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.12
Comparison Operations
LAD
M 3.4
CMP >=I
FBD
CMP >=I
Q 9.7
IW0
IW 0
IN1
IW 2
IN2
SIMATIC S7
Siemens AG 2006. All rights reserved.
STL
IN1
M 3.4
IW2
Date:
File:
IN2
2/4/2012
PRO1_08E.13
&
Q9.7
=
A
A(
L
L
>=I
)
=
M 3.4
IW 0
IW 2
Q 9.7
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
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
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:
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
CD
5
4
Count
2
1
0
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.16
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
"QW_DigDisp" (QW 6)
-15V...+15V
AI2
AO1
-15V...+15V
AO2
AI1
AI1
AI2
0 8 1 5
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.17
AI1
AI2
AO1
AO2
S5 Timer Functions
T44
S_PULSE
S
BI
I 0.7
S5T#35s
TV
BCD
I 0.5
MW0
I 0.7
QW12
M8.5
S5T#35s
I 0.5
S5T#35s
I 0.5
I 0.5
TV
BCD
QW12
M8.5
T44
S_ODT
S
BI
TV
BCD
MW0
QW12
M8.5
=
OFF Delay (SF)
T44
S_ODTS
S
BI
SIMATIC S7
BCD
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
QW12
M8.5
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
BCD
QW12
I 0.5
Data type
S5TIME
BI
TV
BCD
RLO at S
RLO at R
Time
operation
MW0
QW12
Q8.5
=
A
L
SD
A
R
L
T
LC
T
A
=
I 0.7
S5T#35s
T4
I 0.5
T4
T4
MW0
T4
QW12
T4
Q8.5
Example
Q
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
0
0
1
1
2/4/2012
PRO1_08E.19
0
1
0
1
DO
I 0.0
I 0.1
T_System_ON
I 0.2
I 0.3
T_Jog_RIGHT
L_MAN
Q 4.2
T_Jog_LEFT
L_AUTO
Q 4.3
I 0.4
S_M/A_ModeSelect
I 0.5
T_M/A_Accept
T_System_OFF
T_Ackn
_Fault
SIMATIC S7
Siemens AG 2006. All rights reserved.
L_SYSTEM
Q 4.1
L_Conv
_Fault
Date:
File:
2/4/2012
PRO1_08E.20
DI
SETPOINT Quantity
DO
I 0.0
I 0.1
T_System_ON
I 0.2
I 0.3
T_Jog_RIGHT
L_MAN
Q 4.2
T_Jog_LEFT
L_AUTO
Q 4.3
I 0.4
S_M/A_ModeSelect
I 0.5
T_M/A_Accept
T_System_OFF
T_Ackn_Fault
L_SYSTEM
Q 4.1
ACTUAL Quantity
0 8 1 5
"IW_Thumbw" (IW 2)
"QW_DigDisp" (QW 6)
L_Conv_Fault
ACT=SET
"L_Bay-LB" (Q 8.4)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.21
Acknowledgement
"T_Bay-LB" (I 8.4)
Set "Counter" to 0
MOVE
EN
OUT
Condition
for resetting
0
NW 2:
ENO
ADD_I
Rising edge of
counting event
NW 3:
IN
MW 20
EN
MW 20
IN1
OUT
IN2
ENO
MW 20
Convert ACT quantity (MW 20) from Integer to BCD -> Result on BCD digital display (QW 6)
NW 4:
Convert value from thumbwheel button (IW 2) from BCD to Integer -> Store SETP quantity (Integer) in MW 22
NW 5:
Compare ACT (MW 20) to SETP (MW 22) -> Place comparison result on indicator light
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.22
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.23
Conv
Fault
M 17.0
Conv
2
Fault
Counter C 17 1
0
M/A AUTO
Q 4.3
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.24
Jog RIGHT
I 0.2
Conv motor
RIGHT
(Q8.5)
Lock-out
RIGHT
T 15 (SF)
Jog LEFT
I 0.3
Conv motor
LEFT
(Q8.6)
lock-out
time RIGHT
Lock-out
LEFT
T 16 (SF)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.25
FBD
Network 1:
I 0.0
STL
C5
I 0.0
C5
SC
C#20
SC
A
L
S
CV
C#20
I 0.0
C#20
C5
Network 2:
I 0.1
C5
C5
I 0.1
CU
CU
A I 0.1
CU C5
C5
A I 0.2
CD C5
Network 3:
I 0.2
C5
CD
I 0.2
CD
Network 4:
C5
Q 4.0
Q 4.0
C5
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.26
A
=
C5
Q 4.0
I 0.7
S5T#35s
I 0.5
LAD
FBD
T4
S_ODTS
Q
S
T4
TV
R
BI
BCD
S_ODTS
Q8.5
MW0
STL
I 0.7
S5T#35s
QW12
I 0.5
BI
TV
BCD
MW0
QW12
Q8.5
=
A
L
SS
A
R
L
T
LC
T
A
=
I 0.7
S5T#35s
T4
I 0.5
T4
T4
MW0
T4
QW12
T4
Q8.5
RLO at S
RLO at R
Timer
operation
Example
Q
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.27
FBD
T4
S_PULSE
Q
S
I 0.7
S5T#35s
I 0.5
TV
R
BI
BCD
STL
T4
S_PULSE
Q8.5
MW0
I 0.7
S5T#35s
QW12
I 0.5
BI
TV
BCD
MW0
QW12
Q8.5
=
A
L
SP
A
R
L
T
LC
T
A
=
I 0.7
S5T#35s
T4
I 0.5
T4
T4
MW0
T4
QW12
T4
Q8.5
RLO at S
RLO at R
Timer
operation
Example
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.28
FBD
T4
S_PEXT
Q
S
I 0.7
S5T#35s
I 0.5
TV
R
BI
BCD
STL
T4
Q8.5
MW0
S_PEXT
I 0.7
S5T#35s
QW12
I 0.5
BI
TV
BCD
MW0
QW12
Q8.5
=
A
I 0.7
L
S5T#35s
SE T4
A
I 0.5
R
T4
L
T4
T
MW0
LC T4
T
QW12
A
T4
=
Q8.5
RLO at S
RLO at R
Timer
operation
Example
Q
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.29
FBD
T4
S_OFFDT
Q
S
I 0.7
S5T#35s
I 0.5
TV
R
BI
BCD
STL
T4
S_OFFDT
Q8.5
MW0
I 0.7
S5T#35s
QW12
S
TV
I 0.5
B
I
BCD
Q
MW0
QW12
Q8.5
=
A
L
SF
A
R
L
T
LC
T
A
=
I 0.7
S5T#35s
T4
I 0.5
T4
T4
MW0
T4
QW12
T4
Q8.5
RLO at S
RLO at R
Timer
operation
Example
Q
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.30
01
5
1
Time base
2
0
29
28
27
26
25
24
23
22
21 20
01
Time base
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.31
5
1
2
0
FBD
STL
Network 1:
I 0.0
T4
T4
&
I 0.0
SD
SD
S5T#5s
S5T#5s
TV
A I 0.0
L S5T#5s
SD T4
Network 2:
T4
Q 8.0
Q 8.0
T4
&
A
=
T4
Q 8.0
A
R
I 0.1
T4
Network 3:
I 0.1
T4
T4
I 0.1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.32
&
Task
F
B
D
Conversion from
double integer
to real number
STL
I_DI
MW12
EN
OUT
IN
ENO
LAD
MD14
DI_R
MD14
I_DI
EN
ENO
MW12
SIMATIC S7
Siemens AG 2006. All rights reserved.
IN
OUT
Math
program
with
real numbers
EN
OUT
IN
ENO
MD26
L
MW12
ITD
DTR
T
MD26
DI_R
EN
ENO
MD14
MD14
Date:
File:
IN
2/4/2012
PRO1_08E.33
OUT
MD26
WOR_W
WAND_W
EN
IW0
W#16#5F2A
IW 0
W#16#5F2A
AW / OW / XOW
ENO
MW10
IN1
IN2
OUT
15
MW10
IW0 =
W#16#5F2A =
0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0
0 1 0 1 1 1 1 1 0 0 1 0 1 0 1 0
AND
SIMATIC S7
Siemens AG 2006. All rights reserved.
OR
XOR
0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0
0 1 0 1 1 1 1 1 0 0 1 1 1 0 1 0
0 0 0 1 1 1 1 1 0 0 0 1 1 0 0 0
Date:
File:
2/4/2012
PRO1_08E.34
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
PRO1_08E.35
PROFIBUS DP
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.1
Objectives
Upon completion of the chapter the participant will ...
SIMATIC S7
Siemens AG 2006. All rights reserved.
...
...
...
...
be familiar with the principle of interfacing the HMI operator panel via tags
Date:
File:
2/4/2012
SERV1_11E.2
Master
PS
S7
10A 400
S7-400
S7
S7
PS S7-300 S7-300
CPU
4142 DP
CPU
314
S7
S7-300
CP
3425 DP
PROFIBUS -DP
ET 200M
SIMATIC S7-300
Slaves
PS S7- S7 S7 S7
300
CP
CPU
3423155 DP
2 DP
S7
STAND.
DP
SLAVE
Compact Slaves
Intelligent Slave
PS IM S7 S7 S7 S7
153
Modular Slave
STAND.
DP
SLAVE
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.3
Result
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.4
DP Slave
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.5
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.6
SIMATIC Panels
WinCC flexible
ProTool / Pro
WinCC
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.7
M30.0
1
MPI
PROFIBUS DP
Industrial Ethernet
Update
Press key set bit
Let go of key reset bit
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.8
Configuring phase
(Offline)
Transfer
PC/PG
WinCC flexible
Configuration
data
Source file
<Name>.hmi
Configuration
data
PC/OP/TP
Flash
Flash
MPI
DP
Ethernet
PLC
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.9
WinCC flexible
Advanced
Advanced Demo
Standard
Compact
*) Option
Micro
SIMATIC PANEL
Micro
SIMATIC PANEL
70 / 170
SIMATIC PANEL
270 / 370
R u n t i m e (RT)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.10
(ES)
PC - based
Windows 2000
Windows XP
RT Options
E n g i n e e r i n g
HMI Operator Panel: Setting the Interface for the Project Transfer
Loader V07.01.01.00_01.34
Transfer
OK X
PROFIBUS
Panel is the only master on bus
Start
Station Parameters
Control
Panel
Address:
Time-out:
1s
NetworkParameters
Transmission Rate:
1,5 Mbits/s
Highest Station:
126
Profile:
DP
Bus Parameters
OK X
Transfer Settings
Channel
Directories
S7-Transfer Settings
OK X
Channel 1:
Serial:
Enable Channel
MPI
Remote Control
Profibus
Channel 2:
MPI/
Profibus
Enable Channel
Remote Control
SIMATIC S7
Siemens AG 2006. All rights reserved.
Properties...
Advanced
Date:
File:
2/4/2012
SERV1_11E.11
2xL
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.12
Editor Section
(Work Area)
Properties
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.13
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.14
2xL
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.15
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.16
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.17
Transfer
OK X
PROFIBUS
Panel is the only master on bus
Start
Station Parameters
Control
Panel
Address:
Time-out:
1s
NetworkParameters
Transmission Rate:
1,5 Mbits/s
Highest Station:
126
Profile:
DP
Bus Parameters
OK X
Transfer Settings
Channel
Directories
S7-Transfer Settings
OK X
Channel 1:
Serial:
Enable Channel
MPI
Remote Control
Profibus
Channel 2:
MPI/
Profibus
Enable Channel
Remote Control
SIMATIC S7
Siemens AG 2006. All rights reserved.
Properties...
Advanced
Date:
File:
2/4/2012
SERV1_11E.18
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.19
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.20
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.21
2xL
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.22
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.23
DO
SETPOINT Quantity
I 0.0
I 0.1
T_System_ON
T_System_OFF
L_SYSTEM
Q 4.1
I 0.2
I 0.3
T_Jog_RIGHT
L_MAN
Q 4.2
T_Jog_LEFT
L_AUTO
Q 4.3
I 0.4
S_M/A_ModeSelectl
I 0.5
T_M/A_Accept
T_Ackn_Fault
SIMATIC S7
Siemens AG 2006. All rights reserved.
ACTUAL Quantity
0 8 1 5
"IW_Thumbw" (IW 2)
"QW_DigDisp" (QW 6)
L_Conv_Fault
Date:
File:
2/4/2012
SERV1_11E.24
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.25
DI
DO
I 0.0
T_System_ON
I 0.1
T_System_OFF
I 0.2
T_Jog_RIGHT
L_MAN
Q 4.2
I 0.3
T_Jog_LEFT
L_AUTO
Q 4.3
I 0.4
S_M/A_ModeSelect
I 0.5
T_M/A_Accept
L_SYSTEM
Q 4.1
Rewire
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.26
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.27
Master
Slave
Slave
Slave
Slave
Resistor On
Resistor Off
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.28
Baud Rate
Master
Segment Length
9.6 to 187.5
kBaud
1,000 meters
500
kBaud
400 meters
1.5
kBaud
200 meters
3 to 12
MBaud
100 meters
Slave
Slave
Slave
Segment Length
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/4/2012
SERV1_11E.29
PROFIBUS Connector
Standard connector
with screw terminal
SIMATIC S7
Siemens AG 2006. All rights reserved.
Plug for
Fast Connect
Date:
File:
2/4/2012
SERV1_11E.30
1. Measure
SIMATIC S7
Siemens AG 2006. All rights reserved.
2. Strip
Date:
File:
2/4/2012
SERV1_11E.31
3. Remove
Data Blocks
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.1
Objectives
Upon completion of this chapter the participant will ...
SIMATIC S7
Siemens AG 2006. All rights reserved.
...
...
...
...
Date:
File:
2/8/2012
PRO1_10E.2
Function
FC10
Function
FC20
Global (shared)
data
DB20
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.3
Instance data
DB5
Elementary
data types
(up to 32 bits)
Array (ARRAY)
Structure (STRUCT)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.4
BOOL
BYTE
Constants
Variables
1 or 0
I 1.0
B#16#A9
MB70
WORD
16
W#16#12AF
MW72
DWORD
32
QD40
DW#16#ADAC1EF5
CHAR
'w'
DBB4
S5TIME
16
S5T#5s_200ms
MW30
INT
16
DINT
32
123
#Value
L#65539
MD80
REAL
SIMATIC S7
Siemens AG 2006. All rights reserved.
32
1.2 or 34.5E-12
Date:
File:
DBD60
2/8/2012
PRO1_10E.5
Example
DATE_AND_TIME
64
DT#01-08-24-12:14:55:234-1
STRING
(character string with
max. 254 characters)
8 * (number of
This is a string
characters +2)
SIEMENS
ARRAY
(Group of elements
of the same data type)
userdefined
STRUCT
(Group of elements
of different data types)
userdefined
Motor: STRUCT
Speed : INT
Current : REAL
END_STRUCT
UDT
UDT as block
user-
"Template" consisting of
defined
STRUCT
Speed
elementary or complex
data types
SIMATIC
S7
Siemens AG 2006. All rights reserved.
UDT as array
element
Date:
File:
: INT
Current : REAL
UDT1
END_STRUCT
2/8/2012
PRO1_10E.6
Drive: ARRAY[1..4]
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.7
Declaration View
Data View
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.8
Load Memory
Work Memory
DB
DB
Initial values
+ Actual values
DB
Actual values
CPU
with
STEP 7
Program
Upload in PG
Initial values
Initialize
data block
+ Actual values
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.9
x
SITRAIN Training for
Automation and Industrial Solutions
Data Byte 0
DBB 0
Data Byte 1
DBW 0
Data Byte 2
DBD 0
Data Byte 3
DBX 4.1
DBD 2000
DBW 2002
DBB 2003
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.10
Name
Type
0.0
Act_Quantity
INT
2.0
FL_Aux
BOOL
4.0
Number
INT
6.0
10.0
Weight[1]
Weight[2]
SIMATIC S7
Siemens AG 2006. All rights reserved.
Traditional
Access
Fully-qualified Access
absolute
symbolic
OPN "Parts"
L
DBW0
or
DB18.DBW0
or
L "Parts".ACT_
Quantity
OPN DB 18
A
DBX2.0
or
DB18.DBX2.0
or
A "Parts".FL_Aux
REAL
REAL
OPN "Parts"
T
DBW 4
or
DB18.DBW4
or
T "Parts".Number
OPN
L
or
DB18.DBD10
or
L "Parts".Weight[2]
DB 18
DBD 10
Date:
File:
2/8/2012
PRO1_10E.11
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.12
SIMATIC S7
Siemens AG 2006. All rights reserved.
Variables in STEP7
Date:
File:
2/8/2012
PRO1_10E.13
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.14
Example of an ARRAY
Measuring_point
1. Measuring_point, data type Real
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.15
Example of a STRUCTURE
Motor_data
Speed, data type Integer
Structure with the name "Motor_data"
(several elements
with different data types)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.16
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_10E.17
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.1
Objectives
Upon completion of this chapter the participant will ...
SIMATIC S7
Siemens AG 2006. All rights reserved.
...
...
...
...
...
Date:
File:
2/8/2012
PRO1_11E.2
Variables Overview
Static Variables
are retained even after the
block is executed
M/T/C
DB areas
PII / PIQ
I / O Peripherals
absolute
symbolic
Access
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.3
Temporary Variables
Declaration
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.4
OB 1
FC 17
2
with temp.
variables
Result
FC 20
with temp.
variables
FC 30
with temp.
variables
FC30
FC20
OB1
SIMATIC S7
Siemens AG 2006. All rights reserved.
256 Bytes
Usage of
the L stack
FC17
FC17
FC17
FC17
FC17
OB1
OB1
OB1
OB1
OB1
Date:
File:
2/8/2012
PRO1_11E.5
OB1
Fault_Signal
Acknowledge
Stored_Fault
Display
Solution Suggestion
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.6
Parameter-assignable Blocks
Solution with
non-parameterassignable block
Call of FC 20 (e.g. in OB 1)
FC 20
1.1
#Fault_Signal
FP
M 17.2
FP #Edge_Memory
M 17.1
I 1.1
Fault_
Signal
#Stored_Fault
I 1.0
Acknowledge Display
#Acknowledge
M 10.3
Flash_Freq.
M 17.1
#Stored_Fault
M 17.1
M 17.1
#Stored_Fault
Stored_
Fault
M 10.3
#Flash_Freq.
M 17.2
Edge_
Memory
1.0
Q 5.1
AN
M 17.1
AN #Stored_Fault
1.1
#Fault_Signal
Q 5.1
#Display
SIMATIC S7
Siemens AG 2006. All rights reserved.
Formal parameters
Actual parameters
Date:
File:
2/8/2012
PRO1_11E.7
Type of Parameter
Declaration
Use
Graphic Display
Input parameter
Output parameter
in
out
Read only
Write only
In/Out parameter
In_out
Read / Write
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.8
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.9
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.10
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.11
DI
DO
L_SYSTEM
I 1.0
T_Ackn_Fault
I 1.1
I 1.2
S_Fault1
S_Fault2
SIMATIC S7
Siemens AG 2006. All rights reserved.
Q 4.1
L_MAN
Q 4.2
L_AUTO
Q 4.3
L_Conv_
Fault
L_Fault1
Q 5.1
L_Fault2
Q 5.2
Date:
File:
2/8/2012
PRO1_11E.12
Declaration Table
of the
Function Block
Call of
function block
such as in OB1
DB 2
FB 20
EN
Fault_Signal
Acknowledge
Display
Flash_frequency
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.13
ENO
Declaration Table
of the
Function Block
Instance
Data Block
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.14
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.15
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.16
DI
DO
I 1.0
T_Ackn_Fault
I 1.1
I 1.2
I 1.3
I 1.4
S_Fault1
S_Fault2
S_Fault3
S_Fault4
SIMATIC S7
Siemens AG 2006. All rights reserved.
L_SYSTEM
Q 4.1
L_MAN
Q 4.2
L_AUTO
Q 4.3
L_Conv_
Fault
L_Fault1
Q 5.1
L_Fault2
L_Fault3
L_Fault4
Q 5.2
Q 5.3
Q 5.4
Date:
File:
2/8/2012
PRO1_11E.17
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.18
Block inconsistency
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.19
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.20
STL
FC 1
Unconditional call
Conditional call
...
EN
ENO
Q5.0
FC 1
EN
ENO
I 0.1
=
_001:
Example
ADD_I
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
EN
MUL_I
ENO
EN
Date:
File:
ENO
2/8/2012
PRO1_11E.21
CALL
NOP 0
FC
A
JNB
CALL
A
=
I
_001
FC
BR
Q
0.1
DIV_I
EN
ENO
1
5.0
Q 5.1
=
STL
FB
without parameters
with parameters
CALL FC1
UC FC1
CC FC1
CALL FC2
Par1: ...
Par2: ...
Par3: ...
UC FB1
CC FB1
FC1
( CALL )
LAD
FC2
FC1
EN
DB3
FB2
ENO
EN
not available
ENO
Par1
Par2
EN
Par1
Par3
Par2
FC1
CALL
FBD
EN
EN
Par3
DB3
FC2
FC1
ENO
FB2
Par3
not available
Par1
Par2
EN
Par1
Par3
ENO
Par2
ENO
ENO
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.22
Statement
L
L
T
L
T
T
Global
Local
Absolute
Symbolic
Static
Parameter
#Number_1
#Number_2
#Maximum_value
Number_1"
MW 40
MW 40
#Number_2
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.23
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_11E.24
CALL FC 10
On_1 :=
On_2 :=
Off
:=
I 0.1
I 0.2
Q 8.0
in
in
out
...
...
A
A
=
...
0.0
0.1
2.0
4.0
FB 5
FC10
On_1
On_2
Off
BOOL
BOOL
BOOL
in
Start
in
Stop
out Motor_on
out Speed
stat ...
Temp...
#On_1
#On_2
#Off
SIMATIC S7
Siemens AG 2006. All rights reserved.
...
A
AN
=
...
Date:
File:
2/8/2012
PRO1_11E.25
DB 5
Start
Stop
Motor_on
Speed
BOOL
BOOL
BOOL
INT
Drive
BOOL
BOOL
BOOL
INT
#Start
#Stop
#Motor_on
FC
FB
OB1
Operating
system
FB
FC
SFC
System Functions
SFB
System Function
Blocks
Other
OBs
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.1
Objectives
Upon completion of the chapter the participant will ...
...
...
...
...
...
...
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.2
Cyclic
program
execution
OB 1
Periodic
program
execution
Event-driven
program
execution
OB 10 to 17
(Time-of-day
interrupts)
OB 30 to 38
(Cyclic interrupts)
OB 20 to 23
(Time-delay interrupts)
OB 80 to 87
OB 40 to 47
(Hardware interrupts)
OB 121, 122
Interrupt OBs
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.3
(Asynchronous errors)
(Synchronous errors)
Error OBs
automatic
manual
S7-300 / 400
S7-300
Power ON STOPRUN
manual
( HW Config)
Power ON
STOPRUN+WRST
S7-400
Execute OB 101
STOPRUN
+ CRST
Execute OB 100
Monitoring time
for hot restart
exceeded ?
Output PIQ
Enable outputs
C
Y
C
L
E
no
Output PIQ
Enable outputs
Read in PII
Execute OB1
C
Y
C
L
E
Output PIQ
SIMATIC S7
Siemens AG 2006. All rights reserved.
STOP
yes
Date:
File:
2/8/2012
PRO1_12E.4
Read in PII
Execute OB1
Output PIQ
CPU 318-2
Output PIQ
Enable outputs
Read in PII
C
Y
C
L
E
SIMATIC S7
Siemens AG 2006. All rights reserved.
Execute OB1
Output PIQ
Date:
File:
2/8/2012
PRO1_12E.5
Such as OB82
(Prio.26) = Error
handling. Executed in
event of wire break at
analog input PIW 352
SIMATIC S7
Siemens AG 2006. All rights reserved.
OB1
is
executed
continuously .....
Such as OB10
(Prio.2) = Time-ofday interrupt.
Executed once a
minute from 9:30
Date:
File:
2/8/2012
PRO1_12E.6
OB Type
Cyclic Program
Time-of-day interrupt
Time-delay interrupt
Cyclic interrupt
Hardware interrupt
Error handling
Priority
1
2
3
12
16
25 / 28
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.7
RUN
OB35
Interval
OB1
OB1
SIMATIC S7
Siemens AG 2006. All rights reserved.
OB35
OB35
Interval
B1
OB1
Interval
OB1
Date:
File:
OB1
2/8/2012
PRO1_12E.8
Prio 12
OB1
B1
Prio 1
CPU
properties
+27648
Upper limit
value
Lower limit
value
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.9
Start event
Priority
4/5
Reserved
6/7
8/9
10 / 11
12 / 13
14 / 15
16 / 17
18 / 19
SIMATIC S7
Siemens AG 2006. All rights reserved.
Start-up request
OB No.
Date:
File:
Month
Hours
Seconds
1 /1000 seconds, weekday
2/8/2012
PRO1_12E.10
DI
DO
I 0.0
L_SYSTEM
I 0.1
Q 4.1
I 0.2
L_MAN
Q 4.2
I 0.3
L_AUTO
Q 4.3
I 0.4
I 0.5
L_Restart_man
Q 4.5
L_Restart_aut
Q 4.6
I 1.0
T_Ackn_Fault
L_Conv_Fault
Q 5.0
I 1.1
S_Fault1
L_Fault1
Q 5.1
I 1.2
S_Fault2
L_Fault2
Q 5.2
I 1.3
S_Fault3
L_Fault3
Q 5.3
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.11
Asynchronous Errors
Type of error
Example
OB
Priority
Time error
OB80
25
OB81
Diagnostic interrupt
OB82
Insert / remove
interrupt
OB83
OB84
OB85
Rack fault
OB86
Communication error
OB87
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.12
25 / 28
CPU
properties
Wirebreak
+27648
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.13
Synchronous Errors
Type of Error
Example
OB
Programming error
OB121
Access error
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.14
OB122
Priority
Same as that
of the OB
interrupted
as a result of
the error
PROFIBUS slave
failed
SF
BF
DC5V
Asynchronous error
Continuous light
Flashing light
Continuous light
RUN
STOP
RUN
STOP
MRES
...without OB 86
SIEMENS
SF
BF
DC5V
PROFIBUS slave
failed
Asynchronous error
RUN
STOP
Continuous light
Flashing light
Continuous light
RUN
STOP
MRES
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.15
High Level
Level
Transmitter
Low Level
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.1
Objectives
Upon completion of the module the participant will ...
...
...
...
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.2
Standard
analog signal
Result
memory
MR
module
Sensor
ADC
Transducer
Pressure
Temperature
Flow
Speed
pH value
Viscosity
etc.
Physical
quantity
PIW ...
PIW ...
:::
PIW ...
500mV
1V
5V
10V
20mA
4 to 20mA
etc.
Analog
actuator
SIMATIC S7
Siemens AG 2006. All rights reserved.
DAC
Date:
File:
PQW ...
PQW ...
:::
PQW ...
2/23/2012
PRO1_13E.3
CPU
:
:
:
:
:
:
L PIW 304
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
T PQW 304
:
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.4
Double-click
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.5
SIMATIC S7
Siemens AG 2006. All rights reserved.
SM331
Date:
File:
2/23/2012
PRO1_13E.6
Voltage
such as:
Current
such as:
Resistance
such as:
Temperature
e.g. Pt100 (Standard)
Range
Meas.range
10V
Overflow
Overrange
Rated range
Underrange
Underflow
Units
Meas.range
4 to 20mA
Units
Meas.range Units
0 ...300Ohm
Meas.range
-200...+850C
Units
>= 11.759
32767
>= 22.815
32767
>=352.778
32767
>= 1000.1
32767
11.7589
:
10.0004
32511
:
27649
22.810
:
20.0005
32511
:
27649
352.767
:
300.011
32511
:
27649
1000.0
:
850.1
10000
:
8501
10.00
7.50
:
-7.5
-10.00
27648
20736
:
-20736
-27648
20.000
16.000
:
:
4.000
27648
20736
:
:
0
300.000
225.000
:
:
0.000
27648
20736
:
:
0
850.0
:
:
:
-200.0
8500
:
:
:
-2000
- 10.0004
:
- 11.759
- 27649
:
- 32512
3.9995
:
1.1852
-1
:
- 4864
-1
:
- 4864
- 200.1
:
- 243.0
- 2001
:
- 2430
<= - 11.76
- 32768
<= 1.1845
- 32768
Negative
values
not
possible
- 32768
<= - 243.1
- 32768
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.7
Rack 3
Power
Supply
IM
(Receive)
Rack 2
Rack 1
R
0
Power
Supply
Slot
Power
Supply
Power
Supply
IM
(Receive)
IM
(Receive)
IM
CPU
(Send)
SIMATIC S7
Siemens AG 2006. All rights reserved.
640
to
654
656
to
670
672
to
686
688
to
702
704
to
718
720
to
734
736
to
750
752
to
766
512
to
526
528
to
542
544
to
558
560
to
574
576
to
590
592
to
606
608
to
622
624
to
638
384
to
398
400
to
414
416
to
430
432
to
446
448
to
462
464
to
478
480
to
494
496
to
510
256
to
270
272
to
286
288
to
302
304
to
318
320
to
334
336
to
350
352
to
366
368
to
382
10
Date:
File:
2/23/2012
PRO1_13E.8
11
unipolar (M 0.0 = 0)
bipolar (M 0.0 = 1)
OUT
OUT
HI_LIM = 500.0
HI_LIM = 500.0
LO_LIM = 0.0
0
SIMATIC S7
Siemens AG 2006. All rights reserved.
x x+1
LO_LIM = 0.0
IN
27648
-27648
Date:
File:
2/23/2012
PRO1_13E.9
x x+1
IN
27648
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.10
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.11
AI module
10
0...10V
PIW 304
0...27648
V
AI1
AI2 AO1
-15V...+15V
AO2
AI1
AI2
Weight 0 to 500kg
BCD Display
DO module
0 1
QW 6
0 to 500 kg
Weight Display
for I 0.6 = 1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_13E.12
Troubleshooting
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.1
Troubleshooting
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.2
Objectives
Upon completion of the chapter the participant will ...
...
...
...
...
...
...
...
...
be able to read out the reference data, interpret them and use them
for troubleshooting
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.3
Categories of Errors
Errors Detected by the System
Recording, evaluating and indicating
errors within a PLC
(as a rule: CPU STOP)
Module failure
Short-circuit in signal cables
Scan time overrun
Programming error (accessing a
non-existent block)
Functional Errors
Desired function is either not executed at all
or is not correctly executed
Process fault (sensor/actuator, cable defective)
Logical programming error (not detected
during creation and startup)
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.4
Functional fault:
General Rule: CPU in RUN
(process fault, such as a wire break)
(logical programming error, like a double assignment)
Debugging Tools:
Enable Peripheral Outputs (modify outputs)
Monitor / Modify Variable
Monitor Blocks (Block Status)
Reference Data
- Cross References
- Assignment of I/Q/M/T/C
- Program Structure
- Addresses without Symbols
- Unused Symbols
Regardless of the cause of the error you could use:
Force
Enable Peripheral Outputs
Set Breakpoints
Debugging Tools:
Module Information
- Diagnostic buffer
- I STACK
- B STACK
- L STACK
Hardware Diagnostics
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.5
CPU
Diagnostic
interrupt
Error
OB
Diagnostic
buffer
I/O module
Diagnosticscapable module
detects an error
and generates
a diagnostic
interrupt
System
status list
CPU
messages
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.6
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.7
LAD/STL/FBD Editor
Module Information
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.8
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.9
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.10
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.11
Point of interruption
Point of interruption
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.12
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.13
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.14
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.15
twice
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.16
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.17
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.18
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.19
Trigger point
"Beginning of Scan Cycle"
Monitor / Modify
depending on
Trigger setting
Set
Trigger
Cyclic
program
execution
Trigger point
"Transition to STOP"
Trigger point
"End of Scan Cycle"
PIQ
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.20
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:
2/23/2012
PRO1_14E.21
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.22
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
... or
in running status:
right mouse click
on
2/23/2012
PRO1_14E.23
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.24
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.25
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.26
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.27
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.28
Go To Location
1 x right
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.29
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.30
Assignment of I, Q, M, T, C
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.31
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.32
...see
next page
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.33
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.34
"Force" Variables
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.35
!!!
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.36
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.37
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.38
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.39
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.40
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.41
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.42
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.43
Breakpoint
Next
statement
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_14E.44
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.1
Objectives
Upon completion of the chapter the participant will ...
...
...
...
...
...
...
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.2
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
Block Documentation
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.4
Page Setup
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.5
Print Preview
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.6
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.7
1.
2.
3.
4.
Upload station in PG
Copy program
from CPU to
Memory Card
(only S7-300)
Project archiving
on Memory Card/MMC
(S7-400, S7-300 after 10.02)
Project archiving
on diskette
SIMATIC S7
Siemens AG 2006. All rights reserved.
1.
2.
3.
4.
Date:
File:
2/23/2012
PRO1_15E.8
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.9
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
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
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.
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
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.14
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.15
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.16
Right click
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.17
Project Archiving
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.18
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.19
View / Update
Button
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.20
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.21
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.22
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.23
Load Memory
Data Memory
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.24
Starts transmission
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.25
Select + highlight
particular files
Save where ?
Starts transmission
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/23/2012
PRO1_15E.26
SIMATIC S7
Siemens AG 2005. All rights reserved.
Date:
File:
23.02.2012
PRO1_18E.1
SIMATIC S7
Siemens AG 2005. All rights reserved.
Date:
File:
23.02.2012
PRO1_18E.2
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
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
Hardware Configuration
Profibus Slave
AS-i Master
SIMATIC S7
Siemens AG 2005. All rights reserved.
Date:
File:
23.02.2012
PRO1_18E.5
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