siemens open library- summit 2016

73
Faster Development Using the Siemens Open Library Johnathan Sullivan – Connect ID 7893 usa.siemens.com/summit Unrestricted © Siemens 2016

Upload: dmc-inc

Post on 08-Apr-2017

488 views

Category:

Engineering


8 download

TRANSCRIPT

Page 1: Siemens Open Library- Summit 2016

Faster Development Using the Siemens Open LibraryJohnathan Sullivan – Connect ID 7893

usa.siemens.com/summitUnrestricted © Siemens 2016

Page 2: Siemens Open Library- Summit 2016

Agenda

• DMC Overview• What is a Portal Library• What is in the Siemens

Open Library• How Does it Work• Success Story• Making

Changes/Contributing• Questions

Page 3: Siemens Open Library- Summit 2016

DMC Company Profile

Established in 1996, offices in Chicago, Denver, Boston, Houston, and New York

Cityemployees &

growing

100+

Tim Jager
Do we have a slide that shows this information more graphically?
Page 4: Siemens Open Library- Summit 2016

Automotive Chemical & Food

Processing

Consumer Goods Defense Contracting Energy & Utilities Food

& Beverage Packaging Pharmaceutical Printing & Textiles

Semiconductor

Special Machinery Telecommunications Test & Measurement

Industries Served

Page 5: Siemens Open Library- Summit 2016

Presenter Info

• B.S. in Mechanical Engineering – Rose Hulman Institute of Technology

• With DMC since 2009• Relocated to Denver in August of 2014 with 3 other engineers.

• Siemens Certified Professional• Control Systems PE• Teaches Rockwell to Siemens Training classes

John SullivanProject Director (Denver)

Page 6: Siemens Open Library- Summit 2016

PortalLibraries

Page 7: Siemens Open Library- Summit 2016

What is Included

Page 8: Siemens Open Library- Summit 2016

• Types• Version controlled,

dependency linked, instantiable items

What is Included

Page 9: Siemens Open Library- Summit 2016

• Types• Version controlled,

dependency linked, instantiable items

• FBs, FCs, UDTs, screens, faceplates, scripts, others

What is Included

Page 10: Siemens Open Library- Summit 2016

• Types• Version controlled,

dependency linked, instantiable items

• FBs, FCs, UDTs, screens, faceplates, scripts, others

• Master Copies• Copies of project items.

Not versioned, no dependencies, etc.

What is Included

Page 11: Siemens Open Library- Summit 2016

• Types• Version controlled, dependency

linked, instantiable items• FBs, FCs, UDTs, screens,

faceplates, scripts, others• Master Copies

• Copies of project items. Not versioned, no dependencies, etc.

• Anything in your project (Anything from Types, PLCs, Hardware configuration, tag tables, and more)

What is Included

Page 12: Siemens Open Library- Summit 2016

Siemens Global

Libraries

Page 13: Siemens Open Library- Summit 2016

• Several built in global Libraries• Lots focused on the HMI• Additional Motion Functions• Most use Master Copies

Siemens Global Libraries

Page 14: Siemens Open Library- Summit 2016

Project vs

GlobalLibraries

Page 15: Siemens Open Library- Summit 2016

Project vs Global

Page 16: Siemens Open Library- Summit 2016

Project

Page 17: Siemens Open Library- Summit 2016

Project• Unique to every project

Page 18: Siemens Open Library- Summit 2016

Project• Unique to every project• Holds types and master

copies that are only viewable in that project

Page 19: Siemens Open Library- Summit 2016

Project• Unique to every project• Holds types and master

copies that are only viewable in that project

• Every type in your project is in your project library.

Page 20: Siemens Open Library- Summit 2016

Project• Unique to every project• Holds types and master

copies that are only viewable in that project

• Every type in your project is in your project library.

• Project items (types) must be instantiated from here

Page 21: Siemens Open Library- Summit 2016

Project• Unique to every project• Holds types and master copies

that are only viewable in that project

• Every type in your project is in your project library.

• Project items (types) must be instantiated from here

• Can contain items from multiple global projects

Page 22: Siemens Open Library- Summit 2016

Global

Page 23: Siemens Open Library- Summit 2016

Global• Can be opened and viewed

by any project

Page 24: Siemens Open Library- Summit 2016

Global• Can be opened and viewed

by any project • Can be archived (.zal13 file)

Page 25: Siemens Open Library- Summit 2016

Global• Can be opened and viewed

by any project • Can be archived (.zal13 file)• Cannot instantiate types

directly (except HMI)

Page 26: Siemens Open Library- Summit 2016

Global• Can be opened and viewed

by any project • Can be archived (.zal13 file)• Cannot instantiate types

directly (except HMI)• Everything brought into

project from here is copied into the project library.

Page 27: Siemens Open Library- Summit 2016

Siemens Open

Library

Page 28: Siemens Open Library- Summit 2016

What is it?

Page 29: Siemens Open Library- Summit 2016

• Developed by DMC over many years

What is it?

Page 30: Siemens Open Library- Summit 2016

• Developed by DMC over many years

• Collaboration with Siemens to release it

What is it?

&

Page 31: Siemens Open Library- Summit 2016

• Developed by DMC over many years

• Collaboration with Siemens to release it

• Collection of standard objects to speed development

What is it?

Page 32: Siemens Open Library- Summit 2016

• Developed by DMC over many years

• Collaboration with Siemens to release it

• Collection of standard objects to speed development

• Available to anyone under and Open Source License (Modify, Redistribute, Sell)

What is it?

Page 33: Siemens Open Library- Summit 2016

What is Included

Page 34: Siemens Open Library- Summit 2016

• Library Objects• Function Block• User Defined

Type• Pop-up

Faceplate• Icon Faceplate

What is Included

Page 35: Siemens Open Library- Summit 2016

• Library Objects

• Documentation

What is Included

Page 36: Siemens Open Library- Summit 2016

• Library Objects

• Documentation

• Example Project

What is Included

Page 37: Siemens Open Library- Summit 2016

• Library Objects

• Documentation

• Example Project

• Excel Macro for Alarm Generation

What is Included

Page 38: Siemens Open Library- Summit 2016

Motor Control:• G Series VFD Control –

fbVFD_GSeries

Which Blocks

Page 39: Siemens Open Library- Summit 2016

Motor Control:• G Series VFD Control –

fbVFD_GSeries• Analog VFD Control –

fbVFD_Analog

Which Blocks

Page 40: Siemens Open Library- Summit 2016

Motor Control:• G Series VFD Control –

fbVFD_GSeries• Analog VFD Control –

fbVFD_Analog• Digital Single Speed Motor –

fbMotor_Reversing

Which Blocks

Page 41: Siemens Open Library- Summit 2016

Motor Control:• G Series VFD Control –

fbVFD_GSeries• Analog VFD Control –

fbVFD_Analog• Digital Single Speed Motor –

fbMotor_Reversing• Simocode Pro V Starter –

fbMotor_ProV (coming soon)• 3RW Starter – fbMotor_3RW

(coming soon)

Which Blocks

Page 42: Siemens Open Library- Summit 2016

Motor Control:• G Series VFD Control –

fbVFD_GSeries• Analog VFD Control –

fbVFD_Analog• Digital Single Speed Motor –

fbMotor_Reversing• Simocode Pro V Starter –

fbMotor_ProV (coming soon)• 3RW Starter – fbMotor_3RW

(coming soon)

Valve Control:• Two State Solenoid Valve –

fbValve_Solenoid

Which Blocks

Page 43: Siemens Open Library- Summit 2016

Motor Control:• G Series VFD Control –

fbVFD_GSeries• Analog VFD Control –

fbVFD_Analog• Digital Single Speed Motor –

fbMotor_Reversing• Simocode Pro V Starter –

fbMotor_ProV (coming soon)• 3RW Starter – fbMotor_3RW

(coming soon)

Valve Control:• Two State Solenoid Valve –

fbValve_Solenoid• Analog Valve – fbValve_Analog

Which Blocks

Page 44: Siemens Open Library- Summit 2016

Which BlocksInputs/Ouputs• Analog Input with Scaling and

Alarms – fbIO_AnalogInput

Page 45: Siemens Open Library- Summit 2016

Which BlocksInputs/Ouputs• Analog Input with Scaling and

Alarms – fbIO_AnalogInput• Analog Output with Scaling –

fbIO_AnalogOutput

Page 46: Siemens Open Library- Summit 2016

Which BlocksInputs/Ouputs• Analog Input with Scaling and

Alarms – fbIO_AnalogInput• Analog Output with Scaling –

fbIO_AnalogOutput

System Control• Interlock Function Block -

fbInterlock

Page 47: Siemens Open Library- Summit 2016

Which BlocksInputs/Ouputs• Analog Input with Scaling and

Alarms – fbIO_AnalogInput• Analog Output with Scaling –

fbIO_AnalogOutput

System Control• Interlock Function Block -

fbInterlock• PID Interface –

fbPID_CompactInterface

Page 48: Siemens Open Library- Summit 2016

Which BlocksInputs/Ouputs• Analog Input with Scaling and

Alarms – fbIO_AnalogInput• Analog Output with Scaling –

fbIO_AnalogOutput

System Control• Interlock Function Block -

fbInterlock• PID Interface –

fbPID_CompactInterface• Standard Alarm Interface -

fbAlarmWarning

Page 49: Siemens Open Library- Summit 2016

Motor Control:• G Series VFD Control –

fbVFD_GSeries• Analog VFD Control –

fbVFD_Analog• Digital Single Speed Motor –

fbMotor_Reversing• Simocode Pro V Starter –

fbMotor_ProV (coming soon)• 3RW Starter – fbMotor_3RW

(coming soon)

Valve Control:• Two State Solenoid Valve –

fbValve_Solenoid• Analog Valve – fbValve_Analog

Which BlocksInputs/Ouputs• Analog Input with Scaling and

Alarms – fbIO_AnalogInput• Analog Output with Scaling –

fbIO_AnalogOutput

System Control• Interlock Function Block -

fbInterlock• PID Interface –

fbPID_CompactInterface• Standard Alarm Interface -

fbAlarmWarning

Page 50: Siemens Open Library- Summit 2016

• Download at OpenPLCLibrary.com

• Contribute by emailing it to [email protected]

• Report issues to same email address

Where is it?

Page 51: Siemens Open Library- Summit 2016

Success Story

Page 52: Siemens Open Library- Summit 2016

• Customer• Chocolate

Manufacturer• Pumping Butter!

• Developer• DMC Engineer with

<1 year experience• Limited oversight

from Senior Engineer

Who

Page 53: Siemens Open Library- Summit 2016

• Awesome 22in HMIResults

Page 54: Siemens Open Library- Summit 2016

• Awesome 22in HMI• Modified Library to work

with continuous travel valves• Changed PLC logic, but

no need to change HMI

Results

Page 55: Siemens Open Library- Summit 2016

• Awesome 22in HMI• Modified Library to work with

continuous travel valves• Manual Control Right Away

• Needed something very fast

• Mapping IO to Function blocks and HMI, allowed customer to get manual control.

Results

Page 56: Siemens Open Library- Summit 2016

• Awesome 22in HMI• Modified Library to work with

continuous travel valves• Manual Control Right Away• New Engineer Trained

• Had limited support due to tight timeline

• Documentation allowed engineer with basic PLC knowledge to learn best practices

Results

Page 57: Siemens Open Library- Summit 2016

Making Changes & Contributi

ng

Page 58: Siemens Open Library- Summit 2016

• Just do it!• If you find a bug or develop something you can

share with others, email [email protected]

• Make changes as needed for any project and contribute as possible

• The goal is to improve the entire community together.

How/when to edit the Open Library

Page 59: Siemens Open Library- Summit 2016

Summary

• Portal Libraries are great• Siemens Open Library is

• Free• Helpful• Editable• Improved by you

• Get it here: OpenPLCLibrary.com

Page 60: Siemens Open Library- Summit 2016

John Sullivan- Connect ID [email protected]

Page 61: Siemens Open Library- Summit 2016

• By Type (Data Types, Faceplates, PLC Type)

• Open to changes• Will have an undocumented

folder, which will contain all of DMC Lib

Open Library Organization

Page 62: Siemens Open Library- Summit 2016

• Edit DMC Lib block• Change type to Open Lib reference block• Release the version

Resolving Duplicates

Page 63: Siemens Open Library- Summit 2016

Master Copies

• Almost all project items can be saved

• No dependencies means that things can break easily

• Should only be used for items that cannot be types

Page 64: Siemens Open Library- Summit 2016

Project:• Unique to every project• Holds types and master

copies that are only viewable in that project

• Every type in your project is in your project library. The reverse is not necessarily true.

• Project items (types) must be instantiated from here

• Can contain items from multiple global projects

Project Library vs. Global Libraries Global:

• Can be opened and viewed by any project (only 1 at a time)

• Can be archived to a .zal13 archive

• Cannot instantiate types directly

Page 65: Siemens Open Library- Summit 2016

• Changes made in either project or library can be quickly sync’d

• Updates to your project library automatically update all links to blocks in your project

Updating project/global libraries

Page 66: Siemens Open Library- Summit 2016

• You can view what the dependencies are (both directions)

• View by version number• View instances in the project• Clean up library/harmonize project

Library management

Page 67: Siemens Open Library- Summit 2016

• Allows you to assign a new version to a block

• Can’t think of a good use case for this. High risk for messing up dependencies

• Things this does:• Assigns new version number• Deletes older version in project• Updates all references in

project to new version

Assign version…

Page 68: Siemens Open Library- Summit 2016

• Need to have a instance in your project. It will ask you which instance to use if you edit from the project library

• Editing from your PLC block and your project library are the same

Block editing

Page 69: Siemens Open Library- Summit 2016

Faceplate editing

Page 70: Siemens Open Library- Summit 2016

Releasing a new version

Page 71: Siemens Open Library- Summit 2016

• This part of the library is for reference only• Created by auto-upgrading a Simatic Manager

project. Blocks cannot be trusted.• Try everything else before using anything in here• Exceptions:

• Global tag table• Pre-made DBs

DMC Library - Master copies

Page 72: Siemens Open Library- Summit 2016

• Most all items and versions are tested• Still need to be aware that these are new blocks

(to Portal)• If you find a bug, please report/fix it ASAP

• Version 1.0 = old DMC library version with slight upgrades

• Version 1.5 – adds HMI “status” INT that allows for multiple colors on Siemens HMIs

DMC Library - Types

Page 73: Siemens Open Library- Summit 2016

Global Library Properties