Section 4 Engineering
This section describes the engineering in Compact HMI 800. The following is a workflow to engineer the Compact HMI 800. The first two steps have already been covered in earlier sections.
1. Connect the PLCs and Controllers to the Compact HMI 800.
2. Install the PLC tools and configure OPC servers.
3. Define the Device and Process object types visible in the Compact HMI 800.
4. Create instances of the Types and connect to the PLCs.
5. Structure the control application according to the controlled equipment.
6. Create displays, alarm lists, logs, trends and documentation.
Working with Object Types
Object types are used to define objects that represents the different types of devices and process objects for which data will be fetched in the PLCs.
Object types hold information and functionality of a specific type of object, for example, a pump, and valve. This section describes the following:
• Creating an object type.
• Adding signals to an object type.
• Adding Graphical Elements.
• Adding Faceplates.
• Adding Alarm and Event.
• Adding History logging.
• Adding Trend display.
The object types that are created can be exported and reused in several projects using Compact HMI 800.
Creating an Object Type Section 4 Engineering
Creating an Object Type
The PLC Connect function allows the user to get an object oriented handling of the properties retrieved from the PLCs. The grouping of signals into objects
representing devices controlled by the PLC is done in the Object Type Structure.
Create an object type for each device type controlled by the PLC. Execute the following steps to create an object type.
1. In the Plant Explorer, select PLC object type in the Object Type Structure.
2. Right-click and select New Object from the context menu.
3. Enter the name of the device type (for example SimpleOnOffMotor) and click Create. This creates the object type.
Figure 30. New PLC Object Type in the Object Type Structure
Section 4 Engineering Adding Signals to an Object Type
The newly created object type can be used to create instances which will be connected to the individual signals existing in the PLCs.
Adding Signals to an Object Type
Signal objects are used to read and write data from/to the PLCs. For each device type, the user should define the properties to be read and written from/to the PLC for this type of device. This is done by creating a PLC signal for each property that should be accessed.
To configure (for example SimpleOnOffMotor), execute the following:
1. In the Object Type Structure, select the SimpleOnOffMotor.
Figure 31. New Object Type- Simple OnOff Motor
Adding Graphical Elements Section 4 Engineering
2. In the preview area you can create signal object by clicking om the I/O icons as shown below.
3. Select the I/O type signal that represents the property to be accessed.
4. Enter the signal name (for example Motor_ON).
Repeat the above procedure for all the signals to be accessed for this device type.
For more information on creating instances of this object type, refer to Creating Instances on page 67.
Adding Graphical Elements
To be able to present data from instances of the object type in graphical displays, a display element must be created. This is done by following the steps below. See Figure 32. Create signal Objects
The OPC Server does not allow names of the signals as two words. The name of the signal should be, for example, Motor_ON.
Section 4 Engineering Adding Graphical Elements
1. In the Object Type Structure, select the device object type created in Creating an Object Type.
2. Right-click and select New Aspect from the context menu.
3. Select the category Graphical Element PG2 from the available list to create a new graphic element.
4. Type a name for the graphic element and click Create.
5. In the aspect area, right-click the newly created graphic element and select Edit. This opens the Process Graphics Editor to edit the graphic element.
6. Drag and drop the Ellipse primitive from Toolboxes > Shapes.
7. To change the color of the ellipse, select the primitive and click
corresponding to the FillColor property. This opens the Expression Editor as shown in Figure 33.
Adding Graphical Elements Section 4 Engineering
For example, to write an expression to change the color of the ellipse when the value of Motor_ON is True or False, execute the following steps:
1. In the Expression Editing area, enter if with a <space>.
Figure 33. Process Data Property Selections
Section 4 Engineering Adding Faceplates
3. Select the Value property and click to insert the property into the Expression Editing Area.
4. In Resources, click to define a color for the property.
5. Select symbol1Normal from Object Colors and click to insert the property into the Expression Editing Area.
6. Similarly select the color to be used if the value of Motor_ON signal object is False.
where, symbol1Normal and deviation are Logical Colors.
7. Click Apply and then click OK to save the changes and close the Expression Editor.
8. Select File > Save to save the graphic element.
9. Select File > Exit to close the Process Graphics Editor.
Adding Faceplates
Faceplates are used to view, interact and change properties for devices and other process objects. The operator of the plant opens the faceplates by clicking on Figure 34. An Example of a Graphical Element
Adding Faceplates Section 4 Engineering
objects in graphic displays. For more information about the operator handling of faceplates, refer to System 800xA, Operations (3BSE036904*).
Consider an example to create a faceplate aspect that activates the start signal for the SimpleOnOffMotor object type representing a motor. The faceplate is created on the object type.
Execute the following steps to create the faceplate:
1. Select PLC Faceplate Templates in the Object Type Structure.
2. Copy the Faceplate Standard aspect.
3. Select the object type for which a faceplate is required. For example, select SimpleOnOffMotor object type and paste the copied aspect.
4. Right-click faceplate the aspect and select Config View from the context menu.
5. Click the Buttons tab.
6. In the row containing the On icon, click the object field and browse to the Motor_ON signal.
7. Click the Property Name field and select the Value property.
8. Select Property type as Boolean and Property value as True.
9. Click the Enabled field and edit the expression to:
iif($’./[Control Structure]:ObjectPCA:LOCK’=3,True,False) 10. The 1-Icon button is now configured to send the value True to the PLC signal
Motor_ON if the object is reserved (for example, LOCK=3).
11. Click the Tooltip text column. Select Label and enter Start motor. Click OK.
12. Click Apply to save the changes. This creates a faceplate with a button that sets a property in PLC. A warning dialog appears, but it can be ignored in this example.
13. Double-click the faceplate aspect to view the faceplate.
For more information on configuring the faceplates, refer to System 800xA,
Section 4 Engineering Adding Alarm and Event Handling
Adding Alarm and Event Handling
The Alarm and Event Configuration aspect on the signal objects are used to generate events and alarms based on the properties received from the PLC.
The events and alarms are viewed and accessed by the operator using alarm and event lists. A top level alarm list, which is handling all alarms in the installation, is preconfigured. It is possible to configure other alarm lists on lower levels, for example for a section of the site or a single motor. For more information, refer to System 800xA, Operations, Operator Workplace Configuration (3BSE030322*).
To create an event or alarm, the signal has to be configured. This is done using the Alarm and Event Configuration aspect on an object type or on the individual signal instance.
Object instances that generates events and alarms are recommended to be placed in the Functional Structure to have alarm lists that covers only parts of the plant.
Building the Functional Structure on page 74 describes how to create an appropriate Functional Structure.
The configuration of an event or alarm can be done either on the signal type or on each instance. To define an event execute the following steps:
1. Select the device object for which alarm handling is required (either an instance or an object type). For example, SimpleOnOffMotor in the Object Type Structure.
2. Create a new signal called Motor_tripped of the type PLC Binary Type representing the signal for which alarm handling is required.
3. In the Alarm and Event Configuration aspect of the signal below the Event tab, select Is an event and Log status changes on.
4. Click Apply to save the changes.
The signal object is configured to generate an event when the value changes to on.
To see an event for a specific area, select the event list aspect for that area. To define an alarm for the object select the Alarm tab instead and configure the alarm.
An instance of the object type must be created and connected to the PLC to generate the event.
Adding History Logging Section 4 Engineering
Adding History Logging
The Log Configuration aspect is used to create a history log of a value received from the PLC. The log can be defined on the signal instances or on the signal types.
To define a log on a type (and by this for all instances), go to the Object Type Structure and select the type, for example SimleOnOffMotor, and add a Log Configuration aspect to the Signal object, for example the Motor_ON signal, then go through the following steps:
1. Select Add Property Log in the Log Configuration aspect.
2. Select the property that shall be logged in the list, and then select the log template OPC. For example, Single Log.
3. Click OK and click Apply to save the changes.
Fore more information regarding History refer to System 800xA, Configuration (3BDS011222*).
Adding Trend Display
An object type can have a default Object Trend that shows one or more signal values for the object. To add an Object Trend for all instances, select the object type and execute the following steps:
1. Create a Trend display aspect on the device object type, for example on the SimpleOnOffMotor object type.
2. Select the newly created Trend Display. Click the first field in the Object column. Click ... to browse for an object. Browse to the Motor_ON signal object and click OK.
3. A default property will automatically be selected. For example, Value property of the Motor_ON signal. It is possible to change this property by selecting another from the Property field.
4. Select TRIM as Log Name.
This log configuration will now be active on all instances for this signal object.
To create a log on an individual object add and configure a Log Configuration aspect to an instance in the Control Structure.
Section 4 Engineering Creating the Device Object Instances
5. Configure additional fields if required. Save the configuration by pressing the Save icon in the upper left corner of the table. The trend is now configured and will show up on each instance of this type.
For more information regarding Trends, refer to System 800xA, Operations, Operator Workplace Configuration (3BSE030322*).
Creating the Device Object Instances
Data from the PLCs are received by signal objects defined in the Control Structure.
The signals are grouped below device objects representing devices in the factory. To be able to present the data in displays in Compact HMI 800, the device objects are equipped with graphics elements.
Device object types with corresponding signals, graphics elements and faceplates was created in the previous chapter. This chapter describes how these object types can be instantiated and connected to individual signals in the PLCs.
Before displays are built, the objects are moved to the Functional Structure where they can be easily addressed by the Graphics engine. For more information, refer to System 800xA, Operations, Operator Workplace Configuration (3BSE030322*).
Creating Instances
To create device instances that can be utilized for data presentation, do the following.
1. In the Control Structure and select the OPC server for the PLC that contains the properties you want to access.
2. Right-click the OPC server and create a New Object. Select any object type, for example, SimpleOnOffMotor and enter a name (for example, M1).
Figure 35 shows the Control Structure:
Creating Instances Section 4 Engineering
To create several objects from one object:
1. Select PLC Connect Servers and then the Generic Control Network
Configuration aspect. Use the icons as shown in Figure 36 to create or delete several objects.
Figure 35. Control Structure
Section 4 Engineering Creating Instances
Figure 36. Yellow Cubes for Object Creation and Deletion
Creating Instances Section 4 Engineering
2. Click the yellow cube with the star and the dialog as shown in Figure 36.
3. Select the object type used when creating the instances.
4. Enter a name of the new object in the Name of the new object area.
5. Select the controller to which the object will be placed in the Controller drop-down menu.
6. Select the number of objects required in the Number of new objects area. If two or more objects should be created the Starting number area will be enabled. Enter what starting number the first object shall have. The maximum limit is 999 objects.
Figure 37. Create New Object
Section 4 Engineering Connecting the Instances to Real Signals
Connecting the Instances to Real Signals
The Signal Configuration aspect allows to connect each signal to the corresponding property in the PLC.
1. To connect the signals, select Connected in Variable connection field.
2. Click Browse to connect to the property in the PLC.
Figure 38. Connect the Signals
Connecting the Instances to Real Signals Section 4 Engineering
3. Click Apply in the OPC browser window to save the changes as shown in Figure 39.
4. Repeat the procedure for configuring each signal.
A signal can also be connected by adding the address string for the property.
5. To test the connection, select the PLC Connect Server objects and the Deploy aspect. Click Deploy.
Note that the Browse function is only available if the OPC server supports browsing.
Figure 39. OPC Browser Window
Section 4 Engineering Connecting the Instances to Real Signals
6. Click one of the signal object and select the binary PCA (Process Control Aspect).
7. Select the Subscribe for live data check box to verify that data is retrieved from the PLC.
Another method to retrieve live data is to select the Object Dialog aspect, see Figure 42.
Figure 40. Deploy
Figure 41. Subscribe for Live Data
Building the Functional Structure Section 4 Engineering
This retrieves live data from all the signals that are placed in this object. The alarm indication icon appears. It also allows the user to view if a signal is forced or not.
Receiving live values for signals indicate that PLC Connect functions as required.
Building the Functional Structure
Objects used to access data from the PLCs are placed in the Control Structure.
The OPC server and PLC contain the retrieved properties based on this. To perform this, objects should be placed in the Functional Structure to reflect the functions in the plant. The objects in the Control Structure should be copied into the Functional Structure.
Building objects are described in System 800xA, Operations, Operator Workplace Configuration (3BSE030322*).
To create the objects in Functional Structure, execute the following steps:
1. In the Functional Structure, select the “<Plant name>” object.
Figure 42. Alternative Way of Subscribing for Live Data
Section 4 Engineering Building the Functional Structure
3. Right-click and select New Object from the context menu to add objects to define the structure of the plant. Select one of the objects in the list, give it a name and click Create.
Use the Bulk Data Manager (BDM) tool to move the device objects in the Control Structure to the Functional Structure.
4. Switch to the Control Structure and select the root object.
5. Open the Bulk Data Manager from Start > All Programs > ABB Compact HMI 800 > Engineering.
Figure 43. Control Structure and Functional Structure
Building the Functional Structure Section 4 Engineering
6. In the Plant Explorer, right-click the BDM Place Objects aspect in the Functional Structure and select Edit and Check Out.
7. Select one of the OPC servers objects (for example, Matricon OPC Server) in the Control Structure and drag and drop the values in the Bulk Data Manager.
See Figure 44 below.
Delete the data present in the spreadsheet in addition to the column headings.
Figure 44. The Bulk Data Manager
Section 4 Engineering Building the Functional Structure
8. Move contents of column F to column E, select all texts in the column and cut it and paste it in column E. Deselect the items in column F and click Save all objects, a button located in the toolbar menu below Add-ins.
9. The objects will be placed in the Functional Structure.
10. Exit the Excel file and do not save the changes.
Figure 45. Move from column F to column E
Figure 46. Copied Objects
Adding Process Displays Section 4 Engineering
In the Functional Structure, the objects can be dragged and dropped to the preferred places.
Adding Process Displays
Structures and relationships between displays, can be defined in the Functional Structure. The Device Instances that are created in the Control Structure, should additionally be placed into the Functional Structure.
Execute the following steps to create a process display:
1. Select the Plant object in the Functional Structure.
2. Right-click and select New object from the context menu.
3. Select the required object type and enter a name for the object (for example, MU1) and click Create.
4. Right-click the newly created object and select New Aspect from the context menu.
5. Select Graphics Display PG2 from the available list and click Create.
6. Right-click the aspect in the aspect area and select Edit from the context menu to open the Process Graphics Editor.
7. To add a device to the graphic, select View > Element Explorer.
Figure 47. The Functional Structure
To add new objects, simply copy the new or changed objects from column F to column E.
Section 4 Engineering Adding Process Displays
8. In the Element Explorer, select the Control Structure and then browse to the object containing the graphic element. The graphic elements belonging to the object are displayed in the lower pane of the element explorer.
9. Double-click the graphic element to add it to the graphic display. The user can also drag and drop the graphic element to the graphic display.
10. Select View > Toolboxes to view the toolbox of the Process Graphics Editor.
This allows the user to add graphic primitives to the graphic display.
Figure 48. Element Browser
Adding Trends Section 4 Engineering
To add a set of symbols to the graphic display, select Symbol Factory Bar (this primitive adds a bar item) or Symbol Factory Symbol (this primitive adds a graphic symbol such as motor, or valve) from Toolboxes > Special. Right-click the control and select Edit from the context menu to edit the symbol or bar.
11. Select File > Save to save the graphic display.
For more information refer to System 800xA, Engineering, Process Graphics (3BSE049230*).
Adding Trends
Follow the steps below to create a Trend Display aspect:
Follow the steps below to create a Trend Display aspect: