Escolar Documentos
Profissional Documentos
Cultura Documentos
NOTE
26639558
The application examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The
application examples do not represent customer-specific solutions. They
are only intended to provide support for typical applications. You are
responsible in ensuring that the de-scribed products are correctly used.
These application examples do not relieve you of the responsibility in
safely and professionally using, installing, operating and servicing
equipment. When using these application examples, you recognize that
Siemens cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
application examples at any time without prior notice. If there are any
deviations between the recommendations provided in these application
examples and other Siemens publications - e.g. Catalogs - then the
contents of the other documents have priority.
V 2.0
22.07.08
2/90
Table of Contents
PPA KPIs without Production Modeler
26639558
Table of Contents
Introduction..................................................................................................... 5
In general.......................................................................................................... 5
Test environment .............................................................................................. 5
Equipment for the Windows active directory domain ........................................ 6
Installed software.............................................................................................. 7
Operating systems ....................................................................................... 7
SIMATIC software ........................................................................................ 7
2
2.1
2.2
2.2.1
2.2.2
2.2.3
2.3
2.3.1
2.3.2
2.3.3
2.4
2.4.1
2.4.2
2.4.3
2.5
2.6
3
3.1
3.2
3.3
4
4.1
4.2
4.3
4.4
4.5
4.5.1
4.5.2
4.6
4.6.1
4.6.2
V 2.0
22.07.08
3/90
Table of Contents
PPA KPIs without Production Modeler
26639558
References .................................................................................................... 88
Abbreviations................................................................................................ 89
5
5.1
5.2
5.3
5.4
5.5
5.5.1
5.5.2
5.5.3
V 2.0
22.07.08
4/90
Introduction
PPA KPIs without Production Modeler
Introduction
1.1
In general
26639558
1.2
Test environment
V 2.0
22.07.08
5/90
Introduction
PPA KPIs without Production Modeler
1.3
26639558
V 2.0
22.07.08
6/90
Introduction
PPA KPIs without Production Modeler
1.4
26639558
Installed software
Operating systems
The used operating systems for the domain computers can be found in the
following table.
Table 1-1
Station
Server
Installation
Windows 2003 MUI (Multilanguage User Interface) with SP2
Internet Explorer V6.0 SP2 (6.0.3790.3959)
Image software
Client
Windows XP SP2
Image software
Domain Controller
SIMATIC software
SIMATIC software and its required software packages (e.g. message queuing, SQL Server 2005 with SPx...) are installed as needed. The installed
software for SIMATIC PCS 7 and SIMATIC IT is the released Integration
Pack 2007 on top of the released SIMATIC Versions.
Table 1-2
Product
SIMATIC PCS 7
Version
V7.0 SP1
Microsoft SQL 2005 SP1 HF
PCS 7 / SIMATIC IT Integration Pack 2007
Part1 Updates SIMATIC PCS 7
SIMATIC IT
V6.3 SP1
Microsoft SQL 2005 SP2
PCS 7 / SIMATIC IT Integration Pack 2007
Part2 Updates SIMATIC IT
A detailed list of the installed SIMATIC software can be found in the attachment A of the document SIMATIC software in a domain.
V 2.0
22.07.08
7/90
26639558
2.1
Configuration database
The configuration database consists of:
The configuration tables, updated by means of the configuration tool, contain information regarding data acquisition, processing and management,
for example:
Definition of the events that trigger the acquisitions. These may be:
Definition of source points: source server, as well as the path and mode
for acquiring a point (or points, for snapshots and calculated data).
Definition of Snapshots.
V 2.0
22.07.08
8/90
2.2
26639558
Storage system
In SIMATIC IT Plant Performance Analyzer, the configuration database and
the archives, although physically distinct, are dealt with as a single entity.
Together, they are referred to as a "database set".
2.2.1
Structure
2.2.2
Features
The various PPA database sets can be configured to reside on:
2.2.3
Licensing
Every instance of SIMATIC IT PPA must run on a PC with its own license,
and can only be connected to one database at a time. Similarly, each instance of Configuration Editor can only connect to one database at a
time.
However, the user can use a single SIMATIC IT PPA license to configure
various databases, test them and then export them to other plants (where
they can, in turn, be associated to a completely different PPA instance).
Conventions used for naming databases:
Table 2-1
Database type
Configuration
Online
Offline
V 2.0
Name
22.07.08
9/90
2.3
26639558
PPAEngine
PPAEngine is an out-of-process COM server that:
2.3.1
reads the configuration from the SIMATIC IT PPA configuration database and links to various data sources to retrieve raw data: SIMATIC IT
RTDS and PDA via SIMATIC IT internal APIs, generic relational database via ODBC and SIMATIC IT PPA via ITFSQLLIB.
stores the data into the online databases using a dedicated archiving
server (PPAARCSRV), which is also responsible for the cyclic shift of
the online databases.
Administrative Tool
SIMATIC IT Plant Performance Analyzer Administrative Tool is a high-level
configuration client that enables the management of SIMATIC IT PPA projects, including the creation of SIMATIC IT PPA databases.
2.3.2
Features
Administrative Tool allows the user to work with:
2.3.3
Projects
Databases
NOTE
V 2.0
The Administrative Tool contains a list of all configured databases, thereby allowing the user to simply select the database to work on. Note that
these databases are available to all the other modules as well (e.g. Configuration Editor, etc..).
22.07.08
10/90
2.4
26639558
Configuration Editor
The Configuration Editor is the client that enables the configuration of each
SIMATIC IT PPA project by defining all the tags and snapshots and allows
processing data through PPAEngine.
2.4.1
Features
Classes
Tags
Resources
Folders
Snapshots
Source Points
VB script functions
Script libraries
Production keys
Messages
Equipment
Properties
In Administrative Tool, right-click the project that you want to edit: this
calls up a shortcut menu.
2.4.2
PPAScheduler
Is a COM server that makes it possible for SIMATIC IT Production Modeler,
as well as other COM-enabled applications, to schedule KPIs and set key
values.
V 2.0
22.07.08
11/90
2.4.3
26639558
PPACOM
PPACOM (the COM server used by SIMATIC IT PPA) exposes a set of
COM interfaces and methods for browsing the SIMATIC IT PPA item configuration and accessing stored data.
2.5
Installation notes
PPAEngine and Configuration Editor must run on a computer with SIMATIC
IT Services installed. However, they do not necessarily need to run on the
same computer.
PPACOM does not require SIMATIC IT Services (in any case, it normally
runs on the same computer hosting the engine).
2.6
Structure
SIMATIC IT Plant Performance Analyzer consists in two environments:
V 2.0
Administrative Tool
Configuration Editor
22.07.08
12/90
26639558
3.1
Prerequisite
The installation of the SIMATIC IT Business Process Modeler component
within the SIMATIC IT network is a prerequisite for integrating Plant Performance Analyzer with Production Modeler.
SIMATIC IT Production Modeler allows you to organize an enterprises assets into plant areas according to a hierarchical model fully compliant with
the S95 standard. This standard also establishes that one or more properties can be associated with each object of this model.
3.2
Definition
A Production Key is a particular tag (stored in a dedicated database table)
whose alphanumeric value identifies a specific time span/ event corresponding to a specific production run.
Features
Production keys allow the user to associate SIMATIC IT Plant Performance
Analyzer tags with a specific manufacturing context.
For example, you may want to associate one or more tags with a specific
Production Operation triggered by SIMATIC IT Production Modeler, or with
a specific production batch started by a batch management system.
CPO_ID correlation key
SIMATIC IT Production Modeler is provided with a pre-defined correlation
key, which is called CPO_ID:
CPO_ID contains the unique ID of the Production Operations executed by
SIMATIC IT PM, and is used to correlate all data related to the KPIs (Key
Performance Indicators) with the proper Production Operation.
All records containing KPI data stored by SIMATIC IT PPA and the values
of this key are correlated via two different relationships:
V 2.0
Explicit: The "key" used to retrieve data is the PO ID. The corresponding SIMATIC IT PPA tag must be configured so that its destination archive is of indexed type.
22.07.08
13/90
26639558
Implicit: The "key" used to retrieve data is the "time stamp". You can
extract the corresponding time span (and, consequently, all data stored
within it) starting from the PO ID (i.e. from a specific value of the corresponding key). The corresponding SIMATIC IT PPA tag must be configured so that its destination archive is NOT of indexed type (e.g. tags
stored cyclically, with fast acquisition/aggregation cycles).
SIMATIC IT PPA stores the values of this key at run-time, this relating them
to the Equipment where the Production Operation was allocated. Consequently, data (single value or time series) is stored and associated with the
pertinent Production Operation ID.
Other production keys are defined in Configuration Editor.
Defining Key Values
Using the COM interface exposed by SIMATIC IT Plant Performance Analyzer, you can set the key value to a significant value (e.g. a Production
Operation ID).
PPAEngine will then associate the value of the tag with that of the key at
run-time and store both values in an indexed archive.
3.3
NOTE
V 2.0
22.07.08
14/90
26639558
4.1
Batch Reporting
batch-related messages.
batch-related measures.
All events related to the batch stepping sequence are traced in SIMATIC IT
Plant Performance Analyzer.
These events are related to the following elements:
Batch/Control Recipe
Recipe Operation
Recipe Phase
All relevant information necessary for Batch analysis and Batch reporting is
stored for each element. This information includes:
All stored data allows you to rebuild/display the complete batch stepping
sequence (recipe element executed - with start and end time - plus additional information).
4.2
V 2.0
22.07.08
15/90
4.3
26639558
Message viewer, which allows you to display, sort and filter messages
stored by SIMATIC IT Plant Performance Analyzer.
Batch Reporting
4.4
Prerequisite
On the Historian Server machine must be installed:
V 2.0
Full Services
22.07.08
16/90
26639558
SIMATIC IT BPM
NOTE
Using the SIMATIC manager, configure the SIMATIC IT Historian machine as a SPOSA station inside the SIMATIC PCS 7 project/ multiproject
(see appendix B in the document Data exchange between SIMATIC
PCS 7 / SIMATIC BATCH and SIMATIC IT Historian for a detailed description).
4.5
V 2.0
Creating a project
Creating a class
22.07.08
17/90
4.5.1
26639558
Creating a project
Start the PPA Server on the Historian Server machine from the management console Component > Plant Performance Analyzer
(PPA) > Plant Performance Analyzer Server. Alternative
you can use the autostart function of the Management Console.
You can check if the PPA Server is running using the tab Management
Control Task List to check.
V 2.0
22.07.08
18/90
26639558
The PPA Administration tool window will open and you can create a
new project following these steps:
V 2.0
22.07.08
19/90
26639558
V 2.0
22.07.08
20/90
26639558
V 2.0
22.07.08
21/90
26639558
In the PPA Database Set Configuration dialog box select the Add a
new database set radio button, and click Next.
V 2.0
22.07.08
22/90
26639558
Choose a name for the new PPA Database Set (here Color) and
click Next.
V 2.0
22.07.08
23/90
26639558
V 2.0
22.07.08
24/90
26639558
V 2.0
22.07.08
25/90
26639558
V 2.0
22.07.08
26/90
26639558
Figure 4-12 Select PPA Online Database set location / Transaction Log location
V 2.0
22.07.08
27/90
26639558
Figure 4-13 PPA Online Database set parameters / Initial Transaction Log size
V 2.0
22.07.08
28/90
26639558
V 2.0
22.07.08
29/90
26639558
V 2.0
22.07.08
30/90
26639558
V 2.0
22.07.08
31/90
26639558
If you select the same Online and Offline Database Location the
system shows you an error.
V 2.0
22.07.08
32/90
26639558
V 2.0
22.07.08
33/90
26639558
V 2.0
Click Next.
22.07.08
34/90
26639558
Click Finish.
4.5.2
Creating a Class
Overview of classes
A class is a template used for predefining shared data source and acquisition settings for multiple tags and snapshots. Creating a tag or snapshot
starting from a class will result in the tag or snapshot automatically inheriting shared parameters. In addition, any subsequent changes to parameters
defined at a class level will be inherited by all tags and snapshots in that
class.
NOTE
V 2.0
Classes are a pre-requirement for tags and snapshots, i.e. when creating
a tag or snapshot, you must first assign it to a class. If no existing class
has suitable parameters, you must create a new one. No tag or snapshot
can be created without first defining its class.
22.07.08
35/90
26639558
V 2.0
22.07.08
36/90
26639558
Select the File > New > Class command which starts the New
Class Configuration Wizard. Click Next.
V 2.0
22.07.08
37/90
26639558
In the Class definition dialog box, type the name of the new class in the
Class Name edit box, select SIMATIC_BATCH in the Data Source
drop down list. Then select the "Default Class" check box to set the
class as default while importing from Business Process Modeler.
V 2.0
Click Next.
22.07.08
38/90
26639558
V 2.0
22.07.08
39/90
26639558
V 2.0
22.07.08
40/90
26639558
V 2.0
22.07.08
41/90
26639558
Click Finish.
Figure 4-32 NewClass_Batch created
V 2.0
22.07.08
42/90
4.6
26639558
The IEPAR is used to set the desired values and to collect the actual values. The signal applied to the inputs SP_VAL or ACT_VAL is transferred to
the outputs Q_SP_VAL or QACT_VAL respectively. SP_VAL is set typically
by the batch control or the IEPH faceplate, ACT_VAL by the user program.
4.6.1
V 2.0
Open the RC01_Temp chart and insert the TAG_COLL and the
IEPAR_REAL blocks.
Open the TAG_COLL properties, change block name and insert the
mnemonic name Temp_RC in the F_TYPE field.
22.07.08
43/90
26639558
V 2.0
22.07.08
44/90
26639558
Open the SIMATIC BATCH configuration on the Multi Project level and
verify the Archive measured variable is checked
V 2.0
22.07.08
45/90
26639558
Open the SIMATIC BATCH configuration on the PCell level and link
the measured variable to the WINCC TAG LOGING
V 2.0
22.07.08
46/90
4.6.2
26639558
V 2.0
22.07.08
47/90
26639558
V 2.0
22.07.08
48/90
26639558
V 2.0
22.07.08
49/90
26639558
After configuring the formula/recipe and starting the batch, we can use the
SIMATIC IT HDD to show the KPIs values archived into the PPA database.
This can be seen in the following picture.
For more information about SIMATIC BATCH and SIMATIC IT Historian integration please read the knowledge documentation Data exchange between SIMATIC PCS7 / BATCH and SIMATIC IT Historian.
V 2.0
22.07.08
50/90
26639558
5.1
When the PPA Administrative tool is running right click to the project
and create new configuration from the Scratch.
V 2.0
22.07.08
51/90
26639558
In the PPA Configuration editor click on the Production Keys table and create the PKTest Production Key.
In the PPA Configuration editor click on the Class table and create
the Class based on the RTDS data source and triggered On Data
Change. In this class create also the Tag1 tag with following properties:
V 2.0
22.07.08
52/90
26639558
V 2.0
22.07.08
53/90
26639558
V 2.0
equipment Test_Equip_01
Tag1
22.07.08
54/90
26639558
Click on the Tag1 created in the Class1 to select its Property Definition in the KPI and Target Definition table.
5.2
V 2.0
22.07.08
55/90
26639558
The PPACOM component retrieves data from SIMATIC IT PPA, which can
then be used by an application developed by a third party (for example, in
Visual Basic).
The PPAScheduler component schedules and activates properties and
tags/snapshots, which are configured in SIMATIC IT PPA.
The PPAOBCOM component exposes the functions relative to the custom
objects of SIMATIC IT PPA.
The OBCOM component exposes the functions necessary to set and get
the values of the custom objects properties created by PPAOBCOM Interfaces.
5.3
To manage the KPI created by the user we must follow these steps:
Sets a specific value for a key and stores the time at which it starts its
validity.
V 2.0
In the PPA Configuration Editor click on the Script Library table and
create a new library called KPI_Lib; right click on the KPI_Lib to
add new Global Object called MySch.
22.07.08
56/90
26639558
In the PPA Configuration Editor click on the Script Library table and
then edit the VBInit source inside the PPA\VBSystem.
Dim retval
retval = MySch.PPAEnd
V 2.0
22.07.08
57/90
26639558
Table 5-1
Name
Type
Description
iKeyID
RTDS Point
Key ID
TriggerTime
Trigger Time
Trigger Time
bTriggerTag
RTDS Point
Trigger Tag
Right click on the F_SetKey select Edit Source and insert this code:
Dim retval
If bTriggerTag.Value = 1 Then
retval = MySch.SetKey("Key_"& cstr(iKeyID.Value), _
"Test_Plant\Test_Area_01\Test_Equip_01", _
"Test Key_"& cstr(iKeyID.Value) & " " & _
"in the Test_Plant\Test_Area_01", _
TriggerTime)
V 2.0
22.07.08
58/90
26639558
End If
To avoid that the fSetKey starts automatically when the PPA Server is
started we check the bTriggerTag.Value.
The SetKey is a PPAScheduler function and allows us to set a specific
value for a key and stores the time at which it starts its validity. The SetKey
function has these parameters:
.SetKey (KeyValue, EquipmentName, KeyAttribute, Time) where:
1. KeyValue is run-time key value.
2. EquipmentName is name and full path, starting from the equipment
root, of the equipment that the key value refers to. If multiple levels are
present, each level is separated by a backslash (\), e.g.
Cars\AssemblyLine.
Copyright Siemens AG 2008 All rights reserved
Also in this function we have three parameters as in the fSetKey function parameters:
Table 5-2
Name
Type
Description
iKeyID
RTDS Point
Key ID
TriggerTime
Trigger Time
Trigger Time
bTriggerTag
RTDS Point
Trigger Tag
V 2.0
22.07.08
59/90
26639558
"Test_Prop_01", _
"\", 1)
End If
Also there to avoid that the fScheduleVarByKeyID starts automatically
when the PPA Server is started we check the bTriggerTag.Value.
The ScheduleProperty is a PPAScheduler function and allows us to activate / deactivate a Cyclic or On Event Over Time property or triggers a
property On Event. The ScheduleProperty function has these parameters:
ScheduleProperty (KeyValue, KeyEquipment, Time, Property, Equipment,
Action) where:
1. KeyValue is run-time key value previously set by the SetKey method.
2. KeyEquipment is name and full path, starting from the equipment root,
of the equipment on which the production key was set. If multiple levels
are present, each level is separated by a backslash (\), e.g.
Cars\AssemblyLine.
3. Time is property scheduling (i.e. activation/deactivation or trigger) time
expressed as UTC (seconds from 1/1/1970).
4. Property is name of the property to be scheduled (activated/deactivated
or triggered). In association with the equipment it is a member of, it
uniquely identifies a SIMATIC IT PPA tag.
5. Equipment is name of the equipment, which Property is a member of. It
needs not to coincide with KeyEquipment, but it must be a child of it.
The path is relative to KeyEquipment, therefore if they coincide, Equipment only consists in the separator (\), otherwise Equipment is expressed as the name and relative path of Equipment, starting with the
separator.
6. Action defines the scheduling type. Depending on the type of property,
it can assume the following values:
V 2.0
22.07.08
60/90
26639558
Table 5-3
Name
Type
Description
iKeyID
RTDS Point
Key ID
TriggerTime
Trigger Time
Trigger Time
bTriggerTag
RTDS Point
Trigger Tag
Right click on the F_ResetKey select Edit Source delete all code in
this function and insert new:
If bTriggerTag.Value = 1 Then
retval =
MySch.ScheduleProperty("Key_"&cstr(iKeyID.Value), _
"Test_Plant\Test_Area_01\Test_Equip_01", _
TriggerTime, _
"Test_Prop_01", _
"\", 2)
End If
Also here to avoid that the F_ResetKey is started automatically when the
PPA Server is started we check the bTriggerTag.Value.
Please read the previous paragraph to have a description about ScheduleProperty parameters.
Resets a value previously set for a key
In the fResetKey function insert this code before the End If instruction at the
end of the function:
V 2.0
22.07.08
61/90
26639558
5.4
V 2.0
22.07.08
62/90
26639558
In the Script_Class create also three tags, these tags are needed to activate the enclosed script:
Tag_SetKey
This tag is created and associated to the fSetKey function and we
need to define some parameters for this function.
V 2.0
22.07.08
63/90
26639558
V 2.0
Click on the parameter name the Set Value button will be able, now
we can choose RTDS integer variable connected to our Tag. When
the popup Set Parameter will appear select the check box Set as
Trigger for the iKeyID tag.
22.07.08
64/90
26639558
V 2.0
Tag_Schedule
This tag is created and associated to the fScheduleVarByKeyID and
also there we must set some parameters for this function. Note that
the bTriggerTag is connected at the same RTDS boolean point used
for the fSetKey, in this way when the RTDS boolean trigger tag is
true all the functions connected will be enabled at the same time.
22.07.08
65/90
26639558
Tag_ResetKey
This tag is created and associated to the fResetKey and also there
we must set some parameters for this function. Note that the bTriggerTag is connected to the same RTDS boolean point used for the
fSetKey and fScheduleVarByKeyID, in this way when the RTDS
boolean trigger tag is true all the functions connected will be enabled at the same time.
V 2.0
22.07.08
66/90
26639558
Table 5-4
RTDS Tag
Type
PPA Tag
Script
Test_PB0
Boolean
Trigger_Test_PB0
fSetKey / fScheduleVarByKeyID /
fResetKey
Test_PI1
Integer
SetKey_Test_PI1
fSetKey
Test_PI2
Integer
Schedule_Test_PI2
fScheduleVarByKeyID
Test_PI3
Integer
ResetKey_Test_PI3
fResetKey
5.5
V 2.0
22.07.08
67/90
26639558
Figure 5-24 Windows Task Manager list before PPA server running
Figure 5-25 Windows Task Manager list after PPA server running
V 2.0
22.07.08
68/90
5.5.1
26639558
V 2.0
Idle Enabled The item is currently not being archived because the
trigger event is inactive.
Configuration Error PPAEngine is ignoring the item due to a configuration error detected at run-time by the engine.
22.07.08
69/90
5.5.2
Tag
Snapshot
26639558
When the ODS window is open, create a new monitor and add the tags associated to the script before.
Figure 5-29 Create new ODS monitor
We can add RTDS tags in the new ODS monitor clicking on the icon
V 2.0
22.07.08
70/90
26639558
The PPA Online Monitoring and the SIMATIC IT Historian ODS are displayed in the following figure:
Figure 5-31 PPA Online Monitoring and ODS
To activate the script we need to set the Test_PB0 Trigger Tag to TRUE,
then changing value for:
V 2.0
Test_PI1 tag to activate the function fSetKey the key registered in the
PPA database will have the name KEY_[tag value]
22.07.08
71/90
26639558
Changing the Test_PI1value to 104 and then open the SQL Enterprise
Manager we can see the Key created in the PPA SQL table.
Figure 5-32 KEY created in the PPA SQL database
KeyID Key ID associated to the PKTest created using the PPAScheduler function PPAInit. We can check this information opening the SQL.
Time / Msec Validity start time of the data stored in KeyValue, expressed as UTC (seconds from 1/1/1970).
V 2.0
22.07.08
72/90
26639558
Right click on the Tag1 and select the Query Statistics we can check the
number of samples archived. When these samples are enough to be visualized by a trend we can stop the archiving
V 2.0
22.07.08
73/90
26639558
Changing the Test_PI3 value to 104 we activate the fResetKey script function and stop to archive tag value.
Figure 5-37 Activate ffResetKey script function
Opening the SQL Enterprise Manager we can see the KEY stopped to archive the samples.
V 2.0
22.07.08
74/90
26639558
When the new production viewer window is open, click on the configuration
wizard to configure it.
V 2.0
22.07.08
75/90
26639558
V 2.0
22.07.08
76/90
26639558
Figure 5-43 Choose ONLINE archive and click on "Next" button to continue
Figure 5-44 In the Key drop down choose PKTest Production Key
V 2.0
22.07.08
77/90
26639558
V 2.0
22.07.08
78/90
26639558
In the General tab of this viewer we can have information about our
KEY_31 KPI:
V 2.0
Key description
22.07.08
79/90
26639558
In the KPI tab of this viewer we can have information about our KEY_31
KPI:
Property name
Item name
V 2.0
22.07.08
80/90
26639558
The Start to Archiving corresponds to the time when the fSetKey function
started. The Sample Archived corresponds to the time when the fScheduleVarByKeyID started and the Stop to Archiving corresponds to the time
when the fResetKey function started.
V 2.0
22.07.08
81/90
5.5.3
26639558
4. Select the KPI and then get the KEY list associated to this KPI.
5. Retrieve the values archived selecting the KEY in KEY list.
Create one function to retrieve the PPA project configuration like this:
V 2.0
22.07.08
82/90
26639558
End If
GetPPAProjList.Enabled = True
End Sub
After that we must connect to the PPA server using the information coming
from the previous function:
V 2.0
22.07.08
83/90
26639558
The property Connect in the previous function is the custom property like
this:
Public Function Connect(ByVal strSQL As String, ByVal
strPPA_Db As String, ByVal strPPA) As PPA_RETURN_VALUE
Dim RetVal As PPA_RETURN_VALUE
Set MySch = CreateObject("PPAScheduler.Schedule.1",
strPPA)
Set MyAccVBS = CreateObject("PPACOM.PPAAccessVBS.1",
strPPA)
Set MyBrwVBS = CreateObject("PPACOM.PPABrowsingVBS.1", strPPA)
Set GetServ = CreateObject("PPAScheduler.PPAItemManagement.1", strPPA)
V 2.0
22.07.08
84/90
26639558
V 2.0
22.07.08
85/90
26639558
Also in this function we use one data grid to fill the result. The RunSQL in
the previous function is the custom function like this:
' This function allow us to run the SQL query, but this
query must start with SELECT statement.
' The return is recTemp global variable declaired in
General/Declarations
Public Function RunSQL(ByVal strSQL As String, ByRef
strError As String, Optional ByRef varValues As Variant, _
Optional ByVal
msgBoxAdv As Boolean) As Long
Dim dbConnection As ADODB.Connection
base connection object
' data-
RunSQL = -1
strTemp = Split(strSQL, " ")
' What kind of SQL Statement ?
Select Case Trim(Ucase(Replace(strTemp(0), """",
"")))
Case "SELECT"
Set dbConnection = New ADODB.Connection
' The connection string in this case is hardcoded but we can also read it from the txt file
dbConnection.ConnectionString = "Provider=SQLOLEDB.1;Password=password;Persist Security
Info=True;User ID=sa;Initial Catalog=PPA_Test;Data
Source=SITCOMP\SQL05;"
dbConnection.Open
Set recTemp = New ADODB.Recordset
recTemp.Open strSQL, dbConnection, adOpenStatic, adLockReadOnly, adCmdText
Case Else
strError = "Unknown/Wrong SQL Statement (only
SELECT statement SQL Query supported): " & strSQL
End Select
Set dbConnection = Nothing
End Function
V 2.0
22.07.08
86/90
26639558
Now we have the KPI values and we can use Microsoft Excel to compare
or manage these data.
V 2.0
22.07.08
87/90
References
PPA KPIs without Production Modeler
26639558
References
..\ICUBESYS\SIT\BIN\PPACOMENG.CHM
V 2.0
22.07.08
88/90
Abbreviations
PPA KPIs without Production Modeler
26639558
Abbreviations
Abbreviations used in this manual:
Table 7-1
Abbreviation
V 2.0
Complete name
AD
Active Directory
API
AT
Audit Trail
BPM
BCC
CAB
CH_DI
CH_DO
CIL
COM
CP
Communication Processor
CPU
CS
Compliance Service
DB
Data Base
DCF
DCOM
DHCP
DCS
DIS
DNS
EBR
ES
Engineering System
ESIG
Electronic SIGnature
FAQ
GMP
HDD
HF
Hot Fix
HMI
IP
Internet Protocol
ISA
KPI
LTA
MM
Material Manager
22.07.08
89/90
Abbreviations
PPA KPIs without Production Modeler
26639558
Abbreviation
V 2.0
Complete name
MR
Master Recipe
MUI
ODBC
OPC
OS
Operator Station
OSM
OU
Organizational Unit
PLC
PPA
PDA
PDefM
PK
Production Key
PM
Production Modeler
PRS
Production Suite
RTDS
SFC
SIT
SIMATIC IT
SQL
SP
Service Pack
UPS
UTC
VB
Visual Basic
WINS
22.07.08
90/90