2017 siemens automation summit exporting alarm set points ... · unrestricted © siemens 2017 page...

35
Exporting Alarm Set Points in Siemens SIMATIC PCS 7 Jared Romano, Pigler Automation usa.siemens.com/summit Unrestricted © Siemens 2017 2017 Siemens Automation Summit

Upload: others

Post on 28-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Exporting Alarm Set Points inSiemens SIMATIC PCS 7Jared Romano, Pigler Automation

usa.siemens.com/summitUnrestricted © Siemens 2017

2017SiemensAutomationSummit

Page 2: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 2

2017 Automation Summit

Title: EXPORTING ALARM INFORMATION FROM SIEMENS PCS7

Track: Productivity & Efficiency

Presenter: Jared Romano

Company: Pigler Automation

Session #: 5.1

Page 3: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 3

• Pigler Automation, LLC was founded in 2005

• We are a Siemens Solution Partner for PCS7 with 7 Siemens PCS7-Certified Engineers

• Located in Longmont, Colorado -- 30 miles north of Denver

• 10 Employees and Growing

• Industries Served: Chemical, Power and Mining, ….

For more information please visit:

www.piglerautomation.com

Or call : (866) 871-1456

Page 4: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 4

Bio Slide

Jared Romano• B.S. in Electrical Engineering from Colorado State University• Engineering Intern with Pigler Automation, LLC from April 2014 to May 2015• Process Controls Engineer with Pigler Automation, LLC since May 2015• PCS7 Certificed Process Control Engineer

Page 5: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 5

The Challenge:The Cost of Mismanaged Alarms

1. Honeywell Process Solutions - Alarm management and rationalization - Intelligent alarm handling rules - Aonghus Keegan

2. Honeywell Process Solutions - Uop Alarm Help Delivered Directly To Operators For Safer, More Productive Operations

Refining and Chemicals Alarms perOperator per Day

Without Alarm Management 1350

With Alarm Management 250

Typical CostOne missed alarm resulting in aunplanned shutdown

$3.5M

One misunderstood alarm as aresult of operator error leadingto a loss in containment

$15M(Impacted lossesas direct result)

Page 6: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 6

ISA 18.2 Alarm System Management

• In 2003, ISA started developing anAlarm System Managementstandard.

• In 2009 ANSI/ISA-18.2 Managementof Alarm Systems for the ProcessIndustries standard was published

Page 7: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 7

What is Alarm Rationalization?

• A process where a cross-functional team of plant stakeholdersreviews, justifies, and documents that each alarm meets thecriteria for being an alarm as set forth in a company’s alarmphilosophy document.

• Involves defining the attributes of each alarm as well asdocumenting the consequence, response time, and operatoraction.

• The output of rationalization is a Master Alarm Database (alsoknown as an alarm catalog) containing the alarm configurationrequirements

Page 8: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 8

ISA 18.2 Rationalization

ISA 18.2 defines specific requirements for alarmrationalization:

1. Alarm type2. Priority3. Class4. Alarm setpoint value or logical condition5. Operator action6. Consequence of Inaction or incorrect action7. Need for advanced alarm handling techniques if

necessary

Page 9: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 9

What will we cover?

1. Strategies for developing softwareto extract all alarm informationrequired for rationalization

2. Methods of implementingrationalized information to improveplant operations

Page 10: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 10

How Can We See Alarm Information in PCS7?Messages tab in Process Object view

Page 11: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 11

What Is Missing?

1. Alarm type2. Priority3. Class4. Alarm setpoint value or logical condition, disable or enabled5. Operator action6. Consequence of Inaction or incorrect action7. Need for advanced alarm handling techniques if necessary.

Page 12: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 12

Parameters Tab in Process Object View

Page 13: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 13

Example: MonAnL

Considerations• HMI Alarm messages are turned off when either PV_MSG_EN or PV_EN are disabled• PV_Unit is often Interconnected to a Channel Driver block• Alarm Limits can also be interconnected

• MonAnL has two ALARM8 Objects• Block comment is inserted for the event message

Page 14: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 14

Example: MEAS_MON

Considerations• Ways to turn off HMI Alarm messages⋅ Suppression IO on MEAS_MON are set to 1

• Unit is configured at the U as a string

• MEAS_MON as only one alarm objects

Page 15: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 15

Overview of Process

Page 16: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 16

Expected Result

Page 17: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 17

First Attempt: Excel Macro

Problems:

Required many tabs to manage data Additional formatting required

Copy Data to Spreadsheet Messy and Complicated code

Difficult to export configuration data Slow Processing

Page 18: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 18

VB.Net or C# in Visual Studio

Advantages• Easy to design a full UI• Provides use of data tableso Easily export data tables to .XML configuration fileo Run SQL queries to search for setpoints – Minimizes Looping

• Quickly convert CSV exported from Process Object View to data tableusing OLEDB connector

Page 19: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 19

Main Interface

Page 20: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 20

Configure PCS7 Block Types

• Use objects in a Windows form to helporganize the input data

• Important Block Parameters:o Setpoint IOo Alarm Enable IOo Msg Enable IOo Signal Identifier IOo Unit IOo MSG_Evid Name

• Import the data entered on the form intoa DataTable for quick querying

Page 21: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 21

Configure Units and Interconnected Blocks

• Add a unit table and blocks that define theunit or setpoint through an interconnection

• Configured tables can be stored in .csv or.XML format usingdataTable.WriteXML(path)

Page 22: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 22

Exporting from Process Object View

• Parameters Tab - select “Export All I/O”o Prevents the need to select individual I/O

• Messages tab, select “Export Current view…”o Includes the Block Comment columnƒ $$BlockComment$$ needs to be replaced with the correct

texto “Export Messages…” does not include block comment

Page 23: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 23

Coding: Importing the Data and Making Queries

• SQL queries can be made to quickly search for relevant data. NO LOOPS!

• Greatly reduces seek time• Uses less system resources

Note: Data gets returned as DataRow array, not a DataTable. Convert back to data table by first checking the length.

• Use an OleDb adapter to quickly import the CSV into a data table

Page 24: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 24

Convert to Excel

• Closed XML is an open source library to export data tables to .xlsx• More info: https://github.com/ClosedXML/ClosedXML/wiki• Add additional rationalization columns and export to excel

Page 25: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 25

ISA 18.2 Rationalization

ISA 18.2 defines specific requirements for alarmrationalization:1. Alarm type2. Priority3. Class4. Alarm setpoint value or logical condition5. Operator action6. Consequence of Inaction or incorrect action7. Need for advanced alarm handling techniques if

necessary.

Page 26: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 26

New with PCS7 V9.0: Alarm Help Text

Description

Possiblecauses

Suggestedoperatoraction

Consequence

Page 27: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 27

Filled out Excel

Page 28: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 28

Import Modified Excel and Export to CSV

The modified Excel file can be converted back to a data table usingClosed XML.• Full tutorials for using Closed XML can be found at

https://www.aspsnippets.com

The data table can be exported to CSV to import the data back toPCS7• Can be done just using a simple StreamWriter or there are open

source tool to simplifyo CSV Helper is a great .NET library for reading and writing CSV

fileso It can be imported via the Visual Studio Package Manager

Console

Page 29: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 29

Import to PCS7 V9.0 Process Object View

Columns that must be maintained in order for the CSVto be imported to Messages in Process Object View• Hierarchy• Chart• Block• I/O name• Subnumber

Page 30: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 30

ISA 18.2 Rationalization

ISA 18.2 defines specific requirements for alarmrationalization:1. Alarm type2. Priority3. Class4. Alarm setpoint value or logical condition5. Operator action6. Consequence of Inaction or incorrect action7. Need for advanced alarm handling techniques

if necessary.⋅ More information can be found at the User

Community site from the 2014 AutomationSummit Presentation on Smart Alarm Hiding

Page 31: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 31

Support Operation with Voice Interaction

“Hey Alexa”

Page 32: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 32

For Voice InteractionExport to SQL

• The Data Table can also be exported to a SQL Database to allow Third partysoftware to query

• Anything other than SQL Server it is recommended to install a third-partyconnector

• Primary Keyso Charto Blocko IOnameo Subnumber (Sig_#)

Page 33: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 33

Alexa can make SQL Queries for you!

• Amazon Alexa uses hands-free voice recognition to extract relevant data fromSQL database

• Provides the operator with detailed information including the recommendedcourse of action

• “Alexa ….. Start Alarms”• “TI001 high”

Page 34: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 34

What’s Next

Alarm Tool Alexa

Include an OPC connection• Provide live data values and quickly determine if

an alarm is enabled or disabled

• Retrieve units without interconnection algorithms

Alexa notifications can be used to alert the operator ofany issues in real time as they develop. (Futurefeature)

• Use OPC alarm tags to trigger Alexa toautomatically query Alarm information

Expand these concepts to create IO lists

Page 35: 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page 3 • Pigler Automation, LLC was founded in 2005 • We are a Siemens Solution Partner

Unrestricted © Siemens 2017Page 35

EXPORTING ALARM SETPOINTS IN SIEMENS PCS7

Name: Jared Romano

Company: Pigler Automation

Email: [email protected]

Phone: (866) 871-1456 Ext. 8

Session #: 5.1

Please fill our your survey via the summit app.