DMC, a Siemens Solution Partner with the most S7 Certified Engineers in the United States, presented insights to people new to Siemens to help avoid common mistakes at the 2011 Siemens Automation Summit. Over the years we have encountered numerous applications written by novices and seen first-hand some of the more common errors made.
2. Page 2 Top Ten Programming Mistakes Made by People New to S7 2011 Automation Summit Title: Top Ten Programming Mistakes Made by People New to S7 Track:#56 Topic: Learn about some of the common problems experienced by people learning S7. Presenter: Tim Jager Company: DMC
6. Areas of Expertise Manufacturing and Automation Intelligence Test and Measurement Custom Software Engineering & Embedded Systems Microsoft SharePoint Consulting Services
30. Top 10 S7 Mistakes #2 Page 21 Using Absolute Address Priority instead of Symbolic
31. Set your Address Priority to Symbolic You Just took the Red pill…. You are on your way down the rabbit hole that leads down the path of true object oriented PLC Programming. Page 22
38. Absolute vs. Symbolic Priority Page 29 In Symbolic Mode the intended logic is maintained The address logic has changed from 0.1 to 0.2 The symbolic logic is maintained
39. Absolute vs. Symbolic Priority Page 30 In Absolute Mode the intended logic is NOT maintained! The Address logic is maintained But the Symbolic logic is totally wrong!
40. Absolute vs. Symbolic Priority Page 31 You don’t have to know where the server lives or it’s IP address. You just need the symbolic name to send an email. So start forgetting about addresses and start thinking about symbolic names. VS. Absolute Address 2222N. Elston Ave Chicago, IL 60614 Symbolic Address tim.jager@dmcinfo.com
43. Traditional Input / Output Mapping Page 34 1. At the beginning of the scan, Each physical input gets mapped to an internal variable… Physical Input Internal Variable
44. Traditional Input / Output Mapping Page 35 1. At the beginning of the scan, Each physical input gets mapped to an internal variable… 2. Now run all of the logic (which references only internal bits)… Internal Variable Internal Variable
45. Traditional Input / Output Mapping Page 36 1. At the beginning of the scan, Each physical input gets mapped to an internal variable… 2. Now run all of the logic (which references only internal bits)… 3. …At the end of the scan, internal “output” bits get mapped to physical outputs Internal Variable Physical Output
46. Page 37 S7 I/O Mapping – Just use the Symbol Table Make sure you are in Symbolic Priority Mode
47. Top 10 S7 Mistakes #4 Page 38 Improper Use of Bit Memory AKA: Mbits