Orlando, FL
Navigating the world of automation
Page 2
Page 3
Company Profile
Based In
Based In
Chicago
Chicago
but work
but work
Globally
Globally
DMC has the highest number of
DMC has the highest number of
S7 certified engineers
S7 certified engineers
Since 1996
30 Employees
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Our customers
Areas of Expertise
Custom
Test
Manufacturing
and
Software
Measurement
and
Engineering
Automation
& Embedded
Intelligence
Microsoft
SharePoint
Consulting
ServicesSystems
S7-300
Standardized code base
Deployment at multiple facilities
Mixing/batching control
Recipe management
Web-based reporting system
S7 400 PLCs
WinCC Flex HMIs
Standardized code base
User Configurable
JIT - Lean Manufacturing
Deployment at multiple facilities
US Navy LCS-1
Littoral Combat Ship
S7 400H Redundant PLC
Mission Critical Logic
Presenter Info
Tim Jager
Project Director at DMC
Mechanical Engineer (University of Illinois)
Licensed Professional Engineer in Illinois
With DMC since 1999
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Top 10 S7 Mistakes
#1
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
Page 18
Page 19
Page 20
Top 10 S7 Mistakes
#2
Using Absolute
Address Priority
instead of Symbolic
Page 21
Page 22
DB1 dbGlobals
Page 23
DB1 dbGlobals
Address:
Symbol Name:
DB1.DBX0.0
dbGlobals.bStart
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Page 24
Page 25
Address Logic
Symbolic Logic
Page 26
Address Logic
Symbolic Logic
Page 27
Page 28
The address
address logic
logic has
has
The
changed from
from 0.1
0.1 to
to 0.2
0.2
changed
The symbolic
symbolic logic
logic is
is
The
maintained
maintained
Page 29
The Address
Address logic
logic is
is
The
maintained
maintained
But the
the Symbolic
Symbolic logic
logic is
is
But
totally wrong!
wrong!
totally
Page 30
VS.
Absolute Address
Symbolic Address
tim.jager@dmcinfo.com
Chicago, IL 60614
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Page 31
Top 10 S7 Mistakes
#3
I/O Mapping
Page 32
Page 33
Physical Input
Internal Variable
Page 34
Internal Variable
Internal Variable
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Page 35
Page 37
Top 10 S7 Mistakes
#4
Page 38
MBits
M0.0 M0.7
M1.0 M1.7
M2.0 M2.7
M2.0 M2.7
Page 39
M0.0
M0.1
M0.2
M0.3
M0.4
M0.5
M0.6
M0.7
M1.0
M1.1
M1.2
M1.3
M1.4
M1.5
M1.6
M1.7
M2.0
M2.1
M2.2
M2.3
M2.4
M2.5
M2.6
M2.7
M3.0
M3.1
M3.2
M3.3
M3.4
M3.5
M3.6
M3.7
MBits
M0.0 M0.7
M1.0 M1.7
M2.0 M2.7
M2.0 M2.7
Page 40
MBytes
M0.0
M0.1
M0.2
M0.3
M0.4
M0.5
M0.6
M0.7
M1.0
M1.1
M1.2
M1.3
M1.4
M1.5
M1.6
M1.7
M2.0
M2.1
M2.2
M2.3
M2.4
M2.5
M2.6
M2.7
M3.0
M3.1
M3.2
M3.3
M3.4
M3.5
M3.6
M3.7
MB0
MB1
MB2
MB3
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
MBits
M0.0 M0.7
M1.0 M1.7
M2.0 M2.7
M2.0 M2.7
Page 41
MBytes
M0.0
M0.1
M0.2
M0.3
M0.4
M0.5
M0.6
M0.7
M1.0
M1.1
M1.2
M1.3
M1.4
M1.5
M1.6
M1.7
M2.0
M2.1
M2.2
M2.3
M2.4
M2.5
M2.6
M2.7
M3.0
M3.1
M3.2
M3.3
M3.4
M3.5
M3.6
M3.7
MWords
MB0
MW0
MB1
MB2
MW1
MB3
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
MBits
M0.0 M0.7
M1.0 M1.7
M2.0 M2.7
M2.0 M2.7
Page 42
MBytes
M0.0
M0.1
M0.2
M0.3
M0.4
M0.5
M0.6
M0.7
M1.0
M1.1
M1.2
M1.3
M1.4
M1.5
M1.6
M1.7
M2.0
M2.1
M2.2
M2.3
M2.4
M2.5
M2.6
M2.7
M3.0
M3.1
M3.2
M3.3
M3.4
M3.5
M3.6
M3.7
MWords
MDoubleWords
MB0
MW0
MB1
MD0
MB2
MW1
MB3
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Debugging
Quick prototyping / demonstrations
When you absolutely have to!
Page 43
M-Bits
* As long as you promise to put in a permanent fix when the heat is off.
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Page 44
If you use
MBits, make
sure they are
NOT IN USE
already.
Page 45
Page 46
Page 47
Clock Byte
Page 48
Top 10 S7 Mistakes
#5
Not using or
Improperly using the
Clock Byte
Page 49
6
5
1.6 1.0
0.625 1
4
3
0.8 0.5
1.25 2
2
0.4
2.5
1
0.2
5
0
0.1
10
Page 50
Page 51
Clock Byte
Page 52
UDT1 udtClockByte
Page 53
DB1 dbGlobals
Page 54
DB1 dbGlobals
Page 55
Page 56
MB0
dbGlobals.ClockByte
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Page 57
What Happens If
Always_False
Mapped to M0.0
M0.0
M0.1
Always_True
M0.2
Mapped to M0.1
M0.3
M0.4
M0.5
M0.6
M0.7
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Page 58
What Happens If
Always_False
Mapped to M0.0
M0.0
M0.1
Always_True
M0.2
Mapped to M0.1
M0.3
Clock Byte
M0.4
Mapped to MB0
M0.5
M0.6
M0.7
Navigating the world of automation
Copyright Siemens Industry, Inc. 2011. All rights reserved.
Page 59
Page 60
Top 10 S7 Mistakes
#6
Using Uninitialized
Temp Memory
Page 61
Page 62
Page 63
Page 64
Top 10 S7 Mistakes
#7
Page 65
OB1
OB30OB38
Page 66
PID Control
Data Sampling
Page 67
Top 10 S7 Mistakes
#8
Page 68
Timer
T#200ms
IN
PT
ET
178
Custom FB Examples
Motor
Motor
FB
FB
Cylinder
Cylinder
FB
FB
Pump
Pump
FB
FB
Valve
Valve
FB
FB
Barcode
Barcode
Scanner
Scanner
FB
FB
Robot
Robot
Interface
Interface
FB
FB
Label
Label
Printer
Printer
FB
FB
Machine
Machine
Vision
Vision
FB
FB
Top 10 S7 Mistakes
#9
Inconsistent Blocks
Page 76
Page 77
Top 10 S7 Mistakes
Page 78
Top 10 S7 Mistakes
#10
Going it Alone
Page 79
Thank You!
Page 80