2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page...
Transcript of 2017 Siemens Automation Summit Exporting Alarm Set Points ... · Unrestricted © Siemens 2017 Page...
Exporting Alarm Set Points inSiemens SIMATIC PCS 7Jared Romano, Pigler Automation
usa.siemens.com/summitUnrestricted © Siemens 2017
2017SiemensAutomationSummit
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
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
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
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)
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
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
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
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
Unrestricted © Siemens 2017Page 10
How Can We See Alarm Information in PCS7?Messages tab in Process Object view
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.
Unrestricted © Siemens 2017Page 12
Parameters Tab in Process Object View
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
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
Unrestricted © Siemens 2017Page 15
Overview of Process
Unrestricted © Siemens 2017Page 16
Expected Result
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
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
Unrestricted © Siemens 2017Page 19
Main Interface
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
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)
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
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
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
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.
Unrestricted © Siemens 2017Page 26
New with PCS7 V9.0: Alarm Help Text
Description
Possiblecauses
Suggestedoperatoraction
Consequence
Unrestricted © Siemens 2017Page 27
Filled out Excel
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
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
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
Unrestricted © Siemens 2017Page 31
Support Operation with Voice Interaction
“Hey Alexa”
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_#)
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”
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
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.