You are on page 1of 26

System 800xA Training

Chapter 28 Bulk Data Handling

TABLE OF CONTENTS

Chapter 28 Bulk Data Handling .................................................................................................................................................... 1


28.1 General Information........................................................................................................................................................... 2
28.1.1 Objectives ................................................................................................................................................................... 2
28.1.2 Legend ........................................................................................................................................................................ 2
28.1.3 Reference Documentation........................................................................................................................................... 2
28.2 Overview ........................................................................................................................................................................... 3
28.2.1 Components ................................................................................................................................................................ 3
28.2.2 Main Functions ........................................................................................................................................................... 3
28.2.3 Activate Workbooks ................................................................................................................................................... 4
28.2.4 How to Start the BDM ................................................................................................................................................ 4
28.3 Reading Objects and Aspects ............................................................................................................................................ 5
28.3.1 Data Areas .................................................................................................................................................................. 5
28.3.2 How to Create a Default Data Area ............................................................................................................................ 6
28.3.3 Reading Data .............................................................................................................................................................. 7
28.3.4 How to Filter Data using an Auto-update Data Area.................................................................................................. 8
28.4 Creating Objects .............................................................................................................................................................. 10
28.4.1 How to Instantiate Objects........................................................................................................................................ 10
28.4.2 How to Delete Objects.............................................................................................................................................. 13
28.4.3 Error Logs................................................................................................................................................................. 14
28.5 Changing Parameters ....................................................................................................................................................... 15
28.5.1 How to Change Offline............................................................................................................................................. 15
28.5.2 How to Change Online ............................................................................................................................................. 17
28.5.3 Initial Values............................................................................................................................................................. 19
28.6 Bulk Data Manager Templates ........................................................................................................................................ 20
28.6.1 Where to Find the Templates.................................................................................................................................... 20
28.6.2 Example: CBM_IO_Variables.................................................................................................................................. 21
28.6.3 Example: CBM_CrossReferences ............................................................................................................................ 24
28.6.4 Example: CBM_HWUnits........................................................................................................................................ 26

Chapter 28 - 1
T315-28 Bulk Data Handling - RevC

28.1 General Information

28.1.1 Objectives
On completion of this chapter you will be able to:
• Tell the purpose of the Bulk Data Manager
• Describe the main steps to use BDM
• Use predefined templates

28.1.2 Legend
> Indicates when you go from one menu to a sub-menu
Italic Indicates object and file names
“ “ Indicates dialog box buttons, tabs, menus etc.
Bold Indicates important topics
Indicates start/explanation of student activity

28.1.3 Reference Documentation


3BSE036904 Industrial IT 800xA - System
Engineering Planning
3BSE038018 Industrial IT 800xA - System
System Guide - Functional Description
3BDS011223 Industrial IT 800xA - Engineering
Engineering Basic Engineering Functions

Chapter 28 - 2
System 800xA Training

28.2 Overview

28.2.1 Components
The ability to efficiently manage large amounts of data is a crucial part of any
automation system. Bulk Data Manager (BDM) is a component of the Engineering
Workplace allows users to configure worksheets to read and write aspect and object
properties. It supports list oriented bulk data operations like handling of signal lists,
tag lists, etc. through a tight integration with Microsoft Excel.
The Bulk Data Manager is composed of:
• Microsoft® Excel 2000/XP/2003 (not included with Bulk Data Manager)
• Add-Ins that integrate Microsoft Excel into the Engineering Workplace
• Predefined templates

28.2.2 Main Functions


Bulk Data Management:
• List oriented processing of engineering data in Microsoft Excel
• Retrieving, filtering and saving data from/to other applications
• Automatic creation of objects, aspects, and structures based on reusable solutions
• Import and export of customer data from other applications
• VBA macros can be created in Microsoft Excel handling objects and aspects
• Work off-line with application data (without connection to the Aspect Server)
once they are loaded from the platform

Templates offer the user additionally:


• Enter and retrieve (reporting) data by using the full set of Excel functionality
• Link data from other applications. Linked data can be updated automatically or on
the user’s demand.
• Performing calculations using a variety of strong Microsoft Excel functions

Monitoring of live (process) data enables the user to:


• Monitor e.g. the process value or status information of a set of selected objects
• Present important process information in a dynamic updating chart like radar
diagrams or pie charts

Chapter 28 - 3
T315-28 Bulk Data Handling - RevC

28.2.3 Activate Workbooks


The Bulk Data Manager distinguishes between Workbooks that are managed by the
BDM and Workbooks that are not managed (i.e. standard Excel workbooks).
By default, Excel workbooks are not managed until they are activated by: Bulk Data
Manager > Activate. This menu item will automatically appear after installation.

Once the workbook is activated, the menu items Save, Update Selection, Update All,
Options, etc. become available in the Bulk Data Manager menu.

28.2.4 How to Start the BDM


There are different ways to start-up the Bulk Data Manager. The easiest way is:
1. Open the Engineering Workplace and right mouse click onto any object. Select
“Advanced > Bulk Data Manager” from the context menu.

2. An excel sheet is opened. The Bulk Data Manager is activated and connected to
the system automatically.

Chapter 28 - 4
System 800xA Training

28.3 Reading Objects and Aspects


To read/write data from/into an excel sheet, a data area has to be created:
• A data area is a contiguous range of cells in a Worksheet with a certain number of
columns and a limited or unlimited (max 65536 rows) number of rows.
• Each data area has a headline that defines which properties of which aspect
category are to be handled in the data area.

28.3.1 Data Areas


Data can be loaded automatically in a data area (Auto-update Data area) or by drag
and drop of objects (Default Data area).
NOTE! There can be one Default Data area and many Auto-
update Data areas per worksheet.

Default Data area


To configure a Default Data area drag an aspect from the Engineering Workplace and
drop it into a cell of the worksheet:
• This action automatically fills all accessible property names into the headline.
• The first drop operation also automatically fills in the four required properties
“Command”, ”Object Identification”, “Source Object” and “Basic Property
Structure/Functional Structure.ParentObject”.
• Properties, which are not needed, can be deleted from the headline. Do not delete
the properties “Command”, ”Object Identification” and “Source Object”.

Auto-update Data area


Data can be loaded automatically in a data area (Auto-update Data area). An Auto-
update Data area updates itself automatically according to user-defined criteria
whenever the workbook is opened, printed, or on user’s demand.

Chapter 28 - 5
T315-28 Bulk Data Handling - RevC

28.3.2 How to Create a Default Data Area


The following steps describe how to create a Default Data area and then read some
objects:
1. Select an object in the Functional Structure and drag let’s say the Functional
Structure aspect of this object into the first cell (A1) of the data area.

2. Click “OK”.

3. Upon dropping the aspect onto the sheet, the three required properties appear (in
red) along with the functional structure property.

Chapter 28 - 6
System 800xA Training

28.3.3 Reading Data


Select an object in the Functional Structure and drag & drop it into the second line of
the Bulk Data Manager sheet.

All objects including child objects appear in the sheet along with the values of their
properties.

Chapter 28 - 7
T315-28 Bulk Data Handling - RevC

28.3.4 How to Filter Data using an Auto-update Data Area


1. Create a Default Data area as described before.

2. Click on “Set BDM Options” in the toolbar. On the “General” tab select “Object
Name” and click “OK”.

3. For example, to filter for all objects with the name “Sxx_V” in the Functional
Structure, go to field “A2” and select “Filter”.

4. Extend the selection to “Filter: with Functional Structure”. In field A2 you should
see now “Filter:Functional Structure”.

Chapter 28 - 8
System 800xA Training

5. Below the column “Object Identification” you can type now “Sxx_V” to filter for
object names beginning with Sxx_V.

6. Change the Default Data area to an Auto-update area by using a right mouse click
onto the “Command” field. Select “Make Auto-update Data Area”.

7. To perform an update click in the toolbar menu on “Update All Objects”.

Alternatively you can also save and close the document. If you open the document
again you also perform an update.

Chapter 28 - 9
T315-28 Bulk Data Handling - RevC

28.4 Creating Objects

28.4.1 How to Instantiate Objects


The simplest method to create objects with BDM requires an initial object that already
exists in the System 800xA platform. This initial object can be created manually as
learned in the previous chapters.
Let’s say we want to create an I/O board object in the Control Structure.

1. Open the Bulk Data Manager window as described before.

2. Click onto the “Set BDM Options” button in the toolbar and select the
“Advanced” tab. Deselect the “Show Path in Source Column” checkbox.

3. Drag & drop a Control Structure aspect onto the first line of the BDM sheet.

Chapter 28 - 10
System 800xA Training

4. Import the board object onto the second line of the BDM sheet by using drag &
drop from the Control Structure.

5. Then use the Excel functions copy & paste to configure a new line for each new
object. It is not necessary to fill in the Parent column, because the full path is
defined in the object identification. Just drag the cursor on the Object
Identification field and copy the field Source Object as many times as needed.

Five lines where added that will create 5 instances of the DO810 board object types
with the position 5, 6, 7, 8 and 9.

NOTE! You don’t need to change the name of the original object
that was dragged & dropped onto the sheet. BDM will
not create a new object with the same name but will only
update that object.

6. Click onto the “Save All Objects” button to create your board instances in the
Control Structure.

Chapter 28 - 11
T315-28 Bulk Data Handling - RevC

7. The result will look like this:

Chapter 28 - 12
System 800xA Training

28.4.2 How to Delete Objects


To delete object with the Bulk Data Manager, use the command “Delete” in the
“Command” column of the Excel sheet.
1. Click onto the field below the Command field. Select “delete” from the pick list.

2. Copy and paste the delete command to the next lines.

3. Click onto the “Save All Objects” button.

Chapter 28 - 13
T315-28 Bulk Data Handling - RevC

28.4.3 Error Logs


Errors that occur during a save objects operation will be logged in a separate
worksheet called “Errors”.
• This sheet is created automatically by BDM when needed.
• Just click on the “Errors” worksheet to see what error(s) occurred.
• Clicking on the actual error will guide you directly to the data cell that caused the
error.
• You can correct the error and save the data again.

In the example below, the board object “DO810” is not unique in the system. More
than one board exists in the project and the system therefore does not know which
board object to use. If you select “Save All Objects”, an Errors sheet is created.

Click on the “Errors” sheet to get the details.

Chapter 28 - 14
System 800xA Training

28.5 Changing Parameters

28.5.1 How to Change Offline


Before downloading the data into the controller you can change some parameters
offline. Let’s set some offline values like Min, Max … for an I/O board.
NOTE! Before you can set the values to the board you have to
assign a variable to that channel first.

1. Select an I/O board object in the Control Structure and drag & drop the Control
Properties aspect onto the left field ( A1 )on the first line of the BDM sheet.

2. Click onto the checkboxes for the properties which should be visible.

Chapter 28 - 15
T315-28 Bulk Data Handling - RevC

3. The extended command line with the settings ( 7_Min…) is now visible.

4. Import now a board object with drag & drop to the second line of the BDM sheet.

5. Now you can edit the settings directly in the cells. Click on “Save All Objects” to
write the changed parameters.

6. Check the results in Control Builder via right mouse click onto the board. Select
the Editor and go to the “Properties” tab.

Chapter 28 - 16
System 800xA Training

28.5.2 How to Change Online


Subscribing for live data means that the values referred to will automatically be
updated in an opened workbook whenever it changes. The subscription mechanism is
based on Property References that can be tagged to subscribe for live data.
NOTE! The application with the required objects needs to be
loaded to the controller first.

1. Select a control module (e.g. pump) object in the Functional or Control Structure.

2. Via drag & drop, import the Control Module aspect onto the left field “A1” on the
first line of the BDM sheet.

3. Click onto the checkboxes for the properties which should be visible.

Chapter 28 - 17
T315-28 Bulk Data Handling - RevC

4. The extended command line with the Max, Min settings… becomes visible.

5. Import now the Pump object with drag & drop to the second line of the BDM
sheet. The online values for the Max, Min and Unit parameters are displayed.

6. Change the values and write the changed values by clicking on “Save All
Objects”.

7. Check the result in Control Builder via right mouse click onto the Pump module in
Online Mode. Select the Online Editor and open the structured data type
InteractionPar.

Chapter 28 - 18
System 800xA Training

28.5.3 Initial Values


The initial values are a special part of setting parameters offline. You can set the initial
values with the Bulk Data Manager and a download to the controller will write the
initial values to the parameter/variables.
It depends on the attribute settings of the parameter/variables (e.g. retain, cold retain
…) if the initial values are written the by the next download as well, or if they are only
written by the first download.
NOTE! Setting initial values with the BDM is equal to work with
offline parameters as described before.

You will find the initial values in the Control Property aspect of an object in the Plant
Explorer. All initial values are ending with the letters _init_val.
It is important that you use the right source for writing the initial values:
• If a parameter of an object (e.g. Function Block or Control Module) is not
connected, then the Function Block/Control Module object is the right place.
• If a parameter is connected to a variable, then the source object of this variable
(the application objects) is the right place. In this case you have to write the initial
value to the variable, not to the parameter.

Chapter 28 - 19
T315-28 Bulk Data Handling - RevC

28.6 Bulk Data Manager Templates


Engineering Templates support various engineering activities like getting cross-
reference lists, creating variables for applications or programs, etc.

28.6.1 Where to Find the Templates


There are two ways to start the templates:
1. Open the folder Engineering Templates on your desktop.

2. Choose an object and select “Advanced > Engineering Templates”.

Select the Engineering Template you want to work with.

Chapter 28 - 20
System 800xA Training

28.6.2 Example: CBM_IO_Variables


This template allows reading and writing the following CBM variables:
• Global variables from Applications
• Local variables from Applications
• Local variables from Programs
• Local variables from Single Control Modules
• External variables from Single Control Modules
• Access variables from Controllers

28.6.2.1 How to Read Variables


1. Open the CBM_IO_Variables.xls sheet.

2. Click on the “Import Filter” button in the toolbar of the Bulk Data sheet. Select in
the Control Structure the project and click “OK”.

3. Click onto the “Filter Included” checkbox in the Import Filter window and click
on the “OK & Load” button.

4. The Confirm Action window is displayed. Click “OK”.

Chapter 28 - 21
T315-28 Bulk Data Handling - RevC

5. The CBM_IO_Variables window is displayed and all variables of the Sxx_Project


project are shown in the BDM sheet.

28.6.2.2 How to Create Variables


1. Open the CBM_IO_Variables.xls sheet.

2. Create some global variables in the application StudentApp. Fill in the columns
Project, Application, Location, Variable and Data Type.

3. Click onto the “Bulk Data Sheet: SAVE Data” button in the toolbar.

4. Check the result in Control Builder. Open the editor on application StudentApp
and you will see the new variables.

Chapter 28 - 22
System 800xA Training

28.6.2.3 How to Delete Variables


1. Open the CBM_IO_Variables.xls sheet.

2. Filter or type in name, project …. for variables which should be deleted. Type in
“delete” in the Command column for each variable.

3. The Confirm Action window is displayed. Click “OK”.

Chapter 28 - 23
T315-28 Bulk Data Handling - RevC

28.6.3 Example: CBM_CrossReferences

28.6.3.1 Reading Variables


Select the control project and open it by pressing the “Open Project” button. Click
onto the “Create Variable List” button.

The VariableList worksheet is now displayed.

Chapter 28 - 24
System 800xA Training

28.6.3.2 Getting Cross References


Select the “Editor” worksheet and click on the button “Get Cross References for All
Variables”.

The cross references are shown in the Variable List worksheet for each variable.

Chapter 28 - 25
T315-28 Bulk Data Handling - RevC

28.6.4 Example: CBM_HWUnits


This template is useful to modify and create instances of Hardware modules.

Chapter 28 - 26

You might also like