Presenter - Ryan Landwehr
The release of Totally Integrated Automation Portal V14 made significant improvements to SIMATIC STEP 7 Safety. We will demonstrate how these new features can decrease development time and significantly decrease wiring while maintaining or improving the SIL or PL.
This presentation will discuss how to use these new features, including S7-1200F PROFIsafe communication and distributed safety using F-I-Device communication. We will also explore ways to program your Siemens safety PLC effectively and efficiently through reusable safety function blocks, PLC data types, and built-in Siemens safety blocks.
5 Tips for Using TIA Portal V14 to Decrease Safety Development Time
1. 5 Tips for Using TIA Portal V14 to
Decrease Safety Development
Time
Automation Summit
Boca Raton, FL, June 26-28, 2017
2. DMC Overview
Established in 1996, DMC serves customers worldwide from offices in
Chicago, Boston, Denver, Houston, New York, and St. Louis
employees & growing
120+
5. Automotive Chemical & Food Processing
Consumer Goods Defense Contracting Energy & Utilities Food & Beverage
Packaging Pharmaceutical Printing & Textiles Semiconductor
Special Machinery Telecommunications Test & Measurement
Industries Served
6. Presenter Info
• B.S. in Electrical Engineering
• Rose Hulman Institute of Technology
• With DMC since 2014
• Siemens Certified Professional
• Teaches Rockwell to Siemens Training classes across US.
Ryan Landwehr
Project Engineer (Houston)
7. 1. Converting to V14 Safety – How and Why?
2. Shared Device with Safety
3. Reusable Function Blocks and PLC data types
4. Safety I-Device Communication
5. Safety Program Do’s & Don’t’s
8. 1200F (FW4.2) – distributed safety over
profinet
Converting to V14 Safety – Why?
9. 1500F – CPUs with 2 Ethernet NICs and FW2.0+ can have
two Profinet networks (both safety capable)
Converting to V14 Safety – Why?
10. Safety Version 2.0 can greatly reduce compile time
Converting to V14 Safety – Why?
11. Better Online/Offline Comparison
• V13 SP1 comparison based on timestamp
• V14 comparison based on configurable criteria
Converting to V14 Safety – Why?
12. 1. Update CPU Firmware to V2.0
2. Update Safety System version to V2.0
3. Clean up system generated objects
4. Compile
Converting to V14 Safety – How?
1
2
3
13. • Safety Signature will change, but functionality will not
• Acceptance test is not required
Converting to V14 Safety – What Changed?
14. 1. Converting to V14 Safety – How and Why?
2. Shared Device with Safety
3. Reusable Function Blocks and PLC data types
4. Safety I-Device Communication
5. Safety Program Do’s & Don’t’s
15. Reduce your wiring effort, hardware cost, and overall
footprint
Shared Device with Safety
16. Limitation – Shared Device requires two separate TIA
Portal Projects HW Configs
Shared Device with Safety
Safety PLC Project Standard PLC Project
17. Configuration – Safety PLC
Interface module unassigned
for both projects
Safety Modules
Non-Safety Modules
18. Configuration – Standard PLC
Interface module unassigned
for both projects
Safety Modules
Non-Safety Modules
19. Typical Use Cases:
• One F-CPU, one Standard CPU sharing one (or
multiple) ET200 Remote IO Racks
• One F-CPU, one Standard CPU sharing a G120
• Implementing Safety in a motion project: one F-CPU,
one Simotion Controller
Shared Device Notes
20. 1. Converting to V14 Safety – How and Why?
2. Shared Device with Safety
3. Reusable Function Blocks and PLC data types
4. Safety I-Device Communication
5. Safety Program Do’s & Don’t’s
21. F-suitable PLC Data Type
• Just like a standard PLC Data Type but can be used in
safety program
• Example – Drive Safety Telegram
Reusable Function Blocks and PLC Data Types
24. Reusable Function Blocks and PLC Data Types
Tips for using F-Function Blocks
• Use them for repetitive logic, in the same manner you
would use a standard Function Block
• Use built-in FB’s whenever applicable
28. 1. Converting to V14 Safety – How and Why?
2. Shared Device with Safety
3. Reusable Function Blocks and PLC data types
4. Safety I-Device Communication
5. Safety Program Do’s & Don’t’s
35. Safety I-Device Communication
Same Project Different Projects
F-I-Device F-I-Device via
GSDML
F-I-Device via
Proxy PLC
S7-300 Yes Yes Yes
S7-1200/1500 Yes No Yes
Shared Device
S7-300 Yes
S7-1200/1500 No
Failsafe I-Device Compatibility
Failsafe Shared I-Device Compatibility
36. 1. Converting to V14 Safety – How and Why?
2. Shared Device with Safety
3. Reusable Function Blocks and PLC data types
4. Safety I-Device Communication
5. Safety Program Do’s & Don’t’s
37. DO limit use of Safety Timers
• Safety time blocks (F-TP, F-TON, F-TOF) require
additional code in the compiled program
• Adding OR deleting time processing blocks increases
compile time
Safety Program Do’s & Don’t‘s
38. DO Limit Nested Global Data Use, DO Utilize block interfaces
• Global accesses on failsafe data need codes in each block with
access on the failsafe data and it’s calls. The deeper the calling
level, the more code is generated.
Safety Program Do’s & Don’t‘s
TL;DR – Use block interfaces instead
of nested global accesses
39. DO use a coupler DB to share signals between standard and safety
programs
• Without this, small changes in standard program can cause a
safety program compilation (STOP mode download)
Safety Program Do’s & Don’t‘s
40. DO NOT use system clock bits in safety program
• System clock timers run asynchronously and can
change in between standard and coded processing,
resulting in a safety fault
• If needed, map to a Global DB
Safety Program Do’s & Don’t‘s
41. DO NOT use M-bits in the safety program.
• You can read/write standard datablocks that are read
in the safety program so there is no reason to do this
anymore
• Use M-bits for debugging operations, not permanent
logic
Safety Program Do’s & Don’t‘s
M
42. DO use AlwaysTRUE and AlwaysFALSE system memory
bits in safety program
• These are valid to use in the safety program.
• Can also map them to local memory if desired
Safety Program Do’s & Don’t‘s
43. DO set your F-Destination Addresses
• Need to be set in order to function properly
• Do NOT throw away the coding element (little piece
of plastic)
Safety Program Do’s & Don’t‘s
44. DO perform regular program backups via webserver
Safety Program Do’s & Don’t‘s
46. DO
• Use block interfaces instead of global data access
• Use Coupler DBs
• Use built-in AlwaysFALSE/AlwaysTRUE
• Assign F-Destination Address
• Keep it simple
DON’T
• Use F-Timers unless necessary
• Use M-memory unless necessary
• Use system clock byte in safety program EVER
Do’s and Don’t’s Recap
47. 1. Converting to V14 Safety – How and Why?
2. Shared Device with Safety
3. Reusable Function Blocks and PLC data types
4. Safety I-Device Communication
5. Safety Program Do’s & Don’t’s
We are Siemens Solutions partners with the Factory Automation Group and with WinCC OA and as WinCC Specialists.
We are certified with the Control Systems Integrators Association.
Here are some of DMC’s customers
Our diverse experience in technology, industry and processes allows us to bring best practices from many areas. We deliver solutions not available from singularly focused organizations.
Our experience is broad and deep. We have a proven track record in a wide range of industries.
That’s a lot about DMC and myself, how about y’all? How many of you have programmed a safety PLC before? Never even heard of one?
How many integrators do we have here? End users? Siemens?
Hopefully there’s a little something for everyone here, feel free to ask questions along the way and I’ll try to tailor this presentation towards what y’all want to know.
Going to keep this at a high level, if anyone wants more detail please come see me afterwards
Tip #1!
The next tip we’re going to talk about is…
NOTE: this requires two HW configurations
If you saw the LSI presentation yesterday, they used this to cut their commissioning and development time down by working independently in parallel
NOTE: this requires two projects. This could also be two safety PLCs, or even two standard PLCs.
Both Remote IO instances should have the same IP address and profinet name
In the LSI project they assigned the Profinet interface to the controlling PLC…seems like this is not as important
If you saw LSI’s, you’ll already be familiar with one of the typical use cases
Talk about Wrigley sheeting machine…Simotion controller, F-CPU
Complex motion application, multiple real and virtual axes, gearing and camming
The next tip we’re going to talk about is…
Built-in FB’s for Estops, Two Hand Enable PBs, Muting, 1oo2 DI Evaluation, Feedback monitoring (motor starters), Safety Doors, and Ack Global
Talk about rewriting AIT’s safety program from scratch, 50 lines of code & multiple JMP/LBL statements shrunk to 15 lines
I
E_STOP – NC Signals
ACK_NEC – 1=positive edge on ACK/0=no ACK needed
ACK – Reset input
TIME_DEL – delay before Q_DELAY turns off
Q
Q drops instantly
Q_DELAY drops after time delay
ACK_REQ ready to be acknowledged
Does Q match inverse of FEEDBACK, typically used for motor starters
The next tip we’re going to talk about is…
Cannot currently use Export GSD or Shared Device with failsafe communication, this is due to the F-CD type of transfer area, but presumably this is coming
NOTE: make sure our telegram matches our RCVDP/SENDDP blocks, also note that we swapped the order of the DP_DP_IDs
NOTE: make sure our telegram matches our RCVDP/SENDDP blocks, also note that we swapped the order of the DP_DP_IDs
This limitation is mostly due to extra overhead with the F-CD telegram configuration. I believe this feature is coming, but it’s not here yet so we need to be aware of it