WinPLC Analyzer en
WinPLC Analyzer en
WinPLC-Analyzer
User Manual - English
Version 3
English
1
WinPLC-Analyzer z User Manual z English
Trademark
STEP, SIMATIC, S7-300, S7-1200, S7-1500 are registered trademarks of
SIEMENS AG.
Revision level: 11/2013
2
WinPLC-Analyzer z User Manual z English
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 What is WinPLC7-Analyzer? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Which controllers are supported by the analyzer? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.4 Which drivers are supplied with the analyzer? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.5 Terms and abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.6 New features in version 2 of WinPLC7-Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.7 New features in version 3 of WinPLC-Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Uninstalling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
English
3 Caution - danger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.1 Generating a new project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 Creating a new connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.3 Adding operands to the signal window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4 Start (non-cyclic exact) recording . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.5 Start cyclic exact recording . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.6 Evaluation while recording is active . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.7 Evaluating a recording . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5 User interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.2 Signal window list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.3 Signal window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.4 Subdividing a recording into areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.5 Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.1 What are connections? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.2 Connection types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.2.1 Connections of the type "S7-RS232" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.2.2 Connections of the type "S7-Netlink" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.2.3 Connections of the type "S7-Netlink-PRO" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.2.4 Connections of the type "S7-Ethernet" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.2.5 Connection of the type "S7-Simatic Net" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.2.6 Connections of the type "S7-Simulator" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.2.7 Connections of the type "S5-RS232" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.3 New connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.4 Using connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3
WinPLC-Analyzer z User Manual z English
4
WinPLC-Analyzer z User Manual z English
English
5
WinPLC-Analyzer z User Manual z English
1 Introduction
Several search functions are available to simplify the evaluation of the signals that are
related to the operands.
1.2 Applications
WinPLC7-Analyzer is an invaluable tool to assist anybody who is concerned with
commissioning of plant and machinery.
6
WinPLC-Analyzer z User Manual z English
S7 controllers
Simatic S7-300
Simatic S7-400
Simatic S7-1200
Simatic S7-1500
VIPA System 100V, VIPA System 200V, VIPA System 300V, VIPA System 500V
Other controllers compatible with S7 controllers
English
S5 controllers
Simatic S5-90U
Simatic S5-95U
Simatic S5-100U, Simatic S5-101U
Simatic S5-115U, Simatic S5-135U, Simatic S5-155U
The drivers required for these controllers have already been implemented in the
software.
7
WinPLC-Analyzer z User Manual z English
8
WinPLC-Analyzer z User Manual z English
WinPLC7-Analyzer can now use installed Simatic Net driver to use CPU5512,
CP5611 and more devices from SIEMENS.
The Simatic Net are installed if STEP7 V5.x or Prodave is installed on your
system.
If you use WinPLC7-Analyzer on a SIEMENS PG you can also use this new
feature.
You can use the Simatic Net driver with the new connection way "S7-Simatic
Net" in WinPLC7-Analyzer.
The new interface "Netlink PRO" is now supported.
There exist a new connection way: "S7-Netlink-PRO"
English
You can start the recording, even if the PLC is in STOP mode.
If the PLC go to STOP mode the I stack and the B stack will be saved in a log file.
So you examine the reason for the STOP mode. You can view the I stack with
the system message dialog.
For more information read capter 12.8 "Evaluations of the system messages".
9
WinPLC-Analyzer z User Manual z English
2 Installation
You can implement the PC-PLC connection by means of the following hardware:
2.2 Installation
Start the installation routine and follow the instructions displayed on-screen.
When the installation completes a start icon is placed on the desktop.
You can also find a start icon and a PDF file containing this user guide in the program
group of WinPLC7-Analyzer.
2.3 Uninstalling
The program group of WinPLC7-Analyzer also contains an icon that you can use to
uninstall the software.
10
WinPLC-Analyzer z User Manual z English
3 Caution - danger
The recording of operand statuses places an additional load on the CPU of the
PLC. This will cause a marginal increase in the cycle time of the PLC program.
A small subroutine is required in the controller to perform cyclic exact recording.
This program must be transferred to the controller when the recording is started.
English
The code will be removed automatically after recording has been completed.
These additional statements also increase the cycle time of the PLC.
For CPUs running close to maximum capacity this means that the CPU could go
to STOP mode when the cycle time is exceeded.
11
WinPLC-Analyzer z User Manual z English
4 Getting started
The "Getting started" chapter is intended for those users who wish to start immediately.
Here you find step-by-step instructions that you can follow easily.
Triggers are not described in the "Getting started" chapter. Please refer to the chapter
"Recording PLC statuses" if you require details.
In order to start recording you must first generate a signal window. Select menu item
"File->New signal window" and enter a descriptive name (e.g. Record1).
As a result, an empty signal window will be displayed:
12
WinPLC-Analyzer z User Manual z English
English
Fig.: Empty signal window
Before you can add operands to the signal window you must define the connection that
will be used to establish the contact with the CPU.
13
WinPLC-Analyzer z User Manual z English
We are assuming that the PC is connected to the PLC via a serial MPI adapter. This
MPI adapter is connected to COM1 of the PC.
When the S7-controller has been connected to the PC you can verify that a proper
connection can be established with the entered settings. Click on the button "Establish a
test connection".
The new connection will now be added to the list of existing connections.
14
WinPLC-Analyzer z User Manual z English
Here you will now create operands M10.0 to M10.7, MB20 and MW22.
English
Enter "M10.0" as operand. Type "8" into the field for "Create several operands at the
same time". As the connection you select the connection that you have created above.
15
WinPLC-Analyzer z User Manual z English
You can change the sequence of the operands. Use the mouse to drag and drop the
title of the respective operand. You can also change the sequence by means of the
dialog "Signal window->Maintain signals" located under the tab "Signals".
Confirm the Start-recording dialog by a click on the first button "Start recording (scan
exact)".
16
WinPLC-Analyzer z User Manual z English
Before the actual recording is started a test is executed to verify that it is possible to
establish a connection with the controller. If this test is successful the recording is
started.
Please read the chapter "Evaluation while recording is active" for additional
information.
English
Fig.: Button for for cyclically exact recording
17
WinPLC-Analyzer z User Manual z English
If the PLC is in RUN mode you should first change it to STOP mode by a click on the
button "PLC-STOP".
If you do not want to change the RUN mode of the PLC place a check mark into the tick
box "Upload blocks in mode 'RUN".
The blocks required for this process will created when you click the button "Start
cyclically exact recording".
Now the dialog "Confirm cyclic exact recording" appears:
You can see all blocks that must be transferred into the PLC.
After pressing the button "Confirm cyclic exact recording" all blocks will be transferred
into the PLC and the recording process starts.
In order to start a cyclic exact recording OB1 must be modified in the PLC and
additional blocks must be transferred into the PLC. The system should be placed
into STOP mode before this process is started to avoid uncontrollable
RUN-STOP transitions.
Normally the PLC should not change from RUN mode during this process. It will
change to STOP mode only when the following conditions occur:
- the load on the PLC is very high with the result that the maximum cycle time is
exceeded when additional blocks are transferred.
- The recording trigger that you have defined in an STL statement contains
commands that initiate STOP mode.
18
WinPLC-Analyzer z User Manual z English
The "Observing signal" button displays current PLV values in the signal window.
When "Observing signal" is turned off you can page through the recording area by
means of the following mouse buttons:
English
Fig.: Mouse buttons to access recording areas
1. Next page
2. Previous page
3. Next area
4. Last area
5. Previous area
6. First area
7. Currently displayed area / Number of areas that exist
To be able to effectively handle large recording, these are subdivided into areas.
Think of the recording as a printed book with several chapters. A chapter of this book is
comparable with an area.
Lengthy recordings are subdivided into areas. The display indicates the number of
areas in a recording.
If you should change the timescale, the recording in the display will be stretched or
compressed as necessary. For this reason the areas are recalculated as soon as the
timescale changes.
19
WinPLC-Analyzer z User Manual z English
20
WinPLC-Analyzer z User Manual z English
5 User interface
5.1 Overview
English
1. Menu bar
Provides access to all the functions of the program.
2. Tool bar buttons
Here you can issue the most important commands by a simple mouse click.
3. Signal window list
Displays a list of those signal windows that exist in the project that you have
currently selected.
4. Scaling
Here you can change the timescale.
5. Information
Displays important information related to the current signal window.
6. Signal window
This window displays the current recording.
21
WinPLC-Analyzer z User Manual z English
You can read further details on background signals in the chapter "Comparisons with
background signals".
22
WinPLC-Analyzer z User Manual z English
English
The signal window includes the following elements:
23
WinPLC-Analyzer z User Manual z English
You can move the segment that is displayed (signal) within the current area by means
of the scroll bar (just above the relative timescale):
24
WinPLC-Analyzer z User Manual z English
Think of the recording as a printed book with several chapters. A chapter of this book is
comparable with an area.
To look through the entire recording, you first select the appropriate area and then you
can review the current area using the scroll bar.
English
25
WinPLC-Analyzer z User Manual z English
5.5 Scaling
The scaling settings can be used to expand or compress a recording.
If the value for "ms per Pixel" is increased the recording is compressed and the number
of areas is decreased accordingly.
If the value for "ms per Pixel" is decreased the recording is expanded and the number of
areas is increased accordingly.
You can use the slider to adjust the scaling from >0 to 20 ms/Pixel. You can also
specify other values in the input box:
26
WinPLC-Analyzer z User Manual z English
6 Connections
When a new recording is being planned it is possible to define the connection that will
be used to access the controller for each individual operand.
Every connection contains details on how the controller can be accessed.
English
Fig.: New connection
27
WinPLC-Analyzer z User Manual z English
This connection type can be used to define access to an MPI- or a Profibus interface.
The Ethernet-protocol is converted to MPI by the MHJ-Netlink. The device is connected
to a network hub/switch or directly to the network adapter in the PC/Notebook by means
of a crossover cable.
28
WinPLC-Analyzer z User Manual z English
With this interface you can connect to MPI- or PROFI-BUS. The NETLink-PRO adapter
English
converts the ethernet protocols to the MPI/PB-DP protocol. You can connect this device
to a network hub or -switch or directy to the network port on your PC or notebook. In
this case you must use a crossover-patch cable.
The NETLink-PRO can detect the baudrate on the profibus automatically and can
handle up to 8 connections at the same time.
This type of connection can be used when the S-7 controller is equipped with an
Ethernet interface (directly on the CPU or by an additional Ethernet-CP.)
With this connection type existing SIEMENS interfaces (CP5512, CP5611, ...) can be
used.
You can use this connection, if the SIMATIC Net driver are installed on your system.
These drivers are installed automatically, if STEP7 V5.x or Prodave is already
installed. If you install WinPLC7-Analyzer on a SIEMENS PG you can use the onboard
interfaces too.
All settings of these type of connection you must set up within the dialog "Set PG/PC
Interface" in STEP7 of SIEMENS.
29
WinPLC-Analyzer z User Manual z English
You can open this settings with the STEP7 menu item "Options->Set PG/PC
Interface".
30
WinPLC-Analyzer z User Manual z English
In this case WinSPS-S7 or WinPLC7 must have been started and at the same time set
to simulator mode.
No additional settings are required.
English
This connection provides access to a Simatic S-5 controller via an S-5 connecting
cable (RS232 on a PC, TTY on a PLC.)
31
WinPLC-Analyzer z User Manual z English
The following section illustrates how you can define a new connection via a serial
MPI-PC adapter.
3. Click "Continue"
4. The configuration dialog for the
"S7-RS232" connection will be
displayed.
When you have completed your
entries you should verify the
operation of the new connection
by clicking on "Establish a test
connection".
32
WinPLC-Analyzer z User Manual z English
English
Fig.: "Properties of the signal" dialog
33
WinPLC-Analyzer z User Manual z English
Operand Format
Inputs Ix.y / IBx / IWx / IDx
Outputs Qx.y / QBx / QWx / QDx
Flags Mx.y / MBx / MWx / MDx
Timer Tx
Counter Cx
Peripheral inputs PIBx / PIWx / PIDx
Data DBXx.y / DBBx / DBWx / DBDx
34
WinPLC-Analyzer z User Manual z English
English
Fig.: "New signal" dialog.
When you have completed all fields click "Continue". The "Properties of the signal"
dialog will be displayed.
You can enter additional settings for each operand in this dialog.
35
WinPLC-Analyzer z User Manual z English
"General" tab
Setting Description
Representation Standard or small representation.
Type Here you can define the type of operand.
Color Defines the color that will be used for the
signal in the signal window.
Line width You can use the line width to highlight certain
operands.
Show test points Every test point is represented by a green dot
(Pixel).
Connection The connection determines the communication
path that will be used to read the operand from
the PLC.
Unit Unit (e.g. degrees Celsius). The unit is
displayed on the left side of the signal window.
Commentary Additional commentaries on the operand.
These are only displayed in this dialog.
Symbol The symbol is also displayed in the title of the
operand in the signal window.
You can import an S5 or an S7 symbolic file
using menu item Signal window->Edit
symbols.
36
WinPLC-Analyzer z User Manual z English
Where operands >=8 bits are concerned, the settings under the "Arithmetic" tab may be
used to customize the test point as required by the display.
English
"Arithmetic" tab
These settings can, for instance, be used to neutralize jitter in the low-order bits of
analog signals.
"Shift" options
Here you can shift test point values to the left or to the right by a number of bits.
37
WinPLC-Analyzer z User Manual z English
These settings are used to convert an analog value to match a physical area.
For a unipolar signal it is assumed that the analog value will be between 0 and 27648.
For a bipolar signal it is assumed that the analog value lies between -27648 and
27648.
Input fields "lower limit" and "upper limit" define the range to which the analog signal
must be converted.
Open the "Maintain signals" dialog to delete operands (signals) from the signal window
(menu item Signal window->Maintain signals.)
Select the signals you wish to delete in the "Signals" tab and delete these signals by a
click on the "Delete" button.
Press and hold the SHIFT key to select more than one entry.
You can also delete signals in the signal window. Select the signal and press CTRL and
DEL at the same time.
38
WinPLC-Analyzer z User Manual z English
Hint:
Proceed in a similar manner to change the connection path for multiple entries.
English
You can move signals by means of the following buttons in the "Maintain signals"
dialog:
As an alternative you can also move the operands directly in the signal window:
39
WinPLC-Analyzer z User Manual z English
UC FC 1 UC FC 2 Command line 1
Command line 2 Command line 2
End of FC2
End of FC1
End of OB1
Execution of an S7 program
OB1 (organization block No. 1) is executed during cyclic processing. It is common that
calls to other blocks are issued from within OB1 (e.g. FC1, FB10).
A cycle of the program has been completed when the OB1 has been processed
completely. The time required for a cycle is referred to as the cycle time. The cycle
time depends on the size of the program in the PLC and the type of PLC.
Cycle times typically range from 1 to 100 ms.
The maximum limit for the cycle time can be specified to a value of around
200ms. If this limit is exceeded the PLC will be placed in STOP mode.
Alarm controlled program execution (time OBs, cyclic interrupts, false alarms)
Requests to the CPU issued by the programming device or by
WinPLC7-Analyzer
Longer cycle times mean that the reaction time of the PLC to external events
increases.
40
WinPLC-Analyzer z User Manual z English
The non-cyclic exact recording mode reads the different statuses of the operands at
predetermined timing intervals from the PLC.
Timing intervals depend on the connection type and lie between app. 15ms (e.g. for a
fast TCP-IP connection) and 200ms or more (for slow serial connections).
From these time intervals it is immediately obvious that the normal recording mode is
English
not suitable for cyclic exact recording. With a typical cycle time of 5ms it is not possible
to capture any change of status that occurs within two cycles.
Truly reliable recording can only be achieved by writing a subroutine to the PLC
program that records the required operands in a data block. Subsequently the contents
of this data block can be polled in a cycle.
Therefore, with cyclic exact recording the program in the PLC must be altered.
The software WinPLC7-Analyzer inserts a "UC FCx" command at the start of OB1 to
issue a call to the subroutine that executes this function.
This does not normally disturb the execution of the original program.
In this case data is only available from the PLC, when the status of the operand has
changed.
Every record (test point) is supplied with a time-stamp.
This type of recording is suitable for BYTE/WORD/DOUBLE-WORD operands that do
not change in every cycle.
In this case the PLC supplies data records after each cycle irrespective of the status of
the operand.
This recording mode is predominantly suitable for Bit-operands that change in every
cycle.
41
WinPLC-Analyzer z User Manual z English
Off-line recording
This recording type records the signals as long as free memory available in the defined
data blocks.
After you start the off-line recording you can disconnect the computer or notebook from
the PLC. While the recording process is active, the PC/notebook must not be connected
to the PLC.
The possible recording time can be from seconds to hours. Depending on how often the
signals change and how the sampling rate is set.
42
WinPLC-Analyzer z User Manual z English
English
Not suitable for applications on faster processors since it is not possible to record
all the relevant statuses without breaks.
The value between two test points is not available.
Preparations for "non-cyclic exact" recording:
The following steps are necessary in order to start non-cyclic exact recording:
The default settings mean that the scroll bar is automatically shifted to the right
so that current measurements are always visible.
If you want to move the scroll bar manually, i.e. if you wish to view earlier
measurements, then you must turn off "Observing signal" using Signal
window->Observing signal off.
43
WinPLC-Analyzer z User Manual z English
The PLC program in the controller must be modified to implement cyclic exact
recording.
(This process is executed automatically by WinPLC7-Analyzer)
The controller must provide a sufficient amount of free working memory (a
minimum of 2 KB)
The additional routine increases the cycle time (3 ms typically)
High data volume if the status of the recorded operands changes frequently.
We recommend to switch the PLC in STOP mode before you start the cyclic exact
recording.
Only if you know the machine well enough and if you can evaluate the risks, you should
start the cyclic exact recording in "RUN" mode.
Because of the increase of the cycle time, the PLC can change into the STOP
mode.
If you use a trigger, the STL-trigger code can lead into the STOP mode of the
PLC.
In the PLC can exist an old firmware version that contains bugs. In this case the
additional blocks can cause that the PLC changes to the STOP mode or that a
master reset with restart is necessary.
44
WinPLC-Analyzer z User Manual z English
English
Fig.: Cyclic exact-permanent is selected
With the button "Settings" you can view the current settings to this recording
type:
45
WinPLC-Analyzer z User Manual z English
Descriptions:
Setting Description
Search for free FCs from FC-No At which FC number should the search for a
free FC address be started?
Recommendation: 1
Search for free DBs from DB-No At which DB number should the search for a
free DB address be started?
Recommendation: 1
Standard ring memory size in BYTE What size do you wish to assign to the ring
memory that is used for the recording in the
PLC?
Recommendation: 2000
Remaining free memory in the PLC in How much free memory should remain in the
BYTE PLC?
Before any additional blocks are transferred a
test verifies that this quantity will not be
exceeded.
Recommendation: 100
Number of ring memory data blocks How many data blocks should be used?
Recommendation: 3
Compress PLC memory Compress the PLC memory before transfer
the blocks?
Recommendation: YES
The record can be started now by pressing the button "Start recording" or "Start
recording quickly".
No more security queries follow, if the button "Start recording quickly" is used.
WinPLC-Analyzer determine first, whether the PLC is in the STOP mode. If the PLC is
in RUN mode and the button "Start recording quickly" is not used the following dialog
appears:
46
WinPLC-Analyzer z User Manual z English
If you want to start the recording, when the PLC is in RUN mode, select the checkbox
"Upload blocks in RUN mode". Then press the button "Start cyclic exact recording".
WinPLC-Analyzer tests now which blocks are in the PLC, whether sufficient working
memory is available and what the current cycle time is.
The necessary blocks are then transferred to the PLC.
After short time the trend of the signals appears on the screen.
The default settings mean that the scroll bar is automatically shifted to the right
so that current measurements are always visible.
If you want to move the scroll bar manually, i.e. if you wish to view earlier
measurements, then you must turn off "Observing signal" using Signal
window->Observing signal off.
English
47
WinPLC-Analyzer z User Manual z English
If the values frequently change, the amount of data will be very huge because
every value comes with a time stamp information. In this case the recording
method "cycle exact permanent" should be used.
WinPLC-Analyzer read this ring memory permanently and show the results on the
screen. Select this recording type in the dialog "Start recording". After this you can view
the current settings via the button "Settings".
With the button "Settings" you can view the current settings to this recording
type:
48
WinPLC-Analyzer z User Manual z English
Setting Description
Search for free FCs from FC-No At which FC number should the search for a
free FC address be started?
Recommendation: 1
Search for free DBs from DB-No At which DB number should the search for a
free DB address be started?
Recommendation: 1
Standard ring memory size in BYTE What size do you wish to assign to the ring
memory that is used for the recording in the
PLC?
Recommendation: 2000
Remaining free memory in the PLC in How much free memory should remain in the
BYTE PLC?
Before any additional blocks are transferred a
English
test verifies that this quantity will not be
exceeded.
Recommendation: 100
Compress PLC memory Compress the PLC memory before transfer
the blocks?
Recommendation: YES
The record can be started now by pressing the button "Start recording" or "Start
recording quickly".
No more security queries follow, if the button "Start recording quickly" is used.
WinPLC-Analyzer test first, whether the PLC is in the STOP mode. If the PLC is in RUN
mode and the button "Start recording quickly" is not used the following dialog
appears:
49
WinPLC-Analyzer z User Manual z English
If you want to start the recording, when the PLC is in RUN mode, select the checkbox
"Upload blocks in RUN mode". Then press the button "Start cyclic exact recording".
WinPLC-Analyzer inspect now which blocks are in the PLC, whether sufficient working
memory is available and what the current cycle time is.
The necessary blocks are then transferred to the PLC.
After short time the trend of the signals appears on the screen.
The default settings mean that the scroll bar is automatically shifted to the right
so that current measurements are always visible.
If you want to move the scroll bar manually, i.e. if you wish to view earlier
measurements, then you must turn off "Observing signal" using Signal
window->Observing signal off.
50
WinPLC-Analyzer z User Manual z English
1. It is possible to record "scan exact" and also "cyclic exact". In case of "scan
exact" you must define a polling interval that is greather then "0". If you want
"cyclic exact" you must define as the polling interval "0".
2. The recording values are stored into data blocks within the PLC. If this data
blocks are full with values then the recording will be stopped. While the
recording process the PC must not be connected to the PLC!
If you select "Offline-recording" the edit field "Polling interval ms:" appears:
English
Fig.: Off-line recording is selected
With the button "Settings" you can view the current settings to this recording
type:
51
WinPLC-Analyzer z User Manual z English
Setting Description
Search for free FCs from FC-No At which FC number should the search for a
free FC address be started?
Recommendation: 1
Search for free DBs from DB-No At which DB number should the search for a
free DB address be started?
Recommendation: 1
Standard ring memory size in BYTE What size do you wish to assign to the ring
memory that is used for the recording in the
PLC?
Recommendation: 2000
Remaining free memory in the PLC in How much free memory should remain in the
BYTE PLC?
Before any additional blocks are transferred a
test verifies that this quantity will not be
exceeded.
Recommendation: 100
Number of ring memory data blocks How many data blocks should be used?
Recommendation: 3
Compress PLC memory Compress the PLC memory before transfer
the blocks?
Recommendation: YES
The record can be started now by pressing the button "Start recording" or "Start
recording quickly".
No more security queries follow, if the button "Start recording quickly" is used.
It is checked first, whether the PLC is in the STOP mode. If the PLC is in RUN mode
and the button "Start recording quickly" is not used the following dialog appears:
52
WinPLC-Analyzer z User Manual z English
If you want to start the recording, when the PLC is in RUN mode, select the checkbox
"Upload blocks in RUN mode". Then press the button "Start cyclic exact recording".
WinPLC-Analyzer inspect now which blocks are in the PLC, whether sufficient working
memory is available and what the current cycle time is.
The necessary blocks are then transferred to the PLC.
The signal window gives now information about the internal process.
Select the checkbox "Updating always" to see the current status permanently.
English
Fig.: Information to the recording process
While the Off-line recording is active, the signal windows looks like in the picuture.
In this state you can disconnect the PC from the PLC and close WinPLC-Analyzer.
If you start WinPLC-Analyzer again and open the same project you can see this
window again.
Now you can load the results with the button "Load offline records now".
Or you can reject the results with the button "Rejecting offline records".
53
WinPLC-Analyzer z User Manual z English
9 Conditions
WinPLC7-Analyzer conditions consist of a sequence of STL statements. The result of
the condition is a logical '0' or a logical '1'.
Conditions are a powerful tool since you can use almost all STL statements that are
available in STEP7. This also means that conditions can become very complex.
A condition must always have a linear structure, i.e. no calls to other blocks are allowed.
You can define 10 different conditions. In addition, you can also define one condition for
each recording trigger (cyclic exact and not cyclic exact).
You can define conditions in the tab "Define conditions" that is located in the "Maintain
signals" dialog:
54
WinPLC-Analyzer z User Manual z English
English
Operands whose signals will be recorded by WinPLC7-Analyzer must not be
described in the STL.
The following example defines condition No. 1 in the "Maintain signals" dialog.
Open the tab "Define condition" and select Condition 1. Enter the following STL
statements into the text field:
U E 0.0
U E 0.1
U E 0.2
= M 50.0
55
WinPLC-Analyzer z User Manual z English
This means that condition No. 1 is true when the status applied to the three inputs is '1'
(E0.0, E0.1 and E0.2).
It is important that these inputs are entered into the signal window.
However, flag M50.0 must not be entered here!
In order to send messages you now click on the "Events" tab in the "Maintain signals"
dialog.
Set the Event-type to "Message" in line 0 and enter "Condition 1" into the respective
field in the "Condition" column:
As of now any message that you have defined will be displayed along with the date and
time when the status of the three inputs changes to '1'
(menu item Signal window->User messages).
Enter the required telephone number for "Target=", i.e. the number to which the SMS
must be sent.
Enter the actual short message text next to "Message".
Example:
56
WinPLC-Analyzer z User Manual z English
The SMS will be dispatched when the status at three inputs is '1' (E0.0, E0.1,E0.2).
English
A specific modem is required to send "SMS" messages
(see chapter Send SMS)
You must configure and test the sending of SMS messages using menu item
Tools->SMS settings, Send SMS.
57
WinPLC-Analyzer z User Manual z English
10 Events
Events are used to execute a specific action when the defined event occurs.
Events provide a powerful tool. They can, for instance, be used to inform support staff
on site or anywhere on the globe by means of a PC when specific conditions occur.
You can turn off events by setting the respective condition to "none".
58
WinPLC-Analyzer z User Manual z English
11 Recording trigger
English
Fig.: Recording trigger settings
If you turn on recording by means of menu item Signal window->Start recording the
following status window:
59
WinPLC-Analyzer z User Manual z English
You can also display this dialog using menu item Tools->Show status
recording-windows.
Triggers are always defined as a STL (statement list). These can consist of any valid
STEP7 commands.
Here we distinguish:
and
In case of a non-cyclic exact recording the STL statements are processed by the
integrated software PLC.
During cyclic exact recording the STL statements are processed by the real PLC.
For cyclic exact recording it is therefore important to ensure that you do not use
statements that could result in the PLC going to STOP mode.
To play it safe you should only use STL commands that perform read operations and
that you only use operands that exist in the PLC.
60
WinPLC-Analyzer z User Manual z English
U E 0.0
U M 4.4
U M 50.2
O
U E 10.2
U E 10.3
BEB
These STL statements will only read from operands. For this reason this recording
trigger and related statements will not place the CPU into STOP mode.
The STL must be defined within the condition "Trigger -cyclically exact-":
English
Fig.: Defining Trigger -cyclically exact-
Please note:
If you should write to an operand (e.g. using a set command) here you would also
change the status of the respective operand in the real PLC.
For the cyclic exact trigger it is important that the STL ends with the command
"BEB" (BEC).
Please adhere to the following rules when you create the STL:
You can only create a linear program, i.e. calls statements using the commands
UC, CC, CALL are not permitted.
Avoid statements that could change the status of operands.
Avoid statements that could result in the PLC going to STOP mode (e.g. access
to non-existent data blocks)
61
WinPLC-Analyzer z User Manual z English
The STL statements of this recording mode access the internal software PLC and not
the real PLC.
When recording is active, operand signals are transferred from the real PLC into the
software PLC.
For this reason you should only read those operands that are recorded in the signal
window.
Any operand recorded in the signal window must not be altered. If you do not comply
with this rule, an error message will be issued and recording will not be started.
The STL must be defined within the condition Trigger -not cyclically exact-:
Please adhere to the following rules when you create the STL:
You can only create a linear program, i.e. calls statements using the commands
UC, CC, CALL are not permitted.
Operands appearing in the signal window must never be altered.
Avoid statements that could result in the PLC going to STOP mode (e.g. access
to non-existent data blocks). In this case an error message will be issued and
recording will not be started.
62
WinPLC-Analyzer z User Manual z English
English
Fig.: Activating the STL-recording trigger.
The STL defined in the "Define conditions" will only be used when you have activated
this check mark.
63
WinPLC-Analyzer z User Manual z English
12 Snapshots
Example:
One snapshot could consist:
MB0 to MB100
IB10 to IB 20
QB 124 bis QB 134
After the scan-exact recording you can examine additionial to the signal trends the
operands in the snapshot.
If you have defined a snapshot, you can use this in the scan exact recording. It is not
possible to use snapshots in cyclic exact recording.
64
WinPLC-Analyzer z User Manual z English
English
In this dialog you can define the type of operand, the start address and the number of
bytes.
With the different buttons in this tabsheet you can define and edit multiple operand
areas:
Button Description
Edit Edit the selected rage.
New Create a new range in the table.
Delete Delete the selected range.
Delete table Delete the complete table.
Load Load a snapshot definition from a file.
Save Save the current table in the default file name.
Save as ... Save the current table in a specific file name.
65
WinPLC-Analyzer z User Manual z English
In the picture you can see three areas (ranges). At the bottom of the table you can see
the size of the snapshot in bytes.
Consider that it takes some time to load the operand ranges from the PLC. In this short
time the normal recording is stopped.
In this example the snapshot should be created, when the operand M10.0 have the
status '1'.
The short STL program for this is:
A M 10.0
= Q 100.0
Important thing is, that the operand "M10.0" exists as signal in the signal window. Only
in this case the status of the operand is known.
The last line must always be a assignment to a output- or bit memory operand.
You must use a operand that not exists in the signal window.
This STL-program is executed from a software PLC (not from the real PLC)!
66
WinPLC-Analyzer z User Manual z English
Now we switch to the tabsheet "Events" and edit the event with number 0:
English
Fig.: Event 0 is changed to "Snapshot" and to "Condition1".
In the picture you can see that the "Event 0" have now the event type "Snapshot".
The condition was changed to "Condition1". In the field "settings" you can place any
comments.
This settings causes now that the snapshot is stored, if the "condition1" is true (M10.0 is
'1').
Select the recording type "Scan exact" and select the checkbox "Activate snapshots".
Now you can start the recording by pressing the button "Start recording".
67
WinPLC-Analyzer z User Manual z English
If you make a double click to a label the tabsheet "Evaluate snapshots" appears.
Now you can use this table like a status variable table. You can insert operands from
your snapshots into the table: Select the colnum "Operand" and type in "MB5". When
the MB5 belong to the snapshot, the value of this operand appears.
Example:
The snapshot consists of the following operand ranges:
MB0 - MB9
IB124 - IB127
QB128 - QB131
68
WinPLC-Analyzer z User Manual z English
Then you can enter the following operands into the table:
English
appears in the left side of the tabsheet "Evaluate snapshots".
2. Open the dialog "Maintain signals" over the menu item "Signal window->Maintain
signals". Select the tab-sheet "Evaluate snapshots". In this case all snapshots
will appear in the left side. If you change the selection on the left side, you can
see on the right side the current values of the operands.
69
WinPLC-Analyzer z User Manual z English
13 Evaluation of recordings
When a recording has been completed you can use various tools to evaluate the result.
1. Number of signals.
In the figure below this amounts to 220303 test points.
2. Timescale.
In this figure this amounts to 12 hours 56 minutes and 57 seconds.
3. Current scaling.
In this figure this is 41 ms pie Pixel.
4. Area subdivision of the recording.
In this figure this amounts to a total of 38 areas. The current area is 1.
Note:
Chapter "User interface" contains a detailed explanation of the term area.
70
WinPLC-Analyzer z User Manual z English
English
first select the operand in the signal window.
Open menu item "Signal window->Goto". In the "Goto time position" tab you can search
for a specific time position:
Click the "Search" button to jump to the respective position in the signal window.
71
WinPLC-Analyzer z User Manual z English
Open menu item "Signal window->Goto". In the "Search for measurement" tab you can
search for the required actual value:
The "Search" button jumps to the next match in the signal window.
The "Count" button determines how many test points match the search expression.
The field "Search for test point sequence" issues a search for a specific sequence of
actual values. Meaningful results are only produced when you use binary operands.
72
WinPLC-Analyzer z User Manual z English
a
a
a
a
a
a
a
a
a
a
English
a
a
a
a
a
a
z
Fig.: Extended search (not yet specified) Fig.: This search will include two operands.
A click on "Add" inserts operands from the signal window that you wish to include in the
search.
When you click "Search" any position in the signal window where a match is detected
will be selected.
73
WinPLC-Analyzer z User Manual z English
The time interval will be displayed at the bottom left. The frequency (1.0 divided by the
time interval) is also displayed in brackets.
To hide the difference cursor, press the right mouse key and select menu item Hide
difference cursor.
74
WinPLC-Analyzer z User Manual z English
The comment field is displayed on-screen. Double-click the comment to change text
and color.
English
Fig.: New comment field
75
WinPLC-Analyzer z User Manual z English
Recording start
Recording end
Communication errors
PLC switch to STOP mode (new in version 2)
PLC switch to RUN mode (new in version 2)
If the PLC switch to STOP mode, the I stack and the B stack is logged in a file.
To view the I stack select a entry in the system message list with a STOP event and
press the button "Show I stack".
So you can examine the reason of the STOP event after recording.
76
WinPLC-Analyzer z User Manual z English
English
menu item "Tools->Color settings".
Example of the representation including a background signal:
On the left you can see the measurement at the time of the time cursor. The value of
the background signal is shown in brackets.
Applications for background signals
77
WinPLC-Analyzer z User Manual z English
After verification the selected recording is inserted as the background signal into the
current window.
The default color for the background signal is yellow.
78
WinPLC-Analyzer z User Manual z English
A list of modems is available in the "SMS settings, Send SMS" dialog. The system
supports all the modems that are contained in this list:
English
Fig.: Send SMS settings
Note:
Grayed out settings are not required for the selected modem.
79
WinPLC-Analyzer z User Manual z English
15.2 Configuration
You must enter certain settings in the "SMS settings,..." dialog before the system can
send SMS messages.
Select menu item Tools->SMS settings, Send SMS to display this dialog.
Setting Explanation
Connected modem A list of modems that are available
for use.
Port Enter the serial port where the
modem is connected.
Provider Select the provider for the target
number.
Country code Enter the country code for the
telephone number that will be used
to send SMSs
City code Enter the city code for the telephone
number that will be send SMSs.
Own number Enter the local telephone number
(without city or country code) for the
telephone number that will be send
SMSs.
80
WinPLC-Analyzer z User Manual z English
English
Fig.: Send a test SMS
You can send a test SMS from the "Send SMS" tab.
You should do this at least once to test your settings.
81
WinPLC-Analyzer z User Manual z English
The respective event is triggered when a condition should become "true" while a
recording is active. If this event is an SMS event the SMS is transmitted.
82
WinPLC-Analyzer z User Manual z English
By how many milliseconds does the cycle time increase for cyclic exact
recording?
This depends on how many operands are recorded and which type of S7-CPU is being
employed.
This is generally app. 3ms.
How much free memory must remain in the PLC to ensure that recording is
possible?
English
At least 1600 Byte of working memory are required.
At least 2300 Byte of load memory are required.
How can a new recording be started without overwriting the earlier recording?
Start by creating a copy of the record and then use this copy for the new recording.
Select an entry in the signal window list (at the left edge of the screen) and press the
right mouse key. Then you select 'Copy'.
83