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.
3. Presenter Info
John Sullivan
Senior Project Engineer
Siemens Certified Professional
Professional Engineer- Control Systems
B.S. in Mechanical Engineering
Rose-Hulman Institute of Technology
With DMC since 2009
4. DMC Company Profile
Industries Served:
Automotive
Chemical and Food
Processing
Electronics/Semiconductor
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+
6. MANUFACTURING
AUTOMATION & INTELLIGENCE
PLC Programming
Motion Control
Engineering &
Servo Systems
HMI & SCADA
Expertise
Intelligent Data
& Web Based
Systems
Vision Inspection
Expertise
Robotics
7. TEST & MEASUREMENT AUTOMATION
NI FPGA
LabVIEW
Development
Test Stand Design
Machine Vision
Data Analysis &
Reporting
NI Real-Time
8. CUSTOM SOFTWARE
& HARDWARE DEVELOPMENT
PC Application
Development
Product
Development
Web Application,
iOS, Android &
App Development
Embedded
Design &
Programming
SDK, API
& Driver
Development
Database Systems
25. 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
32. Complete Rewrite
• Pros
• Can use best practices
• IEC631131-3
• Optimization
• Cons
• Existing programmers difficulty
• Typically more time consuming (but not always)
• Lost Legacy Knowledge
33. Selective Rewrite
The best tool for an AB to
Siemens conversion is a
experience person with
expertise in both platforms.
40. 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)
41. • 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)
43. 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
45. What do we rewrite?
• Rewrite
• Motion
• Any repetitive code (and there was lots of it)
• Translate Directly
• State Machine Decision Logic
• Basic Alarm Signals
46. Motion: Servos
• Utilized Open Motion Commands on S7-1516.
• Looks and feels very similar to AB, which was big
customer plus.
49. 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)
63. • 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
64. • 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
B
C
C
65. 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.