dmc siemens automation summit 2014 presentation: extending s7 plc through winac
DESCRIPTION
In this presentation, Alex Krejcie discusses extending S7 PLC through WinAC.TRANSCRIPT
Restricted © Siemens Industry, Inc. 2014 All rights reserved. usa.siemens.com/summit
Automation SummitA User Conference - June 23 – 25, 2014
Restricted © Siemens Industry, Inc. 2014 All rights reserved. usa.siemens.com/summit
Alex KrejcieExtending S7 PLC through WinAC
Presenter InfoAlex Krejcie
Project Engineer
Siemens Certified Professional
M.S. in Mechanical Engineering
University of Illinois in Urbana-Champaign
B.S. in Mechanical Engineering
University of Illinois in Urbana-Champaign
With DMC since 2011
DMC Company Profile
Industries Served:
Automotive
Chemical and Food
Processing
Electronics/Semicondu
ctor
Hydraulics
Laboratory Testing
Machine Tool
Material Handling
Metal Converting
Packaging
Pharmaceutical
Printing & Textiles
Established in 1996, offices in Chicago, Boston & Denver & customers throughout
the world
employees & growing
70+
MANUFACTURINGAUTOMATION & INTELLIGENCE
PLC Programming
Motion Control Engineering &Servo Systems
HMI & SCADA Expertise
Intelligent Data& Web BasedSystems
Vision Inspection Expertise
Robotics
TEST & MEASUREMENT AUTOMATION
NI FPGA
LabVIEW Development
Test Stand Design
Machine Vision
Data Analysis & Reporting
NI Real-Time
CUSTOM SOFTWARE& HARDWARE DEVELOPMENT
PC Application Development
Product Development
Web Application, iOS, Android & App Development
Embedded Design & Programming
SDK, API & Driver Development
Database Systems
MICROSOFT CONSULTING SERVICES
10
10
5
5
INDIVIDUAL CERTIFICATIONS
Agenda
• WinAC Features• WinAC ODK• Advantages and Applications
• Questions?
If your PC can do it, so can your PLC
PLC vs PC
What is WinAC?
What is WinACPC with a PLC heart
Features
Features• STEP 7 V5.x and TIA Portal compatibility
Features• Virtual Panel
FeaturesNanobox
Microbox
Rack Mount
Panel PC
Any standard PC
Features• Profibus/Profinet onboard
Features• Real-time deterministic processing
• Safety Rated (WinAC RTX F)
EN 954-1 -> Cat. 4
IEC 62061 -> SIL 3
EN ISO 13849-1 -> PL e
Features
Features?
Features• Kernel Level Implementation
WinAC ODK
WinAC ODK
WinAC ODK
ODK
CCX - Custom Code eXtension SMX - Shared Memory eXtension CMI - Controller Management Integration
WinAC ODKCMI
• Controller Management Integration (CMI) provides the WinAC control panel functions for PC applications
Functions• Connect to PLC• Check Supported
Features• Get/Set Attributes
• Mode (Run/Stop)• LEDS• AutoStart• Memory Card File
• Register for Changes
WinAC ODKSMX
• Shared Memory eXtension (SMX) exchanges data fast between WinAC and the Windows application
SMX
Pros• Fast!• Simple to Implement• Behaves like I/O
Cons• Limited to 4KB Input and 4KB Output
• Memory is Read-Only and Write-Only
• No Data Consistency
WinAC ODKCCX
• Custom Code eXtension (CCX) calls high-level language routines from the WinAC control program
CCX
Pros• Flexible• Choice of Operation
Synchronously Asynchronously Continuously
• Data Consistency• Access to Data Blocks
Cons• More Complex• Slower
Windows vs Real-Time Core
Windows (dll) Real-Time (rtss/rtdll)
Languages
Windows (dll)• C#• VB• C/C++
Real-Time (rtss/rtdll)• C/C++• Matlab Plugin (C+
+)
Advantages and Applications
Advantages and Applications
Totally Integrated
Device Integration
Database Access
.NET Framework
Web Services
Simplified Development
Totally NOT Integrated
Totally Integrated
Totally Integrated
Device Integration
Device IntegrationUSB devices/converters
• C/C++ rtdll/dll direct to driver
Device IntegrationPCI Cards
• C/C++ logic to device• Fieldbus Cards
• Hilscher, ESD, IXXAT• Data Acquisition
• ADDI-Data, United Electronic Industries, National Instruments
Device IntegrationBluetooth Anki demo
• C# communication logic <-> Bluetooth 4.0 USB dongle
Database AccessC# application with .NET Library or LINQ to SQL
• Log and/or retrieve complex data
• Can replace OPC Server with bridge to database, or HMI plugins
• Multiple databases local and/or remote
• Different management systems (SQL, Oracle, MySQL etc.)
.NET FrameworkWPF/Win Forms/DirectX User Interface• Completely Customizable• Much higher development cost!
.NET FrameworkBackground Services
• WCF (Windows Communication Foundation)• Allows remote connection by other computers/processes
• System and File Access
• Complex Algorithms (math packages)• Lookup Tables• Large Memory Requirements
Web Services• Headless ASP.NET website acting as an HMI• Email Alerts• Access to website APIs (google voice
commands)• Post to your twitter feed or share your
machines status on Facebook!
Simplified development
Wide support of windows drivers and applications
Large knowledgebase of “conventional” programming languages
Simplified developmentEasy conversion between existing projects and examples
Large pool of experienced developers and support
Simplified development
Separation of concerns
“DO_SOMETHING_AWESOME!”
Final ThoughtsDMC collectively has 10,000+ hours of experience working on the WinAC platform.
It’s not the right solution for every project, but for the ones it’s right for, it is so right.
If your PC can do it, so can your PLC…with WinAC!
Questions?
Restricted © Siemens Industry, Inc. 2014 All rights reserved. usa.siemens.com/summit
Alex Krejcie312.255.8757 (ext. 129)[email protected]