DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing...

67
Restricted © Siemens Industry, Inc. 2014 All rights reserved. usa.siemens.com/summit Automation Summit A User Conference - June 23 – 25, 2014

description

In this presentation given at the 2014 Siemens Automation Summit in Orlando, FL, John Sullivan offers Siemens best practices when leveraging existing Rockwell Code. John talks about types of conversions, including Line by Line, Complete Rewrite and Selective Rewrite, as well as specific customer situations, solutions, challenges and benefits.

Transcript of DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing...

Page 1: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Restricted © Siemens Industry, Inc. 2014 All rights reserved. usa.siemens.com/summit

Automation SummitA User Conference - June 23 – 25, 2014

Page 2: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Restricted © Siemens Industry, Inc. 2014 All rights reserved. usa.siemens.com/summit

John SullivanUtilizing Siemens Best Practices When Leveraging Existing Rockwell Code

Page 3: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Presenter InfoJohn Sullivan

Senior Project Engineer

Siemens Certified ProfessionalProfessional Engineer- Control Systems

B.S. in Mechanical Engineering

Rose-Hulman Institute of Technology

With DMC since 2009

Page 4: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

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+

Tim Jager
Do we have a slide that shows this information more graphically?
Page 5: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Areas of Expertise

Page 6: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

MANUFACTURINGAUTOMATION & INTELLIGENCE

PLC Programming

Motion Control Engineering &Servo Systems

HMI & SCADA Expertise

Intelligent Data& Web BasedSystems

Vision Inspection Expertise

Robotics

Page 7: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

TEST & MEASUREMENT AUTOMATION

NI FPGA

LabVIEW Development

Test Stand Design

Machine Vision

Data Analysis & Reporting

NI Real-Time

Page 8: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

CUSTOM SOFTWARE& HARDWARE DEVELOPMENT

PC Application Development

Product Development

Web Application, iOS, Android & App Development

Embedded Design & Programming

SDK, API & Driver Development

Database Systems

Page 9: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

MICROSOFT CONSULTING SERVICES

10

10

5

5

INDIVIDUAL CERTIFICATIONS

Page 10: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Agenda

• Why Convert?• Types of Conversions

• Line by Line• Complete Rewrite• Selective Rewrite

• Specific Customer Situation

• Solution• Challenges• Benefits• Questions

Page 11: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Why Convert?

• Expand to new markets• Hardware/software

improvements • Match company

standards• Spec Job

Page 12: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

How to Convert from Rockwell to Siemens?

Page 13: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

How to Convert

from Rockwell

to Siemens

• Line by Line Conversion

• Complete Rewrite• Selective Rewrite

Page 14: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line

Page 15: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line: Pros

Straight Forward

Page 16: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line: Pros

Easy for Current

Programmers

Page 17: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line: Pros

Siemens ToolOn the Way

Page 18: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line: Cons

Breaks Best Practices

Page 19: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line: Cons

Usually Not Most Efficient

Page 20: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line: Cons

Potential for Weird Hang-

ups

Page 21: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line

Page 22: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line

Page 23: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line

Page 24: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line

Page 25: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Line by Line

• Pros• Straight Forward• Siemens Tool in

development• Easy for customers

familiar with current AB software to navigate

• Cons• Breaks Siemens

programming best practices

• Not most efficient for Siemens system

• Potential Hang-ups

Page 26: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Complete Rewrite: Pros

Best Practices

Page 27: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Complete Rewrite: Pros

IEC61131-3

Page 28: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Complete Rewrite: Pros

Optimization

Page 29: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Complete Rewrite: Cons

Existing Programmer

s

Page 30: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Complete Rewrite: Cons

Time

Page 31: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Complete Rewrite: Cons

Lost Legacy Knowledge

Page 32: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Complete Rewrite• Pros

• Can use best practices• IEC631131-3• Optimization

• Cons• Existing programmers difficulty• Typically more time consuming (but not

always)• Lost Legacy Knowledge

Page 33: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite

The best tool for an AB to Siemens conversion is a experience person with expertise in both platforms.

Page 34: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite: Pros

Best Practices

Page 35: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite: Pros

Leverage existing

knowledge

Page 36: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite: Pros

Engineer Ramp-up

Page 37: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite: Cons

Requires higher level

design

Page 38: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite: Cons

Missing some improvements

Page 39: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite: Cons

Time

Page 40: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite• Pros

• Implements some best practices• Leverages some of existing code• Some familiarity to existing code.

• Cons• Requires some higher level design to

pick and choose what to reuse• Some instances of not using best practices• Typically more time consuming (but not

always)

Page 41: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

• Line By Line• Project is small and stable

(relatively few changes over time)• Complete Rewrite

• Customer is moving all machines to Siemens;investing training time to use Siemens hardware the best possible way.

• Anticipating regular hardware and software changes and machine upgrades

• Selective Rewrite• Customer has a lot of time invested in

existing code• Customer wants to maintain both lines

simultaneously.

How to Pick (guidelines)

Page 42: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Project Details

Page 43: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Customer Situation• OEM with existing equipment they had been

developing in Rockwell for 20+ years• Wanted capability to sell to growing Siemens

business in Europe and the Americas.• Had a large team of talented engineers very

familiar with AB, but new to Siemens

• Wanted to ensure best practices with Siemens hardware and easy maintenance for an AB and Siemens line

Page 44: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Selective Rewrite

Page 45: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

What do we rewrite?• Rewrite

• Motion• Any repetitive code (and there was lots of it)

• Translate Directly• State Machine Decision Logic• Basic Alarm Signals

Page 46: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Motion: Servos• Utilized Open Motion Commands on S7-1516.• Looks and feels very similar to AB, which was

big customer plus.

Page 47: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Motion: Servos

Page 48: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Motion: Servos

Page 49: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Motion: VFDs• VFDs

• Utilized Telegram messaging.• Wrapped up Telegram messaging inside FB

to make change easier• Used because customer had more servos

and VFDs (axes) than the 1516 allowed (and didn’t want to upgrade PLCs)

Page 50: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Repetitive Code• Biggest opportunity for success• Keep in mind IEC 61131-3

Page 51: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Repetitive Code AB Sensor

Page 52: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Repetitive Code AB Sensor

Page 53: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

New Code- Siemens Sensor FB

Page 54: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

New Code- Siemens Sensor FB

Page 55: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Repetitive Code AB Cylinder

Page 56: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Repetitive Code AB Cylinder

Page 57: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Repetitive Code AB Cylinder

Page 58: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Repetitive Code AB Cylinder

Page 59: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

New Code- Siemens Cylinder FB

Page 60: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Challenges

• Comments• Open Motion Number

of Axes• Keeping Code

Structure

Page 61: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Comments

Page 62: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Comments

Page 63: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

• Customer wanted to use a 1516 for cost and capability.

• 1516 is limited to 20 Axes• Solved issue by using Open Motion Commands

for servos, and telegram messaging for VFDs running in speed control.

Open Motion Limits

Page 64: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

• Due to the copy paste nature of the previous AB code they had arranged things different.

• A cylinder had logic in 3-4 different places.• Solution was to make 2 different FBs. One for

control and one for alarms to mirror code placement as best as possible.

Keeping Code Structure

A A

B

BC

Page 65: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Project Benefits

For the customer…Leveraged 20 years of code and development

Eased training for field service team

Easy for customer to make changes to both product lines

General benefit…Allowed us to use the best features of the Siemens hardware

Eased the customer into the new software which improved their impression.

Page 66: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Final Thoughts & Questions?

Page 67: DMC Siemens Automation Summit 2014 Presentation: Siemens Best Practices When Leveraging Existing Rockwell Code

Restricted © Siemens Industry, Inc. 2014 All rights reserved. usa.siemens.com/summit

John [email protected] www.dmcinfo.com

Connect: CNE