Wedge User Manual Overview
Wedge User Manual Overview
USER MANUAL
Copyright 2021 © Trimble Inc.
All rights reserved. The information contained herein may be changed without prior notice. Names and
data used in examples herein are fictitious unless otherwise noted. No part of this document may be
reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose,
without the express written permission of Trimble Inc. While every care has been exercised in
compiling the data contained in this publication, Trimble Inc. accepts no liability for any errors in this
publication or for damages arising from the use of the information included in this publication. The
Wedge (Wedge) trademark used in this publication is a trademark of Trimble Inc. All other trademarks
are the property of their respective holders. Trimble Inc. disclaims any proprietary interest in the
trademarks and names of others.
Trimble Inc.
[Link]
[Link]
Table of Contents
1. Introduction .............................................................................................................................. 1
2. User information ....................................................................................................................... 2
Software users ............................................................................................................... 2
Typography .................................................................................................................... 2
3. Software components .............................................................................................................. 3
Opening window ............................................................................................................ 3
Menu bar ........................................................................................................................ 3
Shortcut bar ................................................................................................................... 5
4. Viewing diagrams ..................................................................................................................... 7
Opening diagrams.......................................................................................................... 7
Canvas ........................................................................................................................... 7
5. Viewing trends ........................................................................................................................ 11
Opening Trend windows with a single trend ................................................................ 12
Opening Trend windows with multiple measurements ................................................ 13
Limiting and screening trends ...................................................................................... 16
Deleting time intervals ................................................................................................. 16
6. Editing diagrams .................................................................................................................... 19
Using drawing tools...................................................................................................... 19
Adding measurements to a diagram ............................................................................ 20
Measurement properties .............................................................................................. 21
Adding and editing components .................................................................................. 23
Adding background images ......................................................................................... 30
Copying components from a diagram to another ........................................................ 31
Removing measurements ............................................................................................ 31
Creating or deleting measurement groups .................................................................. 32
Measurement group properties .................................................................................... 32
7. Session-specific settings ........................................................................................................ 35
Selecting measurement groups ................................................................................... 35
Selecting time intervals ................................................................................................ 35
Start/exit on-line display ............................................................................................... 37
Selecting time levels .................................................................................................... 37
Selecting grades .......................................................................................................... 38
8. Special trend functions ........................................................................................................... 41
Adding and removing user annotations ....................................................................... 41
Trend graduations ........................................................................................................ 42
Using background colour to study measurements ...................................................... 45
Trend window settings ................................................................................................. 47
9. Calculated measurements ..................................................................................................... 49
Use of calculated measurements ................................................................................ 49
Collection of Formulas dialog ...................................................................................... 50
10. Reference time ....................................................................................................................... 55
Choosing reference times ............................................................................................ 55
Removing reference times ........................................................................................... 56
11. Compensation of delays......................................................................................................... 57
Delay model ................................................................................................................. 57
Building delay models .................................................................................................. 58
Delaying Trend plots .................................................................................................... 64
Adding and removing delayed user annotations ......................................................... 65
12. Data analysis .......................................................................................................................... 67
Uses of analysis tools .................................................................................................. 67
Data preprocessing methods in Wedge....................................................................... 71
Analysis tools ............................................................................................................... 74
Statistical process control (SPC) ................................................................................. 75
Statistics ....................................................................................................................... 77
XY plot ......................................................................................................................... 78
Histogram ..................................................................................................................... 79
Correlation matrix......................................................................................................... 81
Best correlations .......................................................................................................... 82
Cross-correlation.......................................................................................................... 83
Periodic fluctuations ..................................................................................................... 85
Searching for fluctuation source (MAR) ....................................................................... 87
Non-recurring phenomena ........................................................................................... 95
Waveform matching ..................................................................................................... 95
13. Principal Component Analysis (PCA) .................................................................................... 98
Theory of PCA modelling ............................................................................................. 98
Creating PCA models .................................................................................................. 99
Using PCA models ..................................................................................................... 100
Deleting PCA models ................................................................................................. 107
14. Macros.................................................................................................................................. 108
Recording macros ...................................................................................................... 108
Executing macros ...................................................................................................... 109
Saving macros ........................................................................................................... 109
Editing macros ........................................................................................................... 109
Deleting macros ......................................................................................................... 110
Background macros ................................................................................................... 110
15. Printing ................................................................................................................................. 112
Page composition planning ........................................................................................ 112
Adding basic report templates ................................................................................... 113
Adding table report templates .................................................................................... 114
Adding printables ....................................................................................................... 116
16. Reports ................................................................................................................................. 118
Using the report tool................................................................................................... 118
Scaling of trend plot Y-axes in reports ....................................................................... 124
17. Saving measurement data ................................................................................................... 126
Saving measurement data ......................................................................................... 126
Copying measurement data onto the clipboard ......................................................... 127
18. Importing data from a worksheet ......................................................................................... 128
Data import ................................................................................................................ 128
Management of imported data sources ..................................................................... 131
19. User-specific settings ........................................................................................................... 133
Process Diagrams...................................................................................................... 133
Time intervals ............................................................................................................. 135
Time Settings ............................................................................................................. 138
Main Window Settings ............................................................................................... 140
Servers ....................................................................................................................... 142
1. Introduction
Wedge is a software tool designed for the management of process data and the
analysis of process fluctuations. The software is typically used to reduce quality
fluctuations in the final product, as well as to increase production efficiency.
The mathematical tools provided by Wedge enable production engineers and
operators to systematically monitor and analyse process changes. In method
development we have combined the expertise of process specialists and
mathematicians. Mathematical analyses are packaged in powerful tools for
resolving process-related issues. These tools include, among others, MAR analysis
(Multichannel AutoRegressive modelling), which facilitates easier determination of
the causes of process fluctuations, reporting and waveform matching.
All Wedge software tools have been adapted to the special characteristics of each
type of process data: data preprocessing and grade dependency can be enabled
for analysis methods. Missing data points do not disturb the analysis.
1
2. User information
This is the User Manual for Wedge. This User Manual deals with the basic use of
Wedge.
Software users
The primary users of the software are, for example, operators and process
engineers. An administrator responsible for software maintenance functions must
also be assigned. The persons mentioned above shall hereafter be referred to as
the user and the administrator.
Typography
The following typographic conventions have been used in this guide:
Typography Example
2
3. Software components
This chapter describes the opening window and the main window of the software.
Opening window
When you start Wedge, the front page is displayed.
Under the Title bar of the front page, you will see a Menu bar containing the
commands that control software functions. Under the Menu bar, you will see a
Shortcut bar containing list boxes that make using the software easier.
Menu bar
The figures in this chapter show the main menus of Wedge.
3
File menu
The commands in the File menu allow you to open a diagram, save a diagram,
print selected information and exit the software.
Edit menu
The commands in the Edit menu allow you to edit diagrams, measurements and
settings.
Options menu
The commands in the Options menu allow you to edit the screening settings of
measurement data and the SPC limits of trends.
Tools menu
The commands in the Tools menu allow you to create and run macros, select the
reporting interval, use the collection of Matlab formulas, save measurement data as
a text file, read data from Excel and set the monitoring settings.
4
Figure 3.6. Tools menu
Analyses menu
The commands in the Analyses menu allow you to use analysis tools and view, for
example, measurement statistics, XY plots and cross-correlations, as well as
search for the source of periodic fluctuations.
Help menu
The About Wedge command in the Help menu opens the About dialog. The
About dialog box displays the copyright information and current version information
of the software.
Shortcut bar
The figures in this chapter show the Shortcut bar of Wedge.
5
Figure 3.9. Shortcut bar
Under the Menu bar, you will see the Shortcut bar. The Shortcut bar contains list
boxes for easier use of the following functions:
• Selecting measurement groups
• Setting time intervals
• Selecting time levels
• Selecting the process state/grade dependency
• Back to front page
• Stop a function
• Select the Edit mode
For more information on the list boxes in the Shortcut bar, see Chapter 7. Session-
specific settings.
When you open a diagram, the software opens the main window, which displays
the canvas and the measurements list menu.
6
4. Viewing diagrams
This chapter deals with opening and viewing diagrams. A process diagram is a
model of a real process consisting of image and measurement components.
Opening diagrams
You can open a diagram by clicking one of the links on the front page or from the
File menu.
Use the Open command to open a diagram that has not been set as a link on the
front page. The file format for files opened in Wedge is Wedge Process Diagram
(*.wproc or *.wprx). This format cannot be changed. Diagrams can be opened via
the Wedge server or from your own local computer.
1. Choose Open in the File menu. The Open dialog is displayed.
2. Select a directory from the Look in list box. The directory can be on the Wedge
server, in the My Diagrams directory (this directory is also on the server) or in the
My computer directory (local computer).
3. Click the name of a folder or a file in the File list.
4. Click Open to open the selected diagram. Click Cancel to cancel the selection.
Canvas
In the main window, you can see the canvas and the measurements list menu (on
the left-hand side of the window) in addition to the Menu and Shortcut bars. Be
careful not to close the main window completely during use as Wedge interprets
closing the window as quitting the application. The following sections briefly
7
describe the main parts of the main window: the canvas and the measurements
list.
Depending on the selection in the Select a Measurement Group list box, the main
window displays either the entire process diagram (a diagram) or the group created
under it. A diagram is a model of a real process consisting of image and
measurement components. The measurement components (measurements) are
used to display data as trends. A data indicator gives a graphical representation
of the end point of the selected time interval. The image component contains no
data; rather, its function is to help the user to follow the process.
Viewing diagrams
You can open only one diagram at a time. If the diagram is too large to be
displayed entirely in the window, you can use the horizontal and vertical scroll bars
to view it. The size of the diagram can also be reduced by using the mouse scroll
wheel while pressing the Ctrl key or by pressing the Ctrl and +/- keys
simultaneously.
8
Finding measurements in a diagram
The Find measurements function helps you to find measurements. The quick
search function starts automatically when you press a letter on your keyboard. The
quick search box will appear in the upper right corner of the main window.
The quick search box shows the number of measurements found with the search
criteria in a diagram and which measurement is selected at the given moment.
Press Enter to open the Quick trend window. Use the Previous/Next buttons to
change the selected measurement. To close the quick search box, press the Close
button.
Measurements list
On the left-hand side of the main window is a menu with the options
Measurements in diagram, All measurements in server and Hidden.
9
Figure 4.4. Measurements list
The appearance of the measurements displayed in the measurements list has the
following meaning:
• Normal text: the measurement configuration is in order and data can be
retrieved for processing.
• Red text: there is an error in the measurement settings and no data can be
retrieved for processing.
The measurements list shows the measurements for the measurement group
currently in use. You can search for measurements with the search field at the
bottom of the measurements list. In the Column selection menu, you can select
how many columns are displayed in the measurements list. The search function
searches all visible columns for the measurements.
10
5. Viewing trends
Once you have selected a diagram, you can view the measurement data. The most
popular presentation format used in process data is the trend graph. A trend graph
refers to a graphical representation of the consecutive points of a time range within
a single measurement, where the consecutive data points are connected to each
other by a line. Trends enable you to view process events, such as process
component temperatures, pressures or chest levels.
The trend time interval shortcuts are displayed at the bottom of the quick trend
graph. You can navigate the time intervals forwards or backwards in quarter or full
intervals. In the separate calendar view, you can choose any arbitrary time range to
single-day accuracy or choose a so-called favorite time interval.
11
Select an interval in the trend graph with your mouse to display the statistics for the
selected interval as well as the time and value differences for the start and end
points of the interval.
Press the button at the upper right corner of the quick trend graph to display the
quick trend graph in a separate window. To close the quick trend graph, click the
canvas or the button at the right corner of the graph.
The following figure shows the boxes and buttons in the Trend window.
12
Figure 5.3. Trend window functions
• Right-click the mouse on a white area of the diagram and select Separate
Trends or Combined Trends in the Trends and Spectra menu.
13
Figure 5.5. Trends and Spectra menu
The Separate Trends view opens the Trend window, showing the trends of the
selected measurements as separate trend plots. Measurement names are
displayed above the trend plots.
The Combined Trends view opens the Trend window, showing the trends of the
selected measurements in a single trend plot in different colours. Measurement
names and the corresponding trend colours are displayed beneath the coordinates.
Should you wish to view more than six trend plots, a scroll bar will appear on the
right-hand edge of the Trend window. With the scroll bar, you can browse all of the
trend plots you have selected. If you do not select any measurements from the
diagram and then open the Separate Trends command, all measurement trend
plots are searched for viewing. They can be browsed in groups of six
measurements using the scroll bar.
14
Figure 5.6. Combined Trends view and menus
You can move a trend graph from a scale to another by left-clicking the mouse on
the name of the trend and selecting "Attach to left axis ", " Attach to right axis " or
"Detach from both axes" in the menu.
In the same menu, you can change the trend graph colour and the thickness of the
trend line. You can also use the menu to hide a trend graph or remove it from a
plot.
Left-click at the bottom of a trend plot to open a shorter menu which allows you to
copy an image to the clipboard and from there to Word or to move all
measurements to the left scale.
2. Choose one or more new measurements from the diagram. Hold down the left
mouse key and drag the mouse pointer to the desired point in the open Trend
window. A thin red horizontal line is displayed between the Trend windows.
3. Release the left mouse key; the new trend plots will open in place of the red line.
You can add new diagrams above, between and below the open trend plots
15
Limiting and screening trends
To view trends in detail, you can zoom in on a specific part of the trend plot using a
limiter. You can also use the Trend window tools for measurement value
screening.
When you left-click the trend plot, the program creates an X or Y limiter
automatically on the trend plot. The type of the limiter depends on the direction in
which the mouse pointer is drawn.
When the trend is limited in the X-axis direction, a new scroll bar is created below
the plots on the trend display. Use the scroll bar to navigate forwards or backwards
along the trend time range.
The figure below presents trend limiting and data point screening in the Trend plot.
16
• From the trend plot tools, select either Remove the selected time interval
from data or Remove other than the selected time interval from data.
You can also undo the deletion of time intervals by selecting a new time interval for
use.
Measurement information
To open the information of a measurement in a separate window, press the
Measurement information button.
17
Figure 5.9. Trend plot properties
18
6. Editing diagrams
This chapter discusses creating and editing a diagram.
To edit a diagram, click the shortcut key at the right corner of the diagram window
to open the Edit menu. A drawing toolbar will appear on the right in the main
window, which also indicates that the edit mode is active. The toolbar contains the
drawing tool buttons described below.
19
Figure 6.1. Drawing tools
You can expand or shrink the measurements list view by dragging the split bar
between the measurements list and the canvas.
The measurements list columns are added by left-clicking the Choose columns in
list button. Select the desired columns by left-clicking the menu that opens up. If
you have chosen to view All measurements in server, you can add the columns
Name in diagram and Process area.
20
Figure 6.2. Adding measurements list columns
2. Enter a string (for example "ref" or "pH_") into the entry field. The search item
can simultaneously be tag, unit or description.
3. The measurements matching the search terms are shown on the measurements
list.
Measurement properties
To change the settings for the measurement component shown in the diagram
dialog, right-click on the component to open a menu and select Component
properties….
21
Figure 6.4. Component properties, General tab
1. To change the measurement name in the diagram, enter a new name into the
Name: field.
2. You can change the Data source of the measurement and with the drop-down
menu and the Tag of the measurement by entering a new position name in the text
box. To check whether there is a tag in the already open diagram, click Browse…
If there is a tag in the opened process diagram, its label is shown in the Name in
diagram column.
3. To choose whether an icon is shown or hidden, select or deselect the Show
icon check box.
4. You can change the Measurement icon by clicking the Change... option under
Component change. The available options are:
• Basic icons: all basic software measurement icons
• All icons: basic icons component library, expanded with the Process parts icon
library
• Custom Icon
5. Use Show measurement name, Show measurement value and Show
measurement unit to set the properties for the label.
The Show measurement value option shows the last value of the measurement in
the diagram dialog. The value is updated whenever the selected time interval is
changed.
22
6. Use as state measurement - selection imports the measurement to be used in
the Grade selection menu.
In the Trend display tab, you can set the minimum and maximum Y-axis scaling of
the trend for use in automatic reports. To add numeric values to the Y-axis of the
trend, select the Use maximum Y-axis resolution check box. You can also choose
the background colour for a trend plot – select a measurement from the
Background colour from measurement drop-down menu.
1. From the Edit menu, select the Add components… command. The
Components dialog will appear.
2. Click a tab in the Components window and double-click a component to display
it in the canvas.
When a diagram is in the edit mode, you can also add components by right-clicking
the diagram and selecting New component.
23
Figure 6.6. Add new component menu
With this menu, you can add a new Calculated measurement, New text field, New
component icon or New link to a measurement group.
To edit the component in use, right-click the component and select Component
properties from the menu.
5. Select Add. The Text Field dialog will close and the created text field component
will appear on the canvas.
24
Adding macrolink components to a diagram canvas
1. Double-click the macrolink component in the Generic tab of the Components
dialog. The Macrolink dialog will appear.
2. Enter a name for the macrolink in the Link name text field. This name will be
shown in the diagram.
4. If you want to add frames to the text field, select the Framed check box.
6. Select Add. The Macrolink dialog will close and the component to run the
created macro will appear on the canvas.
1. Select the measurement component for the response variable in the diagram
and then select 1 to 5 explanatory measurement components.
25
Figure 6.9. Linear estimation dialog
3. Choose the Formula tab. The primary measurement component is shown in the
Estimated measurement drop-down menu. The estimated measurement y is
modelled using a linear equation in which the variable e is the modelling error.
6. Click OK. The Measurement properties dialog will close and the selected linear
estimation component will be displayed on the canvas.
26
Figure 6.10. Link to measurement group dialog
2. From the Link target drop-down menu, select the measurement group of the
process diagram you want to link to. Close the Link target list box by clicking a
blank area on the screen or by pressing the Esc key.
4. Click OK. The Link properties dialog will close and the new link to the
measurement group will be displayed in the diagram canvas.
1. Double-click the Web page component in the Generic tab of the Components
dialog.
2. Enter the web page address and the page size of your choice.
3. Move the page to the desired point in the diagram.
27
Adding data indicators
You can add components indicating measurement values into a diagram. These
components observe the measurement value at the end of the selected interval
and indicate this value with colors or bar length.
The image below presents the data indicators available for use.
Choices:
• Single-colour column
• Two-colour column; the component has one limit value which triggers a colour
change
• Three-colour column; the component has two limit values which trigger a colour
change
• Round colour indicator with sliding colour from green to red
• Round colour indicator; the component has one limit value which triggers a
colour change
• Round colour indicator; the component has two limit values which trigger a
colour change
• Single-colour dial
• Dial, with sliding colour with three different colors
• The above choices are also available for use with calculated measurements.
28
Figure 6.13. Parameters for two-color columns
You can also change an existing measurement component in the diagram into a
data indicator component by changing the icon of the component in the component
properties.
Histograms are another ready-made example. You can also add a general
Analysis component, which allows you to create new embedded views. For more
information, contact the software supplier.
29
To add a passive image component:
1. Copy the background image onto the clipboard of the Windows operating
system. Right-click, and from the menu that opens up, select Edit mode of
background images.
2. Import the background image via the Paste background image command.
3. If you are using several different background images, they must all be inserted
into each measurement group of the diagram separately. In other words, the
process diagram structure for background images can be as follows: general image
of the production line at the main diagram level, images of individual process parts
in the measurement subgroups of the diagram.
30
Figure 6.16. Background images editable command
5. To exit Background Images Editable, click the left mouse button. The
checkmark will disappear from the line.
Once the background images of the diagram have been inserted, you can begin
placing measurement components and passive image components onto them.
1. Set the diagram to edit mode. Select the components you wish to copy.
2. Right-click on a white area of the canvas. From the menu that opens up, select
Copy measurements. If you are copying calculated measurements, also select all
of their input measurements.
3. Open another diagram. Make sure that the program is in edit mode.
4. Right-click on the white area of the diagram and choose Paste measurements.
Removing measurements
Measurements are removed using the Remove Components drawing tool. To
delete a measurement component:
2. Click the Remove Components from a Group drawing tool in the drawing
toolbar. The program removes a component from a measurement group and its
subgroups.
3. You can also remove the selected measurement components by pressing the
Delete key on the keyboard. The selected components are deleted from the
diagram immediately.
31
You can reverse the component deletion via the Undo: delete components
command in the Edit menu.
3. Enter the name for the new measurement group into the text box.
4. Click OK.
Use the Delete measurement group function to remove any unnecessary groups
from a diagram.
32
• Target value
• Alarms
• Lower and upper limits
• Average.
If you do not want to use the Group-specific settings option, the measurement
graduations must be separately activated whenever the diagram is opened in
Wedge.
To enable indexing:
1. Go to the measurement group for which you wish to change the measurement
indexing order.
4. If you choose User-defined sorting, you can change the indexing order using the
Up and Down buttons.
5. Click OK to accept the settings.
6. Save the diagram. When you reopen the diagram, the indexing you have defined
will be automatically applied to the measurement groups for which you have
defined group-specific settings.
33
Figure 6.18. Alphabetical sorting of measurements
34
7. Session-specific settings
This chapter deals with the use of the list boxes of the Shortcut bar. The Shortcut
bar contains session-specific settings, i.e., user-specified settings that are not
permanently stored in the memory.
35
the Set Time Intervals list box on the Shortcut bar.
2. Select the time interval presentation format in the Time Interval Format list box.
3. Select the time interval. You can enter the numbers in the combo boxes from the
keyboard or by using the up and down arrow keys.
- Clicking the Apply button accepts the selection, but does not close the dialog.
You may continue making selections in the dialog.
- Clicking the OK button will accept the selection and close the dialog.
36
the time interval boxes to correspond to the selected time interval format.
When the dynamic trend display is active, the trend display mode symbol changes
in the lower right-hand corner of the display. The dynamic trend display can also be
activated via the symbol in the bottom corner of the diagram.
The on-line display can be exited via the lower right-hand corner of the diagram
display by left-clicking the Stop on-line display button. The on-line display can
also be stopped via the Set Time Intervals list box by left-clicking the Set on-line
display button.
37
Click the drop-down arrow of the Time Level list box to display the alternative time
levels. Select a time level.
One time level, displayed in the Level list box of the Shortcut bar, is always
selected in Wedge. If you do not select a time level from the list box, Wedge will
use the user-specific default time level.
Selecting grades
All different product grades manufactured in the process are shown in the tree
structure of the Select Grade list box. They are organised according to customer
requirements and product grade. Process-specific grade codes are created by the
Wedge supplier and cannot be modified by the user. For more information on
process grade codes, contact your software administrator.
By default, Wedge uses the All data option in the Select Data list box.
You can open the lower level of the structure by clicking the plus buttons. Similarly,
you can close the lower levels of the structure by clicking the minus buttons.
Figure above shows a grouping for a paper mill. The paper grades manufactured at
the mill are grouped into three categories:
• By grade, e.g., Grade A/x 230, Grade A/x 250, Grade B/x 230 and Grade B/x
250
• By product group, e.g., A and B
• By basis weight, e.g., 230 g/m2, 250 g/m2 and 270 g/m2.
Only the product groups or grades manufactured during the selected time interval
are shown.
38
Grade dependency criteria
Grade dependency is needed when using analysis methods. Grade dependency
means that the analysis is only applied to a specific grade or product group.
To view the trend for an individual grade, select the name of the grade from the
Select Grade list box. Only the data points belonging to the grades in question are
drawn on the trend display. You can also choose a specific product group.
You can also select several different grades or groupings for simultaneous viewing.
Select multiple grades as follows:
1. Click to select a grade in the Select Grade list box.
2. To then select other grades, hold the Ctrl button down on the keyboard and click
the grades with the mouse.
If the trend plot contains two or more grades for which the production time is not
consecutive, a grey vertical line is shown on the trend plot at the grade change
point on the time axis.
In addition to trends, you can enable grade dependency in the following Wedge
analyses:
• Statistics
• XY plot
• Histogram
• Cross-correlation
39
• Correlation matrix
• Best correlations
• Periodic fluctuations
• PCA.
40
8. Special trend functions
This chapter deals with the following subjects:
• Adding and removing user annotations
• Graduations dialog
• Setting graduations
• Editing Trend window properties.
1. Select the desired time interval with the X limiter from the trend.
1. Right-click the trend plot. Select Delete user annotations from the menu that
opens up. All background colour markings will be removed.
41
Trend graduations
Graduations are session-specific lines that appear in the trend plot and give more
information on the trend. Wedge graduations give information on, for example,
saved limits, data cutoff points and the average. When measurement graduations
have been selected, they will remain defaults until the selection is removed.
To edit trend graduations, right-click on the trend plot and select Graduations.
42
• Background colour from measurement: a measurement, the trend content of
which is displayed as gradually changing background coloring in all trends. The
lightness of the blue background reflects the changes in the measurement
value: the lower the measurement value, the darker the background colour.
When a background colour is used in a trend, the variation of a selected
measurement and other trends can be compared simultaneously.
The following table contains the descriptions of all colored lines that may appear in
a trend plot.
Line Description
Grey vertical line Shows the points where data has been cut out
Yellow vertical area/line Alarm: a time interval that contains values over
the upper limit or under the lower limit
The measurements selected for the setting of limits and their state dependency are
shown in the columns of the Measurement Limits dialog. State dependency
indicates whether a measurement has a single set of limits or product-specific
limits.
When a measurement name is selected from the list, a state dependency option
can be selected from the State Dependency list box.
Click the plus button in front of the measurement name to display measurement
values according to the selected State Dependency option (for example, by grade
43
or from all data). When you click an option in the structure, the program shows the
limits for that measurement if the values have already been set:
When you click a measurement name or a grade or product group name in the
structure, the lower limit, target value and upper limit of the measurement are also
copied to the text boxes below the list. Enter values in the text boxes, if necessary.
When defining settings manually, the upper limit, lower limit (one-sided limits) or
both can be set.
Click the Change button to copy the change into the columns in the upper parts of
the dialog as well. Measurements are not updated with the new data until the data
has been approved by clicking the OK button.
Limits dialog
Measurement limits can also be calculated on the basis of the data in use. To do
this, click the Calculate button in the Measurement Limits dialog.
Use the Limits dialog to select the principle that Wedge uses to calculate a lower
limit, target value and upper limit for selected measurements.
The Normal distribution option calculates the average and standard deviation and
defines the values shown in the table. The user enters a K value. (The default K
value in Wedge is 3. The value is normally selected between 1 and 3.) The value is
a factor that the program uses to indicate the standard deviation of the data.
You can choose the K value and enter it in the Measurement limits calculation
dialog. The statistical interpretation of the K value is as follows:
• 99.7% of data points lie within 3 standard deviations of the average.
• 95.4% of data points lie within 2 standard deviations of the average.
44
• 68.3% of data points lie within 1 standard deviation of the average.
The above interpretation is only valid for normally distributed data. When the upper
and lower limits are calculated on the basis of a normal distribution, they are
located symmetrically on both sides of the average.
The values are calculated from the measurement data. If the data is not normally
distributed, the limits can be calculated according to the Measurement data
distribution. The user enters a Y percentage value in the text box. The value
indicates the share of active data remaining within limits. Thus, the share of data
remaining outside limits is as follows:
X% = 100% - Y%
The Measurement data distribution option sorts the data points by size. The
upper and lower limits are determined as specified in the following table:
If the limits are calculated based on the actual distribution, they are usually not
positioned symmetrically.
45
Figure 8.5. Background colour from measurement
In the above figure, the broke percentage measurement BROKE_% has been
selected as the background trend. Once the selection is made, all trend plots show
the following values of the BROKE_% measurement signal:
• High values are shown as light colors.
• Low values are shown as dark colors.
46
Trend window settings
The Properties option in the Edit Trend Plot menu opens the following dialog:
To select the number of grid lines shown behind the trend plot or spectrum plot:
The data point time interval format defines the time interval by displaying the
sampling points from the trend's initial data point onwards. The data points are
presented in the XXXXXXX format, with the sampling points counted from 0
9999999.
The seconds time interval format defines the time interval by displaying the location
47
of sampling points in seconds in relation to the trend's initial data point. The trend's
first sampling point is at the 0 seconds point.
3. Click OK. The Properties dialog will close. The selection remains in use only
while the trend plot is kept open.
If the same Trend window is closed and reopened, the Y-axis will be displayed in
the normal manner. If you open the Trend window of several trend plots, the Y-axis
of each diagram must be separately changed to logarithmic.
48
9. Calculated measurements
This chapter deals with calculated measurements and presents the collection of
Matlab formulas used in Wedge.
When a calculated measurement is used, the time series resulting from the
calculation must match in length the original time series used for the calculation.
Short and simple formulas should be entered directly in the Formula field of the
Component properties dialog of the calculated measurement. Longer, more
complex formulas should be run on disk using their own functions (m-file) and then
named in the Formula field of the Calculated measurement dialog. Instructions
for m-file use are available from the Wedge administrator or the system supplier.
Calculated measurements can be added in three different ways. You can add a
calculated measurement either via the Edit menu or in the diagram edit mode by
right-clicking and selecting New component – new calculated measurements
from the menu that opens up. The easiest way, however, is to use Wedge's
existing collection of Matlab formulas, where you can add calculated
measurements by clicking their links.
49
It is important to note that the operator.* or./ must be used in order for the
multiplication or division to be performed pointwise. For example:
• x1.*x2
The following built-in Wedge variables can be used in the calculation formula:
• len (length in data points)
• dT (time level in seconds; e.g., 1 minute at the dT time level = 60)
• T (number of seconds since the beginning of 1970)
The difference between two consecutive data points. N.B.! The resulting time
series is 1 data point shorter than the original time series. This problem is corrected
by adding to the calculated time series 0 with the formula [0; diff(x1)]:
• cumsum (integration); cumulative sum of values
• smooth filtering in the desired window.
50
Figure 9.1. Collection of Formulas dialog
In the Collection of Formulas dialog, you can click links to add measurements.
3. Select a formula from the collection and click the Add calculated measurement
link. The Parameters dialog will appear. The text boxes show the name(s) of the
selected measurement(s) and default values set by the program.
5. Click OK.
51
Figure 9.2. Parameters dialog
3. Right-click the mouse and select New calculated measurement from the menu.
4. Right-click the component. From the menu that opens up, select the
Component properties option. The Measurement properties dialog is displayed
52
Figure 9.4. Calculated measurement, General tab
- Choose whether to display the component image and choose an icon for the
component.
- Choose whether to display the last value of the measurement and the unit in the
diagram.
- If necessary, choose the time interval for the calculation of the value shown in the
diagram. This is useful if the calculation is, for example, the cumulative production
amount per day and if the calculation of the result requires the data of the whole
day.
- Use as state measurement - selection imports the the measurement to be used in
the Grade selection menu.
53
Figure 9.5. Calculated measurement, Formula tab
6. Choose the Formula tab. If you have selected two or more measurements, the
default value of the diagram is the sum of the variables. Edit and enter the new
calculated formula in the Formula field. The formula variables are expressed by
the names x1, x2, x3, etc.
Measurements can be added and removed from a calculation by pressing the Add
variables and Delete variables buttons.
You can change the order of the x1, x2 and x3 measurements with the Up and
Down buttons.
54
10. Reference time
Reference time means that you can set a time interval from the history for use as a
reference for the present situation. This function is particularly useful when the
process has been changed and you want to know the changes in the measurement
values between before and after situations.
2. Click the Open Reference Time dialog… command. The Use Reference Time
dialog will appear.
55
Figure 10.3. Set Time Intervals list box when using a reference time
plots.
Use of the reference time is indicated on the Set Time Intervals shortcut bar, with
the start and end times of the trend plot time interval separated by three dots.
Figure 6.10 contains a trend plot whose left-hand part shows a Reference Time
Interval depicted with a green line. The right-hand part of the trend consists of new
data and is depicted with a black line.
2. Click the Open Reference Time dialog… command. The Use Reference Time
dialog will appear.
3. Click Do not show any reference time.
4. Click OK; the dialog will close and the reference time will be deactivated.
56
11. Compensation of delays
Delays in the process often complicate the analysis of the process. In Wedge,
process delays can be compensated before analysis. Wedge's delay components
are implemented utilising the versatile calculation features of the software. These
features can be used to delay variables measured in different parts of the process
to a single point called the zero point. Chronological delaying of measurements
facilitates analysis of the cause-effect relations of the process.
In this chapter, you will learn the following:
• Creating delay models
• Defining delay component configuration parameters
• Using delay components in process analysis.
Delay model
A delay model is created by placing delay group components for all process
phases in a diagram. Place a delay component between the delay group
components and configure the type of delay that the delay component causes in
the process. Combine the components with a line. Line drawing direction and order
of connection of the delay components must match the actual flow direction of the
process, i.e., the direction of the delay.
Connect measurements belonging to each process phase to the delay group in
question. The background colour of the delay group's name will be copied to the
measurement name to help the user observe the delay model.
If the flow rate is not constant, but varies, for example, in line with the production
speed, a pipeline delay should be applied. In this component, volume remains
constant but the flow rate varies.
If the volume of a given process part, such as a storage tower, does not remain
57
constant, a tower delay should be used. In this case, the effect of changes in the
levels and flow rates of the intermediate storage towers on the delay time is taken
into account.
When the delay function is utilised, the measurements connected to the delay
group are delayed in accordance with the configuration of the delay components.
5. To edit the delay component, right-click the component and select Component
properties from the menu.
58
Delayed measurements
The Delayed measurements component is used to give a name to a process
phase and to add to it the measurements belonging to the process phase in
question.
Use the component settings to specify the following:
• Component name in the Name: field
• Colour for the delayed measurements from the drop-down menu (12 colors to
choose from)
• Icon for the component
• Label position.
1. From the diagram measurement group, select the measurements that are
measured from the process phase in question.
2. Move the mouse pointer over the added Delayed measurements component.
Right-click the mouse and select the Add selected measurements to delay
group command.
3. The name fields of the measurement components selected become framed. The
frame colour is the same as the colour you selected for the Delayed
measurements component.
Whenever you move the mouse onto the Delayed measurements component, the
names of the measurements belonging to the delay component change to light
blue. This helps to identify the measurements that belong to the component in the
diagram. The next figure shows an example of a Delayed measurements
component and the measurements belonging to it.
59
Figure 11.4. Delayed measurements component and measurements belonging to the
component
Constant delay
A constant delay component delays measurements by a standard time period.
This can be used if the intermediate storage levels and flow rates of the process
remain constant.
Pipe delay
If the delay is not constant as a result of a non-constant production rate, you can
delay measurements using the Pipe delay component based on the constant
volume and the dynamically changing flow data.
60
• In the Icon and label tab, you can specify the following:
o Icon for the component
o Name
o Label position.
Tank delay
If the surface level of process tanks varies, use the Tank delay component.
61
Figure 11.7. Tank delay, parameter entry
The tank delay calculation is based on the total volume and surface level data of
the tank. The calculation gives the amount of material in the tank. This amount is
then divided by the flow data. Stock is assumed to progress as plug flow.
In practice, the tank delay is a combination of plug and mixed flow delays. Thus,
tower delay allows you to set the following:
• The proportion of mixed flow volume in the tower, the amount exceeding which
being plug flow, which directly affects the amount of delay
• The remaining portion in the tower, which is an ideal mix. If the surface level of
the tower is lower than the value defined for the mixed flow volume, then the
delay caused by this mixed volume is shortened.
External delay
The External delay component uses delay data obtained with calculated
measurements in Wedge or delay data calculated in another system.
62
Figure 11.8. External delay component, Configuration dialog
You can combine flow measurements in the diagram using the Join delay
component. Place the Join delay component to a suitable position on the diagram.
Connect two or more delay components with a line to the Join delay component.
Use the component settings to specify the following:
• Inwards flows combined with this component
• Measurement units of flow measurements from the drop-down menu.
• In the Icon and label tab, you can specify the following:
o Icon for the component
o Name
o Label position.
63
Split delay component
You can separate flow measurements in the diagram using the Divided flow delay
component. Place the Split delay component to a suitable position on the diagram.
Draw two or more lines from the Split delay component to the following delay
components.
Use the component settings to specify the following:
o Icon for the component
o Name
o Label position.
Once this is done, you can continue using the program as normal. Wedge
manages the temporal alignment of measurements with the zero point in question.
In doing so, the program takes into account all defined calculation points between
the actual measurement location and the analysed zero point. The delay
calculation is performed by consecutively linking each individual delay.
Once Wedge has automatically aligned the measurements with the selected zero
point, all basic Wedge functions, such as multivariate analysis (Principal
Component Analysis, PCA), can be utilised.
64
Adding and removing delayed user annotations
Once the calculation point (towers, washer) data has been configured with delay
components, the same information can also be utilised to monitor process
changes. To do this, select a time interval of interest from a given variable. The
progress and mixing of the stock during the time interval in question are expressed
in the trend plots of the measurements later in the process by means of
background coloring. The darker the background colour in the trend, the higher the
amount of selected stock flowing in the process during the selected time period.
If you select the Add delayed user annotation command, the software can
calculate the progress of the process status during the selected time interval. This
requires that the analysed measurements have been connected to a delay model.
The Delay measurements and Add delayed user annotation commands are
mutually exclusive. You can only use one property at a time.
Right-click the trend plot to deactivate the delayed background coloring. From the
menu that opens up, select Delete delayed user annotation. All areas marked
with delayed background coloring are removed.
65
In the above figure, a Delayed user annotation has been marked in the
measurement "Pine chips to digester". As the stock flow progresses in the process,
the Delayed user annotation is visible in the measurement "Blow off kappa"
approximately 4 hours later.
66
12. Data analysis
This chapter presents the data analysis stages and the analysis tools:
• Data selection and processing
• Statistics
• XY plot
• Histogram
• Correlation matrix
• Cross-correlation
• Spectrum
• Periodic fluctuations
• Searching for fluctuation source (MAR)
• Example of MAR Navigator results
• Waveform matching.
Principal component analysis (PCA) is presented in full in a separate chapter.
The analysis results provided by Wedge are calculated for the measurement data
selected by the user. Wedge's analysis methods are advanced and highly
automated. However, the measurement data used for analysis must be carefully
selected to safeguard the reliability and usefulness of the results obtained. In
addition, the selected measurement data often requires preprocessing. The user
must, for example, decide whether or not data recorded during a production break
or shutdown should be included in the analysis.
67
• Examining data as trends
• Preprocessing data.
As a general rule, the selected time interval must be long enough, and the
phenomenon under analysis should occur as strongly as possible during it. When
determining the cause of a periodic fluctuation, the examined fluctuation must
occur during the selected time interval as strongly as possible while, on the other
hand, the selected time interval itself must also contain at least several cycles of
variation. When identifying the cause of individual disturbances, process delays
must also be taken into account. The cause of a disturbance can often be
temporally far removed due to lengthy delays. On the other hand, too long a time
interval can also be detrimental. In such a case, a phenomenon may be identified
that closely resembles the analysed phenomenon, but is so far off timewise that it
could never have brought about the analysed phenomenon. In turn, when selecting
the reference period for statistical monitoring of the process, one must remember
that the process must be in the normal state during the reference period.
An example of the effect of the time level on the phenomena observed from the
data is shown in the figures below. The trend plots present the same data, but in
the latter trend plot the time level is 30 times slower. Furthermore, the spectrum
diagram calculated from the latter measurement data provides faulty data
concerning the periodic nature of the measurement.
68
Figure 12.1. Fast time level in trend plot
The selected time level should be fast enough to enable observation of the
examined phenomenon. On the other hand, too fast a time level is detrimental
because the amount of data increases to undesirable levels. If, for example, you
are analysing pH variation, a 10-second time level will be far too short. If you are
unsure of the suitable time level, too fast a level is, however, always preferable to
too slow.
Preprocessing data
Measurement data can contain data that is faulty or otherwise unsuitable for
analysis. To ensure reliable analysis results, such unsuitable data must be either
deleted or repaired before commencing the analysis.
69
The definition of data suitable for analysis depends on the analysis method used.
For example, when clarifying the cause of a non-recurring change using the
Waveform matching method, tuning the process measurement devices is not
essential. If, on the other hand, a balance calculation is carried out using
Calculated measurement, the results obtained will be incorrect if the tuning is not
right. There are no set, universally applicable instructions for selecting data and
carrying out the required data preprocessing. This User Manual does, however,
provide instructions for each of the presented methods regarding key factors to be
taken into account when applying the different analysis methods.
It is often difficult to find within measurement data a long enough time interval that
is free of the above non-stationarities. In such a case, the measurement data can
be preprocessed to make it better suited for analysis.
70
example, of a sensor fault. Wedge's analysis methods take into account missing
data points, and they are calculated for in the most suitable way for each method.
Faulty data values can be caused, for example, by measurement errors or
abnormal conditions. Faulty values can also occur over long time intervals, for
example, for the duration of a production stoppage. If faulty values are not
separately taken into account in the calculation, they will distort the analysis results
calculated from the measurement data.
Data cutoff
The easiest and most common method of data preprocessing is to cut the intervals
containing faulty measurement data or no valuable measurement information from
the measurement data. Measurement data can be cut (data cutoff) by either
removing the time interval in question or cutting off all intervals during which the
selected measurement has exceeded the set upper or lower limits. The data cutoff
is applied to all diagram measurements. Detailed instructions for data cutting are
presented in the chapter Viewing trends, Removing a time interval that exceeds
limits and Removing all time intervals that exceed limits.
Data cutoff causes discontinuity of the time axis. However, Wedge's calculations
are carried out so that the cut data does not distort the obtained analysis results.
Nevertheless, it must be noted that important information can be lost when cutting
data from other measurements.
The saved Favorite time interval can be reaccessed via the Calendar view time
interval shortcut of the Trend window.
71
Figure 12.3. Automatic data screening
Set the constraints by entering the name of the measurement on which data
screening is to be performed in the Measurement field. Next, select the
comparison operator from the drop-down menu. Finally, in the right-hand field,
enter the limit value with which the selected measurement is to be compared. Click
OK. The data you have classified as unreliable will now be screened from all
analyses. It is important to ensure that the data defined in the Data screening
dialog consists of the values to be accepted for analysis. Therefore, the values
which do not fulfil the constraint are screened out. In this example, the time
intervals during which the MASK measurement value is higher than 0.5 are
accepted for analysis.
Once Data screening is in use, the selection will be observed in all analyses and
the application will screen all data classified as unreliable by the user. Data
screening is a session-specific function, which means that the selection you have
made expires when you end the current session.
72
Figure 12.4. Measurement-specific data screening using calculated measurements
If a data point meets the constraints, it will be kept. If either or neither of the
constraints is met, NaN (Not a Number) will be marked as the data point value.
Thus, the data points are not "cut out" as this would cause discontinuity within the
time axis of the data analysed. In this way, the data points considered unreliable
are screened from the measurement and are accounted for in the most suitable
way for each analysis method without lessening the reliability of the analysis
results.
73
and poor production runs.
Analysis tools
Analysis methods are used to effectively identify the cause of process disturbances
and to obtain process information that would otherwise be difficult to obtain using
standard trend tools.
The various applications of Wedge's analysis methods are presented below in
brief. The aim is to help the user to select a suitable method for the analysis and
identification of the cause of different process problems.
• Statistical Process Control (SPC) is used to monitor and identify causes of
changes in process operations.
• Examining the Statistics gives a better picture of the measurement data and
the different process situations. The statistics function can be used, for
example, when studying the measurement data deviation or fluctuation range.
• The XY plot function can be used to examine dependences between two
measurements both graphically and between measurements using a derived fit.
• The Histogram function facilitates analysis of the measurement data
distribution.
• The correlation coefficient describes the linear relationship, or similarity of
form, between different measurement data. It does not take into account delays
between measurements.
• The Best correlations analysis is used to search the measurements that best
correlate with the target measurement.
• Cross-correlation is useful for determining the delay correlations and auto-
correlation of measurements.
• The spectra are used to interpret measurement signal cycles and to display the
division of measurement signal effect on different frequencies.
• Periodic fluctuations analysis is used to identify fluctuations of different
measurements that occur at the same cycle length.
• The MAR Navigator is used to find the origin of periodic process fluctuations.
• The waveform matching is used to determine the cause or consequences of
non-recurring phenomena.
After an analysis has been made, use the handy More functions menu to continue
with the process. Use the More functions menu of the open statistics dialog, for
example, to select a correlation matrix to view the correlation coefficients of the
measurements in question.
74
1. Choose one or more measurements from the diagram.
2. Hold down the right mouse button over the measurement to be set as the
reference. Select the Compare trends with this measurement command from
the menu that opens up.
• If you have selected one measurement only, all diagram or measurement group
measurements will be compared with this measurement.
• If you have selected more than one measurement, the other selected
measurements are the reference.
3. To browse the trends, use the scroll bar that appears on the right-hand edge of
the lower trend plot.
In the next figure, the measurement Hardwood mixing flow, with which all other
measurements of the diagram are compared, has been selected. There is a scroll
bar on the right-hand edge. At the bottom of the figure, you can see the More
functions button. Use the button to select analysis functions to be applied to the
data.
While browsing the trends, you can easily screen any unwanted time intervals from
the analysis to improve the reliability of analyses.
75
of the reference period, the alarm limits are defined within which the measurement
values must remain in order that the process can be considered to be in the same
state as it was during the reference period, that is, the measurement can be
considered to be statistically under control.
Correct selection of the reference period is vital to the success of the statistical
process analysis and requires good knowledge of the process. During the chosen
period the process must be in the normal state. There must be no exceptional
fluctuations and the quality must be optimal. In order to ensure that the reference
period is truly representative, the selected interval must be of sufficient length.
SPC works on the basis of set alarm limits that are defined on the basis of the
chosen reference period. The reference period is selected on the basis of process
knowledge. All time period selection properties of Wedge can be applied when
selecting the reference period. Data cutoff can be also be used. State dependency
should also be observed when using statistical process control. If the time interval
contains different states (such as the end product grade), the statistical reliability of
the limits calculated on the basis of the interval cannot be guaranteed. In that case,
the limits must be defined state-specifically. If state dependency is used for
defining limits, it is recommended that several periods during which the process
has been in the same mode are included in the reference period. For more detailed
information on setting limits, see the chapter Special trend functions.
You can also set alarm limits based on your own knowledge of the process. The
limits can also be set asymmetrically.
Figure 12.6. Trend plot showing alarms, target value and upper and lower limits
Once the limits have been defined and Alarms has been selected in the
Graduations dialog, all intervals during which the measurement has fallen outside
the set limits are displayed with a yellow background in the measurement trend
plots. If Target value is selected, it is shown in the trend plot in green and if Upper
limit and Lower limit are selected, they are shown in red. When Calculate from
current data – average is selected in the Graduations dialog, the average is
shown in the trend plot in blue.
76
Statistics
The Statistics command displays the statistical indicators of the measurement
data as a table. By pressing the Columns button, you can select which of the
following pieces of statistical information will be displayed as columns:
• Unit
• Tag Average
• Deviation, indicates how much the observed values on average deviate from
the observed average
• Relative deviation, gives the significance of the deviation. Deviation alone
describes the absolute fluctuation. Relative deviation can, for example, be used
to compare measurements from different measurement ranges.
• Maximum, the highest value of the each measurement in the examined time
interval
• Minimum, the lowest value of the each measurement in the examined time
interval
• Fluctuation range (maximum–minimum)
• Last value, the last measurement values in the examined interval
• Number, the number of data points used in the statistical calculation.
The number of measurements that can be selected for statistical analysis is not
limited.
Click the name of the measurement to open the trend plot of the measurement.
Move the mouse pointer over the name of the measurement to show a red check
77
mark that allows you to remove the measurement from the table. You can drag
new measurements from a diagram to the statistics dialog.
Click the column name to arrange the statistics table by the data in the column in
question (ascending or descending).
XY plot
The XY plot can be used to study the dependency between the simultaneous
values of two measurement signals. This kind of analysis can be performed, for
example, when estimating the reliability of the calculated correlation coefficient
between two measurements (see the chapter Correlation coefficient). Two
measurements must be selected for the XY plot.
A 1st-, 2nd- or 3rd-degree plot can be applied to an XY plot. The equation of the
fitted plot and the r2 value are shown at the bottom of the XY plot dialog. The
degree of the plot to be fitted can be changed via the drop-down menu on the
bottom right-hand edge of the canvas. The axes of the measurements can be
changed via the button next to the drop-down menu, upon which the fitted equation
78
is recalculated.
The time axis of the measurement points is presented in colour. Sampling points
drawn in blue represent data points that date further back in the history, while red
data points are more recent.
To return to the original plot view, right-click on the plot. From the menu that opens
up, select Zoom out.
The XY plot can be copied and, for example, pasted into a Microsoft® Word
document. To copy the plot, right-click on it. From the menu that opens up, select
Copy graphics. You can then paste the copied plot into a Word document via the
clipboard.
Histogram
The Histogram function shows the number of measurement points in each value
range of the measurement. It can be used to show the measurement deviation
(frequency function) as a bar chart and the cumulation (cumulative function) as a
curve. A histogram is a standard tool used to present information contained in the
large amounts of data. Its X-axis is the value range of the measurement result and
the Y-axis is the rate of occurrence of the measurement result.
The histogram shows the minimum and maximum values and fluctuation range of
the measurement data and can be used to estimate average and deviation values.
The histogram shape can also be utilised when analysing the measured data. The
shape of the histogram is used when estimating the proximity of the measurement
data distribution to the normal distribution. The shape can also help to determine
whether the measurement results are representing the same phenomenon. For
example, a grade change can lead to the occurrence of a so-called isolated peak.
Analysis of measurement data of this type on its own can give misleading results.
The cumulation plot of the histogram reveals the cumulation of measurement data,
in other words, it describes how the observations accumulate as the value of the
variable increases. The cumulation clearly shows what proportion of observations
lie above or below a given limit.
79
Figure 12.9. Histogram dialog
The histogram window can be copied and, for example, pasted into a Microsoft®
Word document. To copy the plot, right-click on it. From the menu that opens up,
select Copy graphics. You can then paste the copied image into a Word
document.
80
Correlation matrix
The correlation coefficient describes the linear relationship, or similarity of form,
between different measurement data. The coefficient ranges between -1 and 1.
The higher the absolute value of the coefficient, the closer the linear relationship
between the analysed measurement data. When the linear relationship is perfect,
the correlation coefficient is either -1 or 1. When the correlation coefficient is
positive, the linear relationship is the same, in other words, as the values of one
variable increase, the values of the other variable also increase. When the
correlation coefficient is negative, the relationship is the inverse, in other words, as
the values of one variable increase, the values of the other decrease. The
correlation coefficient takes no account of delays in the system; rather, the
calculation is based on simultaneous values of different measurements. Delays can
be addressed by means of Cross-correlation. Process delay refers to a time
delay with which the correlation coefficient between measurements achieves its
absolute maximum value.
It must be noted that the correlation coefficient indicates a linear relationship. The
correlation coefficient can be zero, even if the variables have a statistical
relationship. In such a case the relationship is non-linear. It is also important to
note that even a single deviating observed value strongly affects the correlation
coefficient. The correlation coefficient can be close to zero even if most
measurement data seems to correlate strongly. For this reason, it can be useful to
first draw, for example, an XY plot. The plot will show whether the deviating values
affect the correlation coefficient. Here, again, it is important to remember that the
correlation coefficients reveal nothing about the cause-effect relation, the
estimation of which is based on knowledge of the process. It should also be noted
that process control feedbacks can mean that the measurement derived from the
earlier process stage is not necessarily the cause of the phenomenon in question.
The correlation matrix shows the correlations between all selected signals. All
values of the correlation matrix diagonal are 1, because the signal's correlation with
itself is always perfect.
81
Figure 12.11. Correlation matrix dialog
Click the name of the measurement in the first column to open the trend plot of the
measurement. Move the mouse pointer over the name of the measurement to
show a red check mark that allows you to remove the measurement from the table.
You can drag new measurements from a diagram to the correlation matrix dialog.
Click the name of the measurement in the column title to sort the correlation
coefficients in the column by their absolute values. In the window, you can also see
the trends for the selected measurement and the trends for the measurement that
correlates best with the selected measurement. To change this lower trend, click
the name of any other measurement in the list on the right-hand edge of the dialog.
Best correlations
In the previous chapter, we explained that you can sort the measurements of a
correlation matrix by the absolute value of correlation coefficients by clicking a
correlation matrix column name. You can also do this by opening a trend of any
measurement and selecting the Best correlations tool from the More functions
menu. In this case, correlation coefficients are calculated for all the measurements
of the measurement group in use or for the selected measurements.
82
Cross-correlation
Cross-correlation can be used to study the correlation between two measurements
with various delays. Cross-correlation calculates all possible delays up to a given
limit, so the user does not need to know all delays between the signals in advance.
Auto-correlation, in turn, refers to correlation within measurements. Auto-
correlation is a time separation function that indicates the degree of correlation
between signal data points that are separated by a given time interval.
The correlation coefficient between signals is shown at the 0 point (no delay) on
the time axis of the cross-correlation plot. If the correlation function shows a single
clear minimum or maximum, the extreme value point indicates the delay between
the signals, and the correlation function value at this point indicates the value of the
delay-compensated correlation coefficient. When calculating the cross-correlation,
it should be noted that process control feedbacks can mean that the measurement
derived from the earlier process stage is not necessarily the cause of the
phenomenon in question. If the correlation function has one minimum and one
maximum value, one being at a negative point of time and the other at a positive
time, these usually indicate an incoming connection via the process and an
incoming connection via the control. The process control delays can be identified
from these extreme value points.
Two measurements must be selected for cross-correlation. A cross-correlation plot
for the selected signals is shown, together with a table showing the contribution
direction, the strongest correlation and the delay with which the strongest
correlation is obtained. If no maximum or minimum is found, the table shows no
max/min values.
83
To zoom in on the Cross-correlation dialog, first left-click on the canvas. Then,
holding the left mouse button down, drag a box around the section of the plot you
want to zoom. Next, right-click on the plot. From the menu that opens up, select
Zoom in.
To return to the original plot view, right-click on the plot. From the menu that opens
up, select Zoom out.
The Cross-correlation dialog can be copied and, for example, pasted into a
Microsoft® Word document. To copy the plot, right-click on it. From the menu that
opens up, select Copy graphics. You can then paste the copied image into a
Word document.
84
Periodic fluctuations
A spectrum is a graphical process data display format that is used to interpret
measurement signal cycles and to display the division of measurement signal
fluctuations at different frequencies. It can be used to distinguish simultaneous
phenomena according to cycle length.
They are especially useful when the user notices in a trend plot that the
measurement data has periodic characteristics. In addition, weak periodic
fluctuations can be visualised using a spectrum.
Periodical characteristics are described in terms of interval time, frequency and
amplitude.
The interval time (T) refers to the length of a repeating cycle. Frequency (f) is the
inverse of the interval time. The frequency unit is hertz (Hz) and frequency is
calculated using the following formula:
f = 1/T
Amplitude refers to signal height as measured from the average to the highest
point.
Spectra are usually used to identify general trend forms as opposed to precise
numerical values. Spectra can give information on the interval time and strength
(effect) of periodical components. They also help to differentiate weaker periodical
fluctuations that are easily ignored when viewing a time sequence that contains
stronger fluctuations. Periodic fluctuations are shown in the spectrum as peaks or
waves.
A process can contain several simultaneous fluctuations, such as resonating
control circuits, regulating unit malfunctions and raw material variations. Examples
of the origins of periodic fluctuation:
• Fast: fluctuation caused by a rotating engine or a pump with a defective bearing
• Slow: vibrating control circuit
• Broad wave in a spectrum: raw material variation
The number of measurements selected for period fluctuations analysis is not
limited, but if more than ten measurements are selected, spectrum diagrams
cannot be used. The Periodic fluctuations command displays a spectrum
window. The area under the curve describes the fluctuation effect. Periodic
fluctuations are shown as peaks or waves. The table next to the spectrum diagram
shows the cycle length and the effect of the fluctuation on that period as a
percentage of total fluctuation.
The fluctuation source can be found using the MAR Navigator. The MAR
Navigator can be started directly via the table next to the spectrum diagram by
selecting the desired fluctuation period strength percentage with the mouse.
Alternatively, you can first examine the measurement spectrum diagram and then
manually select the desired fluctuation period.
85
Figure 12.14. Periodic fluctuations dialog
Spectrum dialog
The Spectrum dialog shows spectra in a spectrum plot. The boxes and buttons of
the Spectrum dialog function similarly to Trend window buttons, but the
Properties list box has the following three time axis formats:
• Frequencies, expressed numerically as 0-XXX
86
• Seconds, expressed as 1e10-XXX
• Hours, expressed as HHHH:MM:SS – H:MM:SS.
87
m
x t = a(l) xt – l + et
l=1
The vector x[t] contains the values of the measurement signals at the time t.
According to the model, the xi (i=1, 2, …, n) value of a given signal at time t
depends on its past values and the past values of other signals up until the
moment t-M. The order (m) of the model indicates how many sampling interval
length time steps backwards in the process history have a current influence in the
model. n is the number of measurements included in the model. Matrices a(1),
a(2), …, a(m) are (n x n)-sized weighting matrices. The weighting factors are
identified by forming step responses between all variables using the least squares
method. The factors describe the interactions between the signals. They show the
effect of past values on the signal value at each delay 1, 2,…, m.
The vector's e[t] elements are referred to as noise sources. They describe the
share of the fluctuation that cannot be explained using the earlier values of the
measurements selected for the analysis. For example, variations in raw material
quality and flow fluctuations caused by malfunctioning valves cannot be explained
using earlier values, so these phenomena are shown in the noise sources e[t]. The
sources of disturbance located near the xi value of the corresponding
measurement that are causing process fluctuations are visible in all noise sources.
Using the mathematical form of the MAR model, the fluctuation of each
measurement can be presented as the sum of the effects of the noise sources.
Each noise term's share of the analysed signal is referred to as noise contribution
and is typically expressed as a percentage. These percentages indicate what
proportion of the fluctuation of the analysed measurement originates from the
sources of disturbance located near each of the measurements included in the
model. The highest percentages therefore show which measurements are closest
to the fluctuation sources, and thus where the search for their origin should be
focused.
The measurement data of the measurements selected for the MAR model must not
be too similar. If so, the modelling function is unable to distinguish between the
different possible progress routes of the process fluctuation and the model
identification will fail. The most common causes of failure are the following:
• The value of a given measurement changes only a few times or not at all.
• The fluctuation of two different measurements is otherwise highly similar, for
example, measurements of the same variable that are located close to each
other.
• The model includes both a calculated measurement and the measurements
used in its calculation; especially when the calculation formula is linear as, for
example, in the calculated measurement "3*x1" or "x1+x2".
Because the error is caused by the similarity of the fluctuation of the measurement
data selected for the modelling, the measurements to be included in the analysis
must be reselected, ensuring that the aforementioned similarities between
measurements do not occur.
88
Processes often contain numerous simultaneous fluctuations. For example, poorly
tuned control loops often cause fluctuations at specific cycle lengths. MAR analysis
is, in fact, usually carried out at frequency level, so fluctuations occurring at
different frequencies can be distinguished from each other.
Although the MAR model is linear, the least squares fitting method it uses does
also go some way towards describing non-linear dependences. However, complex
non-linear dependences cannot be determined using MAR modelling.
MAR Navigator
In Wedge's MAR Navigator, all of the complex MAR modelling calculations stages
are automated. The MAR Navigator results are presented as contribution
percentage values indicating the proportion of the overall target signal fluctuation
that is caused by each explanatory factor within the analysed time interval. The
percentage values obtained from the MAR Navigator are mainly intended to
provide a measure of the scale of significance of the different sources of
disturbance.
When using the MAR Navigator, the following points should be taken into account:
• Least squares fitting always provides some form of fit. Random deviations and
non-linearity can, however, cause fitting errors. The effect of random errors can
be reduced by using a large amount of data and the effect of non-linearity
reduced by using a fixed process state.
• MAR Navigator is designed to facilitate the analysis of dynamic process
fluctuations. The MAR analysis is unable to process static phenomena or
extraordinary transient phenomena.
• Successful selection and preprocessing of data is essential to achieving reliable
analysis results.
• The MAR Navigator automatically deducts the average from the time series and
removes the trend.
• As a Wedge user, you do not need to determine the model order as this
function is automated in the MAR Navigator.
It is important to note that a measurement does not necessarily exist for all
possible disturbance sources. For this reason, the resulting list of measurements
does not necessarily indicate the original cause of the disturbance; rather, where
the effect of the disturbances is most evident. In this way, the navigator locates the
process part where the original cause of the disturbance is most likely to be found.
Furthermore, the MAR Navigator can provide the variable's contribution percentage
for the target measurement of the analysis. This indicates whether the source of
disturbance is near the signal itself or whether the contributions are other sources
of disturbance not included in the analysis.
Processes often contain periodic fluctuations that continue only for a certain period
and may or may not be repeated later on. In such cases, only the time interval
89
during which the fluctuation was observable should be included in the analysis.
The contribution percentages indicate the significance of the source of disturbance
within the data range selected for analysis. If a long range in which fluctuation
occurs only for a short period is analysed, the contribution percentages calculated
can easily be extremely small, making it difficult to determine the origin of the
fluctuation.
In MAR modelling, the fluctuation of signals is explained using the values of past
signals. The results obtained with the MAR Navigator are therefore unreliable if the
analysis contains many signals for which changes occur exactly simultaneously
(within a sampling interval). Simultaneous changes should therefore be examined
using correlation coefficients.
The MAR Navigator performs for the user an invisible reliability analysis, on the
basis of which each analysis variable is either rejected or accepted.
The MAR Navigator dialog will appear. The time scale corresponding to the cycle
length is automatically shown in the Fluctuation time scale field. If you want to
restrict the analysis to a certain frequency, click Show spectrum to open the
spectrum diagram for the selected measurement. Select the desired area in the
spectrum using the X-limiter and then click Spectrum Area in the MAR Navigator
dialog.
The time scale of the selected area is shown in the MAR Navigator dialog. The
time scale can also be entered directly in the MAR Navigator dialog's Fluctuation
time scale field.
90
Figure 12.18. MAR Navigator dialog
In the MAR Navigator dialog you can also choose whether you want to perform
the search for all process diagram measurements (Exhaustive search) or for the
selected measurement group only (Group-specific search…). If the exhaustive
search option is selected and the diagram contains a large number of
measurements, the analysis may take a long time to complete. If you want to
search for the cause of the disturbance in a specific group elsewhere in the
process, you should first create a measurement group. The group should contain
the target variable and the measurements for which you want to determine the
proportion of the target variable fluctuation. Once this is done, start the MAR
Navigator by selecting the created measurement group as the analysis target. This
speeds up the calculation compared to running an exhaustive search if the diagram
contains a large number of measurements.
The MAR Navigator displays the results of the analysis in the dialog. The result
includes the time scale of fluctuation and the analysed time interval as well as the
variables located in the vicinity of the identified origin of the fluctuation. Beside
each measurement is displayed the proportional contribution of the measurement
to the fluctuation as a percentage value. Clicking the Measurements button opens
a dialog showing which of the variables included in the analysis have been rejected
and on what basis, as well as the variables located in the vicinity of the fluctuation
origin. In addition, Wedge creates a temporary measurement group containing all
of the most significant fluctuation causing measurements. You can continue your
data analysis using the temporary measurement group. After the analysis has been
completed, Wedge also opens a Trend window which shows the target variable
and the trends of the variables identified as the most significant causes of its
fluctuation.
If the MAR Navigator finds the origin of the fluctuation to be a measurement that is
already known to you, repeat the analysis with the measurement in question
excluded. This can be done, for example, by removing any well-known sources of
disturbance from the selected measurement group. This will facilitate the
identification of new, unforeseen sources of disturbance.
91
Figure 12.19. MAR Navigator Outcome dialog
The MAR navigator outcome dialog shows the following result: in this case, no
significant fluctuation source was found elsewhere. Either the disturbance
originates from the target measurement or no measurement is associated with the
fluctuation origin.
Yield fluctuations were a familiar problem at the plant. Yield had to be kept low in
92
order to ensure that the set limit on end product impurities was not exceeded. The
following figure shows a yield trend. Eliminating yield fluctuation would enable the
maximum yield level to be raised and would also enable more efficient utilisation of
valuable raw materials.
The fluctuation passed through several control circuits and return flows. All critical
process measurements were examined. The same fluctuation was found to be
present in the majority of measurements.
The yield spectrum diagram shows several clear spectrum peaks and broadband
noise. On the basis of these findings, it was concluded that the observed
fluctuation was caused by several simultaneous process events.
A MAR analysis was performed separately for several frequency ranges. The
strongest spectrum peaks and broadband noise were included in the analysis.
The proportional fluctuation strength of the strongest spectrum peak measured
more than half the total fluctuation strength, as the Periodic fluctuations dialog
shows.
93
Figure 12.23. Periodic fluctuations dialog
In the fluctuation strength percentage table in the Periodic fluctuations dialog, the
biggest fluctuations in terms of strength were selected, the time scale for which is
shown in the MAR Navigator dialog.
In the MAR Navigator outcome dialog, you can see that the fluctuation was caused
by the temperature fluctuations of the process steam supplied from outside the
plant.
94
Figure 12.25. MAR Navigator outcome
The origin of the broadband noise also needed to be clarified. With the MAR
Navigator, the source of the noise was traced to the vicinity of a tank inlet flow.
With the assistance of the plant personnel, the problem was quickly resolved.
Firstly, the tank level was measured with ultrasound. Foam build-up in the tank
interfered with the measurement, however. The resulting fluctuation was observed
at several measurement points throughout the plant.
The sources of several other spectrum peaks was also successfully located. These
peaks had originated from vibrating control circuits.
Non-recurring phenomena
The occurrence of non-recurring phenomena in process measurements can be the
result of, for example, damaged or deteriorated process equipment, equipment
maintenance, modification of control circuit set values or other measures
performed by the operating personnel that affect the process. This type of
phenomenon usually also affects other areas of the process and can often be
observed as a corresponding change in other process measurements.
Waveform matching
The Waveform matching analysis tool searches other measurement signals for
the selected time interval waveform. Waveform matching also finds reverse forms
(mirror images of the waveform).
To begin waveform matching, a single measurement must be selected. Open a
trend window for the selected measurement and, using the X-limiter, select from
the trend plot the phenomenon to be analysed, in other words, the time interval
during which the waveform in question occurs. Right-click on the trend plot and
select either of the following:
• Search for causes of waveform
• Search for consequences of waveform.
If you select the Search for causes of waveform option, the search will be limited
to the time preceding the selected phenomenon. Knowledge of the process is
required for the time interval selection in order to be able to anticipate delays. Too
long a history can cause the function to match the analysed phenomenon with an
event that is so far removed in terms of time that it could never have caused the
phenomenon being investigated. Then the actual cause of the phenomenon in
question can thus remain unfound.
You can limit the search by selecting an already existing measurement group or by
creating a totally new measurement group for the analysis.
The result will be shown in the Waveform matching dialog. The forms that most
closely correspond to the waveform of the selected measurement are presented in
a table. The table shows the name of the measurement, the level of similarity
expressed as a percentage and the delay with which the similarity occurs.
95
Figure 12.26. Waveform matching dialog
Trend plots are also obtained as a result of the analysis. The topmost diagram
shows a measurement selected as the target of the analysis. The time interval in
question is shown on the diagram in a blue colour. The other trend plots present
the other signal forms that best correspond to the target waveform. The identified
waveforms are shown on the trend plots with a yellow background.
96
Figure 12.27. Search for causes of waveform
It is important to note that the Waveform matching function does not take into
account process dynamics. Thus, for example, filtering caused by a tank can result
in the function failing to identify the actual cause of a phenomenon occurring after
the tank.
If you select the Search for causes of waveform function, the search will be
limited to the time after the selected phenomenon. This enables you to search, for
example, the consequences of variation detected in raw material later in the
process.
97
13. Principal Component Analysis (PCA)
This chapter discusses principal component analysis. Principal component analysis
(PCA) is a tool designed for studying a large group of correlated measurements.
PCA enables easy monitoring of process status and the variables that have an
effect on it. A source of disturbance can be located quickly in the measurements
being examined.
Y i = P1 X1 + P 2 X 2
The factors Pi express the degree of influence each factor xi has on the values of
the combined variables Yi.
When creating a PCA model, the data is used to determine the directions in which
fluctuation most occurs. These directions are the new coordinate axes (principal
components), and their directions remain unchanged after the model has been
created. These new coordinate axes are used to express the fluctuation in original
measurement signals. Principal components do not correlate with each other.
98
Creating PCA models
Steps for successful PCA analysis:
1. Choose interesting measurements.
• no long process delays
2. Choose appropriate periods of time for comparison data.
• process in a typical state
• good product quality
• time periods can be cut
• no constant signals
3. Create a PCA model.
4. Study the results.
3. Select PCA Model from the Analyses menu. The PCA dialog will appear in the
main window on the right.
4. Select Create PCA model. The Create PCA Model dialog will appear.
5. Select whether the PCA model will be created for the measurements of the
selected measurement group or the selected measurements and click Next.
6. Enter a name and a confidence limit for the PCA model. Select an appropriate
state dependency option. Click Next.
99
7. Enter the number of principal components to be calculated. The dialog displays
the influence that the number of principle components has on the percentage of
explained variance. The red colour in the bar chart signifies the proportion of
fluctuation attributable to the selected principal components. The default number of
principal components is three. This number can be changed, upon which the
cumulative percentage of explained variance also changes.
There is no universal rule for the number of principal components selected for
analysis or for an adequate cumulative percentage of explained variance.
However, the cumulative explained variance of the principal components selected
for analysis should be more than 50% for the process data analysed.
8. Select Finish.
Once the selections have been approved, Wedge calculates the selected number
of principal components. The principal component icons contain the calculated
data of the principal components. In addition, the PCA group includes one icon for
residual variance. The principal component and residual variance icons include the
same functionality as the normal measurements.
The PCA model is saved along with the process diagram and can be reapplied.
100
• They cannot be deleted.
• They cannot be moved or copied to other measurement groups.
A PCA model can also be state-dependent.
Do as follows:
1. Select a point of time from the principal component trend for further examination.
101
Figure 13.4. Principal component contributions
4. Use the tooltip function to see which variable a bar refers to. To show the tooltip,
move the mouse pointer onto the bar.
1. Select the desired point of time from the principal component trend plot.
3. Select Top4. A trend plot is displayed with the examined principal component at
the top. Below the principal component, you can see the trends of the four original
measurements that best indicate the value of the selected point of time.
102
Figure 13.5. Principal components Top4
103
Updating principal component models
To update a PCA model:
1. Select a point of time on the basis of which the model will be updated.
4. Click Update.
Do as follows:
The bars of the diagram indicate the direction and amount of the effect that the
original variables have on the principal component values. The original signals
whose bars are the largest (in either the positive or the negative direction) have the
most effect on the principal component in question. A positive bar value indicates a
positive correlation between the measurement signal and the principal component.
A negative value indicates a negative correlation.
104
XY score (effective score)
The XY score diagram shows the time series of two selected principal components.
The diagram shows the behaviour of the process during the examination period in
regard to the selected principal components. If points form clear groups in the
diagram, the process has been in various states during the period. These process
states can be compared by viewing the XY score and XY loadings diagrams
simultaneously. However, it is recommended that a separate principal component
analysis be performed for each process state and that the results of these analyses
be then compared to each other.
The points should be inside the ellipse. If the points are clearly outside the ellipse,
there has been a change in the process since the time period used when creating
the PCA model.
105
XY loadings
The XY loadings diagram shows the interdependencies of the variables included in
the PCA model. The following rules are followed when studying the
interdependencies of the variables:
1. The closer to the origin the variable is, the less weight it has in the creation of
the principal components.
2. Correspondingly, the further from the origin a variable is, the more important it is.
3. Variables that are close to each other have a positive correlation.
4. Variables that are located on the opposite sides of the origin have a negative
correlation.
5. The closer the angle of the straight lines drawn from two variables to the origin is
to a right angle, the weaker the correlation of these variables.
Use the XY loadings diagram to, for example, find out how the correlations
between certain variables differ when different states are considered.
106
PCA model residual variance
When the PCA model was created, an icon for residual variance was created in the
measurement diagram in addition to principal component icons. Residual variance
includes the variance that is not explained by the principal components of the
model. The same functions can be performed for residual variance as for the
principal components. The residual variance diagram shows clearly the points
where there are the most deviations in the correlations between the variables.
When a deviation occurs, the residual variance trend crosses the confidence limit.
3. Click Yes.
107
14. Macros
This chapter deals with creating macros. A macro includes a series of frequently
used Wedge functions that can be performed by a single command.
Recording macros
Since saved functions can be repeated any time and as often as necessary,
creating (recording) macros saves time and makes Wedge easier to use.
To record a macro:
1. From the Tools menu, select the Create Macro... command. The Macros dialog
will appear.
2. Enter a name for the new macro in the New Macro text box.
3. Click the Record… button. The dialog will close and the text REC will appear on
the status bar at the bottom of the main window.
4. Include the functions in the macro. The following is an example of a function
series:
• Select Last day as the time interval.
• Select the measurements of your choice.
• Open the trends of the measurements.
• Open the statistics of the measurements.
5. When you have recorded the function series, select the End Macro command
from the Tools menu.
108
Executing macros
To execute a macro, select the Run macro command from the Tool menu and
select the macro.
Saving macros
Recorded macros are saved automatically when saving the process diagram.
When the process diagram is read from the file, the macros that existed when
saving the diagram will be available again.
Editing macros
You can edit a recorded macro using WedgeLISP commands. WedgeLISP closely
resembles the LISP programming language.
2. In the All Macros box, select the macro you wish to edit. Click the Edit… button.
The Edit Macro dialog will appear. Add LISP commands or edit and delete existing
commands in the text box.
109
Figure 14.2. Edit Macro dialog
3. When you have made all the necessary changes in the Edit Macro dialog, click
Apply and Close. The Edit Macro dialog will close.
Deleting macros
To delete a macro, select it in the All Macros list box in the Macros dialog and
click Delete. If a process diagram is saved after deleting a macro, the macro will no
longer be available.
Background macros
Background macros can be used to perform certain tasks automatically at specific
time intervals without disturbing the normal use of the Wedge system.
110
Setting a macro as a background macro
To set a macro as a background macro:
1. From the Tools menu, select the Create Macro... command. The Macros dialog
will appear.
2. Select a macro from the list in the Macros dialog and click the Tasks... button.
The Background macros dialog will appear.
3. Enter the time interval between consecutive macro executions in the Task
Interval text box (for example, 30). The minimum time interval is five seconds.
4. Select Select the macro to be used as a background macro from the Macro List
list box. To move the macro into the Task List list box, click the upper arrow
button.
5. Click Close.
1. From the Tools menu, select the Create Macro... command. The Macros dialog
will appear.
2. Click the Background… button. The Background macros dialog will appear.
4. Click the lower arrow button. The macro is moved back to the Macro list list box.
5. Click Close.
111
15. Printing
This chapter discusses printing. You can plan a layout for a page in the Page
Composition dialog. Use report templates and drawing tools to assist in the
layout. If a dialog has a Print… button, a page layout does not have to be planned
separately. If you want to print, for example, the trend plots displayed in the Trend
window, just click the Print… button and define the print settings in the Printer
Settings dialog.
112
Adding basic report templates
Use the Add Report Page list box at the top of the print dialog to select a report
template. To add a basic report template to the page:
1. Click the drop-down arrow of the Add Report Page list box.
2. Select a basic report from the list. The Report Page dialog will appear.
3. You can add several details to the report. If you want to:
• add a header, select the Add Header check box and enter the header text in the
text box.
• add a time interval, select the Add interval check box.
• add a sampling interval, select the Add time level check box.
• add either statistical indicators or trends only or both together, select the Show
on report page check box.
• set the maximum amount of trends per column by entering a value in the check
box (default is 8).
• select the number of columns in which trends are to be drawn by making the
selection in the check box (default is two columns).
4. Click OK. The selected report template is added to the page.
113
Figure 15.3. Completed basic report
2. Select a table report from the list. The Report Page dialog will appear.
114
Figure 15.4. Table Report Page dialog
3. You can add several details to the report. If you want to:
• add a header, select the Add Header check box and enter the header text in the
text box.
• add a time interval, select the Add interval check box.
• add a sampling interval, select the Add time level check box.
• select the basis for the collection, i.e., the type of data that generates new
columns in the table, the options are:
o Day
o Grade
o Optional measurement.
• set the widths of table cells.
• add the total sums of measurements in the report.
4. Click OK. The selected report template is added to the page.
115
Figure 15.5. Completed table report
Adding printables
You can build a printing page using the contents of open dialogs and diagram, i.e.,
all material displayed. The Add Print Object list box at the top of the dialog shows
all objects that you can add to the page. You can add, for example:
• Diagram images
• Trend plots
• Analysis results
• Time intervals used.
116
Figure 15.6. Print page size settings
117
16. Reports
This chapter deals with creating and printing reports. Often used standard reports
are usually created and printed using the report tool.
2. Select Create new report. Enter a name for the report and select its type. You
can choose a Basic report, a Table report or a report based on a predefined
macro. Once you have named the report, click Next.
118
Figure 16.2. Report naming dialog
3. Next, a dialog will appear in which the layout of the Print page can be selected.
Make the necessary selections: paper size, orientation and footer fields.
4. Next, specify the contents of the report. For a basic report, for example, you can
choose whether to display Statistics or Trend plots or both in the report.
119
Figure 16.4. Report contents dialog
5. Next, select the diagram measurement groups for which you wish to report
measurements. Multiple measurement groups can be selected. To remove an
already selected group, select its name and click the Delete group button. You can
change the order of the measurement groups selected for reports using the Up and
Down buttons.
Click the Group properties button to open the Measurement group properties
window. You can determine the order in which the measurement group trends are
printed on the report pages.
120
Figure 16.5. Report Measurement group selection dialog
6. In the dialog below, you can define the time interval and time level of the
measurement data.
Select the end time of the interval from the following options in the drop-down
menu: Report date, Report time, Weekday or Any given day of the month
1...31.
If, as the end time of the interval, you choose the Report date, a weekday or any
given day of the month, the end time can be set in the time column: hh:dd:mm.
Select the Time Level from the drop-down menu. Make sure that the
measurements selected for the report correspond to the selected time levels and
they have measurement data.
Figure 16.6. Report Measurement time period and time level dialog
Set the execution time for the report with the Add new time command. Select from
the dialog that opens up the printing time in the form hh:mm:ss.
The printing time selection can also be skipped, in which case the report is only
printed manually as necessary. In this case, select the Not repeated check box.
Click Next or return to the pervious stage by clicking Back.
121
Figure 16.7. Report Printing time dialog
If output to a PDF file is selected, the report will be sent via the Wedge server to a
configured directory. Each report can be named successively according to its
printing/output time and/or date.
122
Figure 16.8. Report printer selection dialog
Once the report is ready, you can use the buttons in the report tool dialog to
manage existing reports.
To edit an existing report, select the report from the list and click the Modify report
button.
To copy an existing report under a different name, select the report from the list
and click the Copy report button. The report, complete with settings, is copied
123
under a new name.
To delete an existing report, select the report from the list and click the Delete
report button.
To see a Report preview, first select the report to be previewed from the list. Then
click Preview. Wedge retrieves the measurement signals and measurement data
defined for the report and opens the Page Composition dialog. You can browse
the print pages to check the final print layout of the report.
1. From the Tools menu, select the Report Time Interval... command. The
Report Time Interval dialog will appear.
2. Define the length of the time interval in the combo box on the left by setting the
following:
• Number of months
• Number of days
• Time.
3. To select the end point of the time interval:
• If the Use interval end time check box is selected, you can select the time
interval end date in the list box at the centre of the dialog and a time in the
combo box on the right.
• If the Use interval end time check box is empty, Wedge will set the end point
of the interval as the report execution time.
3. Click OK to close the dialog.
124
1. Select the measurements for which you want to set fixed Y-axis scaling.
3. Select the measurement for which you want to fix the Y-axis scaling of the trend
plot. Click the Minimum field in the column: enter the minimum Y scale. Select the
corresponding Maximum field in the column and enter the maximum value for the
Y-axis.
4. Do the same for all measurements for which you want to fix the trend plot scaling
in Reports.
4. Once you have set the maximum and minimum values, click OK.
5. Save the diagram. The Y-axis scalings of the trend plots are saved along with
the diagram file.
125
17. Saving measurement data
This chapter deals with saving Wedge measurement data as a text file in ASCII
format. You can use ASCII saving if you want to process Wedge data in another
program. Measurement data can also be moved directly to Excel via the clipboard.
In this chapter, you will learn the following:
• Saving measurement group data as text file
• Transferring measurement data to Microsoft Excel via the clipboard.
• The Save to ASCII file... command in the Tools menu opens the Save to
ASCII file dialog.
The dialog contains the following options:
• Save in DAS format
• Time format
• Column separator
• Decimal symbol
• File name
126
Column delimiter is used to separate the measurement data of various
measurements made at different times, when this data is written on one line. The
default name is [Link] and the default location is the user's desktop.
The DAS format option edits the file to the default format.
1. Select the measurement(s) from the process diagram and ensure that the
measurement contains the necessary data.
2. Choose Save to ASCII file... in the Tools menu. The Save to ASCII File dialog
will appear.
4. Click the button in the lower right-hand corner to open the Enter File Name
dialog. Use the dialog to define the directory for the file and the file name. Click
Save.
To save the data from one or several measurements via the clipboard:
2. From the Edit menu, select the Copy data to the clipboard command.
3. Start Microsoft Excel and open a new workbook. Paste the measurement data
into the workbook using the Paste command (or the Ctrl-V keyboard shortcut).
127
18. Importing data from a worksheet
This chapter deals with importing data from an Excel worksheet to be used in
Wedge. Importing data requires administrator rights and that Excel be installed in
the user's computer.
The imported data will be saved in an SQL database stored in the Wedge server
and is available for use by all users. This data import tool is designed for interactive
import of small amounts of data, such as for importing test run results into Wedge.
Data import
The Import data from a worksheet command in the Tools menu opens the
Worksheet data dialog.
In this dialog, you can choose whether to import a new worksheet or to make
changes to earlier imports. This chapter presents first the import of new
worksheets. Select the "Import new worksheet file" link, which opens the following
dialog:
128
Figure 18.2. Worksheet selection
Press the button in the upper right-hand corner that is circled in the figure. This
opens a file listing where you can select the worksheet of your choice.
Sheet: drop-down menu, you can select the Excel tab where the data to be
imported is located.
Click the Next button to open the Cell settings dialog, where you can specify the
first cell containing the names of the measurements. In the same dialog, you can
activate the Unit and Label cells and specify their locations.
129
Here you can also change the direction of measurement and time fields
(horizontal/vertical).
Data import supports worksheets where dates and times are in one or two columns
(or rows).
Click the Advanced button to open the Advanced options dialog, where you can
specify more detailed settings.
130
Figure 18.5. Advanced options dialog
In this view, you can choose to specify that the name of the measurement will be
collected from several columns or that the size of the worksheet to be imported will
be limited.
Click the Next button to open the Data source selection dialog, where you can
choose whether a new data source will be created for the data or whether the data
will be added to an existing data source. Finally, click Finish to start the data
import.
In the Imported from: drop-down menu, you can see the files imported to the data
source in question. Press the Delete import button at the bottom of the dialog to
delete the file data from the data source. Press the Delete source button at the
131
bottom of the dialog to delete the selected data source completely.
132
19. User-specific settings
This chapter deals with defining user-specific program settings. You can find the
Settings command in Wedge’s Edit menu. When you select the Settings
command, the Settings dialog will appear, on the left-hand side of which is the
Directory option. This chapter discusses the settings for the following functions:
• Process diagrams
• Time intervals
• Time settings
• Main window settings
• Servers.
Process Diagrams
Use the Process Diagrams view to select the process diagram default directory
and favorite process diagrams. Set the most commonly used directory as the
process diagram default directory. Then set the most commonly used process
diagrams as the favorite process diagrams.
133
2. Click the drop-down arrow of the Directory field, select the directory from the list
and click OK. The Select Directory Name dialog will close and the selected
default directory will appear in the Default Process Diagram Directory field.
3. Click Save.
1. Click the button in the Favorite Process Diagram section at the bottom of the
dialog. The Select File Name dialog will appear.
4. Click the Add button in the Settings dialog. The selected file or folder will
appear in the Favorite Process Diagrams list.
134
Time intervals
In the Time intervals view, you can edit user-specific time interval settings.
In this section, you will learn the following:
• Setting time interval shortcuts
• Setting favorite time intervals
• Setting default intervals
• Starting the program in the on-line display mode.
2. Update the number of days, the time or both in the combo box.
135
• Select Delete, Save and Close.
5. Click the Add current interval button. The time interval name will appear in the
Favorite Time Intervals field.
6. To check the content of a saved interval, click its name in the list. The interval
will appear at the bottom of the Favorite Time Intervals field.
136
To remove a time interval from the favorites:
• Select the interval name in the list.
• Select Delete, Save and Close.
On-line display
The time interval shown by Wedge can also be dynamic, i.e., it is updated as time
progresses. This means that the opened Trend window is updated as new process
data accumulates. The update speed of the Trend window depends on the
selected time level. To set the dynamic trend display program as the default, click
the Start program in on-line display mode check box.
137
Time Settings
The time settings dialog enables you to set the date and time format.
The default format for the date is [Link], where DD refers to days (01–31),
MM to months (01–12) and YYYY to years (0000–9999).
1. Select a date format from the Date Format list box. The following five options
appear in the list:
• [Link] (default)
• DD/MM/YYYY
• MM/DD/YYYY
• YYYY-MM-DD
• MM DD YYYY.
2. Click the preferred format. The selected format will appear in the selection field.
1. Choose a time format from the Time Format list box. The list contains the
following options:
- HH:MM:SS (default)
- [Link].
2. Click the preferred format. The selected format will appear in the selection field.
138
3. Select Apply and then Close.
Option Description
139
Main Window Settings
In the Main Window Settings view of the Settings dialog, you can edit the
following:
• Measurements lists
• Measurement captions
• Tooltip instructions.
140
Tooltip instructions settings
In the Tooltip instructions field, you can determine whether tooltip instructions for
measurements are shown on the canvas. There are two options to choose from:
• Show tooltips always.
• Show tooltips when editing diagrams.
Tooltip instructions appear automatically when the mouse pointer is placed over a
measurement component. The tooltip instruction gives information on the label of
the measurement and the data source name and position in the data source.
141
Servers
When you start Wedge, it automatically connects to the servers that were
predefined during installation. The servers in use are specified in the Servers view
of the Settings dialog that is opened via the Edit menu. Whenever necessary, you
can define a new server or restore the default settings. Only administrators can edit
server settings, however.
The data server DAS (Data Acquisition Server) is a software that Wedge uses to
read measurement data from various data sources. Only one data server can be
activated in a server computer at once. Data server have at least one data source
per each data collection device connected to them. Each data source normally has
at least one measurement.
The alarm server program WES (Wedge Event Server) is used by Wedge to
monitor the status of the automatic process monitoring system. The alarm server
transmits alarms to the client programs that are connected to them.
The file server program WFS (Wedge File Server) is used by Wedge to save and
archive diagram files on the server.
The MATLAB server enables server-based performance of calculations. At startup,
Wedge connects automatically to a MATLAB server predefined during system
installation.
142
To define a new server:
3. Enter the server name or IP address in the dialog that opens up.
Use the Default value button to set a server that is in use as default during the
next Wedge startup.
143