opc a&e server with 1 - siemens ag · opc a&e for pcs 7 (v7.1) system manual, 03/2009,...

34
SIMATIC Process Control System PCS OPC A&E for PCS 7 (V7.1) _ _____________ _ _____________ _ _____________ _ _____________ OPC A&E server with hierarchical access for use in PCS 7 1 Function and installation 2 Updating PCS 7 projects with OPC A&E 3 PCS 7 application example OPC A&E with hierarchical access 4 SIMATIC Process Control System PCS 7 OPC A&E for PCS 7 (V7.1) System Manual 03/2009 A5E02258493-01

Upload: truongkien

Post on 01-Mar-2019

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

SIMATIC Process Control System PCS OPC A&E for PCS 7 (V7.1) ________________________________________________________

OPC A&E server with hierarchical access for use in PCS 7

1

Function and installation

2

Updating PCS 7 projects with OPC A&E

3

PCS 7 application example OPC A&E with hierarchical access

4

SIMATIC

Process Control System PCS 7 OPC A&E for PCS 7 (V7.1)

System Manual

03/2009 A5E02258493-01

Page 2: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Legal information Legal information Warning notice system

This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

WARNING indicates that death or severe personal injury may result if proper precautions are not taken.

CAUTION with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.

CAUTION without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.

NOTICE indicates that an unintended result or situation can occur if the corresponding information is not taken into account.

If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.

Qualified Personnel The device/system may only be set up and used in conjunction with this documentation. Commissioning and operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission, ground and label devices, systems and circuits in accordance with established safety practices and standards.

Proper use of Siemens products Note the following:

WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be adhered to. The information in the relevant documentation must be observed.

Trademarks All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.

Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E02258493-01 Ⓟ 09/2008

Copyright © Siemens AG 2009. Technical data subject to change

Page 3: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3

Table of contents

1 OPC A&E server with hierarchical access for use in PCS 7 ...................................................................... 5 2 Function and installation ............................................................................................................................ 7

2.1 Functionality of the OPC A&E server.............................................................................................7 2.2 Event types ....................................................................................................................................8 2.3 Differences between OPC A&E and OPC A&E with hierarchical access......................................9 2.4 Mapping the OS message system on OPC A&E.........................................................................12 2.4.1 Mapping the OS message system...............................................................................................12 2.4.2 Mapping the message priority......................................................................................................14 2.4.3 Attributes of the OS message system .........................................................................................14 2.4.4 Acknowledgement theory.............................................................................................................16 2.4.5 Quality Codes for OPC A&E ........................................................................................................18 2.5 Installation ....................................................................................................................................19

3 Updating PCS 7 projects with OPC A&E ................................................................................................. 21 3.1 Updating PCS 7 projects with OPC A&E .....................................................................................21 3.2 How to update an OPC A&E project from PCS 7 V6.1 SP2 to PCS 7 V7.1 ...............................22 3.3 Creating an OPC project with PCS 7...........................................................................................23

4 PCS 7 application example OPC A&E with hierarchical access .............................................................. 25 4.1 Example 1: Messages are not assigned an area.........................................................................25 4.2 Example 2: Messages are assigned an area...............................................................................27 4.3 Example 3: Messages of an area are assigned with an alarm hiding group ...............................30

Index........................................................................................................................................................ 33

Page 4: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Table of contents

OPC A&E for PCS 7 (V7.1) 4 System Manual, 03/2009, A5E02258493-01

Page 5: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 5

OPC A&E server with hierarchical access for use in PCS 7 1Introduction

For PCS 7 V7.0 SP1 and higher, you can use an OPC A&E server with hierarchical access in PCS 7. In this documentation you will find the PCS 7 specific configuration of the OPC A&E server of WinCC.

Additional information You can find documentation for its use in WinCC in the WinCC Information System in the section "Interfaces > OPC - Open Connectivity > WinCC OPC A&E Server > OPC A&E Server with Hierarchical Access."

Page 6: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

OPC A&E server with hierarchical access for use in PCS 7

OPC A&E for PCS 7 (V7.1) 6 System Manual, 03/2009, A5E02258493-01

Page 7: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 7

Function and installation 22.1 Functionality of the OPC A&E server

Introduction The OPC A&E server uses DCOM services for transferring messages between OPC-capable applications. The OPC A&E server supports the specification OPC Alarm&Event 1.10. The following chapter explains the representation of the message system on OPC A&E with hierarchical access and the attributes supported by the OPC A&E server. This documentation includes an overview of the specific information.

Principle The OPC A&E client receives WinCC messages via scripts. You can use the script filter to reduce the number of events that will be transferred with a script. The OPC A&E client can be set for every event category that displays message attributes.

OPC A&E client All OPC A&E clients conforming to the OPC Alarm&Event 1.10 specification can access the OPC A&E server. The OPC A&E client may also be a proprietary client. By creating proprietary OPC clients, most user-specific requirements can be met. An OPC A&E client, for example, may be used for analyzing and jointly archiving alarms from different OPC A&E servers. In acknowledging messages it is necessary to differentiate between "queued" messages and "historical" messages. ● Queued messages

Messages received by means of the OPC A&E specified path ("Refresh", for example), can be acknowledged.

● Historical messages It is not possible to acknowledge messages received via the "historical messages" path (extension of the Siemens OPC A&E server).

Additional information ● Specification to "OPC Alarm&Event 1.10" ● WinCC Information System in the section "Interfaces > OPC - OLE for Open

Connectivity"

Page 8: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.2 Event types

OPC A&E for PCS 7 (V7.1) 8 System Manual, 03/2009, A5E02258493-01

2.2 Event types

Event types The OPC A&E server with hierarchical access supports the following event types: ● Condition-related event ● Simple event ● Tracking event

Condition-related event A condition-related event is an event that is linked to a condition. A limit violation of a tag is an example of a condition-related event. This limit violation generates a message that is shown as an alarm with OPC A&E.

Simple event A simple event is a message that informs the OPC A&E client about events. The launching and closing of programs are an example of a simple event.

Note Note the following when using redundant systems: Simple events that switch to internal tags are sent twice while comparing tags. The first message is triggered by master, the second from standby.

Tracking event A tracking event is sent with an operator input message to the OPC A&E client. An operator input message is triggered by manual intervention in the process.

Note When filtering for all alarms of a plant section, note that you need to replace the source with a wild card in the filter text, because the source is only generated in runtime for a tracking event. For example, the filter text for all events from the "Plant1\Unit1\Tank1" section is "Server prefix::*Plant1\Unit1\Tank1*" and not "Server prefix::Plant1\Plant1\Unit1\Tank1*."

Page 9: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.3 Differences between OPC A&E and OPC A&E with hierarchical access

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 9

2.3 Differences between OPC A&E and OPC A&E with hierarchical access

Displaying messages with OPC A&E The OPC A&E server supports the following event types for accessing the message system: ● Condition-related event ● Simple event With "condition-related event," the message numbers are shown for each source. Since an OS server can hold many more message numbers, it is hard to keep an overview of the messages. The following figure shows an example of the display in an OPC browser:

Page 10: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.3 Differences between OPC A&E and OPC A&E with hierarchical access

OPC A&E for PCS 7 (V7.1) 10 System Manual, 03/2009, A5E02258493-01

Displaying the messages with OPC A&E and hierarchical access The OPC A&E server with hierarchical access supports the following event types: ● Condition-related event ● Simple event ● Tracking event With "condition-related event," the source of the messages is determined by the area and the source. The area can be a system area, a diagnostics area or an alarm hiding group. If the text block "source" is dynamic or not configured in WinCC, the character string ""EventID xx" is used for the source in OPC. "xx" here represents the unique WinCC message number. This syntax is used for the source in the Area Browser and for the message itself. A tracking event occurs when an operation message is triggered in the system.

Page 11: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.3 Differences between OPC A&E and OPC A&E with hierarchical access

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 11

The following figure shows an example of the display of a condition-related event in an OPC browser. The "Condition" is shown in addition to "Area" and "Source:"

Recommendation Use an OPC A&E server with hierarchical access when creating new projects. If you upgrade an existing project, the OPC A&E server can be used as before or the OPC A&E server can be converted to hierarchical access. The conversion can be undone again without any loss of data.

Additional information ● Section "Updating PCS 7 projects with OPC A&E (Page 21) ".

Page 12: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.4 Mapping the OS message system on OPC A&E

OPC A&E for PCS 7 (V7.1) 12 System Manual, 03/2009, A5E02258493-01

2.4 Mapping the OS message system on OPC A&E

2.4.1 Mapping the OS message system

Introduction The OS configuration defines which event in the process triggers a message. This message is shown as an event notification in OPC A&E.

Mapping the OS message system on OPC A&E with hierarchical access In PCS 7, the following standard settings in the OS message system are used for mapping messages on OPC A&E: ● The source of a message is mapped on the OPC source. ● The message text of a message is mapped on the OPC message.

Overview The following table shows the most important attributes of the event notifications and the respective information from the OS message system. The events that use the configured attributes are shown in the third column of the table: ● "S" means a simple event ● "C" means a condition-related event ● "T" means a tracking event

OPC OS message system Event type Area In PCS 7, an "area" is an area, a diagnostics area or an alarm hiding group. If there

is no area, no diagnostic area or no alarm hiding group configured for the message, only the OPC area corresponding to the server prefix will be available.

S, C, T

Source Indicates the source of a message. The source has the format "<Server prefix>::Area\Source". The server prefix of a local computer is "@LOCALMACHINE". The server prefixes always show the top areas in the hierarchy of the server.

S, C, T

Time Issues a time stamp for received, sent and acknowledged messages. Issues a time stamp in UTC (Universal Time Coordinated).

S, C, T

Type Indicates whether the event is a simple, tracking or condition-related event. S, C, T Severity Displays the priority of the message. S, C, T EventCategory Displays the message class. "Event Category" is made up of the "CategoryID" and

the "Category Description". "CategoryID" corresponds with the internal ID of the message class. "Category Description" corresponds with the name of the message class.

S, C, T

Message Displays the message text of the corresponding message number. S, C, T Condition Displays the message type. The message types "Alarm", "Warning" and "Tolerance"

are combined and shown under designation "Level" in PCS 7. C

Page 13: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.4 Mapping the OS message system on OPC A&E

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 13

OPC OS message system Event type Sub Condition Corresponds with the "Condition" parameter. Identical to the condition for single

state conditions in PCS 7. The following subconditions are mapped for the "Level" multistate condition in PCS 7: • Alarm low • Alarm high • Warning low • Warning high • Tolerance low • Tolerance high

C

ChangeMask Specifies the change of the condition. C NewState Displays the current status of the condition.

For additional information refer to "Acknowledgement theory (Page 16)".

C

ConditionQuality Displays the quality of the message. For additional information refer to "Quality Codes (Page 18)."

C

AckRequired Indicates whether the message requires acknowledgment. C EventAttribute Lists the attributes required for the respective message.

For additional information refer to "Attributes of the OS message system (Page 14)." C

Quality Indicates the quality code of the message. C Cookie Does not include any usable information for the client C ActorID Indicates which user acknowledged the message. T

NOTICE The message classes and message types must be configured identically on the connected OS servers, if you run the OPC A&E server as follows: • On an OS client • On a connectivity station on WinCC • Within the scope of OpenPCS 7 If the OS server is not configured identically, the OPC client that is used must access the respective OS server directly.

Page 14: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.4 Mapping the OS message system on OPC A&E

OPC A&E for PCS 7 (V7.1) 14 System Manual, 03/2009, A5E02258493-01

2.4.2 Mapping the message priority

Introduction The priority of messages is mapped by the OPC A&E server to the attribute "Severity". When configuring alarms in the messaging system, you can configure a priority between "0" and "16". The OPC A&E specification defines a value range of "1" to "1000" for the severity. In this case, "1" stands for the lowest and "1000" for the highest severity. Therefore, the values of the priority are suitably displayed to the OPC severity. In the standard mapping, priority "0" is assigned to OPC severity "1" and priority "16" to OPC severity "1000". All other priority values are interpolated linearly between "0" and "1000".

2.4.3 Attributes of the OS message system

Introduction The following table lists the OPC attributes of the WinCC message system. The attributes are configured in the WinCC message system. Some attributes are intended for internal use in WinCC only and are therefore not relevant to an OPC A&E client. These attributes are not contained in the table.

Attributes OPC attributes WinCC message system ClassName Displays the message class name. Type name Displays the message type name. ForeColor Displays the text color for the display of received, sent and

acknowledged messages. BackColor Displays the background color for the display of received, sent and

acknowledged messages. FlashColor Displays the flashing color. Flags Indicates whether the message requires acknowledgment. Text01 Displays the content in the source. Text02 Displays the content of the area. Text03 Displays the content in the event. Text04 Displays the batch name. Text05 Displays the content of operation message. Text06 Displays the content of the text block "free 1". Text07 Displays the content of the text block "free 2". Text08 Displays the content of the text block "free 3". Text09 Displays the content of the text block "free 4". Text10 Displays the content of the text block "free 5". ProcessValue01 Displays the content of ProcessValueBlock01.

Page 15: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.4 Mapping the OS message system on OPC A&E

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 15

OPC attributes WinCC message system ProcessValue02 Displays the content of ProcessValueBlock02. ProcessValue03 Displays the content of ProcessValueBlock03. ProcessValue04 Displays the content of ProcessValueBlock04. ProcessValue05 Displays the content of ProcessValueBlock05. ProcessValue06 Displays the content of ProcessValueBlock06. ProcessValue07 Displays the content of ProcessValueBlock07. ProcessValue08 Displays the content of ProcessValueBlock08. ProcessValue09 Displays the content of ProcessValueBlock09. ProcessValue10 Displays the content of ProcessValueBlock10. StateText Displays the status message. InfoText Displays the information text for the message. LoopInAlarm States if LoopInAlarm has been configured. ClassID Displays the message class ID. Type ID Displays the message type ID. AG_Number Displays the number of the automation device that generated the

message. CPU_Number Displays the number of the CPU that generated the message. Duration Displays the period of time between message received, sent and

acknowledged. QuitStateText Indicates whether the message has been acknowledged. Priority Indicates the configured priority of the message. OS EVENT ID Displays the message number. IEVENT UNIQUE EVENT ID Displays the unique event ID across all messages. OS-HIDDEN Indicates whether a message configured with the "alarm hiding"

function is shown (yes/no). HIDDEN-COUNT Indicates the number of messages currently hidden with the "alarm

hiding" function (HIDDEN).

Page 16: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.4 Mapping the OS message system on OPC A&E

OPC A&E for PCS 7 (V7.1) 16 System Manual, 03/2009, A5E02258493-01

2.4.4 Acknowledgement theory

Introduction For WinCC, the acknowledgment policy is how a message is displayed and processed from "came in" to "went out". On the OPC A&E server, this message status is displayed in the "ChangeMask" and "NewState" parameters.

Condition-related event, simple event and tracking event Messages with acknowledgment are sent from the system to the client as condition-related events. In order for a message to be treated as a simple event, the message class of the message must meet the following conditions: ● "Acknowledgment Came In" is not activated. ● "Message Without Status Went Out" is activated. The following messages are sent as tracking events in PCS 7: ● Messages of the "Operation message" message class. ● Messages of "System, does not require acknowledgment" message class with the

"Operation message" message type.

NOTICE

Messages with "System, does not require acknowledgment" message class and "Process control system" message type are transferred as simple events with the "System message" event category.

ChangeMask The "ChangeMask" parameter keeps track of where the message status was changed.

Parameter values: ● OPC_CHANGE_ACTIVE_STATE ● OPC_CHANGE_ENABLE_STATE ● OPC_CHANGE_ACK_STATE

NewState The "NewState" parameter indicates the message status after a change.

Page 17: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.4 Mapping the OS message system on OPC A&E

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 17

Parameter values: ● OPC_CONDITION_ACTIVE ● OPC_CONDITION_ENABLED ● OPC_CONDITION_ACKED

Overview WinCC NewState ChangeState Received message OPC_CONDITION_ACTIVE

OPC_CONDITION_ENABLED OPC_CHANGE_ACTIVE_STATE

Sent message with acknowledgement OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACTIVE_STATE

Sent message without acknowledgement

OPC_CONDITION_ENABLED OPC_CHANGE_ACTIVE_STATE

Acknowledged messages (message queued)

OPC_CONDITION_ACTIVE OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACK_STATE

Acknowledged messages (message no longer queued)

OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACK_STATE

Locked message -------------------------------------- OPC_CHANGE_ENABLED_STATE Unlocked message OPC_CONDITION_ENABLED OPC_CHANGE_ENABLED_STATE Received, acknowledged message OPC_CONDITION_ACTIVE

OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACTIVE_STATE

Received, sent message with acknowledgement

OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACK_STATE

Received, sent message without acknowledgement

OPC_CONDITION_ENABLED OPC_CHANGE_ACK_STATE

Message acknowledged by the system (message still queued)

OPC_CONDITION_ACTIVE OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACK_STATE

Message acknowledged by the system (message no longer queued)

OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACK_STATE

Emergency-acknowledged message (message still queued)

OPC_CONDITION_ACTIVE OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACK_STATE

Emergency-acknowledged message (message no longer queued)

OPC_CONDITION_ACKED OPC_CONDITION_ENABLED

OPC_CHANGE_ACK_STATE

Note Historical alarms and events are not acknowledged. The OPC A&E historical events interface has read access only.

Page 18: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.4 Mapping the OS message system on OPC A&E

OPC A&E for PCS 7 (V7.1) 18 System Manual, 03/2009, A5E02258493-01

2.4.5 Quality Codes for OPC A&E

Introduction Quality codes are used to evaluate the status and quality of a message. The table below lists the quality codes for OPC A&E.

Quality codes Code Quality Status 0xC0 OPC_GOOD OK 0x40 OPC_UNCERTAIN Returned in cases of uncertainty, for

example in the event of delayed acknowledgment (receipt).

0x00 OPC_BAD Returned if the connection to the source is interrupted.

Page 19: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.5 Installation

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 19

2.5 Installation

Installation The OPC A&E server is installed along with the installation of PCS 7 with Open PCS 7. After the installation, the OPC A&E server can be run on a server or a client without any configuration.

Licensing To operate the OPC A&E server, one of the following licenses must be installed on each computer running an OPC A&E server: ● OpenPCS 7 Station ● Open PCS 7 station / WinCC basic system

Page 20: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Function and installation 2.5 Installation

OPC A&E for PCS 7 (V7.1) 20 System Manual, 03/2009, A5E02258493-01

Page 21: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 21

Updating PCS 7 projects with OPC A&E 33.1 Updating PCS 7 projects with OPC A&E

For PCS 7 V7.0 SP1 and higher, OPC A&E was extended to include hierarchical access to the message system. You can continue to use the non-hierarchical OPC A&E server.

Updating OPC A&E If you use OPC A&E with hierarchical access and want to use all functions, an expansion of the currently used OPC A&E client is necessary. Starting from the PCS 7 version of your project, the following scenarios for updating projects with OPC A&E are described: ● Updating a project from PCS 7 V6.1 SP2 and higher to PCS 7 V7.1 in terms of access via

OPC A&E (Page 22) ● Creating the OPC A&E project with PCS 7 (Page 23)

Page 22: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Updating PCS 7 projects with OPC A&E 3.2 How to update an OPC A&E project from PCS 7 V6.1 SP2 to PCS 7 V7.1

OPC A&E for PCS 7 (V7.1) 22 System Manual, 03/2009, A5E02258493-01

3.2 How to update an OPC A&E project from PCS 7 V6.1 SP2 to PCS 7 V7.1

Options The following options are available for updating a PCS 7 project with configured access via OPC A&E to PCS 7 V7.1 OpenPCS 7 station: ● Conversion to OPC A&E with hierarchical access ● Retain OPC A&E without hierarchical access

Requirement ● The PCS 7 version of the project to be updated is PCS 7 V6.1 SP2 or higher.

Conversion to OPC A&E with hierarchical access ● If you want to use OPC A&E with hierarchical access, check if files with the name

"CcAeProvider.ini" already exist in the project folders of your WinCC project. ● Before upgrading, delete all these files on the OS server projects and on the engineering

station server projects. You can find the project folder in the "wincproj" subfolder on the engineering station.

Retain OPC A&E without hierarchical access ● If you want to continue working with the previous OPC A&E server, copy the file

"CcAeProvider.ini" to the OS project folder of the engineering station projects. You can find this file on the product DVD under "AdditionalProducts\OPC_A&E_Server\PCS7_V70."

● Then perform a full download to the device.

OS projects in PCS 7 V6.1 SP2

Note Modified server prefix of the local computer For OS projects in PCS 7 V6.1 SP2, note the following change in OPC A&E: The server prefix of the local computer is now named "@LOCALMACHINE" instead of "localhost."

Page 23: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Updating PCS 7 projects with OPC A&E 3.3 Creating an OPC project with PCS 7

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 23

3.3 Creating an OPC project with PCS 7

OPC A&E projects that are re-created For PCS 7 V7.0 SP1 and higher, OPC A&E projects that are newly created use the OPC A&E server with hierarchical access. You do not have to make any additional settings.

OPC A&E server without hierarchical access If you want to work with the OPC A&E Server without hierarchical access, proceed as follows: 1. After updating, copy the file "CcAeProvider.ini" to the OS project folder on the engineering

station. You can find this file on the product DVD under "AdditionalProducts\OPC_A&E_Server\PCS7_V70."

2. Perform a full download of the OS server to the device.

Page 24: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Updating PCS 7 projects with OPC A&E 3.3 Creating an OPC project with PCS 7

OPC A&E for PCS 7 (V7.1) 24 System Manual, 03/2009, A5E02258493-01

Page 25: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 25

PCS 7 application example OPC A&E with hierarchical access 44.1 Example 1: Messages are not assigned an area

Introduction Process control messages, batch server messages and route control server messages are not assigned an area or group. For these messages, no designated area is assigned in the structure of the OPC A&E access.

Requirements ● Process control messages are created on the OS servers. ● Batch server messages and route control server messages are created on the dedicated

message servers. ● No diagnostics area is provided.

Structure for access to messages via the OPC A&E interface The general mapping to the OPC A&E interface appears as follows:

Page 26: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

PCS 7 application example OPC A&E with hierarchical access 4.1 Example 1: Messages are not assigned an area

OPC A&E for PCS 7 (V7.1) 26 System Manual, 03/2009, A5E02258493-01

Example of a hierarchy without assignment The following example shows the hierarchy of messages in a browser, which can be sent to the client as a "conditional event":

Page 27: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

PCS 7 application example OPC A&E with hierarchical access 4.2 Example 2: Messages are assigned an area

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 27

4.2 Example 2: Messages are assigned an area

Introduction A PCS 7 project is generally divided into several system areas and diagnostic areas. This assigns the messages to the areas. The areas are shown as a hierarchy level in OPC A&E for the hierarchical mapping.

Requirements ● The PCS 7 project contains areas or diagnostic areas.

Structure for access to messages via the OPC A&E interface The general mapping to the OPC A&E interface appears as follows:

Page 28: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

PCS 7 application example OPC A&E with hierarchical access 4.2 Example 2: Messages are assigned an area

OPC A&E for PCS 7 (V7.1) 28 System Manual, 03/2009, A5E02258493-01

Example of a hierarchy with an area The following examples show the hierarchy of messages in a browser, which can be sent to the client as a "conditional event." Example with areas:

Page 29: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

PCS 7 application example OPC A&E with hierarchical access 4.2 Example 2: Messages are assigned an area

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 29

Example with diagnostic areas:

Page 30: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

PCS 7 application example OPC A&E with hierarchical access 4.3 Example 3: Messages of an area are assigned with an alarm hiding group

OPC A&E for PCS 7 (V7.1) 30 System Manual, 03/2009, A5E02258493-01

4.3 Example 3: Messages of an area are assigned with an alarm hiding group

Introduction In the PCS 7 project, alarm hiding groups are used to automatically hide messages. An alarm hiding group can contain messages from several areas. This chapter describes how OPC A&E accesses these messages.

Requirements ● Alarm hiding groups are configured in the OS project.

Access to the messages via the OPC A&E interface The messages of an area are only shown in the alarm hiding group. The messages are no longer visible in the area. The general mapping to the OPC A&E interface appears as follows:

Page 31: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

PCS 7 application example OPC A&E with hierarchical access 4.3 Example 3: Messages of an area are assigned with an alarm hiding group

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 31

Example of a hierarchy with an alarm hiding group. The following example shows the hierarchy of messages in a browser, which can be sent to the client as a "conditional event":

Page 32: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

PCS 7 application example OPC A&E with hierarchical access 4.3 Example 3: Messages of an area are assigned with an alarm hiding group

OPC A&E for PCS 7 (V7.1) 32 System Manual, 03/2009, A5E02258493-01

Page 33: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 33

Index

A A&E server, 7, 9

Conditional event, 7 Hierarchical access, 9 Simple event, 7 Tracking event, 7

Acknowledgment policy, 16 Alarm Control, 5 Area, 27 Attributes of event notification, 12

C Condition-related event, 8

E Event types, 8

Attributes, 12

F Functionality of the OPC A&E server

Conditional event, 7 Simple event, 7 Tracking event, 7

M Message classes on OPC A&E servers, 12 Message types on OPC A&E servers, 12 Migration, 21

O Online trend control, 5 OPC

Functionality of the OPC A&E server, 7 OPC A&E, 25

Alarm hiding group, 30 Area, 27, 30

OPC A&E server, 12 OPC A&E server, 7, 9

Hierarchical access, 9 OPC A&E server

Mapping OS message classes and message types, 12

OPC A&E server, 12 OPC A&E server

Mapping the OS message system, 12 OPC A&E server

Quality codes, 18 OS version, 5

P Project

Creating, 21

Q Quality codes, 18

S Simple event, 8 Software update, 21

T Tracking event, 8

U Update, 21

W WinCC, 5 WinCC message system

Attributes, 14

Page 34: OPC A&E server with 1 - Siemens AG · OPC A&E for PCS 7 (V7.1) System Manual, 03/2009, A5E02258493-01 3 Table of contents 1 OPC A&E server with hierarchical access for use in PCS

Index

OPC A&E for PCS 7 (V7.1) 34 System Manual, 03/2009, A5E02258493-01