Ps7timeb en US
Ps7timeb en US
Preface 2
11/2021
A5E50316908-AB
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.
1 Security information.............................................................................................................................. 5
2 Preface ................................................................................................................................................... 7
3 Principles of time stamping ................................................................................................................. 11
3.1 Principles of high-precision time stamping ......................................................................... 11
3.2 Time stamping of signal changes ....................................................................................... 13
3.3 Sequence of time stamping................................................................................................ 14
3.4 Sequence of time stamping in the interface module ........................................................... 16
4 Layout .................................................................................................................................................. 19
4.1 Plant design and configuration ........................................................................................... 19
4.2 Hardware layout ................................................................................................................ 21
4.3 Special features of the interface module............................................................................. 23
4.4 High-precision time stamping with 1 ms accuracy .............................................................. 25
5 Systems and components.................................................................................................................... 27
5.1 Overview: Systems and components .................................................................................. 27
5.2 SIMATIC S7-400 stations and communication modules ....................................................... 28
5.3 Distributed I/O ................................................................................................................... 29
5.4 IMDRV_TS block ................................................................................................................. 31
5.5 EventTS block .................................................................................................................... 32
5.6 Time master ...................................................................................................................... 33
6 Configuring time stamping.................................................................................................................. 35
6.1 Overview of configuration steps ......................................................................................... 35
6.2 Configuring the networks................................................................................................... 37
6.2.1 Configuring the networks................................................................................................... 37
6.2.2 How to configure the CP 443-1 (Industrial Ethernet) ........................................................... 37
6.2.3 How to assign parameters for the integrated Ethernet interface for a CPU 41x..................... 38
6.2.4 How to configure the CP 443-5 Extended............................................................................ 40
6.2.5 Rules for configuring the time interval ................................................................................ 41
6.2.6 How to configure the PROFIBUS interface of the CPU .......................................................... 41
6.3 Configuring the ET 200 station (ET 200M and ET 200iSP).................................................... 44
6.3.1 Setting options of the ET 200 station.................................................................................. 44
6.3.2 How to configure the interface module .............................................................................. 44
6.3.3 Examples of settings on interface module IM 153-2............................................................ 47
6.3.4 How to configure the SM 321 digital input module ............................................................. 48
6.3.5 Examples of settings on digital input module SM 321 ......................................................... 50
6.3.6 How to configure the SM 131 digital input module ............................................................. 51
• PUD Manager
The "PUD Manager" is an innovative tool to access documentation and it comes with SIMATIC
PCS 7.
Some of the highlights:
– Customize the documentation as per your requirements and set it according to your
needs.
– Efficient search engine to access your information.
For more information on PUD Manager, refer Process Control System PCS 7; PUD Manager
Online Help.
• PCS 7 Technical Information and Solutions
For important technical information and solutions, refer to SIMATIC PCS 7 Overview (https://
support.industry.siemens.com/cs/ww/en/view/63481413)
• PCS 7 system documentation
System documentation contains information about several products such as configuration
manuals and Getting Started manuals. This documentation serves as a guideline for the
overall system and explains the interaction between the individual hardware and software
components.
• PCS 7 product documentation
Product documentation contains information about a special hardware and software
components. The individual documents provide detailed information on the specific
component.
Full versions of the documentation are available from the "Technical Documentation SIMATIC
PCS 7" website: http://www.siemens.com/pcs7-documentation (https://
support.industry.siemens.com/cs/ww/en/view/109801081)
You can find additional information in the product overview Process Control System PCS 7; PCS 7
- Documentation; Section "Options for accessing the documentation".
Conventions
In this documentation, the names of elements in the software interface are specified in the
language of this documentation. If you have installed a multi-language package for the
operating system, some of the designations will be displayed in the base language of the
operating system after a language switch and will, therefore, differ from the designations used
in the documentation.
If you are using the Windows 10 operating system, you can find the Siemens SIMATIC programs
in the "Start" menu under All apps > Siemens Automation.
See also
http://www.siemens.com/pcs7-documentation (https://
support.industry.siemens.com/cs/ww/en/view/109801081)
Siemens Industry support (https://support.industry.siemens.com/cs/de/en/view/109748882)
SIMATIC PCS 7 Overview (https://support.industry.siemens.com/cs/ww/en/view/63481413)
Introduction
This documentation describes the time stamping function for digital input signals. Users can
activate time stamping in their system configuration and display the time information in their
monitoring system.
Definition
The following is meant when referring to time stamping in this documentation:
The assignment of time information with a high degree of accuracy about the state changes of
an acquired process signal.
The detection of changes in digital input signal states and the assignment of time information
are performed by SIMATIC components.
Application
Possible applications for high-precision time stamping are:
• Accurately-timed detection of problems in process-related equipment. Time stamping
enables you to explicitly identify signals that indicate the cause of the failure of a process unit.
• Analysis of system-wide interrelationships
• Detection and reporting of the sequence of time-critical signal changes
• Time-precise acquisition of signal changes in fail-safe devices
Requirement
The time must be synchronized on all the devices belonging to the system. The devices are
connected to a highly accurate time master for this purpose. Usage of Buerk DTS 4138S / 4128S
or SICLOCK TC 400 is recommended. Synchronization interval or poll interval must be ≲
10 seconds.
Precision
The following applies to high-precision time stamping:
• If process signals are acquired from a separate PROFIBUS DP master systems and results
arrive simultaneously at the input module, the time stamps of the resulting messages in the
HMI system differ by maximum x milliseconds (see table below). The achievable precision
depends on the I/O modules used.
• The signals receive a time stamp regardless of whether the PROFIBUS DP master systems are
located in one or more SIMATIC 400 stations.
Resolution
The displayed resolution of the time is 1 ms (regardless of the precision).
Advantage
The high-precision time stamping does not depend on cycle times.
Property
The high-precision time stamping can only be used for digital input modules.
Additional information
For additional information about released digital input modules, refer to the section "Systems
and components (Page 27)".
Time-precise acquisition
The use of time stamps makes it easier to analyze the causes of malfunction.
Example
If a boiler used to produce steam fails, this event causes a surge of messages:
• The temperature and pressure fall below a specified limit value, the flame monitor responds,
the next plant unit signals "steam low", etc.
• To determine the actual cause of the failure, the first message in this surge of messages must
be identified (for example, "gas pressure too low").
• Following the failure of a plant unit, a large number of messages will arrive at the monitoring
stations within the same second. A resolution of 1 second for the message time is
inadequate. You can use time stamping to selectively detect the signals that can potentially
lead the shutdown of the boiler with a resolution in the millisecond range. This option gives
the operator the opportunity of finding the cause of the event.
Plant-Wide Interrelationships
A further aspect of 10 ms time stamping is the determination of interrelationships between
units in a plant.
Example
High-precision time stamping is implemented throughout the plant. Relevant signals of the
individual automation systems configured with PCS 7 can be compared (for example, the signals
of a filling station with the signals of a dosing station originating from another AS).
By comparing the time stamps of relevant signals throughout the plant, a momentary quality
impairment in a unit can be traced to an event in another unit.
Description
The following table describes the time stamping sequence.
The digital inputs of a module in the distributed I/O station (ET 200M, ET 200iSP) are monitored
for signal transitions.
Additional information
• Section "How to configure messages with blocks of the PCS 7 Advanced Process Library (APL)
(Page 64)"
• Operating Instructions SIMATIC; Distributed I/O Device ET 200M
• Operating Instructions SIMATIC; Distributed I/O Device ET 200iSP
Principle
The figure below shows how signal transitions are time stamped in the interface module
(IM 153-2, IM 152-1).
&ORFNLQWKH
LQWHUIDFHPRGXOH
6WDUWXSRIWKH(7VWDWLRQLV
FRPSOHWH7KHLQWHUIDFH 5HDGWLPHRIGD\
PRGXOHLVUHDG\ IUDPH
WRH[FKDQJHGDWDZLWKWKH
'3PDVWHU
6HWWKHFORFNRIWKH
LQWHUIDFHPRGXOH
$UHWKHUH
1R VXLWDEOHWLPH
VWDPSSDUDPHWHUV
&XUUHQWWLPH
IRUWKH
FRQILJXUDWLRQ"
<HV
,VWKHFORFN 1R
(UURUPHVVDJHRQ'3PDVWHU
LQWKHLQWHUIDFHPRGXOH
GLJLWDOLQSXWVLJQDOVDUHQRW
VHW"
WLPHVWDPSHG 7LPHZLOOEHVHWWR
ಯ1RUPDOರGDWDH[FKDQJHZLWK
'3PDVWHULVQRWDIIHFWHGE\
WKLV <HV
*HQHUDWHVWDUWXSGDWD
UHDGLQJRIVWDWXVHVRI
FRQILJXUHGGLJLWDOLQSXWV 5HGXQGDQF\"
KDUGZDUHLQWHUUXSWRQ'3
PDVWHUVRWKDWPHVVDJHEXIIHU
LVUHDG
0RQLWRULQJRIWKH
FRQILJXUHGGLJLWDOLQSXWV 5HGXQGDQF\"
LQFDVHRIFKDQJHJHQHUDWLRQ
RIWKHPHVVDJHDQGHQWU\
LQWKHPHVVDJHEXIIHU
'LDJQRVWLFVRIWKH
WLPHRIGD\IUDPH
,QWKHFDVHRIIDLOXUHRUWLPHMXPS 5HGXQGDQF\"
JUHDWHUWKDQSHUPLWWHGWROHUDQFH
JHQHUDWLRQRIDVSHFLDO
PHVVDJHDQGHQWU\LQWKH
PHVVDJHEXIIHU
:LWKUHGXQGDQF\
WKHSDVVLYHLQWHUIDFH
+DUGZDUHLQWHUUXSWRQ'3
PRGXOHDOZD\VKDVDQ
PDVWHUVRWKDW
LPDJHRIWKH
PHVVDJHEXIIHULVUHDG
WLPHVWDPSPHVVDJHV
Note
Startup synchronization
A time stamp with the value "01.01.1984" will be sent if the interface module is not time
synchronized during startup. The events are correctly assigned a time stamp after the first
synchronisation with the CPU/CP following the automatic configuration (synchronization) by the
CPU.
Introduction
The following rules are intended for the optimization of the plant with regard to high-precision
time stamps.
Rules
• Configure time stamping for relevant signals only in SIMATIC stations. High precision time
stamps are used for error analysis and should not be employed for process control.
You can find additional information about this in the section "Principles of high-precision
time stamping (Page 11)".
• High-precision time stamping can only be configured for digital inputs.
• Check the applicability of the modules.
You can find additional information about this in the section "Systems and components
(Page 27)".
• When planning your system and during configuration, ensure that the signals to be acquired
are distributed uniformly throughout the system.
• Configure a maximum of 8 modules that can process data records for each PROFIBUS master
system (IM, CP, FM).
• Configure the ET 200 stations as uniform as possible. The measurement results will be
comparable with a uniform configuration.
Examples:
– Physical - cables and encoders (switches, sensors, etc.)
– Hardware - module types
– Configuration - for example, identical delay times for the inputs
• Configure only digital inputs in these ET 200 stations.
• Do not configure technological functions in these ET 200 stations; this omission will assure
the deterministic characteristic of the plant.
• Plant-specific configuration:
Design the assembly of an ET 200 station in such a way that, taken together, the digital inputs
used will generate a limited number of signal changes for the plant even in critical situations.
Individual defective encoders or massive switching operations (shutdown of a plant, for
example) often generate a large number of signal changes. PCS 7 ensures that the cause of
the event can be located in these situations. A transient buffer overflow that can occur with
a plant failure is not critical, because the error messages causing it are recorded in the archive.
Introduction
You use the distributed I/O based on ET 200M or ET 200iSP to acquire the signals.
This section provides an example of a hardware configuration needed for time stamping.
26FOLHQW 26FOLHQW
7HUPLQDOEXV
6,&./2&.7&
7LPHPDVWHU173VHUYHU (QJLQHHULQJ 26VHUYHU
&HQWUDOSODQWFORFN VWDWLRQ
3ODQWEXV
6,0$7,& &3
VWDWLRQ
6
&3([WHQGHG
352),%86'3
(70GLVWULEXWHG,2
ZLWK,0
'LJLWDOLQSXWPRGXOHVIRUVLJQDODFTXLVLWLRQ
6HHVHFWLRQಯ&RPSRQHQWVDQGV\VWHPVರ
Example plant with time stamping in the high availability automation system
You can also use the time stamping function together with an S7-400H and distributed I/O:
• With an ET 200M, you can connect to a redundant PROFIBUS DP (redundant interconnection)
and create a redundant configuration even to the sensor (fully redundant distributed I/O).
• With an ET 200iSP, you can connect to a redundant PROFIBUS DP (redundant
interconnection).
Below you will see an example of a system using ET 200M.
26FOLHQW 26FOLHQW
7HUPLQDOEXV
6,&./2&.7&
7LPHPDVWHU173VHUYHU (QJLQHHULQJ 26VHUYHU
&HQWUDOSODQWFORFN VWDWLRQ
3ODQWEXV
6,0$7,& &3
VWDWLRQ
6+)+
&3([WHQGHG
352),%86'3
(70GLVWULEXWHG,2
[,0SHUVWDWLRQ
'LJLWDOLQSXWPRGXOHVIRUVLJQDODFTXLVLWLRQ
6HHVHFWLRQಯ&RPSRQHQWVDQGV\VWHPVರ
Note
Redundant signal acquisition
The required resources depend on the number of inputs, not the number of redundantly
acquired signals.
Additional information
• You will find information about time synchronization in the Process Control System PCS 7; PCS
7 Time Synchronization function manual.
• You can find information about the IM 153-2 interface module in the manual Distributed I/O
Device ET 200M.
• You can find information about the IM 152-1 interface module in the manual Distributed I/O
Device ET 200iSP.
• You can find information about the redundant configuration of a distributed I/O in PCS 7 in
the following documentation:
– Manual Process Control System PCS 7; High Availability Process Control Systems
– Manual Programmable Controller S7-400H, High Availability Systems
Introduction
SIMATIC PCS 7 ensures that the cause of an event can be located in critical situations. This
statement also applies if the message buffer of an interface module (IM 153-2, IM 152-1)
becomes overloaded due to a signal surge and too many signals constantly being reported. Read
the section "Plant design and configuration (Page 19)".
Constant overload can result in the loss of messages.
Message surge
When "unusual" events occur (for example, failure of a plant unit), signal transitions can occur
almost simultaneously.
This behavior can be explained by analyzing the technological interrelationships.
Example
The frequency of signal transitions in a system can be projected as follows:
• On average, approximately 2% of the signals change per second.
• In the worst case (such as the failure of a plant unit), approximately 30% of the signals
change state per second.
Message loss
If all the time-stamped signals of a system are collected on one ET 200 station, messages can be
lost on the relevant interface module when "unusual" events occur. The message loss is
displayed according to the cause using AS process control messages (you can find additional
information in the "AS process control messages for time stamping faults (Page 67)" section).
Example for 10 ms time stamping
A system with ET 200M has 1,500 digital signals in its final configuration:
• Based on the projection, 450 signals per second can change in this system in the worst case.
• A maximum of 128 DI-signals per IM because of limitation by IMDRV_TS block.
• If numerous signals with high-precision time stamping are configured in an ET 200M station,
for example, when there are 8 SM 321 digital input modules each with 16 inputs, messages
can be lost due to the following reasons:
– Other system-internal messages are generated in addition to the process messages (you
can find additional information in the section "AS Process Control Messages for Time
Stamp Faults").
– The following processing levels (interface module, IMDRV_TS blocks, AS message
processing, MSG_TS blocks and OS message processing) require more time to evaluate
process messages (slow execution cycle of the blocks is set).
Additional information
• Operating Instructions SIMATIC; Distributed I/O Device ET 200M
• Operating Instructions SIMATIC; Distributed I/O Device ET 200iSP
Configuration rules
• For high-precision time stamping, use the following digital input module:
6ES7 321-7BHxx-0AB0
Insert these digital input modules without leaving a gap starting from slot 4.
Maximum of 8 signal modules with 6ES7 153-2BAx2, 6ES7 153-2BA10, or 6ES7 153-2BA70.
• Synchronize the automation system via a time master, such as Buerk DTS 4138S / 4128S or
a comparable time master.
• Use the following modules in the automation system:
– Suitable interface module IM 153-2 (see section "Distributed I/O (Page 29)")
– Digital input modules of the ET 200M
• Configure an identical input delay for all digital inputs with high-precision time stamping to
a minimum value (100 microseconds).
• Leave the process interrupts deactivated.
• When configuring the plant, ensure that there is no repeater in the signal path between the
CPU of the automation system and an ET 200M in the DP master system on which the digital
inputs are acquired with high-precision time stamping.
• Do not evaluate the digital inputs with high-precision time stamping before the startup time
of ET 200M has expired (at least 10 seconds).
• Use appropriate sensors for acquiring the signals.
Note
Keep the properties of the sensors in mind.
Different transitions of input signals can affect the precision of the time stamping
differently. Possible criteria for a different response include:
• Ramp times
• Spikes
Validity
The precision of the high-precision time stamping with a precision of 1 ms applies to each DP
master system.
Note
The precision of the high-precision time stamping between several DP master systems with a
precision of 1 ms is 10 ms.
Restriction
The following events may be the cause for temporary degradation of the accuracy of the high-
precision time stamping:
• Processing of diagnostic results
• Firmware update
• Reading identification and maintenance information (I&M data)
• Other acyclical services
Introduction
This section presents the systems and components required for time stamping of digital input
signals.
Systems
The HMI system in the SIMATIC PCS 7 process control system is an operator station. The
automation system in the SIMATIC PCS 7 process control system is a SIMATIC S7-400 station.
Components
The following components are used for converting time stamping of digital input signals:
• SIMATIC S7-400 stations and communication modules (Page 28)
• Distributed I/O (Page 29)
• IMDRV_TS block (Page 31)
• EventTS block (Page 32)
• Time master (Page 33)
Communication modules
You can use the following communication modules for time stamping:
• CP 443-1
• CP 443-5 Extended
Note
You can use the PROFIBUS DP connection of the CPU instead of the CP 443-5 Extended.
Properties
Distributed I/O
Time stamping can be configured with the following distributed I/O devices:
• ET 200M
• ET 200iSP
The following modules are used in the distributed I/O device to acquire signals:
• Interface module for PROFIBUS DP for preprocessing the signals
• Digital input modules for detecting signal transitions
Note
Discontinued modules
The modules that can currently be ordered are described in this documentation.
The following applies when using modules approved for high-precision time stamping in
past versions of PCS 7:
Verify their continued use in PCS 7. You can find additional information on this in the
documentation Process Control System PCS 7; Released Modules.
System messages
IMDRV_TS reports AS process control message if an error is detected in high-precision time-
stamping.
Additional information
Additional information on the diagnostics response of the IMDRV_TS is available in the online
help for the PCS 7 Basis Library.
Note
EventTS and Event16TS blocks
The following information applies to the EventTS and Event16TS blocks. The Event16TS is not
mentioned again unless there are any differences to EventTS.
Additional information
You can find additional information about the messages and the response of the blocks in the
online help for the PCS 7 Advanced Process Library.
Time master
The time master distributes the time signal to operator stations and SIMATIC stations that need
to be synchronized.
The following time master is recommended for PCS 7:
Buerk DTS 4138S / 4128S or SICLOCK TC 400
• The time master synchronizes connected stations requiring synchronization via Industrial
Ethernet/Fast Ethernet.
• The time master can be synchronized using a time signal from a GPS decoder, or DCF 77
receiver, for example.
Note
If a third party time master is used, the user must ensure that it has the same accuracy as
the recommended time master. It also must be compatible for use in a PCS 7 plant.
Additional information
• You can find information and ordering data on the time master components that can be used
in PCS 7 in the ST PCS 7 catalog (add-ons for PCS 7).
• You can find information about time synchronization for a PCS 7 plant in the function
manual Process Control System PCS 7; Time Synchronization.
Requirement
The components of the automation system are inserted in HW Config.
The figure shows an example configuration for time stamping in HW Config:
Step What?
1 Configuring the CPs:
• Configuring the CP 443-1 (Industrial Ethernet) (Page 37)
• Configuring the PROFINET IO connection of the CPU (Page 38)
• Configuring the CP 443-5 Extended (Page 40)
• Configuring the PROFIBUS connection of the CPU (Page 41)
2 Configuring the ET 200M station:
• Power supply (no configuration necessary)
• Configuring the interface module: IM 153-2/IM 152-1 (Page 44)
• Digital input modules:
– Configuring the SM 321 digital input module (Page 48)
– Configuring the SM 131 digital input module (Page 51)
– Configuring the SM 326 digital input module (Page 53)
3 Configuring the symbols (Page 57)
4 Configuring the signaling block (Page 59)
5 Configuring the input signals (Page 60)
6 Configuring the messages for high-precision time stamping (Page 64)
Step What?
7 Compiling and downloading the AS (Page 65)
8 Compiling and downloading the OS (Page 66)
Additional information
• Online help for HW Config
• List PCS 7 - released modules
PROFIBUS master
The PROFIBUS master is the component that distributes the system time to the PROFIBUS.
You can use the following components as the PROFIBUS master:
• CP 443-5 Extended
• Internal PROFIBUS interface of the CPU
Requirement
A CP 443-1 is configured in the configuration table for the SIMATIC S7-400 station (type of CP:
See section "Components and Systems > SIMATIC S7-400 stations and communication modules
(Page 28)").
Procedure
1. Select the CP 443-1 in HW Config.
2. Select the menu command Edit > Object Properties.
3. In the "Time-of-Day Synchronization" tab, select the "Accept time of day on CP and forward"
check box and then select "Automatic":
6.2.3 How to assign parameters for the integrated Ethernet interface for a CPU 41x
The following procedure is based on SIMATIC S7-400 stations in which one of the following CPU
types is used:
• CPU 41x H PN/DP
• CPU 41x PN/DP
• CPU 410
The table below shows the recommended synchronization procedure depending on the
interface for time synchronization:
Requirements
• The CPU is connected directly to Ethernet (plant bus).
• The time master is connected to the plant bus.
Procedure
1. Select the CPU in HW Config.
2. Select the menu command Edit > Object Properties.
3. In the "Time-of-Day Synchronization" tab, activate the "Activate NTP time-of-day
synchronization" check box.
4. Click "Add".
The "Edit NTP Server Address" dialog box opens.
5. Enter the Ethernet address of the time master in the "NTP server address" text box and then
click "OK".
Requirement
A CP 443-5 Extended is configured in the configuration table for the SIMATIC station (type of CP:
see section "Components and Systems > Communication Modules (Page 28)").
Procedure
1. Select the CP 443-5 Extended in HW Config.
2. Select the menu command Edit > Object Properties.
3. In the "Operating Mode" tab, activate the "DP master" check box.
Quintessence
Configuration of the time interval should be noted in the following cases:
• Configuring the PROFIBUS interface of the CPU (Page 41)
• Configuring the interface module (IM) (Page 44)
Property Rules
IM on the DP master If only interface modules (IM) with a variable time interval (such as the
system IM153-2BA00) are used on the DP master system, set the synchronization time
interval of the CPU to e.g. 10 seconds.
IMs with the same Setting for synchronization of the DP slaves:
time interval (fixed or • If all DP slaves on the DP master system expect a time interval of one second
variable) are connec‐ for the synchronization, set the time interval for the synchronization for the
ted to the DP master
CPU to e.g. 1 second.
system.
• If all DP slaves on the DP master system expect a time interval of ten seconds
for the synchronization, set the time interval for the synchronization for the
CPU to e.g. 10 seconds.
IMs with different If you use interface modules (IM) with different time intervals on a DP master
time intervals (fixed system, set the minimally required time interval for the respective DP master
or variable) are con‐ system (see rule for: IM with same time interval on the DP master system).
nected to the DP mas‐
ter system.
Rules for optimization:
Multiple synchroniza‐ Avoid multiple synchronization. Set the same interval values for all synchroni‐
tion zations.
• Set the time interval for synchronization of the DP slaves.
• Set the time interval for the time master that synchronizes the plant.
Requirement
The S7-400 CPU has been configured in the configuration table.
Procedure
1. Select the PROFIBUS connection of the CPU in HW Config.
2. Select the menu command Edit > Object Properties.
3. In the "Operating Mode" tab, activate the "DP master" check box.
Note
When making a setting from the "Time Interval" drop-down list, keep in mind that the setting
options depend on the interface modules (IM) used.
Read the section "Rules for configuring the time interval (Page 41)".
Note
The lower-level settings are overwritten by activation/passivation of a higher-level instance (e.g.
on the DP slave).
Requirements
• A DP master system is configured on a CP 443-5 Extended or on the PROFIBUS interface of the
CPU.
• At least one digital input module that supports time stamping is configured in the ET 200
station (type of digital input module: See section "Components and Systems > Distributed I/O
(Page 29)").
Note
With some modules (for example, article number 6ES7 153-2A... ), the synchronization interval
for the CPU is fixed at 1 second (increased CPU load).
Procedure
Note
If you want to configure the digital input modules individually, open the object properties for the
respective digital input modules.
Additional information:
• "How to configure the SM 321 digital input module (Page 48)" section.
• How to configure the SM 131 digital input module (Page 51)" section.
3. In the "Name" input box on the "General" tab, enter a unique name for the interface module .
A unique name makes it easier to assign program blocks in other configuration tasks and
messages.
7. Select the "Time-of-day stamp" check box in the "Presetting of All Inputs" group.
8. Specify the edge of the process signal from the IM that should be interpreted as an "incoming
event". The opposite signal transition is interpreted as the signal exiting the state.
Select the check box for the required signal change:
– "Falling Edge 1 -> 0" or
– "Rising Edge 0 -> 1"
When the static state of a signal changes, a message is generated at this point in time.
9. Click "OK" to apply the settings.
Note
The settings in the "DP Slave Properties" dialog box apply to all channels of the digital input
modules with time stamping used in this ET 200 station. A change in the "Presetting of All
Inputs" field affects the settings for all inputs of this ET 200 station.
1st example
IM 153-2 - time stamping for the entire ET 200M station activated (or only one module with time
stamping in this ET 200M station):
2nd example
IM 153-2 - time stamping for the ET 200M station passivated:
3rd example
IM 153-2 - time stamping for (individual) modules or (individual) channels activated:
Note
You only need to read this section if you want to set time stamp for each digital input module
separately.
Requirements
• At least one ET 200M station is configured in HW Config.
• A digital input module SM 321 is configured in at least one slot of the ET 200M station
(IM 153-2) (type of digital input module: See section "Components and Systems > Distributed
I/O (Page 29)").
Procedure
1. In the ET 200M station, select the SM 321 digital input module for which you want to make
the settings.
2. Open the shortcut menu (right-click) and select the menu command Object Properties.
3. Activate the "Time stamp" check box in the "Time stamping" tab and activate the radio button
you want for RLO edge detection.
Additional information
• " Examples of settings on digital input module SM 321 (Page 50) " section
• Section "How to configure the interface module (Page 44)"
1st example
Setting on the module - presetting of all inputs activated:
2nd example
Setting on the module - channel-specific individual assignment of the inputs activated:
Note
You only need to read this section if you want to set time stamp for each digital input module
separately.
Requirements
• An ET 200iSP station is configured in HW Config.
• A digital input module SM 131 (8 DI NAMUR) is configured in at least one slot of the ET 200iSP
station (IM 152-1) (type of digital input module: See section "Components and Systems
> Distributed I/O (Page 29)").
Procedure
1. In the ET 200iSP station, select the SM 131 digital input module for which you want to make
the settings.
2. Open the shortcut menu (right-click) and select the menu command Object Properties.
3. Select the "Parameters" tab.
4. In the tree view, select the folder Parameters > Time Stamp > Individual setting of the
inputs.
5. In the tree view, open the folder of the channel to be changed (for example, channel 0)
6. Open the "Time stamping" parameter in the tree view. Activate the check box in the "Value"
column.
7. Open the "Edge Evaluation Incoming Event" parameter in the tree view. Select the direction
of the edge evaluation from the drop-down list box in the "Value" column.
Note
You now need to configure each input separately.
Configuration via the interface module affects all inputs of the digital input module in this ET
200iSP station.
8. Click "OK".
The settings are applied.
Additional information
• Section "Example of setting on digital input module SM 131 (Page 52)"
• Section "How to configure the interface module (Page 44)"
Example
Setting on the module:
Note
You only need to read this section if you want to set time stamp for each digital input module
separately.
Note
The activation of the high-precision time stamping has no effect on the operation of an F system
if the required modules and inputs have already been configured.
Inputs available
The number of digital input module inputs available for time stamping depends on the following
supplementary conditions:
• Version of the software package: SIMATIC S7; F-ConfigurationPack
• Type of IM 153-2 interface module
High-precision time stamping is only available in fail-safe signal modules of the SIMATIC
S7-300 if you are using IM 153-2 interface modules with the following article numbers:
– 6ES7 153-2BAx1-0XB0
– 6ES7 153-2BAx2-0XB0
– 6ES7 153-2BA10-0XB0
– 6ES7 153-2BA70-0XB0
Requirements
• An ET 200M station is configured in HW Config.
• A digital input module SM 326 is configured in a slot of the ET 200M station (IM 153-2) (type
of digital input module: See section "Components and Systems > Distributed I/O (Page 29) ").
Procedure
1. In the ET 200M station, select the SM 326 digital input module for which you want to make
the settings.
2. Open the shortcut menu (right-click) and select the menu command Object Properties.
3. Select the "Parameters" tab.
4. In the tree view, select the folder Parameters > Time Stamping > Individual setting of the
inputs.
5. In the tree view, open the folder of the channel to be changed (for example, channel 0)
6. Open the "Time stamping" parameter in the tree view. Activate the check box in the "Value"
column.
7. Open the "Edge Evaluation Incoming Event" parameter in the tree view. Select the direction
of the edge evaluation from the drop-down list box in the "Value" column.
Note
You now need to configure each input separately.
Configuration via the interface module affects all inputs of the digital input module in this ET
200M station.
8. Click "OK".
The settings are applied.
Additional information
• Section "Examples of settings on digital input module SM 326 (Page 55)"
• Section "How to configure the interface module (Page 44)"
• Section "How to configure the input signals (Page 60)"
Example
Setting on the module:
Introduction
You can assign symbolic names for the signals. Simple identification of the signals makes it easier
to interconnect the driver blocks.
Requirements
• The project is open in SIMATIC Manager in the component view.
• The path to the AS is set.
• HW Config is open.
Procedure
Execute the following steps for all digital input modules:
1. Select a digital input module in HW Config.
2. Select a row in the configuration table of the module in which an address of the process
image is assigned.
Procedure
Create a CFC chart with a message block.
Procedure
1. Select the "PV_In" input of the channel driver block Pcs7DiIT in the CFC chart.
2. Select the menu command Insert > Interconnection to Address.
The "Insert Interconnection to Address" dialog box opens.
3. Select the row with the corresponding module input and double-click in the row.
4. Connect the blocks as shown for the connections in the following examples.
Note
You can configure messages assigned to the module input directly at the signaling block
when you configure an input signal, or you can configure them later.
You can find additional information in the section " Configuring the messages for the high-
precision time stamping (Page 64)").
Note
Configuration for an F system
Position the EventTS block in a CFC chart that is not in the runtime group of the F blocks. It
is not possible to forward time stamps to technology blocks via the channel driver blocks of
the F libraries.
Using the time stamping function with F modules requires the following additions:
• Programming F libraries channel driver blocks
• Programming Pcs7DiIT
To get a high precise time stamp for a supported F-module channel, you have to insert a
standard channel driver block (Pcs7DiIT) with an EventTS block as described in the section
"Example of configuration with the EventTS block" in addition to the F-channel driver
(F_CH_DI).
This standard channel driver is only used to get the timestamp value of the F-Channel.
Note
EventTS and Event16TS blocks
The following information applies to the EventTS and Event16TS blocks. The Event16TS is not
mentioned again unless there are any differences to EventTS.
Note
Making the inputs visible
You must make the following inputs of the technology blocks visible:
EventTS block
• "TimeStampOn" input
This input activates the high-precision alarm inputs when the value = 1.
• Input "InTS<xx>"
When technological blocks are used, these inputs are additionally interconnect to the inputs
of the technological blocks.
The following figure provides an example of high-precision time stamping for the "FbkRun" input
of the "MotL" block.
• EventTS block: Input "TimeStampOn" = 1
• The following I/Os are interconnected:
– Module, "I1.0" input with the "PV_In" input of the Pcs7DiIT channel driver block
– "PV_Out" output of the Pcs7DiIT channel driver block with the "FbkRun" input of the MotL
block.
– "TS_Out" output of the Pcs7DiIT channel driver block with "InTS1" input of the EventTS
block.
– EventTS block: "EventTsOut" output with the MotL block, "EventTsIn" input.
The message should be configured at the EventTS block. Replace the default text ($
$BlockComment$$ InTS1 Status 16#@1%x@) with a project-specific message text.
Example:$$BlockComment$$ <runtime error> Status 16#@1%x@
Additional information
You can find more information on configuration with redundant signal acquisition in the
documentation Process Control System PCS 7; High Availability Process Control Systems.
6.7.1 How to configure messages with blocks of the PCS 7 Advanced Process Library
(APL)
Introduction
This section explains how to change the message texts at the APL block EventTS.
Procedure
1. Open the project in SIMATIC Manager and select the menu command View > Component
View.
2. Select the chart folder of a S7 program in the tree: Project\SIMATIC Station\CPU\S7 Program
\Charts.
3. Select the menu command Options > Charts > Chart Reference Data.
The "Chart Ref: Display Chart Reference Data" dialog box opens.
4. Select the menu command View > Block Types.
The "{S7 Program} (Block Types)" dialog box opens.
5. Click "Block type" in the table heading.
The entries are sorted alphabetically.
6. Find the EventTS block with the associated entries in the list.
7. Double-click on the block type of the messaging block in the table row found.
The CFC chart containing the block you are searching for opens. The relevant block is
highlighted.
8. Select the menu command Edit > Object Properties.
The "Properties – Block" dialog box opens.
9. Click "Messages" in the "Special Properties" group. The "PCS 7 Message Configuration" dialog
box opens.
10.Select the message class of the message. Change the message text in the "Event" column of
the table (see example).
11.Click "OK".
Example
Replace the default text ($$BlockComment$$ InTS1 Status 16#@1%x@) with the project-
specific message text (for example, $$BlockComment$$ <temperature high> Status
16#@1%x@).
Additional information
You can find additional information about message configuration in the STEP 7 online help under
the topic "How to Create Block-Related Messages for the Project)".
Options
The following options are available for compiling and downloading programs:
• You can use the commands for a single SIMATIC station.
• You can compile and download multiple SIMATIC stations with a single command.
Additional information
You can find additional information and step-by-step instructions in the configuration
manual Process Control System PCS 7; Engineering System.
Options
The following options are available for compiling and downloading the operator station(s):
• You can compile and download operator stations one-by-one.
• You can compile several operator stations at the same time and download them on their own.
• You can compile and download several operator stations at the same time.
Additional information
You can find additional information and step-by-step instructions in the configuration
manual Process Control System PCS 7; Operator Station.
Introduction
This section describes the AS process control messages that are generated when faults occur in
the time stamping.
Additional information
Additional information about editing the message texts is available in the section "Configuring
time stamping > Configuring messages for high-precision time stamping" > How to configure
messages with blocks of the PCS 7 Advanced Process Library (APL) (Page 64)".
Meaning
The AS process control message "Startup data" indicates a start/restart of the interface modules
(for example, IM 153-2).
Messages
• "Startup data" with the signal status "INCOMING"
• "Startup data" with the signal status "OUTGOING"
Description
1. After the start/restart, the interface module sends the signal for the AS process control
message "Startup data" with the signal status "INCOMING" to the CPU.
2. The interface module then sends messages signaling the static state of all configured process
signals.
Based on the process signal, the interface module derives the signal to be sent according to
the configuration (see following table).
3. Following this, the interface module sends the signal for the AS process control message
"Startup data" with the signal status "OUTGOING".
Status process sig‐ Configured edge evaluation of incoming Interface module (signal mes‐
nal event: sage from startup)
0 0 -> 1 OUTGOING
1 0 -> 1 INCOMING
1 1 -> 0 OUTGOING
0 1 -> 0 INCOMING
Interface module (signal mes‐ Value stored in the CPU (mes‐ Message in
sage from startup) sage block) message list and archive
INCOMING INCOMING ---
INCOMING OUTGOING OUTGOING
OUTGOING OUTGOING ----
OUTGOING INCOMING INCOMING
Meaning
The AS process control message "Time frame failure" indicates a failure of the time
synchronization of the interface module (for example, IM 153-2).
Messages
• "Time frame failure" with signal status "INCOMING"
• "Time frame failure" with signal status "OUTGOING"
Description
The interface module expects a time frame from the time master at the set interval (e.g. every
second).
When the time frame fails three consecutive times, the interface module continues working
with the internal time and sends the message "Time frame failure" with the signal status
"INCOMING" to the operator station.
The internal clock of the interface module is synchronized after the next valid time frame has
arrived, and the message "Time frame failure" is triggered with the signal status "OUTGOING".
Meaning
The AS process control message "Time difference between frame and internal clock may cause
inaccuracy" indicates a time jump/time difference in the interface module (e.g. IM 153-2).
Messages
• "Time difference between frame and internal clock may cause inaccuracy" with the signal
status "INCOMING"
• "Time difference between frame and internal clock may cause inaccuracy" with the signal
status "OUTGOING"
Description
Both messages are sent consecutively when the following applies:
• There is a difference between the synchronous time and the internal time of the interface
module when a signal is received by the interface module.
• The difference between the times is greater than half the accuracy of the time stamp.
Example: For a time stamp accuracy of 10 ms, the difference is > 5 ms.
The time of the interface module is synchronized afterwards.
– The message with the signal status "INCOMING" receives the time stamp prior to the
synchronization.
– The message with the signal status "OUTGOING" receives the time stamp after the
synchronization.
This means you can determine if the internal clock of the interface module was set forward
or back.
Meaning
The AS process control message "STOP of the time stamping function" indicates a fault in the
interface module (for example, IM 153-2).
Messages
• "STOP of the time stamping function" with the signal status "INCOMING"
• "STOP of the time stamping function" with the signal status "OUTGOING"
Description
When the connection between the DP master and the interface module stops, the time stamping
of the signals is stopped. This is the case, for example, when the CP fails or the bus cable is
interrupted. A message to this effect is entered in the internal message list.
• The time stamping of the signals is stopped from the moment the message with the signal
status "INCOMING" is generated.
• The time stamping of the signals becomes active again after the message with the signal
status "OUTGOING".
• After the message "STOP of the time stamping function" with the signal status "OUTGOING",
the interface module starts up again.
Meaning
The AS process control message "Message loss at IM (buffer overflow)" indicates a loss of
messages due to an overflow of the message buffer of the interface module .
Messages
• "Message loss at IM (buffer overflow)" with the signal status "INCOMING"
• "Message loss at IM (buffer overflow)" with the signal status "OUTGOING"
Description
The AS process control message is generated in the two following situations:
Buffer overflow due to external causes Buffer overflow due to internal causes
Examples of potential causes: Example of a potential cause:
• Failure or overload of the plant or field bus The signals in the I/O change so quickly that the
signal transitions can no longer be entered in the
• Failure or overload of the DP master (CPU)
message lists.
Remedy: Correct the source of the problem
Remedy: Distribute the signals over several inter‐
face modules or reduce the number of signals with
time stamping.
Meaning
The AS process control message "Redundant changeover" is generated when there is a switch
between the active and passive interface module (e.g. IM 153-2).
Messages
• "Redundant changeover" with the signal status "INCOMING"
• "Redundant changeover" with the signal status "OUTGOING"
Description
The AS process control message "Redundant changeover" characterizes this interruption time.
The time stamping is interrupted for the duration of the switchover.
• The time stamping of the signals is stopped from the moment the message with the signal
status "INCOMING" (start of switchover between active and passive interface module) is
generated.
• The time stamping becomes active again after the message with the signal status
"OUTGOING".
Meaning
The AS process control message "Loss of information with redundancy" indicates an error when
signals are exchanged between the passive interface module (for example, IM 153-2) and the
active interface module.
Messages
• "Loss of information with redundancy" with the signal status "INCOMING"
• "Loss of information with redundancy" with the signal status "OUTGOING"
Description
During error-free operation, the passive interface module receives information about the
current state of the I/O from the active interface module:
• There is a signal exchange error from the moment the message with the signal status
"INCOMING" is generated.
• As soon as the I/O state has been synchronized between the active and passive interface
modules, the message with the signal status "OUTGOING" is output.
A D
Advanced Process Library, 32 Digital input module SM 131, 53
APL, 32 Configuring, 51, 53
AS, 65 Digital input module SM 321, 48, 50
compiling and downloading, 65 Configuring, 48
AS process control messages, 67, 70, 71, 72 Settings, example, 50
Loss of information with redundancy, 75 Digital input module SM 326, 56
Message loss at IM (buffer overflow), 73 Configuring, 53, 56
Startup data, 68 Digital input modules, 29
STOP of the time stamping function, 72 Distributed I/O
Time difference between frame and internal clock for signal acquisition, 29
may cause inaccuracy, 71 Supported modules, 29
Time frame failure, 70 Documentation
Access options, 8
for planning and configuration, 8
C Download, 65
AS, 65
Communication
to operator station, 28
Communication modules, 28
Communication modules"; "CP 443-1, 28
E
Communication modules"; "CP 443-5 Extended, 28 Environmental requirements
Communication modules"; "For time stamping, 28 Higher, 30
Compile, 65, 66 ET 200iSP, 51, 53
AS, 65 Digital input module example, 53
OS, 66 SM 131 Example, 53
Configuration, 19, 57, 60 SM131, 51
EventTS, 63 ET 200M, 53, 56
Input signals, 60 Digital input module example, 56
Note, 19 SM 326 Example, 56
Redundancy, 63 SM326, 53
Symbols, 57 ET 200M station, 44
Technology block, 61 Settings for time stamping, 44
Configuring, 37, 40, 41, 44, 48 EventTS block
CP 443-1 Industrial Ethernet, 37 Note, 32
CP 443-5 Extended, 40 Examples, 21, 47, 50
CPs, 37 Plant with time stamping, 21
Digital input module SM 321, 48 Redundant plant with time stamping, 21
Interface module IM 153-2, 44 Settings for interface module IM 153-2, 47
PROFIBUS connection of the CPU, 41 Settings on digital input module SM 321, 50
CP 443-1 Industrial Ethernet, 37
Configuring, 37
CP 443-5 Extended, 40 F
Configuring, 40
Faults, 67
CPs, 37
in time stamping, 67
Configuring, 37
H P
High-precision time stamping with 1 ms Plant with time stamping, 21
precision, 25 Example, 21
Precision
Time stamping, 11
I Preface, 7
PROFIBUS connection of the CPU, 41
IM 153-2, 23
Configuring, 41
Message loss, 23
Signal surge, 23
Special features, 23
IMDRV_TS block
R
Note, 32 Redundancy, 63
using for time stamping, 31 Redundant plant with time stamping, 21
Input signals, 60 Example, 21
Configuration, 60
Interface module IM 153-2, 44, 47
Configuring, 44 S
Examples of settings, 47
Sequence, 14
Interface modules, 29
Time stamping, 14
Settings, 47, 50
Digital input module SM 321, examples, 50
L Interface module IM 153-2, examples, 47
Loss of information with redundancy, 75 Signal acquisition
Supported modules, 29
Via distributed I/O, 29
M Signal surge, 23
On the IM 153-2, 23
Message loss, 23
Signals, 57
IM 153-2, 23
assigning symbolic names, 57
Messages, 67, 70, 71, 72
SIPLUS modules, 30
Fault in time stamping, 67
SM 131, 53
Loss of information with redundancy, 75
Example, 53
Message loss at IM (buffer overflow), 73
SM 326, 56
Startup data, 68
Example, 56
STOP of the time stamping function, 72
Startup data, 68
Time difference between frame and internal clock
AS process control message, 68
may cause inaccuracy, 71
STOP of the time stamping function, 72
Time frame failure, 70
AS process control messages, 72
Symbolic names, 57
Assigning signals for, 57
O Symbols, 57
Operator station Configuration, 57
Communication to CPU, 28 System planning, 19
OS, 66 Note, 19
Compile, 66
T
Time difference between frame and internal clock may
cause inaccuracy, 71
AS process control message, 71
Time frame failure, 70
Messages, 70
Time master, 33
Time stamping, 21, 28, 44, 67
CPU used, 28
Functionality, 11
Messages for faults, 67
Plant configuration, 21
Precision, 11
Requirements, 11
Resolution, 11
Sequence, 14
Settings on the ET 200M station, 44
using, 11
Using the IMDRV_TS block, 31
Time stamping (10 ms), 11
Time Stamping in the Interface Module, 16
Time stamping"; "Communication modules, 28
U
Using
IMDRV_TS block for time stamping, 31
Time stamping, 11