Amprolyzer Help V3.2: © 2007 Siemens Ag
Amprolyzer Help V3.2: © 2007 Siemens Ag
V3.2
© 2007 SIEMENS AG
2 Amprolyzer Help
Table of Contents
Part IV Installation 16
1 System Requirements
................................................................................................................................... 17
2 Hardware...................................................................................................................................
Connection 18
3 Setup ................................................................................................................................... 19
Installing ......................................................................................................................................................... 20
Repairing......................................................................................................................................................... 23
Uninstalling
......................................................................................................................................................... 24
Parallel installations
......................................................................................................................................................... 25
© 2007 SIEMENS AG
Contents 3
Examples......................................................................................................................................................... 64
6 Tab "Record"
................................................................................................................................... 66
7 Tab "Profile"
................................................................................................................................... 67
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
I
Welcome to Amprolyzer 5
1 Welcome to Amprolyzer
AMPROLYZER Help
V3.2
© 2007 SIEMENS AG
6 Amprolyzer Help
2. All bus information is continuously presented ONLINE, and the bus state
is summarized in a traffic light display.
3. Multiple buses can be monitored at the same time, provided that multiple
CP5611 are available.
6. If recordings are passed on, the receiver does not have to install the
Amprolyzer tool, as long as Excel is available.
7. All Online and Offline settings can be saved at Profile files. They can be
created by experts and passed on to coworkers.
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
II
8 Amprolyzer Help
2 What's new?
The tool Amprolyzer doesn't require a license key any longer.
Attention: For using this Software you have to accept the license conditions, shown at the
download area and Setup!
You can install Amprolyzer V3.2 on the same PC on which V3.0 or V3.1 is already installed (see
Parallel installations).
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
III
10 Amprolyzer Help
3 Introduction
The ever increasing need for greater productivity requires a greater degree of automation in
production. More and more, control systems rely on decentralized I/O in connection with a field
bus system such as PROFIBUS. For achieving and maintaining a high availability of effective
production plants, operators must be able to detect and remedy the causes of errors as quickly
as possible. This requires powerful diagnostic systems in the form of tools and devices.
The so-called Advanced Multicard Profibus Analyzer (Amprolyzer for short) comes into play
here. This standalone application is a diagnostic software that logs message frames on the
PROFIBUS.
It helps you to find errors during commissioning and assists you with the concluding
documentation for the plant state.
If you do not yet have much experience with Online Help systems, you should first familiarize
yourself in the Help system with the structure of the user interface and the navigation elements. If
you already have experience in working with Online Help systems in a Windows environment,
you can simply get started – you will find additional information about the contents of each
chapter in the Overview.
If you do not have a mouse connected to your PG/ PC, you must operate the Online Help and
Amprolyzer using the keyboard. To do so, first read the section „Operation with Keyboard".
© 2007 SIEMENS AG
Introduction 11
3.1 Overview
Topics Chapter/Section:
You would like to install the software product Amprolyzer. Installation
You have installed Amprolyzer and would like to learn how to Quick Start
operate it as quickly as possible.
If frames are recorded and you want to analyze them you need Offline mode
the Offline mode.
You use already Amprolyzer and you want to set filters and Record Complex
triggers during recording time.
Appendix Appendix
© 2007 SIEMENS AG
12 Amprolyzer Help
In this section, you will learn how to call up the information you require in the Online Help system.
The user interface is divided into three areas in which you can work:
The Toolbar, the tabs "Contents", "Index" and "Search" and the Help window, which contains the
actual Help text.
© 2007 SIEMENS AG
Introduction 13
Toolbar:
Button Function
Name
Hide Hides or shows the Contents, Index, and Search tabs.
Back Jumps to the most recently viewed page.
Print Opens a selection menu in which you can select the current
section or the entire chapter for printing
Options In addition to the functions mentioned, enables:
- Jump to the next chapter section via FORWARD
- Jump to home page of Online Help
- Interruption of an action (such as an animation) via STOP
- Screen view update via REFRESH
- Individual settings of INTERNET-OPTIONS of Microsoft IE
Tab "Contents":
Tab "Index":
Tab "Search":
The Search tab allows you to perform an individual search in the Online Help. To use this
advanced function, first enter the required search term in the upper input field and then display it
via the "List Topics" button.
© 2007 SIEMENS AG
14 Amprolyzer Help
Actions at Amprolyzer:
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
IV
16 Amprolyzer Help
4 Installation
You want to install the software product Amprolyzer. It is important that you read this chapter.
Topic Chapter/Section:
You would like to know the system requirements of System Requirements
Amprolyzer
© 2007 SIEMENS AG
Installation 17
· CP5611 or a PG with integrated CP5611 on a hardware base of PROFIBUS Asic ASPC2 Step
C/D/E2.
· This version of Asic can be read by Amprolyzer (see item "PcCard" at Online menu).
· For using all implemented features PROFIBUS Asic ASPC2 Step E2 is required.
If you do not have Step E2, you can possibly update your CP5611 PC card.
· By using a hardware trigger box, you can control Amprolyzer with hardsware signals or you
can get hardware signals generated by Amprolyzer.
For more information, go to www.inomation.de.
· Power PG by SIEMENS AG
· Field PG by SIEMENS AG
· SINEC Professional PC
· PC SINEC Home
Depending on the number of available CP5611, you can use up to three CP5611 at the same
time, enabling you to monitor up to three bus systems at the same time.
However, you can also use one CP5611 for Step7 and the other CP5611 for Amprolyzer. For
STEP7, a PCMCIA card (CP5511, CP5512) can also be used.
© 2007 SIEMENS AG
18 Amprolyzer Help
· The manufacturer doesn't assume any responsibility for any plant downtimes caused
by changes in the physical characteristics of the bus due to insertion of a spur line
when Amprolyzer is used!
· The Amprolyzer software is completely passive on the PROFIBUS. It does not use a
PROFIBUS address and does not send any message frames. It only listens passively to the
data exchange on the PROFIBUS.
© 2007 SIEMENS AG
Installation 19
4.3 Setup
These instructions should make it easier for you to install, repair and uninstall the product quickly
and without errors.
Topic Example
How do I install the software? Installing
General
· During installation, a log file is created and stored at "C:\Documents and Settings\All
Users\Application Data\Amprolyzer.log".
· If an OCX file of the folder WinDir\System32 has to be updated, a backup of the previous
OCX is created at the backup path "C:\Documents and Settings\All Users\Application
Data\Amprolyzer.log\ OCX_Save."
· During an uninstall operation, the state of the OCX file prior to installation is not restored.
· The Amprolyzer software can only use CP5611 devices that are displayed in the device class
SIMATIC NET of the device manager.
If there isn't any installed driver for a CP5611 it is shown as a network card and is therefore not
visible for Amprolyzer!
In this case, an additional installation of a SIMATIC NET driver is not required!
Instead:
Install Amprolyzer, then perform a driver update via the device manager (display list of all
available drivers for this card), or remove card and perform a new search, or reboot the
computer.
· The security settings for Excel 2000 / Excel XP / Excel 2003 must be set to Medium, since the
"High" setting requires a "Digital certificate".
Make this setting under EXCEL Tools / Macro / Security: Security level = Medium.
If you fail to do so, the macros will not be activated, meaning that all buttons and all updates in
the Amprolyzer user interface will be inactive!
© 2007 SIEMENS AG
20 Amprolyzer Help
4.3.1 Installing
An entire new installation is documented here to show you how to perform an installation.
1. After downloading the Amprolyzer zip-File, open it by a double-click and then double-click to
Amprolyzer.exe.
3. The software is unpacked and placed in a separate temporary directory, and the actual setup
routine appears.
4. The installation is started by pressing the Install button. In the next screen form, the target
directory for the installation can be specified.
© 2007 SIEMENS AG
Installation 21
5. Confirm and accept the software license agreement for this product.
© 2007 SIEMENS AG
22 Amprolyzer Help
6. Once you have successfully installed the drivers and the program, you should see the
following note.
7. If you want to use any other installed Amprolyzer version anytime, you can do it by repairing
the software product.
© 2007 SIEMENS AG
Installation 23
4.3.2 Repairing
· You uninstalled an Amprolyzer version. Then the icon on the desktop and the Amprolyzer
program group are deleted entirely.
If you want to use another installed Amprolyzer version you have to repair it.
· An OCX file in use has been corrupted by another application or overwritten with an old
version. In the last case, repair is necessary only if there is a visible error!
You can access Repair by going to Control Panel -> Add or Remove Programs -> Amprolyzer ->
Change/Remove.
© 2007 SIEMENS AG
24 Amprolyzer Help
4.3.3 Uninstalling
You can access Uninstalling by going to Control Panel -> Add or Remove Programs ->
Amprolyzer -> Change/Remove.
© 2007 SIEMENS AG
Installation 25
If you wish, you can have multiple, parallel Amprolyzer versions at the same time on one
PC:
In this case you should uninstall the previous version before installing the new one.
If you do the uninstall process after installing the new Amprolyzer software you have to repair
the remaining version (see Uninstalling, Repairing).
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
V
Quick Start 27
5 Quick Start
In this chapter, the basic functions of Amprolyzer will be presented. It is primarily intended for
users who want to learn the basic functions in the shortest time possible.
Topic Chapter/Section:
You would like to know the Basics of the Main Form Basics of Main Form
You would like to know the Basics of Online Mode Basics of Online Mode
You would like to know the Basics of Offline Mode Basics of Offline Mode
Short overview:
1. By Add Bus you can select the CP5611 which is connected to your desired PROFIBUS line.
The Amprolyzer driver will be installed automatically.
2. By all Online Modes ("Show BusState", "Record (Simple)" or "Record (Complex)") you can
view the state of your selected PROFIBUS line.
By the Online Modes "Record (Simple)" or "Record (Complex)" you can additionally record its
frames.
3. By the Offline Mode you can analyze the recorded frames. Here the standard tool Excel is
used.
4. At the end you release your allocated CP5611 by Remove Bus. Here you can install a different
driver for the CP5611 if you want to use it by other applications.
© 2007 SIEMENS AG
28 Amprolyzer Help
· In the Start menu: Single-click under Start -> Programs -> Amprolyzer -> Amprolyzer V3...
This startup operation sets up an interface that includes the functions described below.
Sets up the driver on a selected CP5611 and displays the operating elements of
Amprolyzer for the associated Profibus line.
Calls the Online Help (not in this version), currently still via Start -> Programs ->
Amprolyzer -> Amprolyzer Help.
Exit Amprolyzer.
© 2007 SIEMENS AG
Quick Start 29
provides access to a window where you can select your desired CP5611.
· Here, each CP5611 represents a field bus. For each CP5611, this function must be called
once.
· Each card is displayed with its driver name and location string exactly as in the device
manager of the system.
· Depending on the number of plugged CP5611, it is possible to install and monitor multiple
PROFIBUS lines.
· After you have made a selection, the startup screen appears with one or several inserted
CP5611.
· You can now begin recording. This is referred to as the Online menu.
© 2007 SIEMENS AG
30 Amprolyzer Help
© 2007 SIEMENS AG
Quick Start 31
The button provides access to a window where you can select your desired
CP5611 driver you want to install for the selected CP5611. At least two drivers are displayed.
The "SIMATIC CP5611" driver appears only if a STEP7driver is installed.
· The driver for a CP5611 need only to be replaced if you want to use this CP5611 by other
products (such as Step7). If this is not the case, the drivers should not to be replaced because
of performance issues.
· Select the driver "SIMATIC CP 5611" if you want to work with STEP7 or another
SIMATIC NET software afterwards.
· Select the driver "CP5611 Amprolyzer" if you want to continue using the card with Amprolyzer.
· The driver "CP5611 Dummy" is used within Amprolyzer during setup. Selecting this driver by
mistake does not cause any problem, since the driver is automatically replaced by the
Amprolyzer driver during the next Add Bus operation.
· Unfortunately, depending on the computer and the operating system, the driver exchange can
take several seconds, because the Microsoft update driver mechanism must be used here.
© 2007 SIEMENS AG
32 Amprolyzer Help
Topic Chapter/Section:
Online-Mode "Show BusState": Show Bus State
You want to see the bus state,
but you don't want to record message frames.
© 2007 SIEMENS AG
Quick Start 33
By double-clicking to "Show BusState" in the Online menu, a screen form appears where you can
get information about the state of your bus.
This is referred to as the Online Info form.
For this purpose, at the right-hand section of the interface you can see three tabs, which
provide information about the Station List, occurred Events and the current Settings.
The left-hand section of the interface provides additional information about the bus state. The
displays are defined as follows:
Baud rate Current auto detected baud rate or set baud rate
Status Bus is active or the baud rate was not detected
Msg Counter Number of message frames counted since start of recording
Msg Rate Number of message frames per second
Msg trigger Number of trigger events that have occurred
Internal Overrun Number of overruns of the internal buffer list.
If this happens, the message or disturbance rate is too high.
A "Driver too slow..." message then appears.
Running Displays tool activity
In addition to the event page, the state is indicated in the form of a traffic light. The traffic light
displays the state of the sum of all cells of the Event tab. If, for example, an event happens once
during the night, and if the Station List tab is displayed, the traffic light indicates that an event has
occurred!
© 2007 SIEMENS AG
34 Amprolyzer Help
The button deletes the statistic counters, and the traffic light turns green again.
© 2007 SIEMENS AG
Quick Start 35
The tab "Station List" shows you all stations on the bus in different colors.
Foreground colors:
Background colors:
© 2007 SIEMENS AG
36 Amprolyzer Help
On the tab "Events" the various bus states for a statistical analysis are counted.
This provides an immediate overview of all Online information, thus eliminating the need
to search through huge message frame recordings.
· Here, the information is displayed in two columns. The left-hand column provides information
about the absolute counter of an event, whereas the right-hand column reports the rate, that
is, how often the event occurred in the last second.
· A traffic light indicates the state of the sum of all cells of the Event tab (see chapter Show
Bus State).
· By the Online Mode "Record (Complex)", it is possible to stop the recording when an event
occurs.
© 2007 SIEMENS AG
Quick Start 37
Events Meaning
Bus
Timeout No bus activity could be detected during the specified timeout interval.
The Timeout interval can be set at the tab "Events" of the Online Mode "
Record (Complex)" if this mode is used. The default values used in the
Online Modes "Show BusState" and "Record (Simple)" are also
displayed there.
Syni Error The bus did not come to neutral position within 11385 bit counts
(due to disturbances, for example).
ASIC
Rcve Overflow Should never occur under normal circumstances!
The Profibus Asic has already received a new message frame, although
the previous one has not been transferred to the memory.
If this happens, the message rate or disturbance rate is too high, or the
computer is too slow. A message "Asic too slow..." then appears.
Remedy:
Was the FdlStatus filter activated at 12 Mbaud?
Are the bus parameters set correctly?
If YES:
- If appropriate, activate additional Online filters.
- If appropriate, increase bus parameter Tid1 for active stations.
- If appropriate, increase bus parameter minTsdr for all stations.
- Disable temporary the Online Info (see Disable Online Info).
Fifo Error Should never occur under normal circumstances!
When a message frame was received, an internal Asic Fifo underrun
occurred.
Messages
Token Repeat Token message frame repeats are occurring.
Request Repeat Request message frame repeats are occurring.
DP Slave Message frames with slave diagnostics are occurring.
Diagnostic
Frame Error Invalid or incomplete message frames are occurring. This can result
from an illegal spur line causing reflections.
Attention: Particular care must be taken to ensure that Amprolyzer is
properly connected to the bus structure (see chapter Hardware
Connection).)
Frame Error HW Invalid or incomplete message frames are occurring. This event can
only happen if it is activated at OnlineMode "Record (Complex)". It can
be used to generate a hardware signal when a frame error occurs. By
this signal an oscilloscope for viewing the state of the bus cable can be
triggered.
You can buy a hardware trigger box by www.inomation.de.
© 2007 SIEMENS AG
38 Amprolyzer Help
Counter Column:
Rate Column:
© 2007 SIEMENS AG
Quick Start 39
The tab "Settings" shows an overview of the current Online filter settings.
· Token filter
· FdlStatus filter
· Selectors
(Selectors indicate whether particular addresses or SAPs were selected during the recording).
At the Online Modes "Show BusState" and "Record (Simple)" all these settings are preset and
can be changed only temporary (see chapter Default Settings) whereas all Online filters can be
set at Online Mode "Record (Complex)".
© 2007 SIEMENS AG
40 Amprolyzer Help
By double-clicking to "Record (Simple)" in the Online menu, you can see the Online Info form
as shown at mode "Show BusState".
Additionally message frames are recorded.
· The mode "Record (Simple)" is a subset of the mode "Record (Complex)". For easier
operation, many parameters have been set to default values.
· Mode "Record (Simple)" is used to offer a fast recording without filters or triggers.
Recording stops as soon as all buffers of the CP5611 are full. This makes it possible for a
user who rarely works with this tool or who is using the tool for the first time to get a quick
overview of the bus message frames.
The stop condition can be temporary set to "Manual" by changing Default Settings.
· As soon as is displayed with a red border, all buffers of the CP5611 are full (max.
996 messages), the recording is complete.
If you are interested you can look to the events that may have occurred up to this time.
· If you want to stop recording earlier, you can do it by the same button.
· After pressing the button the data are exported to Excel (see chapter Basics of Offline Mode).
© 2007 SIEMENS AG
Quick Start 41
The mode "Record (Complex)" is used to offer a detailed recording with Online filters and
trigger conditions.
· The recording can be stopped automatically as soon as the specified trigger conditions are
satisfied.
This enables experienced users to quickly obtain detailed information by the bus message
frames.
· The Online Modes "Show BusState" and "Record (Simple)" are a subset of "Record
(Complex)":
You will find more information about "Record (Complex)" in the "Record Complex" chapter.
© 2007 SIEMENS AG
42 Amprolyzer Help
With the Default Settings you can temporary change the basic settings for the Online operations.
Attention:
At each start of Amprolyzer all Default Settings will be set to their factory value!
This is done because some settings are very critical, it should not happen that they are changed
permanently.
Tab "Common":
· You can temporary disable the HD4 checking if you see the event "Frame Error" and if you
want to know if this is caused by gaps between two message bytes.
© 2007 SIEMENS AG
Quick Start 43
· By filtering the message frames "FdlStatus Request" and "Token" the recording depth for data
frames can be increased.
· By default, message frames of type "FdlStatus Request" are filtered out for reducing the data
rate if more than one bus is monitored at 12 MBaud.
Checking of all FdlStatus Requests needs a lot of PC performance.
· If you deactivate the filter "FdlStatus Request", then it may happen that the computer will not
be operable as long as the bus cable is plugged and the message rate or disturbance rate is
very high (the displayed Online information is really determined ONLINE)!
© 2007 SIEMENS AG
44 Amprolyzer Help
One of the advantages of the Amprolyzer software is that a recording can be passed on to a
bus expert who will analyze the message frame recording. This is possible due to the following
issues:
Topic Chapter/Section:
You want to see the details of all monitored message Worksheet "Messages"
frames
You want to set Offline filters for reducing the number of Worksheet "Filter Settings"
shown message frames
You want to change the font and color for the shown Worksheet "User Settings"
message frames
You want to know the time intervals between marked Worksheet "Time Marks"
message frames
© 2007 SIEMENS AG
Quick Start 45
You can use this worksheet to analyze message frames, which are recorded by the Online
mode.
The interface in this source worksheet is divided into four areas by a horizontal lines and different
colors
· Data window:
Displays data of the selected message frame.
· Statusbar:
Provides information about the message frame recording of Online mode.
button "Settings": Changes formatting of the different columns and cells of the
message frame window
button "Filter": Applies and disables the Offline filter specified at Worksheet
"Filter Settings"
button "Export": Exports the current message frame recording to an non write
protected Excel file.
© 2007 SIEMENS AG
46 Amprolyzer Help
Tips:
· You can use the internal search function of Excel to find desired frames or attention strings or
the trigger point provided by Amprolyzer.
For example, you can use <Ctrl-F> and <++> to search for the trigger point or <Ctrl-F> and <#
> to find attention strings.
All possible attention strings are listed at column "Attention" of Worksheet "Help Filter".
· The column "User" is used to add comments about the message frames, for example, to notify
coworkers of particular situations.
· In addition, time marks can be defined here (see Worksheet "Time Marks").
· More information about each column can be obtained in the tooltips. To view this
information, hover the mouse cursor for a few seconds over the relevant table header.
· Offline filters are used to reduce the quantity of data of a complete recording to a manageable
amount of message frames.
· The filters are set optimally if they leave only that rows which contain the exact information you
need to perform the bus analysis.
· The filter settings can be stored in a file (called a Profile) with a meaningful name.
These Profiles can thus be reused and passed on to coworkers (who might not have as much
product knowledge as you).
© 2007 SIEMENS AG
Quick Start 47
With this worksheet, you can individually adjust the appearance of font and colors in the
message frame window.
· The color of each cell can be modified, but changing the font type and size affect the entire
message frame window, except for the Data1 to 246 column.
· User settings can be stored in a file (called a Profile) with a meaningful name.
These Profiles can thus be reused and passed on to coworkers (who might not have as much
product knowledge as you).
© 2007 SIEMENS AG
48 Amprolyzer Help
· Time marks can be defined in the Worksheet "Messages". The time interval between these
marked message frames is automatically calculated in the Worksheet "Time Marks".
· This gives you an overview of the time elapsed between time mark x and time mark y in a
recording.
© 2007 SIEMENS AG
Quick Start 49
Use this worksheet to append important information to your message frame recording, such as:
· Own comments
· Additional message frame recordings
· Excel tables
· Word documents
· Graphics
· Diagrams
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
VI
Record Complex 51
6 Record Complex
This section provides all the information you need to operate the mode "Record (Complex)".
This recording type should be used by experts to create a detailed recording for the fastest
possible error localization.
It assumes that you have precise knowledge of the processes on PROFIBUS.
Topic Chapter/Section:
You would like to get an overview of data flow during Tab "Overview"
recording
You would like to set message frame filters Tab "Msg Filter"
You would like to store your settings at User Profiles Tab "Profile"
© 2007 SIEMENS AG
52 Amprolyzer Help
By double-clicking to "Record (Complex)" in the Online menu and setting all parameters, you can
see the Online Info form as shown at mode "Show BusState" and "Record (Simple).
Additionally message frames are recorded according to your defined Online filters and trigger
conditions.
· The recording can be stopped automatically as soon as the specified trigger conditions are
satisfied.
· Then a corresponding notice appears, and you are prompted to press the button.
If you are interested you can look to the events that may have occurred up to this time.
· If you want to stop recording earlier, you can do it by the same button.
· After pressing the button the data are exported to Excel (see chapter Basics of Offline Mode).
© 2007 SIEMENS AG
Record Complex 53
This tab appears after double-clicking to "Record (Complex)" in the Online menu It shows you
the data flow of message frames.
· You should be aware that if you use Online filters, some of the PROFIBUS data are no longer
available in Offline Mode. Consequently, some necessary information might be missing, or
your trigger might not even be activated. As a result, you might miss highly sporadic faults,
thus requiring more time and effort to localize and remedy the fault.
We recommend to take some time at this point to familiarize yourself with the specific
processes on PROFIBUS.
· Double-clicking a block for which a tab with the same name exists, causes the corresponding
tab to be displayed.
· Data flow:
The picture shows that in the first step that PROFIBUS data are reduced by the Online filters (
Msg Filter).
In the second step, the filtered data are used to represent the Station List - as explained in the
Online Mode "Show BusState". The stations that were filtered out, are no longer displayed at
the Station List!
In the third step the recorded data length of a message frame is limited by the value which can
be defined at tab "Record".
Before recording a message frame to the internal buffer list of the CP5611 all trigger conditions
are checked.
© 2007 SIEMENS AG
54 Amprolyzer Help
· Baud rate
Setting a specific baud rate make only sense if you start the Amprolyzer tool before the
PROFIBUS system and if you want to see the first message frame.
If you use AutoDetect, the first message frames are lost due to the baud rate search.
· Stop Condition:
Use the stop condition to specify how the recording should be stopped. The trigger option is
automatically activated if you define a trigger.
Trick: By changing the stop condition, you can easily disable a triggers temporary.
© 2007 SIEMENS AG
Record Complex 55
In this tab, you can specify whether the recording should be stopped if a specific event occurs.
An event can be caused on PROFIBUS by the stations or physical bus characteristics (example:
station diagnostics).
· By default all occurring events from the tables "Msg Events" and "Bus/Asic Events" are
counted and are visible at the tab "Events" of the Online Info form during recording time.
There you can find a detailed description of all events too.
· As action you can also specify "Stop at trigger" and the recording will terminate as soon as
the event occurs.
This provides a convenient, easy way of using basic events as triggers.
© 2007 SIEMENS AG
56 Amprolyzer Help
· For the event "Bus Timeout", the timeout time can be defined on the right-hand side of the
interface. In this way, specific timeouts on the bus can be used as triggers.
· With the Event "FrameErrorHw" it is possible to decide if a hardware signal should be created
by a Frame Error at Startdelimiter or afterwards (important for hardware trigger box).
© 2007 SIEMENS AG
Record Complex 57
By this tab you can specify the filter settings for the recording of message frames.
Filters make it possible to filter out particular message frames (see Examples).
Filter Formats
SA/DA dec / hex
SSAP/DSAP dec / hex
SSAP/DSAP dec / hex
Default
© 2007 SIEMENS AG
58 Amprolyzer Help
Some details:
· Depending on the used PROFIBUS Asic Step of your CP5611 you can define up to four filter
conditions.
· Filtering Token message frames is done only by activating the filter "Token", but not by the use
of address or SAP selectors.
· The address or SAP selectors can be linked together by specifying a number of hits per
message frame.
Trick: If you use the hit number 0 then all message frames are recorded where no hit occurs
(see Examples).
· Depending on the Asic Step, the "Info" field at the bottom of the form shows you, for example,
whether the broadcast message frames are recorded.
These features are Asic-specific and thus cannot be changed.
© 2007 SIEMENS AG
Record Complex 59
6.4.1 Examples
Note:
As already mentioned, the address filter has no effect on Token message frames!
Example 1:
· You only want to examine data traffic from/to station 72 and data traffic from/to station 85 (=
0x55) occurring on your bus.
· Select >=1 as the number of hits. This will record all message frames in which Condition1 OR
Condition2 are satisfied.
· Select the setting shown below.
Example 2:
· You only want to examine data traffic that is not done by the default SAP.
· Select 0 as the number of hits. This will record all message frames that do not contain the
specified SAP.
Because all cyclic message frames contain the default SAP, only the acyclic data traffic
remains.
· Select the setting shown below.
© 2007 SIEMENS AG
60 Amprolyzer Help
Example 3:
· You want to check whether the Sync/Freeze command function you programmed is going over
the bus.
· Select >=2 as the number of hits. This will only record message frames in which both
conditions are satisfied, that is, the two conditions are ANDed.
· Select the setting shown below.
Warning:
Two hits will also be returned if SAP 063 appears twice in a message frame, that is, if
DSAP=SSAP=063! These message frames will thus also be recorded.
Example 4:
· In this example, all message frames are recorded where there are at least two hits.
· For example:
DA=001, SA=002
DA=001, SA=001 (message frame to itself)
DA=001, SSAP=044
DSAP=033, SSAP=033 (2x same SAP)
© 2007 SIEMENS AG
Record Complex 61
Example 5:
· In this example, only message frames are recorded where there are at least three hits.
· For example:
DA=001, SSAP=033, DSAP=033
Example 6:
· In this example, only message frames are recorded which do not contain Address 001 or
Address 002.
© 2007 SIEMENS AG
62 Amprolyzer Help
trigger Formats
LenData dec / hex / bin
LenData/SA dec / hex / bin
SA dec / hex / bin
DA dec / hex / bin
FC dec / hex / bin
DA/FC dec / hex / bin
SSAP dec / hex / bin
DSAP dec / hex / bin
SSAP/DSAP dec / hex / bin
DATA(n) dec / hex / bin
DATA(n/n+1) dec / hex / bin
© 2007 SIEMENS AG
Record Complex 63
Some details:
· Depending on the used Asic Step of your CP5611 you can define up to four trigger
conditions.
· The trigger conditions can be linked together by specifying a number of hits per message
frame. In addition, the stop condition can be defined.
· The trigger conditions can be defined individually in the lower left-hand part of the interface. An
overview of all specified trigger conditions is provided in the right-hand side of the interface.
This tree is merely for display purposes and cannot be edited!
· A trigger condition is being defined by an item, a bit mask, and a desired value.
A trigger condition is satisfied at a message frame if the value of the desired item ANDed
with the bit mask equals the desired value. This can also be used to verify whether all data
bits have a particular pattern.
Note:
The items are implemented by the Profibus Asic and thus cannot be changed.
Warning:
The Profibus Asic operates on a word basis and when it receives a message frame, it places a 0
in the last byte of the last word if the length of the received message frame is odd.
This also occurs with odd data lengths and when the acknowledgment SC is received.
· Case 1:
If you want to trigger at DataByte2=0, this condition is also valid if a message frame -
containing only 1 byte - is received, because the Asic has placed a 0 in the second data
byte of the receive buffer.
This could be handled in Profibus-Asic Step-E2 by defining a second condition (such as
LenData) and ANDing the two conditions (number of hits >=2). It might also be helpful to
define the entire data word DATA(n/n+1).
· Case 2:
If you want to trigger at SA=0, the trigger will also be initiated when a short
acknowledgement (SC) is received, because the Asic has placed a 0 in the word, and the
value of SA is therefore set to 0 in the receive buffer.
As in case 1, a second condition should be defined, or the LenData/SA word should be
used as an item.
© 2007 SIEMENS AG
64 Amprolyzer Help
6.5.1 Examples
Example 1:
· You would like to trigger on slave failure with station address 25.
· This condition is satisfied when a message frame with DSAP=3C is sent to station address 25
(DA=025). Set the number of hits to >=2 to AND the two conditions.
Example 2:
· You want to record 300 more message frames after the situation that a sync command goes
over the bus to slave group 5.
· This is achieved with the following settings:
SSAP=3E
DSAP=3A
DataByte1=00100000
DataByte2=00010000.
· Since all 4 conditions must be satisfied simultaneously in a message frame, the number of hits
is set to 4.
· The DATA(n/n+1) item could also have been used to define the DataByte1/DataByte2 word.
© 2007 SIEMENS AG
Record Complex 65
Example 3
· You would like to have the maximum post-history after the fourth analog input of the slave with
station address 65 has gone to a value of 820.
· This is achieved with the following settings:
SA=065
DataByte7=008
DataByte8=020
© 2007 SIEMENS AG
66 Amprolyzer Help
In this tab you can limit the number of recorded bytes of a message frame.
· This enables you to make optimal use of the available memory of the CP5611 card. By
shortening the recording depth, you can increase the number of message frames available
in a recording.
· However, you should be aware that the data omitted in this way can no longer be used for
triggering.
Example:
· If you are operating Profibus DP only, and the largest data quantity for a slave is 6 bytes, then
you can increase the maximal number of recordable message frames by reducing the
message frame depth to 6 bytes: e.g. to 11873 message frames instead of 996. Your Excel file
and post-processing time will increase accordingly.
· If you unexpectedly have a slave with more data bytes than the defined value, this is indicated
in the message frame window of Excel by"??".
All expected data bytes are symbolized by "??".
© 2007 SIEMENS AG
Record Complex 67
This tab enables you to save Profiles or reload and reuse existing Profiles for:
· tab "Events"
· tab "Msg Filter"
· tab "Msg Trigger"
· tab "Record"
In this way, Profiles for complex trigger settings can be made available to others. This feature
enables them to localize errors in their systems in a quick way.
When Profiles are reused, all parameters or just some of the parameters can be reused. It is
also possible to use a combination of different Profiles.
Enables you to save all parameters you have defined since the start of "Record
(Complex)" in one Profile.
Only the parameters of the selected tab are loaded from an existing Profile.
Only the parameters of the selected tab are reset to the default values.
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
VII
Offline Mode 69
7 Offline Mode
This chapter provides all of the information you need to analyze message frames recorded in
Online Mode.
This is done by the standard tool Excel.
Offline mode has six subsections, called worksheets. To access a particular worksheet, left-click
the worksheet in the lower portion of the screen.
Topic Chapter/Section:
You would like to analyze your recorded frame messages Worksheet "Messages"
You would like to limit message frame presentation by filters Worksheet "Filter Settings"
You would like to change colors and fonts of the shown Worksheet "User Settings"
message frames
You would like to get a reference on filter settings Worksheet "Help Filter"
© 2007 SIEMENS AG
70 Amprolyzer Help
The interface in this source worksheet is divided into four areas by a horizontal line and a
different color:
Topic Chapter/Section:
Message frame window: The Message Frame Window
All recorded message frames are represented in this
area.
Data window: The Data Window
Displays data for the selected message frame of the
message frame window
Statusbar: The Statusbar
Provides information about the message frame
recording in Online Mode
Toolbar: The Toolbar
Settings, Filter, Export
© 2007 SIEMENS AG
Offline Mode 71
Note:
The representation of the message frame window depends on the settings at the Toolbar, the
user settings, and the currently selected filters.
For example, if you have hidden columns as a result of the settings, these columns will not be
visible in the message frame window.
Column Function
Name
No. Indicates the name of the current message frame in ascending order.
User 1. Enter comments:
In this column, you can add comments about the current message frame.
Simply enter the required text in the corresponding cell.
Syntactically, a time mark begins with a "T_" or "t_". In the second step, you
name the time mark. The time mark then looks like this: "T_Your Comments"
.
Attention This column displays all notes and error messages available for a message
frame.
Note:
If certain Online filters are used during recording (selection of
addresses/SAPs), it might not be possible to make an assertion regarding
repeats. Then the "Repeat ?" attention string appears in this case. The
Statusbar indicates if Online filters were activated during the recording.
Background:
For detecting repeats, all message frames containing the FCB/FCV bits must
be available.
These two bits are part of the FC byte.
This problem can not occur if only the Online filters "Token" and "FdlStatus
Request" are used, since these types of message frames do not contain the
FCB/FCV bits.
Clock Time stamp of the ASIC after receiving the start delimiter.
The format can be changed by button "Settings" at the Toolbar.
Note:
If a Online filter was used during recording, and the real interval between
message frames A and B is larger than 65536 Tbits, the time stamp for
message frame B may be wrong (and thus Tpre too).
Background:
The time stamp is generated by a 16-bit timer of the PROFIBUS Asic, which
may overrun.
© 2007 SIEMENS AG
72 Amprolyzer Help
The difference between the actual and the displayed time stamp can be (n *
65536) Tbits (n=1,2,3, etc.).
Solution:
Ensure by your Online filters that the distance between two message frames
is never larger than 65536 Tbits.
TPre. Time elapsed between the end of last recorded message frame and the start
of the current message frame.
The format can be changed by button "Settings" at the Toolbar.
TPreNow Time elapsed between the end of last displayed message frame and the
start of the current message frame.
The format can be changed by button "Settings" at the Toolbar.
Note:
This time value is recalculated during each Offline filtering and is also only
available here. If all message frames are displayed again after filtering, the
previously filtered message frames are marked with a "#" sign (see button
"Filter" at the Toolbar).
TMsg Duration of message.
The format can be changed by button "Settings" at the Toolbar.
L2Service Service of current message at the Layer2 level
SD Start delimiter of current message
Adr Source and target address of current message.
The format can be changed by button "Settings" at the Toolbar.
SAP Source and Service Access Point of current message.
The format can be changed by button "Settings" at the Toolbar.
FC Function Code of current message.
LenMsg Number of bytes for current message at Layer2 level.
LenData Number of data bytes for current message at Layer2 level.
Data1...20 Data bytes of current message.
The format can be changed by button "Settings" at the Toolbar.
Data21...40... Data bytes of current message.
etc The format can be changed by button "Settings" at the Toolbar.
Clock1 Clock2
Msg1 Msg2
© 2007 SIEMENS AG
Offline Mode 73
The data window always shows data of the selected message frame in the message frame
window.
· This representation depends on the setting which can be done by button "Settings" at the
Toolbar.
· Use the data window to obtain information about a specific message frame at a glance.
· You can change the size of the data window with the and buttons.
This can be very useful in the DP environment, because often I/O data have only a range of a
few bytes. The tool Amprolyzer is preset for the entire 246 byte data stream.
© 2007 SIEMENS AG
74 Amprolyzer Help
7.1.3 Statusbar
The upper area of the Messages worksheet provides information about the message frame
recording in Online Mode.
· Baud rate:
Displays the current bus transmission rate during the message frame recording.
The baud rate corresponds to the number of bits transferred per second for serial
communication.
· Number of messages:
Indicates the number of recorded message frames.
© 2007 SIEMENS AG
Offline Mode 75
7.1.4 Toolbar
The most important settings for the Message Frame Window can be defined using the buttons "
Settings", "Filter" and "Export".
Button "Settings"
Use the button to specify whether a column should be shown or hidden and in which
data or display format a column should be shown.
Certain columns are not visible in the default settings.
· You can change the time-based representation of the Clock, TPre, TPreNow, and TMsg
columns in the message frame window.
Multiple formats can be selected at the same time.
Click the desired combo box and select among the following:
- Tbit for bit time units
- usec for microseconds
- msec for milliseconds.
· You can change the representation in the columns "Adr", "Sap" and "Data" of the message
frame window.
Click the desired check box and select among the following:
· Note:
Certain columns are mandatory for performing diagnostics on message frames. These
columns cannot be hidden.
© 2007 SIEMENS AG
76 Amprolyzer Help
Button "Filter"
With the button you can enable or disable the filters defined in the Worksheet "Filter
Settings".
Button "Export"
With the button you can export the message frames to a new Excel Workbook which
is not write protected.
There you can process all exported data with VBA (Visual Basic for Applications). It enables you
to provide the data to any other application.
© 2007 SIEMENS AG
Offline Mode 77
By this Worksheet you can define Offline filters and limit the shown message frames at the
message frame window.
Topic Chapter/Section:
You would like to define a filter. Defining a Filter
Maybe the settings should be stored at a Filter Profile.
© 2007 SIEMENS AG
78 Amprolyzer Help
This section enables you to define a Offline filter and store it at a Filter Profile if desired.
· Trick: You can use an empty row to disable some filter settings temporary or to store some
other issues below the real filter conditions.
· Note also the format of the columns. You can change them to a customized format at any time
using the button :
· At the Worksheet "Help Filter" you can familiarize yourself with the syntax and the possible
filter settings.
· Note: Filtering is implemented by the Advanced Filter of Excel.
© 2007 SIEMENS AG
Offline Mode 79
Example:
1. You would like to create a filter that only shows data exchange between stations 2 and 82.
· To do so, go to column "Adr" and enter "002 -> 082" in decimal format or "02 -> 52" in
hexadecimal format, depending on the format set for this column.
· If using an arrow, you must use the correct syntax (blank space before and after the
arrow).
· To facilitate this, the sample should always be copied from the Worksheet "Help Filter".
· To enable this, go to the SAP column and enter filter conditions "060 -> 062" (or
"060*062" if both Request and Response should be displayed).
· Enter this setting in the second row so that it will be added by a logical OR to the first
defined row.
3. The diagnostic entries are only of interest if they are extended diagnostic entries.
· Go to the column "Data1 to 20" and enter "08*". Then Sap and "Data1 to 20" are
connected by a logical AND.
© 2007 SIEMENS AG
80 Amprolyzer Help
You can now use the button to save the filter Profile at an own Excel file if you want
to reuse this filter.
This is optional and spares yourself retyping a lot of filter entries.
Note:
· If you define a filter at Worksheet "Filter Settings" and if you return to Worksheet "Messages",
then the filter is automatically applied and the button "Filter" is automatically pressed.
· You can switch back and forth between the filtered and the unfiltered representation by
pressing this button repeatedly.
Previously filtered message frames are indicated by "#" in the column "TpreNow" so that they
can be viewed within the context of all recorded message frames.
· In the filtered representation, the intervals between the remaining message frames are
displayed in the TpreNow column.
© 2007 SIEMENS AG
Offline Mode 81
By this Worksheet you can change the colors and fonts of the shown message frames.
Topic Chapter/Section:
You would like to customize colors and fonts. Set Font and Color
Maybe the settings should be stored at a User Profile.
· The checkbox disables the update capability for colors and font.
· However, this does not mean that the colors are removed!
© 2007 SIEMENS AG
82 Amprolyzer Help
Here, you can customize the appearance of font and colors in the message frame window.
· You can change the appearance by right-clicking the desired cell and selecting "Format Cells"
in the context menu.
· Change the font in the Font tab, and change the colors in the Patterns tab.
© 2007 SIEMENS AG
Offline Mode 83
Note:
Changes of the font type and size affect the entire message frame window, except for the
columns "Data x to y".
· If you do not like the changes, you can go back to the default settings using the button "Reset".
· If you like the changes, you can save your settings at a Profile.
The button allows you to save a Profile you have created and make it available to
others.
The button and the file dialog box that appears are used to open a user Profile created
by you or someone else.
The button resets current User Profiles and loads a default Profile supplied with the
product.
Changes do not necessarily have to be saved in a Profile. This can be done later, and should not
be done until the result has been checked in the Worksheet "Messages".
© 2007 SIEMENS AG
84 Amprolyzer Help
In certain cases, it may be useful to overwrite the factory default Profile. For example, if you want
to customize the appearance to fit your corporate design, you should overwrite the default
settings.
In the same step the settings of the other worksheets can also be changed permanently (for
example: which columns are displayed in which format, which columns are visible, etc.). These
new settings are effective each time a new recording is opened or displayed, since
Records.xlt is the used template file.
1. Launch Microsoft Excel and open the file "Records.xlt", located at the Bin directory of the
installation folder.
Records.xlt must not be opened by double-clicking at Explorer, as this will generate an new
instance (for example, Records1.xls)!
2. Modify the appearance of the message frame window according to your requirements.
If you want to restore the factory default Profile you should use the following procedure:
2. Delete Records.xlt.
3. Copy Records_org.xlt to Records.xlt. Use always COPY instead of RENAME, otherwise you
will lose the original!
© 2007 SIEMENS AG
Offline Mode 85
At this Worksheet you can see an automatic calculation of all time intervals between all message
frames marked with time marks.
The displayed times corresponds to the difference between the start times of the marked
message frames.
Clock1 Clock2
Msg1 Msg2
T(TimeMark1...TimeMark2)
© 2007 SIEMENS AG
86 Amprolyzer Help
This Worksheet provides you a compact help about the syntax and possibilities of the Offline
Filter.
The complete value range for each column is shown.
© 2007 SIEMENS AG
Offline Mode 87
You can use this worksheet to append additional information, such as comments, documents,
tables, or graphics to the current message frame recording.
· It is also possible to add new worksheets to save additional information. Before you close the
recording you have to save the file.
· You should always document your message frame recordings sufficiently. You can help others
to quickly interpret similar bus faults by making your own results available.
· Use the standard EXCEL mechanisms for this purpose.
1. Select the cell in which you want to insert the file. At the Excel menu click "Insert ->
Object".
2. Switch to the "Create from File" tab.
3. Use the Browse button to select the required file.
4. Confirm your selection with OK or press Cancel to cancel the action.
To do this, simply click in the required cell and enter the text.
Recommendation:
Please document your results and conclusions about this message frame recording as
completely as possible.
You can help others to interpret similar bus faults very fast by making your results available.
© 2007 SIEMENS AG
Amprolyzer
for
PROFIBUS
diagnostic
Part
VIII
Appendix 89
8 Appendix
Topic Chapter/Section:
Tips and Tricks Tips & Tricks
Tables Tables
References References
FAQ's FAQ
© 2007 SIEMENS AG
90 Amprolyzer Help
Display of values:
· Decimal values are always displayed with three place markers, for example: Station 005.
· Hexadecimal values are always displayed with two place markers, for example: Station 05.
· Binary values are always displayed with eight place markers, for example:
DataByte1=00110110.
For displaying the token cycle times, you must ensure that only token message frames are
displayed.
To do so, you should enter "token."OR "token*"in the "L2Service" column. The cycle times will
now be visible in the column "TpreNow".
For displaying this intervals, you must ensure that only message frames of the desired type are
displayed.
The time intervals will then be visible in the column "TpreNow".
For hiding cyclic message frames, you must enter "*" in the "SAP" column. This hides all
message frames with a "blank SAP" (= default SAP).
· Inside an recording it may be very laborious to find the message frame with the trigger mark.
Here you can use the standard Excel mechanism to search for a string inside an document.
· By Excel menu "Edit -> Find" or "CTRL+F" and then typing "++" or "#" or. "##".
- The message trigger is marked with "++".
- The events are marked with "#" or "##" (see Worksheet "Help Filter").
· An empty row marks the end of the filter condition(s). All entries below the empty row will not
be used for the filter.
Tip: If you filter an recording with different criteria you can save the different filter criteria by
moving the empty row without typing the filter again and again.
· Using wildcards in columns: If you use only an asterix "*" and no other sign as filter item, you
get all message frames where this field is not empty.
· The comparison-operators (<, >, =) cannot be used in the fields of data, because the data are
saved as strings. Strings cannot be asked by comparison operators.
© 2007 SIEMENS AG
Appendix 91
8.2 Tables
This section of the appendix presents several useful tables and references to tables that are
created by experienced users of PROFIBUS.
© 2007 SIEMENS AG
92 Amprolyzer Help
These service access points are used to select the various DP functions:
© 2007 SIEMENS AG
Appendix 93
© 2007 SIEMENS AG
94 Amprolyzer Help
© 2007 SIEMENS AG
Appendix 95
© 2007 SIEMENS AG
96 Amprolyzer Help
© 2007 SIEMENS AG
Appendix 97
© 2007 SIEMENS AG
98 Amprolyzer Help
© 2007 SIEMENS AG
Appendix 99
8.3 References
If you would like to read more about PROFIBUS or need more information about a particular
topic, a concise list of references is provided here.
Do you need detailed information about PROFIBUS and PROFIBUS standards specifications?
© 2007 SIEMENS AG
100 Amprolyzer Help
In-depth references
© 2007 SIEMENS AG
Appendix 101
The basic specifications for PROFIBUS are available on the PROFIBUS User Organization
(PNO) homepage of the PNO at www.profibus.com
© 2007 SIEMENS AG
102 Amprolyzer Help
8.4 FAQs
Here, you will find the most frequently asked questions relating to Amprolyzer.
In general, all problems are shown with a detailed error description if the question relates to a
known or expected problem.
General FAQs
© 2007 SIEMENS AG
Appendix 103
Installation:
Error Messages:
© 2007 SIEMENS AG