Trace Editor Function Manual en-US en-US
Trace Editor Function Manual en-US en-US
Preface
___________________
Description 1
SIMATIC / SINAMICS
___________________
Software user interface 2
___________________
Operation 3
S7-1500, S7-1200 / S120, G120
Using the trace and logic analyzer
___________________
Devices 4
function
Function Manual
12/2017
A5E31277292-AE
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Conventions
This documentation contains pictures of the devices described. The pictures may differ
slightly from the devices supplied.
Please also observe notes marked as follows:
Note
A note contains important information on the product described in the documentation, on the
handling of the product and on the section of the documentation to which particular attention
should be paid.
"mySupport"
With "mySupport", your personal working area, you make the most of your Industry Online
Support.
In "mySupport" you can store filters, favorites and tags, request CAx data and put together
your personal library in the Documentation area. Furthermore, your data is automatically
filled into support requests and you always have an overview of your current requests.
You need to register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/).
"mySupport" - Documentation
In the Documentation area of "mySupport", you have the possibility to combine complete
manuals or parts of them to make your own manual.
You can export the manual in PDF format or in an editable format.
You can find "mySupport" - Documentation on the Internet
(http://support.industry.siemens.com/My/ww/en/documentation).
Further support
● The range of technical documentation for the individual SIMATIC products and
automation systems can be found on the Internet (http://www.siemens.com/simatic-tech-
doku-portal).
● The online catalog and the online ordering system is available on the Internet
(https://mall.industry.siemens.com).
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is
necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial
security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems,
machines and networks. Such systems, machines and components should only be
connected to an enterprise network or the internet if and to the extent such a connection is
necessary and only when appropriate security measures (e.g. firewalls and/or network
segmentation) are in place.
For additional information on industrial security measures that may be implemented, please
visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more
secure. Siemens strongly recommends that product updates are applied as soon as they are
available and that the latest product versions are used. Use of product versions that are no
longer supported, and failure to apply the latest updates may increase customers' exposure
to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS
Feed under (https://www.siemens.com/industrialsecurity).
Preface ...................................................................................................................................................... 4
1 Description ................................................................................................................................................. 8
1.1 Supported hardware ................................................................................................................ 8
1.2 Recording of measured values with the trace function ............................................................ 8
1.3 Trace configuration, recording, installed trace and measurement......................................... 11
1.4 Data storage........................................................................................................................... 13
2 Software user interface ............................................................................................................................ 14
2.1 Project navigator .................................................................................................................... 16
2.1.1 User interface - “Traces” project tree folder ........................................................................... 16
2.1.2 User interface - “Measurements” project tree folder .............................................................. 18
2.1.3 User interface - “Installed measurements (memory card)” project tree folder ....................... 19
2.1.4 User interface - “Overlay measurements” project tree folder ................................................ 20
2.2 Working area .......................................................................................................................... 21
2.2.1 User interface - trace toolbar ................................................................................................. 21
2.2.2 User interface - Configuration tab .......................................................................................... 22
2.2.2.1 User interface - Configuration ................................................................................................ 22
2.2.3 User interface - Diagram tab .................................................................................................. 23
2.2.3.1 User interface - curve diagram............................................................................................... 23
2.2.3.2 User interface - signal table ................................................................................................... 29
2.2.3.3 Interface - Formula editor....................................................................................................... 33
2.2.3.4 User interface - Measurements (overlay measurements) ..................................................... 37
2.2.4 User interface - Signal selection tab (overlay measurements) .............................................. 40
2.2.4.1 User interface - Signal selection (overlay measurements) .................................................... 40
2.3 Trace task card ...................................................................................................................... 41
2.3.1 User interface - Measurement cursor pane ........................................................................... 41
2.3.2 User interface - Snapshots pane ........................................................................................... 43
2.4 Inspector window ................................................................................................................... 44
2.4.1 Interface - Inspector window .................................................................................................. 44
3 Operation ................................................................................................................................................. 45
3.1 Quick start .............................................................................................................................. 45
3.2 Using the trace function - overview ........................................................................................ 49
3.3 Project tree ............................................................................................................................. 50
3.3.1 Creating a trace...................................................................................................................... 50
3.3.2 Displaying a configuration ...................................................................................................... 50
3.3.3 Displaying a diagram ............................................................................................................. 51
3.3.4 Apply overlay measurement .................................................................................................. 51
3.3.5 Configuring objects in groups ................................................................................................ 52
Introduction
The trace and logic analyzer function can be called in the project navigator (Page 14) by
double-clicking an entry in the "Traces" system folder. The measurements on the memory
card can also be read and displayed via the diagnostic interface of the Web server.
You record device tags and evaluate the recordings with the trace and logic analyzer
function. Tags are, for example, drive parameters or system and user tags of a CPU. The
number of installed traces is hardware-dependent.
The recordings are saved on the device and, when required, can be read out with the
engineering system (ES) and saved permanently. The trace and logic analyzer function is
therefore suitable for monitoring highly dynamic processes. The recorded values are
overwritten when the recording is activated again.
The trace and logic analyzer functions are also used in the commissioning editors of
technology objects (for example, axle control panels). Active recordings from the axis control
panel are displayed in the "Traces" system folder as installed traces. Recordings can be
added to the measurements in the curve diagram of the axis control panel or the PID via a
shortcut menu command.
Depending on the device (Page 71) used, the recording options can vary.
A quick start (Page 45) for working with the trace and logic analyzer function can be found in
the Operation section.
The following figure shows the method of operation of the "Traces":
Additional features
The following features are supported as of TIA Portal V14:
● Saving of trace configurations and measurements in libraries
● Multiuser support for trace configurations and measurements (device-dependent)
● Global search in the project
Trace configuration
Implement the following settings in the trace configuration:
● Signals to be recorded
● Recording conditions
– Sampling
– Trigger
– Installed measurements (memory card)
Recording
A recording is performed in the device. There is only one recording for each installed trace
configuration. When a new recording is started, the old recording is overwritten.
An installed recording is not retentive (it is lost when the device is switched off/on) but can be
saved permanently in the project as a measurement.
Installed trace
An installed trace consists of a trace configuration and optionally a recording. The
maximum number of installed traces depends on the device.
The trace configuration is stored retentively on the device. The retentivity of the trace
configuration may also be configurable depending on the device, e.g. with the S120.
Measurement
A measurement consists of a trace configuration and a recording, provided that recorded
data is present. Each installed trace can be saved as a measurement in the project.
The recording of a measurement can be viewed offline.
The configuration for a measurement can be transferred to the “Traces” folder using
drag & drop.
Overlay measurement
The overlay measurement allows a comparison and analysis of signals from different
measurements with each other.
The measurements can be synchronized with each other and displayed as overlay
measurements.
Note
Saving the trace configuration and measurement
You save the trace configuration and measurement with the project in the TIA Portal.
If you close the project without saving, the trace configurations and the measurements
transferred to the project are discarded. The trace editor can be closed and reopened
without loss of data until the project is closed.
Project navigator
Management and creation of the trace and measurements directly in the project tree and via context
menu commands.
Working area
① Title bar of the working area
Shows the device to which the current display belongs.
① Trace toolbar
Buttons for managing the trace in the project and device:
• Activation/deactivation of installed traces
• Deletion of installed traces
• Transfer of trace configurations and measurements between the device and the project
• Export of trace configurations and measurements
• Switchover between offline and online display
Icon Description
Add trace configuration
Double-click the icon to add a new trace configuration.
Trace configuration (offline)
Double-click the icon to open the "Configuration" tab.
Installed trace (online)
The icon is only displayed when there is no offline trace configuration of the same name
for the installed trace.
Double-click the icon to open the "Diagram" tab.
Trace configuration with an installed trace of the same name
If the button is deactivated, the trace configuration from the project is displayed. The
trace corresponds to a trace configuration.
If the button is activated, the trace configuration from the device is displayed. The
trace corresponds to an installed trace.
Double-click on the symbol to open the "Diagram" tab of the trace in the device.
Status
When there is an online connection, the status is displayed in the right-hand column of the
project tree. The status is also displayed as tooltip above the respective icon.
The following table shows the meaning of the icons:
Icon Description
Online and offline configuration are identical
The following table shows the shortcut menu commands for trace configurations and
installed traces / :
The trace configuration can also be copied across devices within the same device family.
Several objects can be selected.
Icon Description
Measurement (offline)
Double-click the icon to open the "Diagram" tab.
The configuration for a measurement can be transferred to the “Traces” folder using
drag & drop.
The following table shows the shortcut menu commands for measurements :
2.1.3 User interface - “Installed measurements (memory card)” project tree folder
The folder shows all measurements present on the memory card. The folder is only
displayed when there is an online connection to the device.
Drag folders or measurements contained here to the “Measurements” system folder using
drag & drop. This transfers the measurements to the project.
Icon Description
Folders generated automatically with information on the recording activation time:
The name of the folder cannot be changed.
Installed measurement
Double-click the icon to open the "Diagram" tab.
The time stamp in the name shows the occurrence of the trigger event.
The following table shows the shortcut menu commands for measurements :
Icon Description
Add new overlay measurements
Double-click the icon to add a new overlay measurement and open the “Diagram” tab.
Overlay measurement
Double-click the icon to open the "Diagram" tab.
The following table shows the shortcut menu commands for overlay measurements :
Icon Description
Transfer the selected trace configuration to the device
The selected trace configuration is transferred to the device.
Transfer the selected trace configuration from the device
The selected trace configuration is transferred from the device to the project.
Observe on/off
Change of the display between online and offline.
Note
Once monitor and automatic scaling are activated at the same time, no more actions
can be undone using the “Undo” button.
Note
When an installed trace is first started the display in the curve diagram is set to
automatic scaling by default. Make sure when the recording is restarted that any
changes to the scaling settings are retained. Reactivate automatic scaling manually if
necessary in order to monitor the recording.
Activate recording
If the recording of an installed trace is repeated, then the settings relevant for the
display (curve diagram and signal table) are also retained for the new recording.
Note
When a recording is restarted, the previously recorded values are lost.
To save the recorded values, save the measurement in the project (Page 57) before
you activate the recording again.
Deactivate recording
Icon Description
Export trace configuration
Exports a trace configuration as a file with the file extension "*.ttcfgx". For reasons of
compatibility, the "*.ttcfg" file extension is supported by V12, although it does not
contain information about the device family.
Generate a trace configuration
Generates a new trace configuration from the measurement.
Export measurement with the settings from the current view
Exports a measurement as a file with the file extension "*.ttrecx" or "*.csv". For
reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it
does not contain any information about the device family.
Import measurement (only with overlay measurements)
Imports a measurement from a file with the file extension "*.ttrecx".
For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it
does not contain any information about the device family.
Export overlay measurement (only with overlay measurements)
The overlay measurement is saved with the extension "*.ttcbmx" or "*.csv". The
"*.ttcbmx" format can also be imported again.
Select a measurement (only with overlay measurements)
The drop down list box contains the imported measurements. Select the desired
measurement to display the configuration.
The scale in the diagram applies to the selected (highlighted in gray) signal in the legend.
The legend can be moved and its size can be adjusted with the mouse.
The icon shows the device trigger time with a vertical line.
A drop-down list for selecting the unit is available below the curve for the "Time" setting for
the time axis. The "Automatic" setting automatically adjusts the unit based on the displayed
time range.
Note
Non-interpretable data types
Some data types require a defined format, e.g. the S7 data type LTime_of_Day. If this format
is not available, the data type is interpreted as INT.
Display chart legend Showing or hiding of the legend in the curve diagram
and the bit track labels.
Align the chart legend to the Display of the legend and the bit track labels on the left
left side of the curve diagram.
Align the chart legend to the Display of the legend and the bit track labels on the
right right side of the curve diagram.
Change background color Changeover between various background colors.
The following table shows the settings and displays of the recorded signals:
Column Description
Signal or error
symbol
Signal
Failsafe signal
Selection for the display in the curve diagram - a maximum of 16 signals can be
selected.
The point indicates that at least one bit has been selected for display as bit track
for the signal in the bit selection.
"Signal Automatically generated number of the signal
reference" The signal can be accessed via the signal reference in the formulas.
"Name" Display of the signal name
A click on the name of a displayed signal updates the scale in the curve diagram.
You can enter a name for a calculated signal in the last line without a signal
symbol. The calculated signal is entered with its name.
“Measurement” Display of the measurement
(in the “Diagram” tab only with overlay measurements)
Shows the name of the measurement to which the signal belongs.
Open bit selection
Individual bits can also be selected for the following data types for display as a bit
track in the lower curve diagram.
• Byte, Word, DWord, LWord
• SInt, USInt, Int, UInt, DInt, UDInt, LInt, ULInt
Example of an opened bit selection for the DWORD data type:
Select or deselect the relevant bit for display by clicking the icon.
"Data type" Display of the data type
"Display format" Display format of the signal
The display formats supported for the signal are offered for selection.
A display format suitable for the data type is set with "Default".
"Address" Display of the address of the signal
The field remains empty with optimized / type correct tags.
Column Description
"Formula" Display or entry of a formula
A formula can contain mathematical functions with numbers and signals. Use the
formula editor to conveniently create formulas.
Call of the formula editor for calculated signals
Click on the icon to open the formula editor.
"Color" Display and setting option for the color of the signal
"Signal group" Display or input of the signal group name for one signal group
The Y-scales are scaled identically for all signals of one signal group.
Enter an identical signal group name for those signals that are to be scaled
identically.
Signals can be removed from the signal group by deleting the signal group name.
The signal groups can be saved via the function "Use current view as standard"
(button ).
Notes
Binary signals cannot be grouped.
In hex display format, group only the signals with a format compatible to the sign
for the display.
Gray field for Move the cursor over the gray field or the chain icon ( or ) to add the signal
chain icon to a signal group or delete the signal from the signal group.
Clicking the chain icon adds the signal to a signal group or creates a new
signal group.
Clicking the chain icon removes the signal from the signal group.
For a selected signal with signal group, the chain icon displays all signals of
the same signal group.
Input field The input field displays the signal group name.
As an alternative to the chain icon, you can assign or delete a group name via
text input in this field.
"Min. Y-scale" Display or input of the minimum value for the scaling of the signal
"Max. Y-scale" Display or input of the maximum value for the scaling of the signal
"Y(t1)" Display of the value at the position of the first measurement cursor
"Y(t2)" Display of the value at the position of the second measurement cursor
"ΔY" Display of the value difference between the first and the second measurement
cursor
"Unit" Display of the unit (e.g. for used-based values from technology objects)
"Comment" Display and input option for a comment about the signal
See also
Use of the signal table (Page 64)
Using the signal group in the signal table (Page 65)
The following table shows the configuration options and displays of the formula editor:
Field/Button Description
"Name" Display and input of the name for the created formula
The name must be unique and only contain characters that are allowed in
Windows file names.
"Data type" Display of formula data type
The data type is pre-assigned with a floating-point number of LREAL type and
cannot be changed.
"Unit" Display and input of a unit
Freely specified user-defined unit.
Drop-down list Selection of the signals
with signals The drop-down list contains the signals from the signal table and inserts a
selected signal into the formula.
"Formula entry" Text field to display and enter the formula
Create a formula by typing into this text box or by using the buttons for the
mathematical functions.
Signals can be referenced in the text box using the signal reference with a
prefixed $ character or the name in double quotes in the formula. Mixed input is
possible.
Bits from a bit selection (e.g. below the INT data type) are not allowed in the
formula.
Mathematical
functions
+ Addition
- Subtraction
* Multiplication
/ Division
() Brackets
Grouping expressions
SQR Square
SQRT Square root
ABS Absolute value
Calculates the size of a number.
Examples
ABS(5) → 5
ABS(-3) → 3
ABS(-3.14) → 3.14
MOD Modulo
Calculates the residual value of a division
Examples
MOD(5,3) → 2
MOD(3.14,3) → 0.14
REC Reciprocal value (1/x)
Field/Button Description
DIFF 1) Numerical differentiation
Examples
Formula: DIFF($0,SAMPLETIME)
INT 1) Numerical integration
Examples
Formula: INT($0,SAMPLETIME)
RMS 1) Quadratic mean
The quadratic mean is given by first adding the squares of all the measured
values and dividing them by the number of measured values. The quadratic
mean is the square root of this value.
Examples
Formula: RMS($0,SAMPLETIME)
AV Mean value filter from 1st to 5th order
If the specification of an order is missing, the mean filter of the 1st order is used.
Examples
AV($0,1) → Mean filter 1st order
AV($0,5) → Mean filter 5th order
π Mathematical constant Pi
AM Arithmetic mean
The arithmetic mean is a moving average over five measuring points.
DIF Simple subtraction with mean filter from 1st to 5th order
If the specification of an order is missing, simple subtraction is performed with a
1st order filter.
Examples
DIF($0,1) → Single subtraction with 1st order filter
DIF($0,5) → Single subtraction with 5th order filter
DIF($0) → Single subtraction with 1st order filter
Example: Calculate an acceleration curve from a velocity signal
$0: Velocity signal in meters per second
Cycle time of the constant cycle velocity recording: 1 ms
Formula: DIF($0,1)/0.001
Unit: m/s2
DIF2 Double subtraction with mean filter from 1st to 5th order
If the specification of an order is missing, then double subtraction is executed
with a 1st order filter.
Examples
DIF2($0,1) → Double subtraction with 1st order filter
DIF2($0,5) → Double subtraction with 5th order filter
DIF2($0) → Double subtraction with 1st order filter
Example: Calculate an acceleration curve from a position sequence
$0: Position sequence in meters
Cycle time of the constant cycle position recording: 1 ms
Formula: DIF2($0,1)/SQR(0.001)
Unit: m/s2
Field/Button Description
"Show signal Display of the signal names
name" If the check box is selected, the signal names in the formula are displayed
instead of the signal references.
"Validate" Check the validity of the formula
"Result of Result of validation
validation" Displays the result of the validation and indicates errors and error locations.
"OK" Transfer the entries in the formula editor
"Cancel" Discard the entries in the formula editor
1) The constant SAMPLETIME is only available for equidistant recording cycles. Time unit for
SAMPLETIME is always μs.
The following table shows the settings and displays for the measurements:
Column Description
Alignment of the measurements
“Trigger/ Alignment of the measurements in accordance with the trigger or measurement
measurement point
point" The individual zero point for the measurement is predefined in the table under
the “Alignment” column.
“Time stamp Alignment of the measurements in accordance with their time stamp
(absolute time)” The signals are aligned in accordance with the time from the absolute time
stamp.
Table columns
Static display of the measurement icon
The following table shows the settings and displays for the table:
Column Description
Static display of the signal icon
"Available in the diagram" Selection for the display in the curve diagram
When the selection is activated the signal is transferred to the signal
table for the curve diagram.
“Measurement” Display of the measurement to which the signal belongs
“Name” Display of the signal name
“Data type “ Display of the data type
"Address" Display of the address (not for symbolic tags)
"Comment" Display of a comment on the signal
You will find further information on the specific settings in User interface - signal table
(Page 29).
Setting/display Description
Horizontal measurement cursor
Y1 Position of first measurement cursor
The value states the position in relation to the scale of the signal currently selected.
You also have the option of specifying a new position for the measurement cursor
in this entry field for moving with the mouse.
Y2 Position of the second measurement cursor
The value states the position in relation to the scale of the signal currently selected.
You also have the option of specifying a new position for the measurement cursor
in this entry field for moving with the mouse.
ΔY Display of the position difference between the first and the second measurement
cursor
Vertical measurement cursor
t1 Position of first measurement cursor
You also have the option of specifying a new position for the measurement cursor
in this entry field for moving with the mouse.
t2 Position of the second measurement cursor
You also have the option of specifying a new position for the measurement cursor
in this entry field for moving with the mouse.
Δt Display of the position difference between the first and the second measurement
cursor
Intersection points with selected signal
Y(t1) Display of the value at the position of the first measurement cursor
Y(t2) Display of the value at the position of the second measurement cursor
ΔY Display of the value difference between the first and the second measurement
cursor
Mathematical analysis in the range of the measurement cursor·[t1;t2] for the selected signal
AM(Y) Mean
The arithmetic mean is calculated for the range between the vertical measurement
cursors.
INT(Y) Integral
The integral is calculated for the range between the vertical measurement cursors.
RMS(Y) RMS value
The root-mean square (RMS value) is calculated for the range between the vertical
measurement cursors.
See also
User interface - curve diagram (Page 23)
Icon Description
Generate snapshot of the current view
Saves the current view as a snapshot in the “Diagram” tab.
Column Description
Static display of the snapshot symbol
Note
Analysis of measurements with sporadically occurring recording condition
When evaluating your measurements, keep in mind that the recording condition between the
activation time and the trigger time may not have been fulfilled.
Requirement
A device is configured that supports the trace and logic analyzer function.
Creating a trace
The following figure shows the project tree with the "Traces" system folder below the
device:
Procedure:
1. Double-click the "Add new trace" entry.
A new trace configuration is created and the “Configuration" tab opens in the working
area.
2. Adapt the name of the trace configuration by clicking the text.
Selecting signals
The following figure shows the configuration of the signals:
Procedure:
1. Select the signals to be recorded in the "Signals" area.
Or:
2. Drag one or more signals, e.g. from a tag table, and drop them in the signal table.
Procedure:
1. Configure the sampling.
Procedure:
1. Configure the trigger mode and the condition for the selected trigger.
Activating a recording
Procedure:
1. Click the button.
Procedure:
1. Wait until the "Recording" or "Recording completed" status is displayed in the status
display of the trace.
2. Switch to the "Diagram" tab.
3. Click the icon of a signal in the signal table.
The individual bits of the signal are offered for display as a bit track.
4. In the signal table, select or deselect the individual signals and bits for display with the
icon.
See also
User interface - trace toolbar (Page 21)
Requirement
A device is configured in the TIA Portal that supports the trace and logic analyzer function
and to which an online connection has been established.
Procedure
The following table shows a procedural overview with typical steps when working with the
trace and logic analyzer function.
Step Description
1 Creating a trace (Page 50)
2 Configuring the trace (Page 61)
3 Transferring the trace configuration to the device (Page 53)
4 Activating/deactivating an installed trace (Page 54)
5 Monitoring the recording (Page 55)
6 Saving measurements in the project (Page 57)
7 Displaying the recording (Page 55)
8 Analyze an ongoing recording (Page 56)
9 Compare records (overlay measurements) (Page 67)
See also
Displaying a configuration (Page 50)
Procedure
To create a trace configuration, proceed as follows:
1. Double-click the "Add new trace" entry.
A new trace configuration is created.
Requirement
A trace configuration, an installed trace, a measurement or an overlay measurement is
available in the "Traces" system folder.
Procedure
To display a trace configuration, proceed as follows:
1. Double-click the appropriate icon of a trace configuration, an installed trace, a
measurement or an overlay measurement in the project tree.
The "Configuration" or "Diagram" tab opens in the working area.
2. If required, click the "Configuration" tab for the display.
Note
Write protection
The configuration data of an installed trace and in all measurements is displayed with write
protection.
See also
User interface - “Traces” project tree folder (Page 16)
Requirement
An installed trace, a measurement or an overlay measurement is available in the "Traces"
system folder.
Procedure
To display a diagram, proceed as follows:
1. Double-click the appropriate icon of an installed trace, a measurement or an overlay
measurement in the project tree.
The "Configuration" or "Diagram" tab opens in the working area.
2. If required, click the "Diagram" tab for the display.
See also
User interface - “Traces” project tree folder (Page 16)
Requirement
A device is configured that supports the trace and logic analyzer function.
Procedure
To apply an overlay measurement, proceed as follows:
1. Select one or more measurements in the “Measurements" system folder.
2. Drag the measurements to the “Overlay measurements” system folder.
A new overlay measurement is created. This contains copies of the selected measurements.
Note
Traces in the device can also be displayed in groups
A trace configuration in a group with a trace of the same name in the device is displayed
under the group. Therefore, all traces in the device on the first level in the "Traces" folder are
not necessarily displayed.
Requirement
Measurements are available in the “Measurements" system folder.
Procedure
Proceed as follows to configure measurements into groups:
1. Select the shortcut menu command “Add new group” by right-clicking on the
“Measurements" system folder.
A new group folder is created.
2. Assign a meaningful name to the new group.
3. Repeat step 1 until all required groups have been created.
(Sub-groups (groups within groups) can also be created.)
4. Drag & drop the corresponding measurements to the group folder that has been created.
Requirement
● A valid trace configuration is in the "Traces" system folder.
● The maximum number of installed traces has not been reached yet.
Procedure
To transfer a trace configuration to the device, proceed as follows:
1. Open a valid trace configuration in the working area.
2. Click the button.
Result
The trace configuration is transferred to the device.
Requirement
● There is an online connection to the device.
● There is a trace in the device.
● The installed trace is displayed in the working area.
● The button is activated for viewing the displayed trace.
Note
When a recording is restarted, the previously recorded values are lost.
To save the recorded values, save the measurement in the project (Page 57) before you
activate the recording again.
Requirement
● There is an online connection to the device.
● There is a trace with recording in the device.
Or:
● A measurement is in the "Measurements" system folder.
Procedure
To display the recording, proceed as follows:
1. Select an installed trace.
2. Double-click the selected trace.
3. If required, activate the button for viewing.
Or:
1. Select a measurement in the "Measurements" system folder.
2. Double-click the selected measurement.
Result
The recording is displayed in the "Diagram" tab.
See also
User interface - “Traces” project tree folder (Page 16)
Requirements
● An ongoing recording is displayed in the "Diagram" tab.
See also
Displaying the recording (Page 55)
Working area - Diagram tab (Page 62)
Requirement
● There is an online connection to the device.
● There is a trace with recording in the device.
● The installed trace data must have been displayed at least once in the curve diagram.
The recording data is loaded from the device for the display.
Procedure
To save a recording in the project, proceed as follows:
1. Open the installed trace with the recorded data.
2. If required, make sure that the current data is loaded from the device by activating the
button.
3. After activating the button wait until all data has been loaded and displayed.
4. Click the button.
The measurement is added to the "Measurements" system folder.
5. Save the project in the TIA Portal.
Note
Generate measurements
A measurement of an installed trace can be generated at any time.
Use this functionality e.g. to save the data recorded up until this point in a recording and to
analyze it as a static measurement.
Requirement
At least one measurement is in the "Measurements" system folder for export.
Exporting measurements
To export a measurement, proceed as follows:
1. Right-click a measurement in the "Measurements" system folder and select the
shortcut menu command “Export measurement".
2. Select a folder, a file name and a data type to save the measurement.
3. Click the "Save" button.
Importing measurements
To import a measurement, proceed as follows:
1. Right-click in the "Measurements" system folder and select the shortcut menu
command "Import measurement".
2. Select the file e.g. of the "*.ttrecx" file type with the measurement to be imported.
3. Click the "Open" button.
The imported measurement is displayed with the file name in the "Measurements"
system folder.
Note
Export and import trace configurations
The same functionality is available for exporting and importing trace configurations.
3.4.7 Transferring the trace configuration from the device to the project
Requirement
● There is an online connection to the device.
● There is a trace in the device.
Procedure
To transfer a trace configuration to the project, proceed as follows:
1. Open an installed trace.
2. If required, activate the button for viewing.
3. Click the button to transfer the trace configuration from the device.
Result
The configuration is taken over as new trace configuration in the "Traces" system folder.
A trace configuration of the same name is overwritten in the system folder.
Requirement
● There is an online connection to the device.
● There is a trace in the device.
Procedure
To delete an installed trace, proceed as follows:
1. Open an installed trace.
2. If required, activate the button for viewing.
3. Click the button.
A confirmation prompt opens.
4. Confirm the prompt for deletion.
Or
1. Select one or more installed traces / in the project tree.
2. Press <Delete> to delete the installed traces.
A confirmation prompt opens.
3. If required, select an option for deletion and confirm the prompt.
Requirement
The "Configuration" tab is open in the working area.
Note
Saving the trace configuration
You save the trace configuration with the project in the TIA Portal.
If you close the project without saving, the configuration is discarded.
See also
Displaying a configuration (Page 50)
Requirements
● An installed trace or a measurement has been selected for display.
● The button is activated to monitor an installed trace.
● The "Diagram" tab is open in the working area.
See also
Displaying a diagram (Page 51)
User interface - curve diagram (Page 23)
User interface - signal table (Page 29)
Requirements
● An installed trace or a measurement has been opened in the "Diagram" tab.
● The button is activated to monitor an installed trace.
● For the display of individual bits as a bit track:
at least one recorded signal supports the display as a bit track.
See also
Displaying the recording (Page 55)
Note
Saving signal groups
The signal groups can be saved individually for each measurement via the "Use current view
as standard" function ( button).
If the signal groups and the project are not saved then the signal groups created will be lost
when the "Diagram" tab is closed.
Requirements
● An installed trace or a measurement is displayed.
● The button is activated to monitor an installed trace.
● The "Diagram" tab is open in the working area.
● There are at least two signals in the signal table that are not of the BOOL type.
Or:
1. Click in the text field of the "Signal group" column for a signal to be grouped.
2. Enter a name for the group.
3. Enter the same group name in the respective text fields for further signals or select the
group name via the drop-down list.
The Y-scales of the grouped signals are scaled with the values of the signal that was
selected first. Changes to a scale value always affect the entire group.
Or:
1. Click the text field for the required signal in the "Signal group" column.
2. Press the <Del> key.
Or:
1. Select the respective text field in the "Signal group" column for several signals using the
<Shift> and <Ctrl> keys.
2. Press the <Del> key.
The signals are removed from the signal group or the signal group is deleted.
Requirements
● There is an online connection to the device.
● There is a trace in the device.
Procedure
To monitor the progress of a fast signal, proceed as follows:
1. Select a trace in the device.
2. Double-click the selected trace.
3. Click on the button for monitoring.
4. Click on the button to automatically repeat the recording.
Result
The recording is automatically re-activated at the end of each recording. The display in the
curve is similar to the display of an oscilloscope.
Requirement
● An overlay measurement is created or is created implicitly by dragging the measurements
to the system folder “Overlay measurements”.
See also Apply overlay measurement (Page 51).
Note
Changes to the settings for measurements within the overlay measurement have no impact
on the original measurements. The original measurements remain unchanged.
Align measurements
Proceed as follows to align the time axis for the measurements for the comparison:
1. Click on the “Measurements” tab within the “Diagram” tab.
2. Select the alignment for the measurements via the check box.
3. Adjust the alignment and if necessary set an offset for the alignment of the individual
measurements.
The measurements are aligned with each other accordingly on the time axis.
(The precise alignment of two measurements is described in the next section.)
See also
Align measurements precisely (overlay measurements) (Page 69)
Requirement
● An overlay measurement is applied.
● Measurements for comparison are added to the overlay measurement.
● Signals of the measurements for the signal table are selected.
● The “Diagram” tab for the overlay measurement opens in the working area.
Note
When inserting the position difference as the offset make sure that you also adjust the
leading character as necessary.
Data types
A selection of elementary and composite data types can be recorded. The availability of the
individual data types depends on the device used:
For more information, see the help under "Overview of valid data types".
The following table lists the supported data types:
Note
Downloading a configuration to the device in the "STOP" operating state
Note that after downloading a configuration in the "STOP" operating state, you must check
the installed traces and, if required, reactivate them or transfer them again.
Note
If trigger tags that affect the address are changed, the trace configuration must also be
transferred to the device again.
This is the case for example, when a data block is shortened or extended or the data type is
changed.
Note
The measured values are recorded at the end of the OB after the processing of the user
program.
Setting/display Description
"Recording time"
Recording level entry Selection of the recording time.
field See Recording levels (Page 73)
Address of the OB text Detailed information on the selected recording time.
field
"Record every"
Reduction entry field Input of the reduction in relation to the reduction ratio and the unit.
Reduction ratio Selection of the reduction ratio unit
drop-down list The following settings are possible:
• "Cycle"
• "s" (setting option depends on the recording level selected under
“recording time”)
Sampling time text field Display of the sampling time, taking into account the configured
reduction and the selected unit (only for constant bus cycle time OBs).
"Max. recording duration"
Max. recording duration Displays the calculated maximum recording duration.
text field The "Max. recording duration" depends on how many signals are
recorded and the data type of these signals.
"Use max. recording Set the recording duration to the maximum value.
duration" When the checkbox is activated, the recording duration is set to the
maximum possible recording duration. The set reduction in the "Record
every" input field is taken into account. The recording duration is also
adapted when additional signals are added.
Further information can also be found in the form of FAQs under the ID
102781176
(http://support.automation.siemens.com/WW/view/en/102781176).
"Recording duration"
Recording duration Input of the recording duration in relation to the selected unit.
entry field If the "Recording duration = max. recording duration" checkbox is
activated, entries are overwritten by the value displayed in
"Max. recording duration".
Unit drop-down list Selection of the unit for the recording duration.
The following settings are possible:
• "Samples"
The following figure shows an example of the settings for the trigger in the TIA Portal:
Setting/display Description
"Trigger mode" Selection of the trigger mode.
Trigger mode The following settings are possible:
drop-down list
• "Record immediately"
Setting/display Description
"Pre-trigger" "Pre-trigger" defines the number of samples that are already recorded
before the actual trigger condition is fulfilled.
If the trigger event occurs immediately or shortly after the activation of
the recording, this may result in a shorter recording duration.
Examples of "Recording duration (a)" = 20 samples and "Pre-trigger
(b)" = 5 samples:
• Case 1: Trigger event occurs 50 samples after activation of the
recording
The following figure shows an example of the settings for the saving of installed
measurements:
Note
Available memory in the device (memory card)
The memory in the device (memory card) is partly used by system-relevant functions or
reserved for that purpose.
Thus it is not possible for the entire memory to be used for saving measurements.
For further information please refer to the Function Manual Structure and Use of the CPU
Memory (https://support.industry.siemens.com/cs/us/en/view/59193101).
Note
Memory requirements upon restart
Following a device reboot the maximum number of measurements saved in the device is the
number configured under “Number of measurements”.
With repeated restarts note that the measurements already saved are not overwritten and
the “Number of measurements” configured in the device is saved once again.
Setting/display Description
“Saving of installed Repeat measurement automatically and store in the device retentively
measurements (memory This setting is only possible with “Trigger on tag” trigger mode.
card)”
The measurements are stored on the “primary” memory card.
For traces which have been saved in the device (memory card), the
function for automatically repeating the recording is not available.
Note
Only completed measurements are saved on the device. Any recording
deactivated by the user is not saved on the device.
This function is available with the following firmware versions:
• S7-1200 as of V4.2
• S7-1500 as of V2.0
The function is not supported by CPU S7-1500 R/H.
“Number of measurements” Input of the number of measurements to be saved on the card.
“Memory requirements” Display of the expected memory requirement for all measurements
Displaying memory usage
Shows the tab with the memory usage
“Behavior if number Selection for the behavior once “Number of measurements” is reached
reached” The following settings are possible:
• “Deactivating a recording”
The measurements are saved in a ring buffer and repeated until the
user deactivates the recording. Once the number of measurements
exceeds the “Number of measurements on the card” the oldest
measurement on the card is overwritten in each case.
Note
Note that write processes that are repeated frequently may damage
the card.
Trigger event
Depending on the selection in the drop-down list, the further settings differ for the "event".
The individual events are described below.
"=TRUE"
Supported data types: Bit (Page 84)
The recording starts when the state of the trigger is TRUE.
"=FALSE"
Supported data types: Bit (Page 84)
The recording starts when the state of the trigger is FALSE.
"Rising edge"
Supported data types: Bit (Page 84)
The recording is started when the trigger state changes from FALSE to TRUE.
After activation of the installed trace, at least two cycles are required to identify the edge.
"Rising signal"
Supported data types: Integers and floating-point numbers (Page 84) (no times, date and
time of day)
The recording is started when the rising value of the trigger reaches or exceeds the value
configured for this event.
After activation of the installed trace, at least two cycles are required to identify the edge.
"Falling edge"
Supported data types: Bit (Page 84)
The recording is started when the trigger state changes from TRUE to FALSE.
After activation of the installed trace, at least two cycles are required to identify the edge.
"Falling signal"
Supported data types: Integers and floating-point numbers (Page 84)
(no times, date and time of day)
The recording is started when the falling value of the trigger reaches or falls below the value
configured for this event.
After activation of the installed trace, at least two cycles are required to identify the edge.
"Value change"
All data types are supported.
The value is checked for change when the recording is activated. The recording starts when
the value of the trigger changes.
This trigger event is supported as of V13 SP1. Older versions of the TIA Portal cannot
interpret the trigger. Note that no explicit information is output in this case. This can occur,
for example, when the trace is transferred from a CPU to a TIA Portal less than V13 SP1 or
a trace configuration is imported.
"= value"
Supported data types: Integers (Page 84)
The recording starts when the value of the trigger is equal to the value configured for this
event.
"<> value"
Supported data types: Integers (Page 84)
The recording starts when the value of the trigger is not equal to the value configured for this
event.
Icon Description
Bit is not evaluated
See also
Configuring the trigger conditions (Page 89)
Recordable variables (Page 71)
4.1.7 Configuration
Requirement
A trace configuration has been created and opened in the working area of the
"Configuration" tab.
Procedure
The following table shows the procedure for configuring.
Step Description
1 Documentation of the configuration (optional)
Enter a comment and an author for the configuration in the Inspector window.
2 Selecting signals (Page 88)
Select the signals to be recorded in the "Signals" area.
3 Select a recording time, a cycle and the duration in the "Recording conditions" area.
4 Configuring the trigger conditions (Page 89)
In the "Recording conditions" area, select whether the recording is to be performed
immediately or depending on a trigger condition.
5 Configure installed measurements (memory card) (Page 90)
In the "Recording conditions" area, select whether the recording is to be saved on the
device (memory card).
Requirement
● A trace configuration has been created and opened.
● The "Signals" area is open in the "Configuration" tab.
Procedure
To configure the signals to be recorded, proceed as follows:
1. Select a signal. The following options are available:
– In the "Name" column, click the button and select a tag.
– Enter the symbolic tag name in the cell in the "Name" column.
– Enter the address directly in the "Address" column.
– Drag a signal to the table using drag-and-drop.
2. Click in the "Color" column and select a color for the display of the signal.
3. Click in the "Comment" column and enter a comment for the signal.
4. Repeat the procedure from step 1 until all the signals to be recorded have been entered
in the table.
Requirement
● A trace configuration has been created and opened.
● The "Recording conditions" area is open in the "Configuration" tab.
Procedure
To configure the cycle and the duration of a recording, proceed as follows:
1. Click the button for the recording time.
2. Select an OB for the recording time (Page 73).
3. Select a unit for the reduction factor in the drop-down list for "Record every".
4. Enter the factor for the reduction in the input field for "Record every".
5. Select a unit in the drop-down list for "Recording duration".
6. Specify the recording duration.
The following options are available:
– Enter a value for the duration in the input field for "Recording duration".
– Activate the "Use max. recording duration" checkbox.
Requirement
● A trace configuration has been created and opened.
● The "Recording conditions" area is open in the "Configuration" tab.
Note
Cyclic test of the trigger condition
The trigger condition is checked in every cycle irrespective of the setting in "Record every".
To reliably identify the trigger, the trigger signal must be present for at least one full cycle.
Requirement
● A trace configuration has been created and opened.
● The "Recording conditions" area is open in the "Configuration" tab.
● The “Trigger on tag” trigger mode is set.
● The firmware on the device supports the recording of an installed measurement.
Procedure
Proceed as follows to save the installed measurement (on the memory card):
1. Select the "Save measurements on device (memory card)" check box.
2. Enter the number of measurements that ought to be saved on the card in the “Number of
measurements” entry field.
3. Set the desired behavior once the “Number of measurements” has been reached in the
“Behavior if number reached” drop-down list.
Note
No evaluation of the trigger during saving
No new trigger can be evaluated as long as the recording is saved.
Curve diagram
Displays the selected signals of a recording.
Installed trace
Consists of a trace configuration and optionally a recording.
Measurement
Consists of a trace configuration with an associated recording.
Overlay measurement
Permits a comparison and analysis of signals from different measurements.
Pre-trigger
Defines the interval in which the signals are already recorded before the actual trigger
condition is fulfilled.
Recording
Is performed in the device. There is only one recording for each installed trace configuration.
Recording condition
Sampling and trigger for a trace configuration.
Recording duration
Factor in number of samples. The factor of 100 means, for example, that 100 samples are
recorded.
Reduction
Factor in number of cycles. A factor of 2 means, for example, that a recording is made every
second cycle.
Sampling
Setting, in which cycle, how fast and how long the recording is to be made.
Signal table
Lists the signals of the selected measurement and provides setting options for some
properties.
Snapshot
Contains the settings for the view for a measurement.
Trace configuration
Contains all the information required to record values in a device.
Trigger
Specifies the trigger mode and the condition for the "Trigger on tag" mode.
Trigger mode
Specifies whether the recording should be started immediately or based on a trigger tag.
Trigger tag
Signal to trigger the recording.
Trigger time
The meaning of the measurement trigger time depends on the device.
e.g. SIMATIC S7-1200/1500 CPUs: Specifies the absolute time of the control system at the
start of recording.