InformationSystemAUDIT en-US
InformationSystemAUDIT en-US
InformationSystemAUDIT en-US
___________________
Notes 1
WinCC/Audit - Release
___________________
Notes 2
WinCC/Audit -
SIMATIC HMI
___________________
Documentation 3
System Manual
05/2017
A5E40959835-AA
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 3
Table of contents
WinCC/Audit
4 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Installation Notes 1
1.1 System requirements
Introduction
The following hardware and software configuration requirements must be satisfied for the
installation of SIMATIC WinCC/Audit V7.4 SP1.
Hardware requirements
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 5
WinCC/Audit - Installation Notes
1.1 System requirements
Software requirements
Version
Operating system Windows 7 Professional Service Pack 1 (32-bit / 64-bit)
Windows 7 Enterprise Service Pack 1 (32-bit / 64-bit)
Windows 7 Ultimate Service Pack 1 (32-bit / 64-bit)
Windows 8.1 Pro (32-bit / 64-bit)
Windows 8.1 Enterprise (32-bit / 64-bit)
Windows 10 Pro (64-bit)
Windows 10 Enterprise (64-bit)
Windows Server 2008 R2 Standard Service Pack 1 (64-bit)
Windows Server 2012 R2 Standard (64-bit)
Windows Server 2016 R2 Standard (64-bit)
SIMATIC HMI WinCC V7.4 SP1
SIMATIC Logon V1.5 Service Pack 2
(SIMATIC Logon is available on
the WinCC installation DVD)
Note
SQL Server
Audit V7.4 SP1 uses Microsoft SQL Server 2014 Service Pack 1 in the 32-bit version
WinCC/Audit
6 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Installation Notes
1.2 Scope of delivery
Additional software
In addition to Audit V7.4 SP1, the DVD includes:
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 7
WinCC/Audit - Installation Notes
1.3 Licenses
1.3 Licenses
Introduction
Audit V7.4 SP1 is protected by license and can be used with full functionality only with valid
licenses. The licenses are delivered via a USB stick together with the ordered software
package. To activate the software, the license on the USB stick must be transferred to your
hard drive. The license transfer must be completed with the Automation License Manager. If
you attempt to transfer the license by other means (for example, Windows Explorer), the
license becomes unusable.
Licenses
Audit provides the following licenses:
Note
Setting up PC for central Audit Trail multiproject database
A PC on which only the Audit Trail multiproject database has to be stored does not require a
WinCC and Audit license.
The following installations are required:
• WinCC minimum installation
• Audit Runtime installation
WinCC/Audit
8 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Installation Notes
1.3 Licenses
Functions
The following functions are executed with the licenses:
Missing licenses
The following limitations apply if not all Audit licenses are installed:
Installation
Use the Automation License Manager for installation of licenses.
For the installation of licenses, the following requirements must be met:
● Audit installation is complete.
● The storage medium containing the licenses must not be write protected.
● Do not install the licenses on a compressed drive.
Note
After uninstalling Audit, the licenses remain installed on the system.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 9
WinCC/Audit - Installation Notes
1.4 Installing Audit
Introduction
During installation, select the individual Audit components you want to install on your PC. For
a full installation, select all Audit components.
The Audit Viewer is the only Audit component which does not require a WinCC installation.
This means you can install the Audit Viewer on any computer in the network.
Uninstalling
To uninstall WinCC/Audit, select all entries that start with "SIMATIC WinCC/Audit" under
"Control Panel > Programs and Features".
Requirement
● WinCC is installed, except for the Audit Viewer installation.
Procedure
1. Insert the Audit DVD into the DVD drive.
2. Run the setup.
3. Select the desired setup language.
4. Follow the instructions of the installation wizard.
Read the License Agreement and the Open Source License Agreement.
5. Select the components for your installation.
Previously installed components are displayed with a blue check mark.
6. Confirm your entries.
7. Start installation.
8. To complete the installation, reboot the system.
Result
Audit V7.4 SP1 is installed on the PC.
WinCC/Audit
10 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Installation Notes
1.5 User authentication
The Audit components are opened in read-only mode in the following situations:
● SIMATIC Logon is not installed.
● The user is not a member of the "SIMATIC HMI AUDIT" Windows user group.
● The authentication process is canceled by the user.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 11
WinCC/Audit - Installation Notes
1.5 User authentication
WinCC/Audit
12 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Release Notes 2
2.1 Notes on Audit
Content
These release notes contain important information.
The statements in these Release Notes supersede the instructions in the manuals and in the
online help.
Read these release notes carefully as they contain useful information.
General information
Text Library
Note the following behavior during auditing when you work with the Text Library:
● A text is entered in any language column in an existing text line.
The Audit Trail entry includes the language of the modified language column in the Text
Library as "Target Name".
● A new text line and a text is entered in any language column.
The Audit Trail entry contains the language that is the first position in the text library as
"Target name" in the menu bar under "View > Input language".
● An existing text line is copied. A new text line is created during pasting.
The Audit Trail entry contains the language that is the first position in the text library as
"Target name" in the menu bar under "View > Input language".
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 13
WinCC/Audit - Release Notes
2.1 Notes on Audit
Report Designer
If you are using a WinCC project with Audit V7.3 and want to open and use the WinCC
project with Audit V7.4 SP1, you must re-configure the print jobs. The name of the report
layouts have changed.
Procedure
1. In the WinCC Report Designer, select the print job that you have used in Audit V7.3.
2. Select the "Properties" option from the shortcut menu.
3. Select the new layout file in the "General" tab.
4. Click "OK" to confirm your entries.
Migration
The migration of Audit configurations and Audit trails from Audit V7.2, V7.3 and V7.4 single
project database to Audit V7.4 SP1 is supported.
Audit Editor
Undo/Redo
In the Audit Editor, the Undo/Redo function is not possible for some configurations.
WinCC/Audit
14 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Release Notes
2.1 Notes on Audit
Audit Viewer
Changing the values in the "Maximum record count to display in grid" column
If you change the values under "Maximum record count to display in grid" in the settings in
the Audit Viewer, this change is not performed.
Select the "Refresh" button on the toolbar in the Audit Viewer to display the changed values.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 15
WinCC/Audit - Release Notes
2.2 New functionalities
Audit Editor
Print preview
The Preview option is available to view the print configuration of Audit Trails before printing.
Viewing Trails
The maximum number of data records displayed per page ranges from 100 to 50000.
Navigation buttons are introduced to view and navigate through the trails.
WinCC/Audit
16 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Release Notes
2.2 New functionalities
General
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 17
WinCC/Audit - Release Notes
2.3 Service and Support
2.3.1 Warnings
Safety information
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not
taken.
CAUTION
indicates that minor personal injury may result if proper precautions are not taken.
NOTICE
indicates that property damage may result if proper precautions are not taken.
Note
indicates important information about the product and its use or a specific section of the
documentation to which you should pay particular attention.
If more than one degree of danger is present, the warning notice representing the highest
degree of danger will be used. A warning notice of injury to persons with a safety alert
symbol may also include a warning relating to property damage.
WinCC/Audit
18 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Release Notes
2.3 Service and Support
Qualified personnel
The product/system described in this documentation may be operated only by personnel
qualified for the specific task in accordance with the relevant documentation, in particular its
warning notices and safety information. Qualified personnel are those who, based on their
training and experience, are capable of identifying risks and avoiding potential hazards when
working with these products/systems.
Proper use
Note the following:
WARNING
Proper use of Siemens products
Siemens products may only be used for the applications described in the catalog and in the
relevant technical documentation. If products and components from other manufacturers
are used, these must be recommended or approved by Siemens. Proper transport, storage,
installation, assembly, commissioning, operation and maintenance are required to ensure
that the products operate safely and without any problems. The permissible ambient
conditions must be adhered to. The information in the relevant documentation must be
observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining names in
this publication may be trademarks whose use by third parties for their own purposes could
violate the rights of the owner.
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is
necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial
security concept. Siemens’ products and solutions only form one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems,
machines and networks. Systems, machines and components should only be connected to
the enterprise network or the Internet if necessary and only to the extent necessary and with
appropriate protective measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be taken into
account. For more information about industrial security, please visit
● http://www.siemens.com/industrialsecurity
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 19
WinCC/Audit - Release Notes
2.3 Service and Support
Siemens’ products and solutions undergo continuous development to make them more
secure. Siemens strongly recommends applying product updates as soon as they are
available and always using the latest product versions. Using versions that are obsolete or
are no longer supported can increase the risk of cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS
Feed under
● http://www.siemens.com/industrialsecurity
Disclaimer of liability
We have reviewed the contents of this publication to ensure consistency with the hardware
and software described. However, since variance cannot be precluded entirely, we cannot
guarantee full consistency. However, the information in this publication is reviewed regularly
and any necessary corrections are included in subsequent editions. Suggestions for
improvement are welcomed.
Information in the online documentation is more binding than that in the manuals and PDF
files.
Observe the Release Notes and Installation Notes. Information in the Release Notes and
Installation Notes is more binding than that in the manuals and online help.
WinCC/Audit
20 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Release Notes
2.3 Service and Support
Technical support
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 21
WinCC/Audit - Release Notes
2.3 Service and Support
WinCC FAQs
WinCC Online Support with information on FAQs (Frequently Asked Questions) may also be
found at the following URL:
● https://support.industry.siemens.com/cs/ww/en/ps/14866/faq
Technical Forum
The Technical Forum supports exchange with other SIMATIC users. It is available at the
following URL:
● https://support.industry.siemens.com/tf/
Product Information
SIMATIC WinCC
Go to the following URL for additional information about WinCC products:
● http://www.siemens.com/wincc
SIMATIC Products
Go to the following URL for additional information about SIMATIC products:
● http://www.siemens.com/simatic
WinCC/Audit
22 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Release Notes
2.3 Service and Support
Procedure
1. Open the "Support Request" form using the link on the Internet. Step 1 "Select product" is
displayed:
2. Enter the project name in the "Product/Order number" box. Upper/lower case is not
relevant.
Search for parts of the product name or enter the full product name in the correct order.
You can e. g. search for the following terms:
- "WinCC Runtime"
- "WinCC DataMonitor"
- "wincc webnavigator"
- "Connectivity"
The found products are offered in the "Product selection" field.
3. Select the desired product and click on "Next" to switch to step 2 "Select use case".
4. Select a use case or describe your specific use case in the "Other use case" field.
5. Press "Next" to switch to step 3 "Our solutions".
Suggested solutions and FAQs for the selected key words are listed.
Once you have found a suggested solution for your problem, you can close the form in
the browser.
If you did not find any applicable suggested solutions, press "Next" to switch to step 4
"Describe problem".
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 23
WinCC/Audit - Release Notes
2.3 Service and Support
Thank you for your cooperation. We hope that we can be of assistance in solving your
problems.
Your WinCC Team
WinCC/Audit
24 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation 3
3.1 Using Audit
Introduction
WinCC/Audit is a WinCC option for monitoring WinCC configurations and user activities in
WinCC Runtime.
Components of Audit
Audit contains the following components:
Component Description
Audit Editor Specify Audit configurations.
Audit Runtime (RT) Record events from the WinCC configuration and WinCC Runtime and
save them as Audit Trails.
Audit Viewer Show exported Audit Trails and Audit Trails from a database.
Audit Viewer Control Display audit trails from a database in WinCC Runtime.
Audit Document Control Save and version WinCC project data.
and Project Versioning
Using Audit
Audit records WinCC engineering changes and user actions in runtime in so-called audit
trails (audited events). The Audit Viewer allows the specific display and analysis of audit
trails.
The document control allows the document management of WinCC screens, C and VBS
functions, reports and user documents. You can use project versioning to archive complete
WinCC projects and restore project versions.
Application examples
Audit supports operation and maintenance for the following users:
● Operators of validated plants in the pharmaceutical industry.
● Tracking & tracing for plant operators, for example, in the food and beverage industry.
● Serial equipment manufacturer with different versions of a central project.
● OEMs who maintain plants for their customers worldwide.
● Users who need to ensure gapless recording of operator actions for the purpose of
traceability.
● Users who need to implement the requirements of the FDA (Food and Drug
Administration).
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 25
WinCC/Audit - Documentation
3.2 Important information about the Audit Viewer
Note
The Windows user performing the Audit installation is automatically registered as a member
of the "SIMATIC HMI" user group.
Additional Windows user using the Audit Viewer must be subsequently registered as
members of the user group.
After registration in the user group, the Windows user has to log on again in Windows.
WinCC/Audit
26 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.3 Approved configurations
Note
Database location with local WinCC scenarios
The database location does not play a role in the following scenario. The configuration
graphic is therefore shown with a simplified display. Depending on the scenario, multiple
databases may be available.
Note
Local Server is not always local PC
Local server does not mean that the server is always available in the local PC. The term
"Local Server" depends on the scenario. For example, when a remote PC is accessing the
project in local PC, the "Server Type" will be displayed as "Local Server" because any
changes made to the project will store audit trails in the local PC.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 27
WinCC/Audit - Documentation
3.3 Approved configurations
Introduction
A PC on which a WinCC project is running and Audit is installed is connected to other PCs.
WinCC and Audit are also installed on the other PCs. The remote scenarios are than as
follows. The Audit trails are written to a local multiproject database or a remote multiproject
database.
Note
Database location in remote scenarios
The database location does not play a role in the individual scenarios. The configuration
graphics are therefore shown with a simplified display. Depending on the scenario, multiple
databases may be available.
Note
Combination of remote scenarios
A combination of the individual remote scenarios is possible.
Remote configuration:
The WinCC project that is located on the file server is opened via the Engineering Station
(ES). The project type plays no role in this. All events executed on the ES are recorded by
the file server and written to the Audit Trail database.
WinCC/Audit
28 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.3 Approved configurations
Note
Audit Document Control and Projekt Versioning
Audit Document Control and Project Versioning has not been approved for a multi-user
project or client without its own project.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 29
WinCC/Audit - Documentation
3.3 Approved configurations
WinCC/Audit
30 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.3 Approved configurations
Redundancy
A WinCC project is running redundantly on two PCs. To generate a redundancy, the WinCC
project is duplicated using the WinCC Project Dublicator. Each PC records its events and
writes the events to the Audit Trail database. A multiproject database is recommended for
both WinCC projects.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 31
WinCC/Audit - Documentation
3.3 Approved configurations
Engineering scenario
A WinCC project is running on a Engineering Station (ES). The project is transferred to a
Operator Station via the WinCC Project Duplicator or complete loading in SIMATIC Manager.
The division of Engineering and Runtime takes place on two PCs. The Engineering Station
records all configuration changes and writes these to the Audit Trail database. The Operator
Station records all events via InsertAuditEntryNew and Runtime and writes the events to the
Audit Trail database.
WinCC/Audit
32 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
3.4.1 Logon
Introduction
Logging on in Audit is performed through an authentication in "SIMATIC Logon".
Each Audit user has the same rights.
The following audit components require authentication:
● Audit Editor
● Audit Document Control and Project Versioning
If you do not authenticate yourself, the Audit components are opened read-only. This means
that the not all of the Audit functions will be available.
You can authenticate yourself later via the shortcut menu in Audit Editor.
You can authenticate yourself later via the menu bar in Audit Document Control and Project
Versioning.
Requirement
● "SIMATIC Logon" is installed on your computer.
● You are a member of the "SIMATIC HMI AUDIT" user group.
Procedure
1. Open the desired audit component.
A SIMATIC Logon dialog appears.
2. Enter your user name and password.
3. Confirm your entries with "OK".
Result
You have authenticated yourself and can use all Audit functions.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 33
WinCC/Audit - Documentation
3.4 Audit basics
Audit Editor
The interface language of the Audit Editor depends on the WinCC user interface language.
To change the interface language, select your desired language with "Options > Language"
in the WinCC Explorer menu bar.
WinCC/Audit
34 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
Function
You can use the Audit Editor to define the activities you would like to audit in your WinCC
project:
● Activities in the individual WinCC components
● Activities in user and configuration files
● Runtime operation of objects
The settings in the Audit Editor are made with check boxes that you can select or clear.
The server of the Audit Trail database is also selected in the Audit Editor. The audit trails are
stored in the Audit Trail database.
The configuration changes within the Audit Editor are also saved as audit trails in the Audit
Trail database.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 35
WinCC/Audit - Documentation
3.4 Audit basics
Layout
The Audit Editor has the following layout:
① Menu bar:
The menu bar contains commands to perform common functions in the Audit Editor.
② Navigation area:
The navigation area displays the objects of the Audit Editor in a tree view.
③ Table area:
The table area displays the data records of the objects that are selected in the navigation area.
In quick search, you search the table area for entries.
④ "Properties" window:
The "Properties" window displays the properties of a data record.
⑤ Navigation bar:
In the navigation bar, you switch between the WinCC editors.
⑥ Status bar:
The status bar shows the various states of the Audit Editor.
WinCC/Audit
36 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
Command Function
Project Documentation - Setup No function.
Project Documentation - Preview No function.
Project Documentation - Print No function.
Close Closes the Audit Editor.
Command Function
Copy Copies the text of the selected object.
Paste Pastes the text of the copied object.
Undo Undoes an action.
Redo Redoes the last action.
Import Imports the Audit settings from a .txt or .xlsx file.
Export Exports the Audit settings into a .txt or .xlsx file.
Command Function
Input language No function.
Color scheme Changes the color setting in the Audit Editor.
Command Function
Macros Opens a dialog box in which you can create macros.
Visual Basic Editor Opens the Visual Basic Editor.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 37
WinCC/Audit - Documentation
3.4 Audit basics
Command Function
Contents and Index Opens the online help of the Audit Editor.
Info about WinCC Configuration Studio Opens an information window for the WinCC Configuration
Studio.
Function
The Audit Viewer is a viewer program for audit trails. You can view following with the Audit
Viewer:
● Audit trails that are saved in an Audit Trail database
● Exported audit trails
You can limit your Audit Trail views using pre-defined queries. You can create and save your
own queries.
WinCC/Audit
38 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
Layout
The Audit Viewer has the following layout:
① Menu bar:
The menu bar contains commands to perform special functions in the Audit Viewer.
② Toolbar:
The toolbar contains buttons to perform special functions in the Audit Viewer.
③ Navigation area:
The navigation area displays the objects of the Audit Viewer in a tree view.
④ Table area:
The table area displays the data records of the objects that are selected in the navigation area.
In quick search, you search the table area for entries.
⑤ Navigation bar:
The navigation bar shows the editor you are in.
⑥ Status bar:
The status bar displays various information about the Audit Viewer.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 39
WinCC/Audit - Documentation
3.4 Audit basics
Command Function
Update server data Updates the data of the server.
Update view Refreshes the view in the table area.
Print Prints the contents of the category or query that is selected in the
navigation area.
Print configuration Opens a dialog box in which you can specify the columns for printing.
Export to CSV file Exports the selected audit trails to a CSV file.
Show Audit File Displays a selected Audit file in the Audit Viewer.
Recent Servers Lists the servers already in use.
Recent Files Opens a list of recently opened files.
Close Closes the Audit Viewer.
Command Function
New Query Creates a new query.
Delete Deletes the selected query.
Rename Renames the selected query.
Execute Executes the selected query.
Command Function
Language Changes the user interface language of the Audit Viewer.
Settings The following settings can be made:
• Maximum number of data records that can be saved in the table area.
• Path to the user-defined queries.
WinCC/Audit
40 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
Command Function
Contents and Index Opens the online help of the Audit Viewer.
About Opens an information window for the Audit Viewer.
Export to CSV file Exports the selected audit trails to a CSV file.
Print configuration Opens a dialog box in which you can specify the columns for printing.
Print Prints the contents of the category or query that is selected in the navi-
gation area. The contents are printed to the printer that is defined as
standard under Windows.
Help Opens the online help of the Audit Viewer.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 41
WinCC/Audit - Documentation
3.4 Audit basics
WinCC/Audit
42 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
Function
The Audit Viewer Control is an ActiveX control that is embedded in the Graphics Designer as
an OCX file.
You can use the Audit Viewer Control in a process picture (.pdl) to view the stored audit trails
and evaluate them in Runtime. The user interface is identical to the one in Audit Viewer.
There is no menu bar, only the toolbar with a reduced number of icons. Exported audit trails
cannot be displayed in the Audit Viewer Control.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 43
WinCC/Audit - Documentation
3.4 Audit basics
Function
Audit Document Control and Project Versioning contains the following functions:
● Versioning of projects and files
● Checking in and checking out individual files
● Restoring previous versions
All activities performed in Audit Document Control and Project Versioning can be saved as
audit trails in the Audit Trail database. They first have to be configured in the Audit Editor.
Opening Audit Document Control and Project Versioning in the Audit Editor
You can also open the Audit Document Control and Project Versioning from the Audit Editor:
1. In the Audit Editor, click "Document Control and Project Versioning" under "Audit
Settings" in the navigation area.
2. Select "Open" from the shortcut menu.
WinCC/Audit
44 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
Layout
Audit Document Control and Project Versioning has the following layout:
① Menu bar:
The menu bar contains commands to perform special functions in the Audit Document Control and Project Versioning.
② Toolbar:
The toolbar contains buttons to perform special functions in the Audit Document Control and Project Versioning.
③ Navigation area:
The navigation area displays the objects of the Audit Document Control and Project Versioning in a tree view.
④ Table area:
The table area displays the data records of the objects that are selected in the navigation area.
In quick search, you search the table area for entries.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 45
WinCC/Audit - Documentation
3.4 Audit basics
⑤ Navigation bar:
The navigation bar shows the editor you are in.
⑥ Status bar:
The status bar displays various information about the Audit Document Control and Project Versioning.
Command Function
Enable Document Control Activates the document control.
Disable Document Control Deactivates the document control.
Close Closes Audit Document Control and Project Versioning.
Command Function
Archive Project Archives a WinCC project.
Current Project History Displays the project history of the current WinCC project.
Complete Project History Displays the project history of all archived WinCC projects.
Command Function
Apply Label Opens a dialog box to apply a label.
View Label Displays all applied labels.
Command Function
User Login Login of the user.
User Logout Logout of the user.
Language Changes the user interface language of Audit Document Control and Project
Versioning.
WinCC/Audit
46 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.4 Audit basics
Command Function
Contents and Index Opens the online help of Audit Document Control and Project Versioning.
About Opens an information window for Audit and Project Document Versioning.
Current Project History Displays the project history of the current WinCC project.
Complete Project History Displays the complete project history of all archived
WinCC projects.
Apply Label Opens a dialog box to apply a label.
Show system pictures (@-prefix) Show WinCC project files that have the "@" prefix.
Hide system pictures (@-prefix) Hide WinCC project files that have the "@" prefix.
Show deleted files Show WinCC project files that were deleted.
Hide deleted files Hide WinCC project files that were deleted.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 47
WinCC/Audit - Documentation
3.5 Basic procedure
Procedure
In Audit Editor, the direct help for the selected field is available in the "Properties" window.
To manage and monitor a WinCC project or project data in Audit, follow the steps of the
procedure.
You must be authenticated to work with the Audit Editor.
Note
WinCC Audit ChangeControl CC license
If you have installed only the WinCC Audit ChangeControl CC license, the Audit Editor
includes only the "WinCC Configuration" and "WinCC Documents" components under "Audit
Settings".
WinCC/Audit
48 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.5 Basic procedure
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 49
WinCC/Audit - Documentation
3.5 Basic procedure
WinCC/Audit
50 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.5 Basic procedure
Step 7: Activate / deactivate the "Operator Message" and "Operator Activities Report" property
You can activate or deactivate the property "Operator Message" and "Operator Activities
Report" for specific graphic objects. You activate or deactivate the properties in the Graphics
Designer or in the Audit Editor as follows:
1. Activate the "User Actions (RT)" component under "Audit Settings".
2. Select "Audit Settings > User Actions (RT)" in the navigation area.
3. Select the required process pictures in the table area.
4. Select the required process picture under "User actions (RT)" in the navigation area.
5. In the table area, activate or deactivate the required option for the displayed objects.
To apply the change, click on another area in the navigation area or close the Audit
Editor.
These settings are applied to the object properties in the Graphics Designer.
When you change the setting in the Graphics Designer, the option is also activated or
deactivated in the Audit Editor.
Note
Update view
When a new process picture is created or new objects are inserted in a process picture, the
view is not automatically updated in the Audit Editor.
To update the view, follow these steps:
• Display new process picture: Select the "Refresh" command in the "User Actions (RT)"
shortcut menu.
• Display new object in the process picture: Right-click the modified process picture under
"User Actions (RT)".
Additional information can be found in the Audit documentation and the WinCC
documentation.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 51
WinCC/Audit - Documentation
3.5 Basic procedure
Step 10: Configuring Audit Viewer Control for display in WinCC Runtime
To display the content of the Audit Trail Database in WinCC Runtime, add the "Audit Viewer
Control" in a process picture in the WinCC Graphics Designer.
WinCC/Audit
52 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.5 Basic procedure
Procedure
To display the events saved in the Audit Trail database in the Audit Viewer, follow the steps
in the procedure.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 53
WinCC/Audit - Documentation
3.5 Basic procedure
WinCC/Audit
54 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.5 Basic procedure
Procedure
To create and manage file versions and project versions, follow the steps of the procedure.
You must be authenticated to work with Audit Document Control and Project Versioning.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 55
WinCC/Audit - Documentation
3.5 Basic procedure
WinCC/Audit
56 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Overview
Every Audit project can store the Trails either by creating a new multi project database or
connecting to the existing multi project database.
● A PC can have multiple multi project databases.
● Databases in a machine cannot have the same name.
● The database names that exist in a machine are displayed during selection of the Audit
Trail Server.
The database name is case sensitive and usage of '_' is also supported. The list of invalid
characters that are not supported during the creation of the multi project database are given
below:
● .,;:!?'"
● +=/\@*
● []{}<>
● space
If there is no network connection between the PCs over a certain period, your audit data is
not lost. Audit stores the audit trails in a local cache. When the network connection is re-
established, the audit trails are automatically transferred to the multi project database.
You can also set up a central Audit multi project database on a PC on which there is no
WinCC project. At least a minimal installation of WinCC and Audit Runtime must be installed
on this PC.
Note
Switching the Audit Trail multi project database to another Audit Trail multi project database
If you switch from one Audit Trail multi project database to another Audit Trail multi project
database, your recorded audit trails are not transferred.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 57
WinCC/Audit - Documentation
3.6 Working with Audit
Requirement
● Audit is fully installed and licensed.
● A network connection is available.
Procedure
1. Open the WinCC project that you want to audit.
2. Open the Audit Editor and authenticate yourself.
3. In the navigation area, select "Select Audit Trail Server".
The table area displays all Audit Trail servers on which at least Audit Runtime is installed.
4. Select the table row of the desired Audit Trail server and right click to enter the desired
database name. The "Multi Project Database Name" dialog box opens.
5. Enter the database name.
6. Select "Select Server" in the shortcut menu.
Result
Your PC is connected to the desired Audit Trail server to a multi project database.
WinCC/Audit
58 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
Specify what you want to monitor with Audit in the Audit Editor under "Audit Settings". To
enable the settings, select the check boxes.
Requirement
● Your WinCC project is open.
● The Audit Editor is open and you have authenticated yourself.
Procedure
1. Click "Audit Settings" in the navigation area.
2. Select the check box for the respective component in the "Activated" column. To activate
or deactivate all components, select the "Activated" column and then select "Select all" in
the shortcut menu.
Result
You have made the Audit settings. You can to deactivate the respective components by
clearing the check box in the "Activated" column.
In the next step, you specify which WinCC editors or WinCC components are to be
monitored.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 59
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
Specify the WinCC components that you want to monitor in the Audit Editor.
Select the following WinCC components:
● WinCC Project Properties
● Computer Properties
● Tag Management
● Alarm Logging
● Tag Logging
● Text Library
● User Administration
● User Archives 1)
● Report Designer
● Redundancy
● Time Synchronization
● Picture Tree Manager
● Horn
● Lifebeat monitoring
1) Only the configuration is monitored, not the data input.
Requirement
● Your WinCC project is open.
● The Audit Editor is open and you have authenticated yourself.
● Activate the "WinCC Configuration" component under "Audit Settings".
Procedure
1. Click "WinCC Configuration" under "Audit Settings" in the navigation area.
2. Select the check box for the respective WinCC component in the "Activated" column. To
activate or deactivate all WinCC components, select the "Activated" column and then
select "Select all" in the shortcut menu.
Result
You have specified the WinCC components for auditing. You can to deactivate the
respective WinCC components by clearing the check box in the "Activated" column.
WinCC/Audit
60 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
When you activate document monitoring, all activities in user and configuration files are
recorded as an events in the Audit Trail database.
Audit monitors the following:
● Creation of a document
● Changes to a document
● Deletion of a document
Overview
The following table shows the user and configuration files for which document monitoring
can be performed:
Requirement
● Your WinCC project is open.
● The Audit Editor is open and you have authenticated yourself.
Procedure
1. Click "Audit Settings" in the navigation area.
2. Select the check box for the "WinCC Documents" component in the "Activated" column of
the table area.
Result
You have activated document monitoring. You can to deactivate the document monitoring by
clearing the check box in the "Activated" column.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 61
WinCC/Audit - Documentation
3.6 Working with Audit
You can trigger a standard operator message for a process picture operation via:
● "Operator message" property
● Direct connection
WinCC/Audit
62 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Direct connection
For all other types of objects in the Graphics Designer, there is no "Operator message" or
"Operator activities report" property. Set an action with a direct connection to a tag for the
desired object. Select the "Operator message" option in the direct connection dialog.
Message number 12508141 is generated when the configured object is operated in WinCC
Runtime.
Audit stores this event in the Audit Trail database.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 63
WinCC/Audit - Documentation
3.6 Working with Audit
You can trigger a user operator message for a process picture operation via:
● Message tag
● C script function "GCreateMyOperationMsg"
● VB script function "HMIRuntime.Alarms"
You can find additional information in the WinCC Information System under Working with
WinCC".
The message number of the created user operator message is generated when the
configured object is operated in WinCC Runtime.
Audit stores this event in the Audit Trail database.
Message tag
Assign a "Message tag" to the user operator message. Connect the required object to the
message tag in Alarm Logging.
GCreateMyOperationMsg(0x00000001,1,lpszPictureName,lpszObjectName,15,1,2,"mycomment");
WinCC/Audit
64 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
'VBS360
Dim MyAlarm
Set MyAlarm = HMIRuntime.Alarms(1)
MyAlarm.State = 5 'hmiAlarmStateCome + hmiAlarmStateComment
MyAlarm.Comment = "MyComment"
MyAlarm.UserName = "Hans-Peter"
MyAlarm.ProcessValues(1) = "Process Value 1"
MyAlarm.ProcessValues(4) = "Process Value 4"
MyAlarm.Create "MyApplication"
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 65
WinCC/Audit - Documentation
3.6 Working with Audit
System events
System events are messages that are pre-defined in a WinCC project in Alarm Logging by
default.
System events have the following properties:
● Message class: System, without acknowledgment
● Message type: Process control system
Audit monitors the system events:
* % - Name of the the computer associated to the affected Audit Provider Service.
InsertAuditEntryNew
"InsertAuditEntryNew" is a script function that is used in an object in the Graphics Designer.
When the object is operated in WinCC Runtime, the event is immediately saved in the Audit
Trail database.
InsertAuditEntryNew functions
Use the following InsertAuditEntryNew functions:
Function Description
InsertAuditEntryNew.fct Function for C script.
InsertAuditEntryNew.bmo Function for VB script.
WinCC/Audit
66 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
C Editor/Graphics Designer
You can find the InsertAuditEntryNew function in the navigation area under "Standard
Functions > Options".
Note
Regenerating the header
If the "InsertAuditEntry" function is not visible, you need to re-generate the header in the C
Editor.
Comment in Runtime
You can use a script to decide whether to open a comment dialog in runtime or use the
comment directly from the scripting.
When a comment dialog is used, the user is prompted to enter a comment in runtime. Enter
"1" after the "Comment" parameter to do this.
To use the comment directly from the script, write a comment at the "Comment" parameter
and enter "0" after the parameter.
The following table shows the various script options and the view in Audit Trail:
C script: InsertAuditEntryNew.fct
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 67
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
Monitor user activities in WinCC Runtime.
You can find additional information under:
● User actions monitored with Audit (Page 62)
Requirement
● Your WinCC project is open.
● The required configurations have been made in the Alarm Logging or Tag Logging, for
example, system events have been enabled, operator messages have been configured,
etc.
● "Alarm Logging Runtime" is enabled under "Computer Properties > Startup" in the WinCC
Explorer.
● The Audit Editor is open and you have authenticated yourself.
Procedure
1. Click "Audit Settings" in the navigation area.
2. Select the check box for the "User Actions (RT)" component in the "Activated" column of
the table area.
Result
You have select the "User Actions (RT)" component. You can deactivate the component by
re-selecting the check box in the "Activated" column.
WinCC/Audit
68 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Activate / deactivate the Operator Message and Operator Activities Report property
Introduction
Audit provides an additional function for the activation and deactivation of the "Operator
message" and "Operator activities report" property for the standard operator messages.
You get an overview of all of the Audit Editor process pictures and their configured objects in
your WinCC project.
You can find additional information under:
● Standard operator messages (Page 62)
Requirement
● Your WinCC project is open.
● "Alarm Logging Runtime" is enabled under "Computer Properties > Startup" in the WinCC
Explorer.
● The Audit Editor is open and you have authenticated yourself.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 69
WinCC/Audit - Documentation
3.6 Working with Audit
Procedure
1. Click "Audit Settings" in the navigation area.
2. Select the check box for the "User Actions (RT)" component in the "Activated" column of
the table area.
3. Select "User Actions (RT)" in the navigation area.
The table area shows all process pictures that have been created in the open WinCC
project.
If a newly created process picture does not appear in the table area, select the "Refresh"
command in the "User Actions (RT)" shortcut menu.
4. Select the process picture that contains the object type of a standard operator message.
The activated process picture is displayed under "User Actions (RT)" in the navigation
area.
5. Select the process picture in the navigation area.
The configured objects in the process picture are displayed in the table area.
6. Select or clear the check boxes of the "Operator message" and "Operator Activities
Report" column.
If a newly created object does not appear in the Audit Editor, right-click on the change
process picture under "User Actions (RT)".
To apply the change in the check box, click on another area in the navigation area or
close the Audit Editor.
If no object type of a standard operator message is present in the process picture, this option
has no effect.
Note
Saving an open PDL in the Graphics Designer
If the PDL is open in the Graphics Designer when a change is being made in the Audit
Editor, save the picture to keep the changes.
Result
These changes are transferred and saved in the PDL.
WinCC/Audit
70 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
By activating the GMP tags (RT), user actions that are relevant for the quality of the process
are monitored in WinCC Runtime. The requirements for Good Manufacturing Practice (GMP)
are met.
Requirement
● Your WinCC project is open.
● The Audit Editor is open and you have authenticated yourself.
Procedure
1. Click "Audit Settings" in the navigation area.
2. Select the check box for the "GMP tags (RT)" component in the "Activated" column of the
table area.
3. Select "GMP tags (RT)" in the navigation area.
4. Select "Add GMP tag" in the shortcut menu.
You can also drag-and-drop from the WinCC "Tag Management" editor window to "GMP
Tags (RT)" editor window. Refer the section Drag-and-drop tags below to drag-and-drop
tags from WinCC "Tag Management" editor window.
5. Select the tag you require.
Note
The selected GMP tags should belong to the localhost node.
Note
Selecting large number of tags
To select large number of tags from the tag browser to the “GMP Tags (RT)” folder, drag-
and-drop the selected tags onto “GMP Tags (RT)” folder.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 71
WinCC/Audit - Documentation
3.6 Working with Audit
Drag-and-drop tags
This section describes an example how to drag-and-drop a tag from WinCC "Tag
Management" window to "GMP tags (RT)" node in Audit Editor.
1. In WinCC Explorer, open "Tag Management". Re-scale the "Tag Management" window to
half the screen size.
2. Open "Audit Editor > Audit Settings > GMP Tags (RT)". Re-scale the "Audit Editor"
window to half the screen size.
3. Place "Tag Management" window and "Audit Editor" window beside each other.
4. Select a tag from "Tag Management" window and drag-and-drop the tag onto "Audit
Editor".
Selection of multiple tags is also possible.
WinCC/Audit
72 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
Audit Document Control and Project Versioning allows you to back up your WinCC project
files and archive your WinCC projects.
To back up your WinCC project files, you first need to enable document control.
When you enable document control or archive an open project the first time, you must set
the version number.
Note
Restoring WinCC project files
Restoring overwrites the current version with the new version.
NOTICE
Loss of data with deactivation of the document control
When you deactivate document control, all archived WinCC project files are lost.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 73
WinCC/Audit - Documentation
3.6 Working with Audit
Note
Restoring WinCC projects
Restoring copies the selected version of the archived WinCC project to the destination path.
WinCC/Audit
74 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
NOTICE
Data loss when changing archive files
When you make changes to the archive files, data loss will occur. This means it is no longer
possible to restore the WinCC project files or WinCC projects in Audit Document Control
and Project Versioning.
You may not make the following changes:
• Delete
• Rename
• Move
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 75
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
If you enable document control, you will be prompted once to configure the version number.
First read the following section carefully:
● Configuring the version number (Page 77)
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
Procedure
1. Select "Document > Enable Document Control" from the menu bar or click on the "Enable
document control" icon in the toolbar.
The "Version configuration" dialog opens.
2. Select the version mask and the special characters.
3. Confirm your entries with "OK".
Result
All the files in your WinCC project are automatically checked in according to the versioning
mask in Audit Document Control and Project Versioning.
WinCC/Audit
76 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
In Document Control and Project Versioning, you define the version number that is used with
every versioning of files and projects. The version number consists of 4 segments. When a
file is checked in or when a project is archived, the segments of the version number are
incremented, depending on which version mask you have selected.
Note
The versioning is configured only once for each WinCC project and cannot be changed.
File versioning
File versioning depends on your open WinCC project. Document Control and Project
Versioning displays all existing files in the project. If you have not enabled document control,
you will see your files in the table area with the "Unversioned" status. If you enable
document control via the menu bar, you are prompted to configure the version number.
When the configuration is complete, all WinCC files are checked in automatically. The end
segment of each file gets the number 1.
If you check in a file again, the segment of the file version is increased. You can select which
segment of the file version should be increased.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 77
WinCC/Audit - Documentation
3.6 Working with Audit
Project versioning
Project versioning depends on your open WinCC project.
When you archive the project for the first time, the segment of the project version starts at 1.
You can select which segment of the project version should be increased.
WinCC/Audit
78 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● Document control is enabled.
● The version number has been configured.
Procedure
1. Select the category of your required file under "Document Control" in the navigation area.
2. Select the row of the file you want to check out in the table area.
3. Select "Check Out" in the shortcut menu to check out the file.
4. To check out the file and immediately begin editing with the associated application, select
"Check Out and Edit" in the shortcut menu.
5. Enter a checkout comment if you wish.
Result
Your file is checked out. The status of the file in the Audit Document Control and Project
Versioning is "Checked out". The user who authenticated the Audit Document Control and
Project Versioning appears in the "Checked out by" column.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 79
WinCC/Audit - Documentation
3.6 Working with Audit
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● Document control is enabled.
● The version number has been configured.
Procedure
1. Select the category of your required file under "Document Control" in the navigation area.
2. In the table area, select the row of the file you want to check in.
3. Select "Check In" in the shortcut menu.
4. To use the checkout comments for the check in, leave the "Continue with the existing
check out comment" check box selected.
5. To use a different comment for checking in, clear the "Continue with the existing check
out comment" check box and enter a comment. The check-in comment is mandatory.
6. To begin or increase the file version with the last defined segment, leave the check mark
in the "Automatic versioning" check box.
7. To begin or increase the file version with another segment, clear the check mark in the
"Automatic versioning" check box. Select your required segment under "Increase
segment version".
8. Click "Check in".
Note
Preventing unauthorized access to a WinCC file
Check the file back in immediately after editing. This will prevent unauthorized persons from
making changes to the checked-out file.
Result
Your file is checked in. The status of the file in the Audit Document Control and Project
Versioning is "Checked in". You can find the check-in comment in the file history.
WinCC/Audit
80 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● Document control is enabled.
Procedure
1. Select the category of your required file under "Document Control" in the navigation area.
2. Select the row of the file for which you want to display the file history.
3. Select "View History" from the shortcut menu.
Result
The file history shows the user who checked in or restored the file. In addition, the check-in
date is displayed with the time and comment.
Introduction
If you have a versioned a WinCC project file, it is possible to restore a previous version.
NOTICE
Do not delete project files
If you delete the project files in your WinCC project, you cannot restore the project files in
Audit Document Control and Project Versioning.
To be able to restore deleted project files, create a local backup of your WinCC project.
Connections and dynamization in the restored project files
When you restore a previous version, connections to existing tags may no longer available,
for example.
Reconfigure the connections if necessary.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 81
WinCC/Audit - Documentation
3.6 Working with Audit
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● Document control is enabled.
Procedure
1. Select "Document Control" in the navigation area.
2. In the table area, select the row of the file whose previous version you want to restore.
3. Select "View History" from the shortcut menu.
4. Select the row of the previous version in the table area.
5. Select "Rollback" in the shortcut menu.
6. Enter a mandatory comment.
7. To begin or increase the file version with the last defined segment, leave the "Automatic
versioning" check box selected.
8. To begin or increase the file version with another segment, clear the check mark in the
"Automatic versioning" check box. Select your required segment under "Increase
segment version".
9. Click "Rollback".
Note
Rollback of files
To rollback files like MCP, PDL, Global Scripts, etc, WinCC Runtime has to be restarted to
avoid unexpected behaviour. It is also required to open the script file, compile and save after
a file is rolled back.
Result
You have restored the previous version. In the file history, you can see the version from
which the file was restored in the comment column.
WinCC/Audit
82 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You have the option to compare file versions with each other. Using this function, you see
whether substantive changes have been made (binary comparison). The following files are
available for comparison:
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● Document control is enabled.
Procedure
1. Select picture files or scripts in the navigation area.
2. Select the row of the desired file in the table area.
3. Select "View History" from the shortcut menu.
4. In the table area, select the row of the versions that you want to compare with each other.
5. Select "Compare" from the shortcut menu.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 83
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You have the option to label your project files. An interim version of all project files is saved
by the labeling.
Note
Checked-out project files
When project files are checked out and you perform labeling, the local changes are lost.
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● Document control is enabled.
● All project files are checked in.
Procedure
1. Select "Label > Apply Label" in the menu bar or click the icon on the toolbar.
The "Label Options" dialog box opens.
2. Enter a label name.
3. Enter a comment.
The comment is mandatory.
4. Click the "Apply Label" button.
WinCC/Audit
84 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
The WinCC projects must be located locally on the PC on which Audit Document Control
and Project Versioning is started.
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
Procedure
1. Select "Project > Archive Project" in the menu bar.
2. Make sure that the "Archive Current Project" option is activated.
3. If you want a different archive path, select it using the button.
4. Enter a comment.
5. To begin or increase project file version with the suggested segment, leave the
"Automatic versioning" check box selected.
To begin or increase the project version with another segment, clear the check mark in
the "Automatic versioning" check box. Select your required segment under "Increase
segment version".
6. Click "Archive."
The WinCC project is automatically closed and re-opened after archiving.
Result
The archived project is displayed in the navigation area below the "Project Versioning" entry.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 85
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
The WinCC projects must be located locally on the PC on which Audit Document Control
and Project Versioning is started.
Requirement
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● The versioning of the closed WinCC project is configured.
Procedure
1. Select "Project > Archive Project" in the menu bar.
2. Deactivate the "Archive Current Project" option and navigate to the storage path of the
required WinCC project.
3. If you want a different archive path, select it using the button.
4. Enter a comment.
5. To begin or increase project file version with the suggested segment, leave the
"Automatic versioning" check box selected.
To begin or increase the project version with another segment, clear the check mark in
the "Automatic versioning" check box. Select your required segment under "Increase
segment version".
6. Click "Archive."
Result
The archived project is displayed in the navigation area below the "Project Versioning" entry.
WinCC/Audit
86 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Both views show which user archived the project and under which storage path it is located.
In addition, the archive date is displayed with the time and comment.
Introduction
If you have versioned a WinCC project, it is possible to restore a previous version.
Requirement
● Your WinCC project is open.
● Audit Document Control and Project Versioning is open and you have authenticated
yourself.
● The version number has been configured.
Procedure
1. Select your required project in the navigation area under "Project Versioning".
2. Select the row of the previous version in the table area.
3. Select "Restore" from the shortcut menu.
A dialog box opens.
4. Select the storage location.
5. Confirm your entries with "OK".
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 87
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You can view the audit trails from an Audit Trail multi-project database.
The audit trails of an Audit Trail multi-project database can contain different project IDs,
since several WinCC projects use this database.
Note
Audit trail manipulations
If there is suspicion that an Audit Trail database has been manipulated, the Audit Viewer
displays all affected audit trails with a red background.
Requirement
● The Audit Viewer is open.
WinCC/Audit
88 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Update view
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 89
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You can use Audit Trail queries to browse and filter your stored audit trails. You can perform
the following queries:
Audit Trail queries Description
WinCC Configuration Shows all audited changes in WinCC Configuration
WinCC Runtime Shows all audited changes in WinCC Runtime
Document Control Shows all audited changes in Project Versioning and Document Control
Audit Editor Shows all audited changes in the Audit Editor
User queries Shows all generated user queries
You yourself define user queries. These queries are not case-sensitive.
Requirement
● The Audit Viewer is open.
● The database containing the stored audit trails is selected.
Note
Validating a user query
The "Validate" command in the shortcut menu of the query has no function.
"Refresh" query
There will be no conflicts caused due to changes made to a query within the Viewer and
Runtime. If one user create/edit a query Q1 in Runtime, only he will be eligible to make
changes (if he is the first one to modify the query) and this change reflects when he saves it.
However, the second user trying to access the same query Q1 at the same time via the
Viewer can edit Q1 but will be unable to save the modifications, a message will be displayed
mentioning that another user is editing Q1. Clicking "Refresh" button updates the query in
the respective window.
Result
You see your filtered audit trails under "<Query> - Result" in the table area.
WinCC/Audit
90 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You can view exported audit trails in the Audit Viewer.
The Audit Viewer can read the following file formats:
If a file is stored with a certificate, a prompt for authentication appears when you attempt to
open the file. If you are not able to authenticate, the file will not be opened.
Note
Audit trail manipulations
If there is suspicion that an export XML file has been manipulated, the Audit Viewer displays
all audit trails of the XML file with a red background.
Requirement
● The Audit Viewer is open.
Procedure
1. In the navigation area, select "Audit File".
2. Select "Show Audit File" from the shortcut menu.
A query dialog opens.
3. Select your file.
4. Click "Open".
5. If the file is stored with a certificate, follow the authentication.
Result
The selected file appears under "Audit File" in the navigation area. The content of the file is
displayed in the table area.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 91
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
When you install Audit, the Audit Viewer Control is automatically registered and displayed in
the "ActiveX Controls" of the Graphics Designer.
Note
Adding Audit Viewer Control manually
If the Audit Viewer Control is not displayed and you want to manually add it, follow these
steps:
1. Open the "Controls" tab and select the entry "Add/Remove" in the shortcut menu of the
"ActiveX Controls" folder.
The "Select OCX Controls" dialog opens.
2. Activate the "WinCC Audit Viewer Control" control in the "Available OCX Controls" area
and confirm with "OK".
The "WinCC AuditViewer Control" is displayed in the "Controls" tab of the "ActiveX
Controls" folder.
WinCC/Audit
92 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
To assign parameters for the Audit Viewer Control, enter the Audit Viewer Control in your
process screen. To open the Properties window, double-click the Audit Viewer Control.
Database name
If you have entered the Audit Trail server manually, also select the required name of the
Audit Trail multi-project database.
Operator authorization
Select the authorization of the Audit Viewer Control user. Multiple selections are not
possible.
Note
For more information on authorizations, refer to the WinCC help at:
• Working with WinCC > Setting up a User Admin > Managing Authorizations > Overview
of Authorizations
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 93
WinCC/Audit - Documentation
3.6 Working with Audit
Print configuration
Specify the required columns for the printing of the Audit Trails.
Print Preview
The "Print Preview" option allows you to view how the Audit Trails looks like before printing.
To view output of the data grid:
1. In Audit Viewer window, in the navigation area select database of the connected Audit
Trail server.
2. Click "File > Print Preview".
The "Print Preview" window appears.
3. You can navigate through the pages by using "Next Page" , "Prev Page" options. You can
also "Zoom in" and "Zoom out". Use "Two Page" to view two pages simultaneously.
4. Click "Print" to print the page.
The "Print Preview" option is also available for User Queries. After you run the query, click
"Print Preview" from the "File" menu.
Display
The "Display" attribute specifies whether an object in the PDL file has to be displayed during
the Runtime or not.
Select "Yes" to display the object in Runtime and select "No" to not display the object in
Runtime.
Note
The Audit Viewer's "Display" attribute when dynamized with C/VB Script, the feature of the
"Display" property is not applicable during Runtime.
WinCC/Audit
94 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You can browse the stored audit trails of an Audit Trail database in WinCC Runtime.
Requirement
● The Audit Viewer Control is configured.
● WinCC Runtime is active.
Procedure
1. In the navigation area under "Audit DB", click the Audit Trail server with the created
database .
The table area shows all stored audit trails.
2. Open the section of the navigation area below the Audit Trail server with the created
database.
Categories which you can use to browse the Audit Trail database are shown.
3. Select the desired category to view the audit trails or run a query.
Result
The audit trails are displayed in the table area.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 95
WinCC/Audit - Documentation
3.6 Working with Audit
Backup database
You can have a backup of the database of your Audit project trails.
Procedure
1. In the Audit Editor, select "Select Audit Trail Server" in the navigation area.
2. Select the entire row of the required database.
3. Right click on the selected row, a list of options appear.
WinCC/Audit
96 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Note
The "Backup Database" option is enabled only when the selected database is currently
connected to the Audit trail Server.
5. Click "..." to browse the desired location to save the database file.
6. Enter a desired file name and click "Save".
The saved back up file is of the type DB - Microsoft SQL Server WinCC Backup with
.mdfbak extension.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 97
WinCC/Audit - Documentation
3.6 Working with Audit
Restore database
To restore a database, you need to create a new Audit project with all the configurations and
settings completed in Audit Editor. Follow the procedure given below to restore a database.
Procedure
1. In the navigation area of Audit Editor, select "Select Audit Trail Server".
2. Connect to the required database by selecting the Server.
3. Select the entire row of the required database.
4. Right click on the selected row, a list of options appear.
Note
The "Restore Database" option is enabled only when the selected database is currently
connected to the Audit trail Server.
Note
The remote backup/restore of database is not supported.
Result
All Audit Trails saved in the back up file is restored in the new project and can be viewed in
the Audit Viewer.
WinCC/Audit
98 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
3.6.7 Writing Audit Trails from external applications into Audit database
Introduction
Other third party applications can also write Audit Trails into audit database using an
Application Programing Interface (API) called IAuditTrailAPI. The API provides functions to
create and store Audit Trail records into the Audit Trail Database. The functions of
IAuditTrailAPI interface are:
1. Enumerate list of available trail servers.
2. Establish connection with a specific Trail Server.
3. Insert specific tracking objects into the connected Trail Server database.
4. Query a subset of stored tracking objects, applying a specific filter selection.
5. Enable disconnection of the current connected Trail Server.
Refer the example given below to know how to initiate the interface.
#include "CCAuditTrailAPI.h"
#include "CCAuditTrailAPI_i.c"
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 99
WinCC/Audit - Documentation
3.6 Working with Audit
Parameter Description
pvaServerList List of available trail servers and databases as VARIANT with bi-
dimensional SAFEARRAY of BSTR.
CComVariant svaServerList;
hr = pIAuditTrailAPI->GetTrailServerList(&svaServerList);
CComVariant vaComputerName;
CComVariant vaDSN;
lDimension[1] = nServer;
lDimension[0] = 1;
//..
WinCC/Audit
100 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
2. HRESULT Connect ([in] VARIANT* pvaServer); //Establish a connection with the specified
Trail Server
Parameters
Parameter Description
pvaServer Trail servers and databases to be connected as VARIANT with
SAFEARRAY of BSTR.
CComVariant svaServer;
LONG lIndex = 0;
rgsabound[0].lLbound = 0;
rgsabound[0].cElements = 2;
VariantInit(&svaServer);
lIndex = 0;
lIndex = 1;
if (SUCCEEDED(hr))
hr = m_pIAuditTrailAPI->Connect(&svaServer);
if (SUCCEEDED(hr))
//…
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 101
WinCC/Audit - Documentation
3.6 Working with Audit
Parameters
Parameter Description
pbstrProjectGUID Project GUID of the stored tracking object (The GUID must correspond
to an opened project)
pbstrProjectName Project name of the stored tracking object
pbstrOSUser OS User name that has performed the operation
pbstrApplicationUser Application User name that has performed the operation
pbstrComputerName Computer name where the chage took place.
nTargetID Specific Target ID
nChangeID Specific Chage ID
nModificationID Specific Modification ID
pbstrOldValue Old value of the stored tracking object
pbstrNewValue New value of the stored tracking object
pbstrComments Comments associated to the tracking object
WinCC/Audit
102 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
INT iTargetID = 0;
INT iModificationID = 0;
HRESULT hr = pIAuditTrailAPI->InsertAuditEntry(&bstrProjectGUID,
&bstrProjectName,
&bstrOSUser,
&bstrApplicationUser,
&bstrComputerName,
&bstrTargetName,
iTargetID,
&bstrChangeID,
iModificationID,
&bstrOldValue,
&bstrNewValue,
&bstrComments);
if (SUCCEEDED(hr))
//..
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 103
WinCC/Audit - Documentation
3.6 Working with Audit
Parameters
Parameter Description
pbstrFilter Filter in XML format with the information needed to retrieve the Data
(the example shown the format)
pvaTrackingObjectList List of Tracking objects as VARIANT with a bi-dimensional
SAFEARRAY with all data.
bstrFilter += L"<Filter>\r\n";
bstrFilter += L"<DataSource>";
bstrFilter += L"<From>";
bstrFilter += L"<Select>";
bstrFilter += L"<Where>";
bstrFilter += L"ID > 0"; //Use this field to manage the output using the normal
condition in SQL considering the table fields
bstrFilter += L"</Where>\r\n";
bstrFilter += L"<RecordCount>";
bstrFilter += L"<OrderByClause>";
bstrFilter += L"</Filter>\r\n";
if (pIAuditTrailAPI)
CComVariant svaResult;
WinCC/Audit
104 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
_variant_t vaTrackingID;
_variant_t vaProjectID;
_variant_t vaProjectName;
_variant_t vaDateTime;
_variant_t vaTimeZoneOffset;
_variant_t vaWindowsUser;
_variant_t vaApplicationUser;
_variant_t vaComputerN;
_variant_t vaCategoryID;
_variant_t vaSubCategoryID;
_variant_t vaTargetID;
_variant_t vaTargetName;
_variant_t vaSpecificChangeID;
_variant_t vaModificationID;
_variant_t vaOldValue;
_variant_t vaNewValue;
_variant_t vaOperatorMsgID;
_variant_t vaReason;
_variant_t vaAuditType;
_variant_t vaLegacyProjectGUID;
_variant_t vaLegacyDataBaseName;
_variant_t vaLegacyApplicationName;
_variant_t vaLegacyTableName;
_variant_t vaLegacyFieldName;
_variant_t vaLegacyEventType;
_variant_t vaLegacyEventItem;
VariantInit(&vaTrackingID);
VariantInit(&vaProjectID);
VariantInit(&vaProjectName);
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 105
WinCC/Audit - Documentation
3.6 Working with Audit
VariantInit(&vaDateTime);
VariantInit(&vaTimeZoneOffset);
VariantInit(&vaWindowsUser);
VariantInit(&vaApplicationUser);
VariantInit(&vaComputerN);
VariantInit(&vaCategoryID);
VariantInit(&vaSubCategoryID);
VariantInit(&vaTargetID);
VariantInit(&vaTargetName);
VariantInit(&vaSpecificChangeID);
VariantInit(&vaModificationID);
VariantInit(&vaOldValue);
VariantInit(&vaNewValue);
VariantInit(&vaOperatorMsgID);
VariantInit(&vaReason);
VariantInit(&vaAuditType);
VariantInit(&vaLegacyProjectGUID);
VariantInit(&vaLegacyDataBaseName);
VariantInit(&vaLegacyApplicationName);
VariantInit(&vaLegacyTableName);
VariantInit(&vaLegacyFieldName);
VariantInit(&vaLegacyEventType);
VariantInit(&vaLegacyEventItem);
vaTrackingID.vt = VT_UI8;
vaProjectID.vt = VT_BSTR;
vaProjectName.vt = VT_BSTR;
vaDateTime.vt = VT_DATE;
vaTimeZoneOffset.vt = VT_R4;
vaWindowsUser.vt = VT_BSTR;
vaApplicationUser.vt = VT_BSTR;
vaComputerN.vt = VT_BSTR;
vaCategoryID.vt = VT_UI2;
vaSubCategoryID.vt = VT_UI2;
vaTargetID.vt = VT_UI2;
WinCC/Audit
106 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
vaTargetName.vt = VT_BSTR;
vaSpecificChangeID.vt = VT_BSTR;
vaModificationID.vt = VT_UI1;
vaOldValue.vt = VT_BSTR;
vaNewValue.vt = VT_BSTR;
vaOperatorMsgID.vt = VT_UI8;
vaReason.vt = VT_BSTR;
vaAuditType.vt = VT_BSTR;
vaLegacyProjectGUID.vt = VT_BSTR;
vaLegacyDataBaseName.vt = VT_BSTR;
vaLegacyApplicationName.vt = VT_BSTR;
vaLegacyTableName.vt = VT_BSTR;
vaLegacyFieldName.vt = VT_BSTR;
vaLegacyEventType.vt = VT_BSTR;
vaLegacyEventItem.vt = VT_BSTR;
lDimension[1] = nSize;
lDimension[0] = nPos;
switch (nPos)
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 107
WinCC/Audit - Documentation
3.6 Working with Audit
default :
if (FAILED(hr))
break;
WinCC/Audit
108 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
if (SUCCEEDED(hr))
VariantClear(&vaTrackingID);
VariantClear(&vaProjectID);
VariantClear(&vaProjectName);
VariantClear(&vaDateTime);
VariantClear(&vaTimeZoneOffset);
VariantClear(&vaWindowsUser);
VariantClear(&vaApplicationUser);
VariantClear(&vaComputerN);
VariantClear(&vaCategoryID);
VariantClear(&vaSubCategoryID);
VariantClear(&vaTargetID);
VariantClear(&vaTargetName);
VariantClear(&vaSpecificChangeID);
VariantClear(&vaModificationID);
VariantClear(&vaOldValue);
VariantClear(&vaNewValue);
VariantClear(&vaOperatorMsgID);
VariantClear(&vaReason);
VariantClear(&vaAuditType);
VariantClear(&vaLegacyProjectGUID);
VariantClear(&vaLegacyDataBaseName);
VariantClear(&vaLegacyApplicationName);
VariantClear(&vaLegacyTableName);
VariantClear(&vaLegacyFieldName);
VariantClear(&vaLegacyEventType);
VariantClear(&vaLegacyEventItem);
if (FAILED(hr))
break;
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 109
WinCC/Audit - Documentation
3.6 Working with Audit
5. HRESULT Disconnect (); // Establish a connection with the specified Trail Server
Parameters: Not required
The following example shows how to use it:
if (pIAuditTrailAPI)
HRESULT hr = pIAuditTrailAPI->Disconnect();
if (SUCCEEDED(hr))
//..
WinCC/Audit
110 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
Audit supports creation of reports in the SIMATIC Information Server.
Requirement
Activate the WinCC project in Runtime.
Procedure
1. Connect to the home page of the Information Server and login.
2. Click "Administration > Configuration".
3. Enter "wincc" as the data source in "SQL instance" and click "Select Projects". The
desired project is listed.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 111
WinCC/Audit - Documentation
3.6 Working with Audit
4. Click "Reporting" tab to view all the available templates of the Audit under "Reporting
templates > Templates > Public > Audit".
WinCC/Audit
112 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
5. Open the "Messages sorted by timestamp" template and provide the necessary details to
create the report for the selected project.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 113
WinCC/Audit - Documentation
3.6 Working with Audit
WinCC/Audit
114 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 115
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You can export filtered audit trails to a CSV file.
Requirement
● The Audit Viewer is open.
Procedure
1. Perform a query or select a category.
2. In the menu bar, select "File > Export".
A query window opens.
3. Select the storage location.
4. Click "Export".
WinCC/Audit
116 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.6 Working with Audit
Introduction
You have the option of converting data in order to use your stored audit trails in another
system. The Audit Editor allows you to export entries from a limited time range or a complete
Audit Trail database.
To export a limited time range, specify a start date and an end date with the time information.
If you want to export the complete Audit Trail database, you do not need to specify a start
date and an end date with time information.
For additional protection you can attach a certificate to the export. To use this function, the
certificate must be stored in the Windows certificate memory.
Requirement
● Your WinCC project is open.
● The Audit Editor is open and you have authenticated yourself.
Procedure
1. Open the shortcut menu under "Audit Trail" in the navigation area.
2. Click "Export Database".
A query window opens.
3. Select a storage location using the "..." button under "Select file".
4. If you want to use a certificate, enable the "Use certificate" option and select a certificate
using the "..." button.
5. To apply a date and time filter, select the "Use date filter" option under "Date filter". Enter
the required information.
6. To export the complete Audit Trail database, select the "Do not use date filter" option
under "Date filter".
7. Confirm your entries with "OK".
Result
The Audit Trail database is exported as an XML file.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 117
WinCC/Audit - Documentation
3.7 Migration
3.7 Migration
Introduction
If you are already using Audit V7.2 or Audit V7.3 or V7.4, you can migrate your Audit
configurations and your saved Audit Trails to Audit V7.4 SP1.
Note
Migration of Audit V7.2 / V7.3 / V7.4 databases
You can migrate the following from your Audit V7.2 or Audit V7.3 or Audit V7.4 single project
database to Audit V7.4 SP1:
• Audit configuration
• Audit trails
You can migrate the following from your Audit V7.2 or Audit V7.3 or Audit V7.4 multiproject
database to Audit V7.4 SP1:
• Audit configuration
One-time migration
Migration can only be started once. If you do not perform the migration, the option is not
offered again.
If you reject a migration step, you will not have the opportunity to repeat this step.
WinCC/Audit
118 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.7 Migration
Result
Your configuration settings are migrated in the Audit Editor. The stored audit trails of the
previous version are migrated to the current Audit Trail database. Some of the values are
shown in the columns whose names start with "Legacy".
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 119
WinCC/Audit - Documentation
3.7 Migration
Introduction
You have two options for displaying the Audit Trails of an Audit V7.2 or Audit V7.3
multiproject database.
WinCC/Audit
120 System Manual, 05/2017, A5E40959835-AA
WinCC/Audit - Documentation
3.7 Migration
3.7.5 InsertAuditEntry
Introduction
If you use the "InsertAuditEntry" function of Audit V7.2 in a WinCC project, you can continue
to use the function with Audit V7.4 SP1.
It is not necessary to change your scripts.
Some of the values from the "InsertAuditEntry" will be displayed in the Audit Trail database
in columns whose names begin with "Legacy".
InsertAuditEntryNew
For all new WinCC projects, use the "InsertAuditEntryNew" function.
You can find additional information under:
● InsertAuditEntryNew (Page 66)
C Editor/Graphics Designer
You can find the InsertAuditEntry function in the navigation area under "Project Functions".
Note
Regenerating the header
If the "InsertAuditEntry" function is not visible, you need to re-generate the header in the C
Editor.
WinCC/Audit
System Manual, 05/2017, A5E40959835-AA 121