Documente Academic
Documente Profesional
Documente Cultură
1
______________
Fundamentals
Planning time
Process Control System PCS 7 3
PCS 7 time synchronization
______________
synchronization
Configuring time
4
______________
synchronization
A
______________
Function Manual
Appendix A
01/2008
A5E01216578-01
Safety Guidelines
Safety Guidelines
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
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
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 device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
WARNING
This device may only be used for the applications described in the catalog or the technical description and only
in connection with devices or components from other manufacturers which have been approved or
recommended by Siemens. Correct, reliable operation of the product requires proper transport, storage,
positioning and assembly as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the 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.
Note
You will find information on high-precision time stamping in the function manual PCS 7
Process Control System; High-precision time stamping.
Organization
The documentation is organized according to the following topics:
● Fundamentals of time synchronization mode of operation in a PCS 7 plant
● Configuration possibilities of PCS 7 with time synchronization
● Planning a PCS 7 plant with time synchronization
● Configuring the time synchronization for different plant configurations
Skills required
Only qualified personnel should commission and operate the PCS 7 products.
Skills in the following areas are prerequisite:
● STEP 7
● PCS 7
● "Automation technology"
● Basic WinCC skills
● For plants with domain structure: Windows administration
Validity
This documentation is valid for the software package "Process Control System PCS 7 V7.0".
Additional support
If there are additional questions on using the products described in the documentation,
please contact your Siemens contact in the sales and service locations that are responsible
for your company.
You can locate your contact at:
http://www.siemens.com/automation/partner
The guide that provides details of the technical documentation offered for the individual
SIMATIC products and systems is available at:
http://www.siemens.de/simatic-tech-doku-portal
The online catalog and online ordering system are available at:
http://mall.ad.siemens.com/
Training Center
Appropriate courses are available to facilitate introduction to the S7 automation system.
Contact your regional Training Center or the Central Training Center in D 90327 Nuremberg.
Phone: +49 (911) 895-3200.
Internet: http://www.sitrain.com
Technical Support
Technical support for all A&D products can be accessed:
● Via the Support Request web form
http://www.siemens.de/automation/support-request
● Phone: + 49 180 5050 222
● Fax: + 49 180 5050 223
Additional Technical Support information is available on the Internet at
http://www.siemens.com/automation/service
4.4.4 How to set time synchronization on an OS in a work group with central time master ................ 74
4.4.5 How to set time synchronization on an OS in a work group without central master................... 78
4.4.6 How to set the OS server for reception of time service via DCF77RS ....................................... 80
4.5 Configuring time synchronization on an AS ................................................................................ 83
4.5.1 How to set time synchronization on an AS for SIMATIC mode .................................................. 83
4.5.2 How to set time synchronization on an AS for NTP mode.......................................................... 90
4.6 Configuring time synchronization for SIMATIC BATCH.............................................................. 92
4.6.1 Overview of configuration steps.................................................................................................. 92
4.6.2 How to set time synchronization on a BATCH station ................................................................ 92
4.6.3 How to set time synchronization on a BATCH/operator station.................................................. 94
4.7 Configuring time synchronization for SIMATIC Route Control.................................................... 95
4.7.1 Overview of configuration steps.................................................................................................. 95
4.7.2 How to set time synchronization on a Route Control station ...................................................... 95
4.7.3 How to set time synchronization on a route control/operator station.......................................... 97
4.8 How to set the time synchronization for SIMATIC BOX.............................................................. 98
4.9 How to set time synchronization on the engineering station..................................................... 100
4.10 Configuring redundant PCS 7 systems..................................................................................... 103
4.10.1 How to configure time synchronization of OS servers with redundant CP 1613 and an
external clock ............................................................................................................................ 103
4.10.2 How to configure time synchronization on a PCS 7 system with redundant bus system ......... 104
4.11 Protecting the network from undesired external synchronization ............................................. 105
4.11.1 Overview of necessary settings ................................................................................................ 105
4.12 Configuring the PCS 7 system with multiple time zones .......................................................... 106
4.13 Time synchronization of multiple systems with autonomous internal timers ............................ 107
A Appendix A ............................................................................................................................................ 109
A.1 Script "GetTimeFromPC" .......................................................................................................... 109
Glossary ................................................................................................................................................ 111
Index...................................................................................................................................................... 115
Introduction
Each PC has an internal hardware clock (RTC = Real Time Clock) that continues to run via
batteries when the PC is switched off. This clock has the precision of a quartz clock. Via
Internet (Network Time Protocol - NTPI) it can be compared with the time of an NTP server,
and thus with the time of an atomic clock, and in this manner it can be set regularly to the
exact time.
If a process cell is controlled only by a process computer, then time is not a problem:
● Messages are always specified in chronological sequence. Whether the specified times
correspond to real time when the messages are created is irrelevant. Unique allocation
based on a consecutive chronology is only necessary for troubleshooting.
● Project steps are executed in the configured sequence.
Modern process cells however are comprised of a variety of components. Depending on the
complexity they consist of automation systems, servers, clients and distributed I/O.
5RXWH&RQWURO
26&OLHQWV %$7&+&OLHQWV &OLHQWV
6,0$7,&,7
$UFKLY6HUYHU %$7&+6HUYHU
7HUPLQDOEXV
3ODQWEXV
352),%86'3
352),%86'3
A complex plant can only execute its process steps successfully if all components intermesh
with precise timing. For this to occur an agreed time within the entire plant is required.
Applications
Time synchronization in PCS 7 is necessary wherever highly-precise time is necessary for
planned processes or wherever uniformity of time must be ensured:
● Synchronization of processes
● Traceability, e.g. of faulty processes
● Documentation and archiving of time-critical sequences
If the specific system components do not have identical time, or if the sub-components are
located in different time zones, the time will be synchronized for the entire plant. This is the
only way to ensure trouble-free execution of all processes.
Below you will find a number of tasks for which time synchronization for PCS 7 is also
relevant within a time zone:
● Time stamp
● Batch data
● Redundancy compare
● Message processing in correct sequence
● Time-of-day interrupts and runtime meters
● Interpretation of causal relationships
● Authentication of a domain client
Time synchronization
The PCS 7 process control system is operated with the "time synchronization" function to
synchronize the time-of-day for all the individual components. This even permits PCS 7
system configurations, for example, in which the automation system is in a different time
zone than the operator station. Times within a single time zone that do not match can also
be synchronized.
The following figure illustrates how PCS 7 plants generate time jumps, for example in the
message lists, when time synchronization is lacking. The processes do not run
synchronously:
2SHUDWRU
VWDWLRQ
%HUOLQ
0HVVDJHV
$XWRPDWLRQ
V\VWHP
If the time of the components of a distributed plant is synchronized, then all processes run
chronologically correctly, and they are archived correctly.
2SHUDWRU
VWDWLRQ
%HUOLQ
0HVVDJHV
7LPHV\QFKUR
QL]DWLRQ
$XWRPDWLRQ
V\VWHP
Synchronization options
The table below shows the PCS 7 components for which time synchronization is possible:
Note
This manual describes only time synchronization with PCS 7 V7.0 SP1. Contact Customer
Support if you wish to use V5-compatible mode.
UTC
As of V6.0 PCS 7 works exclusively with the coordinated world time (UTC = Universal Time
Coordinated). UTC is the international time basis that is specified by atomic clocks. UTC
does not take daylight saving time into account.
Note
If time-dependent data of different time zones is displayed or processed on a PCS 7
component, then use UTC for display on the operator station as well.
Local time
UTC, coordinated world time refers to the zero meridian which runs through Greenwich near
London. East of the zero meridian one or more hours is added depending on the distance to
the world time measured in Greenwich. West of the zero meridian the hours are subtracted.
The following table shows several time zones and their time differences:
4. Select "The PLC is is set to coordinated universal time (UTC) (preferred setting)" check
box in the "PLC clock setting" group.
5. In the "Time basis for time display in runtime" group; select the required time mode from
the drop-down list.
– If you want to set the time for migrated projects: "Time zone of the server (migrated
projects)"
– If you want to set the local time with daylight saving time and standard time: "Local
time zone"
– If you want to set UTC: Coordinated world time (UTC)"
The time zone is only important for display in process mode. Only UTC is used
internally; in archives, for example.
6. In the "Central date and time format" group, select the required format. This format setting
will affect how the date and time are displayed within the context of process control.
– Date in the configured format: "Configuration on the components"
This check box is pre-selected
– Date in accordance with ISO8601: "Force ISO8601 format on all components"
7. Click "OK".
The settings will be accepted.
See also
Converting to daylight saving time (Page 19)
Requirement
The desired time zone must be displayed on the operator station.
Procedure
To change the operator station to display daylight saving time and standard time, follow
these steps:
1. On the operator station select the command "Date and Time" in the menu "Start > Control
Panel".
2. Select the "Time Zone" tab.
Ensure that the time zone displayed in your list field is appropriate for your area
3. Select the check box "Automatically adjust clock for daylight saving changes".
4. Click "OK".
All time information for the operator station will be output in the local time of the selected
time zone, including daylight saving time changes, and it will be converted at the correct
point in time.
Note
If you operate a plant over multiple time zones that takes daylight saving time and standard
time into account, use the uniform time UTC for display on the operator station as well. You
therefore have a uniform basis for process analysis at all plant units.
Note
You can configure the switch to daylight saving time or point in time for the switch for each
specific country. Since PCS 7 always works with UTC internally, these changes do not
influence the PCS 7 processes. If you have set the display of the operator station to the local
time of these countries, and have set automatic conversion of daylight saving time to
standard time, then the time conversion will also take place automatically in this case as
well.
Note
You can find more information about the w32tm command by entering "w32TM/?" in the
Windows Run dialog or under the following Internet address:
http://go.microsoft.com/fwlink/?LinID=42984
You will see a diagram showing the deviation of DC1 to the computer currently in use.
Note
Note that restrictions can be configured on the operator stations. If you have configured
the situation that no input prompts are possible in runtime, then the w32tm function
cannot be executed. If you want to use this function you must first change the
configuration of the runtime in this case.
Introduction
For time synchronization of a system one component synchronizes the next component by
forwarding a time message frame. As the forwarding of the time message frame itself takes
some time, time delays will occur nonetheless. Take this into consideration for the structure
of a plant. The following figure shows the structure of a plant with several domains:
8QLW
'RPDLQ 8QLW
8QLW
*36'(& 6,&/2&.
&HQWUDOFORFN 8QLW
FDOHQGDU
'RPDLQ 8QLW
8QLW
7LPHGLIIHUHQFH
Definition stratum
Within a PCS 7 system a component, e.g. the OS server, gets the determining time from an
external clock and forwards this time to other components that will be synchronized. Each
computer that receives the time and/or forwards the time is designated as time server.
All time servers form a hierarchy with higher-level and lower-level time servers. Relative
position within this hierarchy is designated with a number; the "stratum". Multiple time
servers can be located within one stratum. In this case they receive the time message frame
at the same time.
Thus the stratum indicates the following:
● How far away the respective time server is from the time source
● Which time servers are located on the same time level
The following figure shows time synchronization through four strata:
8QLW
'RPDLQ 8QLW
8QLW
*36'(& 6,&/2&.
&HQWUDOFORFN 8QLW
FDOHQGDU
'RPDLQ 8QLW
8QLW
The above example shows time synchronization with the following structure:
● The actual time source is an atomic clock, e.g. the atomic clock of the German Federal
Physical Technical Institute (Physicalisch-Technichen Bundesanstalt (PTB)) in
Braunschweig.
● The central SICLOCK plant clock receives the precise time from this atomic clock via the
DSF 77 reception service. Thus SICLOCK is located in stratum 1. SICLOCK forwards the
time to the domain controller 1 in stratum 2. This time server connected to the time
source is also referred to as a primary server.
● The primary server forwards the time to multiple domain controllers in stratum 3.
● The domain controllers synchronize the time of their own process units in stratum 4.
Introduction
One system component must be the clock for all other components so that all process
control system components work with an identical time. The PCS 7 component that functions
as clock is referred to as the time master. Components that receive the time are referred to
as time slaves.
Time master
The time master is responsible for distributing the time signal to the PCS 7 components (the
time slaves) that will be synchronized. The time master gets its time via one of the following
clocks:
● DCF 77 reception service
● GPS reception service
● SICLOCK TS/TM
● Domain controller
Usually you configure one of the following PCS 7 components as time master:
● OS server
● Central plant clock SICLOCK TM
SICLOCK TM is synchronized via a time signal, e.g. a SICLOCK GPS decoder or a
SICLOCK DCFRS receiver. SICLOCK TM synchronizes the stations via Industrial
Ethernet.
● Central plant clock SICLOCK TS
An OS server can be time master in two ways:
● Active time master
The active time master outputs the time message frames to the time slaves and to the
passive time masters.
● Passive time master
A passive time master takes over the function of the active time master if the active time
master should fail.
Time slave
Time slaves are PCS 7 components that receive the time message frame from a time master
to set their internal clock. Usually you define the following PCS 7 components as time slave:
● OS clients
● Automation systems
26&OLHQWV
7HUPLQDOEXV
&20SRUW
26VHUYHU
*36'(& 6,&/2&.
3ODQWEXV
$6 $6
26&OLHQWV
7HUPLQDOEXV
26VHUYHU
3ODQWEXV
*36'(& 6,&/2&.
$6 $6
When booting all time masters first check whether a time master is already active and
sending time message frames on the bus. The wait time until a time message frame must
arrive after booting is 4x the set synchronization interval. If a time master receives a time
message frame from a different time master then it becomes a time slave. If after the wait
time elapses a time message frame has not been received, then the time slave sends a time
message frame itself as time master.
Redundant time masters detect their function as time slave through the receipt of the time
message frame and then synchronize their clock to the received time. They then check the
cyclic receipt of time message frames from the active master with their clock in accordance
with the synchronization interval received in the time message frame. If three successive
time message frames fail, the first redundant master that notices the failure will start sending
the time message frames. This mechanism ensures that only one master sends time
message frames at any time.
All time slaves and redundant masters on the plant bus synchronize their internal clock with
the received time message frames.
The time is changed in the synchronization process, as follows:
● Deviation ± 5 s: Delay/accelerate the time
● Deviation > 5s: Immediate change (error: Data packets sent off prior to the change will
have more recent time stamps than those sent off later)
Note
Only OS servers that are connected on the plant bus can be redundant time masters.
Two communications processors, e.g. CP 443-1, are necessary for time synchronization of
redundant automation systems on the rack.
You will find more information in the following manuals:
● Process Control System PCS 7 V 7.0, High-availability process control systems
● Process Control System PCS 7 V7.0; Operator Station
26&OLHQWV
7HUPLQDOEXV
&20SRUW
'& 26VHUYHU
*36'(& 6,&/2&.
3ODQWEXV
$6 $6
Note
For highly precise synchronization of the plant bus you can connect a SICLOCK TM with
GPSDEC as time master on the plant bus. In this case all automation devices will be
synchronized by the SICLOCK TM.
Note
When the OS clients are to be located in the same stratum as the OS server, you can also
receive the time directly from the domain controller and be synchronized by it.
26&OLHQWV
7HUPLQDOEXV
266HUYHU
3ODQWEXV
*36'(& 6,&/2&.
$6 $6
Note
For high-precision synchronization connect a SICLOCK TM with GPSDEC to the plant
bus and set all servers as master with the "Time synchronization" editor. Thus all
automation systems and all OS servers will be synchronized by the SICLOCK TM. If the
SICLOCK TM fails, then one of the servers will take over the function as active time
master. The OS clients will receive the time from one of the selected OS servers.
'& '&
&20SRUW
*36'(& 6,&/2&.
7HUPLQDOEXV
266HUYHU
266HUYHU 6WDQGE\
3ODQWEXV
$6 $6
'&
&20SRUW
7 7
26VHUYHU 26VHUYHU
3ODQW 3ODQW
3RUW/RFN
6&$/$1&(
(
Introduction
Various techniques are possible for time synchronization. To avoid undesired results, the
structure of a plant with time synchronization requires careful planning. To facilitate the
planning of your plant use one of the following configurations. The following table shows the
four recommended configurations:
26&OLHQWV
7HUPLQDOEXV
266HUYHU 266HUYHU
VWDQGE\
3ODQWEXV
$6 $6
7HUPLQDOEXV
266HUYHU (QJLQHHULQJ
266HUYHU
VWDQGE\ 6WDWLRQ
3ODQWEXV
$6 $6
Note
In Windows domains the configurations for time synchronization vary depending on the
hierarchy depth of the domain structure. Consequently recommendations 3 and 4 are again
differentiated according to different hierarchy depth. Configuration of time synchronization is
shown in the following sections:
- "Configuration of time synchronization with central time master in a Windows domain with a
hierarchy"
- "Configuration of time synchronization without central time master in a Windows domain
with multiple hierarchies"
Note
For high-precision time stamping we recommend using SICLOCK TM with DCF 77 or GPS
for the plant bus and the domain controller. If the SICLOCK TM fails, a uniform time is
ensured. The precision in this case no longer satisfies the requirements for high-precision
time stamping; the consistency of the time information however remains intact.
See also
Configuration of time synchronization with central time master in a Windows domain with a
hierarchy (Page 44)
Configuration of the time synchronization in a Windows domain with multiple hierarchies
(Page 46)
2.2.1 Configuration of time synchronization with central time master in a work group
Configuration
The following figure schematically shows the recommended configuration of time
synchronization of a work group with central time master:
26&OLHQWV
7HUPLQDOEXV
266HUYHU 266HUYHU
&3 &3
VWDQGE\
3ODQWEXV
*36'(& 6,&/2&.
$6 $6
Time master: Central plant clock SICLOCK TM/TS on the plant bus
● Time synchronization on the plant bus
– Time master
Time master is the SICLOCK TM/TS connected to the plant bus as central plant clock.
It sends a high-precision broadcast time signal on the plant bus.
– Time source
SICLOCK TM/TS synchronizes itself via an external clock, e,g, DFC 77 radio receiver
or a GPS receiver module.
– All AS's are configured as time slaves.
– The OS servers are configured as so-called cooperative masters. If the SICLOCK no
longer sends a time signal, then an OS server becomes active time master and then
sends time signals itself on the plant bus, as a replacement.
● Time synchronization on the terminal bus
– The time signal received from the plant bus takes over WinCC time synchronization at
runtime of a PCS 7 project and sets the system time of the other OS servers.
– The OS clients are likewise configured as time slaves and receive their time signal
from the OS server.
Configuration steps
The following table shows the configuration steps that are necessary for the configuration
described above, and the chapters of this documentation where the steps are described:
OS clients
2.2.2 Configuration of time synchronization without central time master in a work group
Configuration
The following figure schematically shows the recommended configuration of a PCS 7 plant
with time synchronization in a work group without central time master:
26&OLHQWV
7HUPLQDOEXV
266HUYHU 266HUYHU
VWDQGE\
3ODQWEXV
$6 $6
Configuration steps
The following table shows the configuration steps that are necessary for the configuration
described above, and the chapters of this documentation where the steps are described:
OS clients
Note
This manual describes only time synchronization with PCS 7 V7.0 SP1. Contact Customer
Support if you wish to use V5-compatible mode.
Configuration
The following figure schematically shows the recommended configuration of a PCS 7 plant in
a Windows domain with central time master:
'&
3'&HPXODWRU '& 26FOLHQWV %$7&+VWDWLRQ
&20SRUW
*36'(& 6,&/2&.
7HUPLQDOEXV
26VWDQGE\ (QJLQHHULQJ
26VHUYHU
VHUYHU 6WDWLRQ
3ODQWEXV
$6 $6
Time master: Plant central clock SICLOCK TM/TS on the plant bus and on the domain
controller
● Time synchronization on the terminal bus
– Active time master:
The time master is the domain controller (DC), which is configured as the master of
the overall structure and/or the PDC emulator (usually the first installed domain
controller).
– Time source
The domain controller receives the time via a serial cable from the central plant clock
SICLOCK TM/TS. The DCF 77 reception service that will be installed synchronizes
this domain controller with the central plant clock.
– All additional plant PCs automatically become time slaves of the domain controller due
to their membership in the domain (PDC emulator).
– The Windows time service, also known as W32Time, synchronizes the date and time
of all computers in a Windows domain. Since Windows internal time synchronization is
only synchronized every eight hours, the OS servers are additionally configured as
time slaves of the domain controller (PDC emulator) via the WinCC time
synchronization. PDC emulator is an operation master role of a PC. The PC with this
role synchronizes the members of the domain every 8 hours.
Note
You can find additional information about the Windows time service (W32Tm) at the
following addresses:
http://www.microsoft.com/germany/technet/prodtechnol/windowsserver/technologies/f
eatured/ad/active-directory-betriebshandbuch-02.mspx
http://technet2.microsoft.com/windowsserver/en/library/a0fcd250-e5f7-41b3-b0e8-
240f8236e2101033.mspx
Note
You can learn about the procedure for configuring an authorized time server in
Windows Server 2003 in the corresponding Microsoft literature at the following
addresses:
German: http://support.microsoft.com/kb/816042/de
English: http://support.microsoft.com/kb/816042/EN-US
Configuration steps
The following table shows the configuration steps that are necessary for the configuration
described above, and the chapters of this documentation where the steps are described:
DC
3 Parameter assignment for • "How to set time synchronization on
OS clients an OS in a domain with central time
master."
OS clients
4 Parameter assignment for • "How to set time synchronization on a
PCs without WinCC time BATCH station."
synchronization via DCF 77 • "How to set time synchronization on a
PC e.g. BATCH Route Control station."
• "How to set time synchronization on
the engineering station."
5 Parameter assignment for • "How to set time synchronization on
OS servers as cooperative an OS in a domain with central time
OS server time masters master."
Configuration
The following figure schematically shows the recommended configuration of a PCS 7 plant
with time synchronization without central time master in a domain.
'&
3'&(PXODWRU '& 26&OLHQWV %$7&+6WDWLRQ
7HUPLQDOEXV
266HUYHU (QJLQHHULQJ
266HUYHU
VWDQGE\ 6WDWLRQ
3ODQWEXV
$6 $6
● Time master: Domain controller (DC) with PDC emulator operation master role
● Time synchronization on the terminal bus
– Time master
Time master is the domain controller with PDC emulator operation master role.
– Time source
The domain controller receives the time via the NTP time server, which in turn
receives the precise time via an DCF 77 receiver or GPS module.
– Passive time master
If the authenticating domain controller (PDC operation master) fails, another domain
controller automatically takes over the time synchronization within the network.
– Time slaves
All additional plant PCs are time slaves of the domain controller due to their
membership in the domain.
– PCS 7 PCs that do not have WinCC time synchronization, for example BATCH PC or
engineering station, are synchronized via an additionally installed DCF 77 reception
service. As time master one of the domain controllers or an OS server is possible
here.
Note
The procedure for configuring the domain controllers as time masters is described in
the appropriate Microsoft literature at the addresses:
German: http://support.microsoft.com/kb/816042/de
English: http://support.microsoft.com/kb/816042/EN-US
Configuration steps
The following table shows the configuration steps that are necessary for the configuration
described above, and the chapters of this documentation where the steps are described:
DC
2 Parameter assignment for • "How to set time
PCs without WinCC time synchronization on a BATCH
synchronization via DCF 77 station."
• "How to set time
PC synchronization on a Route
Control station."
• "How to set time
synchronization on the
engineering station."
3 Parameter assignment for • "How to set time
OS servers as cooperative synchronization on an OS in a
time masters work group with central time
OS server master."
4 Assigning parameters for • "How to set time
AS as time slaves synchronization on the AS".
AS
Sample configuration
The following figure shows a sample configuration for time synchronization in a Windows
domain with multiple hierarchies:
8QLW
'RPDLQ 8QLW
8QLW
*36'(& 6,&/2&.
&HQWUDOFORFN 8QLW
FDOHQGDU
'RPDLQ
'RPDLQ
5RRWGRPDLQ
VW+LHUDUFK\OHYHO QG+LHUDUFK\OHYHO UG+LHUDUFK\OHYHO
Rules
To avoid time jumps in a Windows domain with multiple hierarchies, comply with the
following rules when structuring the hierarchies:
1. In a domain with multiple hierarchies ensure that the same structures are found on the
same levels. Thus you will avoid undesired time differences. Additional information is
available in the sections "Time levels of a PCS 7 system" and "PCS 7 plant taking strata
into account".
2. Only form one hierarchy level under the root domain. If additional domains are necessary,
then arrange these domains on the same hierarchy level as the existing sub-domains.
Time master Possible time Bus Time master Forwards the time Conditions
sources forwards the time to... to ...
OS server - RTC Terminal bus OS clients -
- GPS Plant bus CP of the OS servers that are AS slaves -
- DCF 77 active time masters
SICLOCK TM / TS - GPS Terminal bus Domain controller Terminal bus with -
- DCF 77 OS clients
Plant bus OS server - -
AS slaves
Components
To synchronize the time of your plant it is necessary to configure all nodes for the time
synchronization To do this configure the following components depending on configuration:
● Time receivers
You configure the external time receiver when you no longer synchronize the time with an
internal timer.
● Operator station
Configure the OS server(s) and the OS clients.
● Coupling modules
Configure the CPs for time synchronization.
● Automation system
You configure the CPU and the CPs CPs 443-1, 443-5 Extended of the AS
● Additional plant components
The following components should be included in the time synchronization as needed:
– SIMATIC BATCH
– SIMATIC Route Control
– SIMATIC BOX
– SIMATIC IT
– Engineering station
Introduction
The central plant clock is the core piece for time synchronization of plants. It manages the
time centrally for the entire plant and synchronizes all other plant components via their
interfaces.
The following table shows which central plant clocks are offered by the SICLOCK system:
Set the parameters as described in the SICLOCK documentation so that the SICLOCK
correctly synchronizes the time of your plant.
Configuration steps
The following table shows the configuration steps that are necessary to use the SICLOCK for
time synchronization of a PCS 7 plant:
Note
The parameters of the SICLOCK TM are pre-set as standard as described above. If the
parameters have not been changed then the settings described above are not necessary.
In this case check whether the parameter settings are correct.
Please note the following:
• The complete configuration settings of the SICLOCK TM are provided in the
documentation of the SICLOCK TM.
• If you want to use a different central plant clock, set the parameters of this clock
according to the settings for the SICLOCK TM.
• The SICLOCK TM supports a maximum of 50 NTP requests per second.
Note
To activate the NTP server on SICLOCK TM/TS assign parameters for SICLOCK TM/TS
in addition to the normal network operation as follows:
1. In the parameter 343/6A "IP Source Addr." in the menu 6A assign the device an IP
address.
2. Set the parameters 344/6A "Subnet mask" and possibly 345/6A "Default gateway" in
the menu 6A in accordance with the IP network.
3. In the menu 6F set the parameter 550/6F "SNTP Server" = "any/unicast".
Note
A change of the parameters in the network menu 6A ...6F is only possible if network
operation of the device is temporarily switched off. First set the parameter 338/6A
"Ethernet" = off. After you have set the parameters, switch network operation on again
(parameter 338/6A "Ethernet" = on or synchronized).
Introduction
The DCF 77 signal of the Federal Institute in Mainflingen near Frankfurt sends the official
valid time for the Federal Republic of Germany per wireless signal. In order to receive this
wireless signal and to use it for time synchronization of your plant, connect a DCF 77
receiver and install the supplied "DCF77 Reception Service for Windows" software on a PC
or PC-based system.
The following figure shows the components of a DCF 77 receiver:
WinCC uses the system time specified by the received wireless signal.
Configuration steps
The following table shows the steps that are necessary for configuring the DCF 77 radio
clock.
Note
If you do not get clear reception then note the following rules:
• Maintain as great a distance as possible between the receiver and PC, monitors, laser
printers, motors, motorized drives, or similar sources of interference.
• Keep the receiver away from metal surfaces and steel-reinforced concrete.
Note
Additional instructions for connection and optimal alignment of the receiver are provided
in the operating instructions supplied with the DCF 77 receiver.
2. Enter the COM interface on which the external DFC 77 receiver is connected. Default:
COM2
3. Set the signal form prescribed by the card manufacturer.
Example: DCF77 demodulated
4. Select the following check boxes in the "Event Protocol" area:
– Time comparisons
– Each valid time message frame
– Changes in signal quality
Introduction
The DFC 77 radio clock signal is limited to a range of 800 km from Frankfurt am Main. In
regions where the DCF 77 radio signal is not received, use of a GPS receiver is
recommended. The GPS receiver determines the UTC via the satellite-based GPS system
(Global Positioning system). Due to the country-specific installation of Windows on the OS
the sent UTC is converted to the time valid in the respective country. For reception of the
precise time reception of the signal from one of the 24 satellites suffices. With the GPS
module the global use of SIMATIC PCS 7 is also possible with inter-plant time
synchronization.
The following figure shows the GPS receiver using GPSDEC or synchronizing the central
plant clock, SICLOCK TM.
Wiring
The following figure shows how the GPS decoder is connected to the SICLOCK TM:
6,&/2&.70 *36'(&
'&)77<
;
Configuration steps
The GPS satellite receiver is delivered with the "DCF77 reception service" software. The
following table shows the steps that are necessary for configuring the GPS.
Note
Do not mount the antenna at locations that are in danger of lightning strike.
If not otherwise possible attach the antenna to the interior of high windows.
See also
Configuring DCF 77 reception service for Windows (Page 53)
4.3.1 Configuring time synchronization for separate plant buses with a single
SICLOCK TM/TS
Introduction
To ensure time synchronization also for separate plant networks, only the time message
frame of the SICLOCK TM/TS is forwarded on to the different plant busses. For this purpose
use a switch with port lock function, e.g. the SCALANCE X414-3E. The port lock function
suppresses the bidirectional communication between separate plant busses.
3RUW/RFNGLVDEOHG 3RUW/RFNHQDEOHG
)RUZDUG6,0$7,&WLPHGLDJUDPVWRDOOSRUWV %ORFNSHHUWRSHHUFRPPXQLFDWLRQ
3ODQW
3ODQW
*36'(& 6,&/2&.70 260
3ODQW
Step sequence of the configuration: Connect SICLOCK TM/TS to a switch with port lock function
1. Assign separate ports to the plant busses in the switch configuration.
2. Select "enable lock" for the ports.
3. Assign a MAC address to the SICLOCK TM/TS.
4. Connect the SICLOCK TM/TS to the switch.
5. Assign parameters for the synchronization message frame of the SICLOCK TM/TS.
6. Check to ensure that only the SICLOCK TM/TS is shown in the forwarding table. If
additional entries are present wait until the ageing time of 40 seconds elapses. After this
period elapses the entries are deleted.
7. Connect the plant busses to the switch.
8. Check to ensure that only the SICLOCK TM/TS is shown in the forwarding table. If
addresses from the plant busses are displayed then correct the port configuration.
Parameter Value
341/6A "Source addr. part 0" <MAC address>
342/6A "Source addr. part 1" <MAC address>
339/6A "LAN connection"
350/6B "Addr. 1 protocol" "Layer 2 - S5"
351/6B "Send addr. 1" "Each second"
353/6B "Addr. 1 dest. 0" "FFFFFF"
354/6B "Addr. 1 dest. 1" "FFFFFF"
338/6A "Ethernet" "On" or "synchronized"
Router
To ensure time synchronization for multiple plants with autonomous timer as well, the time
message frame should not be forwarded to other plants. For this block the port for the time
message frame. Additional information on blocking ports is provided in the documentation for
the router.
Configuration steps
The following table shows the configuration steps that are necessary for configuring the time
synchronization on the operator station:
OS clients
4.4.2 How to set time synchronization on an OS in a domain with central time master
Basic configuration
'&
3'&HPXODWRU '& 26FOLHQWV %$7&+VWDWLRQ
&20SRUW
*36'(& 6,&/2&.
7HUPLQDOEXV
26VWDQGE\ (QJLQHHULQJ
26VHUYHU
VHUYHU 6WDWLRQ
3ODQWEXV
$6 $6
Requirement
● All operator stations must be installed in one domain.
● SICLOCK TM/TS is connected to the domain controller and plant bus.
● For the CP of the OS server the "Time tracking" option is selected in NetPro. The CP
saves the time of the external clock.
● The OS server is equipped with a CP 1613 (more than 8 AS or high-availability AS) or
BCE (up to 8 AS).
● All AS are configured as time slaves (exception: CPU 416-3 PN/DP, CPU 414-3 PN/DP)
6. In the "Computer 1" text box, enter the first domain controller (DC1) and enter the
redundant domain controller (DC2) in the "Computer 2" text box.
7. Select the check box "Synchronization via plant bus (master/slave)".
Thus all associated check boxes and drop-down list boxes are available for selection.
8. Select the check box "Display symbolic names of the access points". This will display the
communication modules of the OS server with symbolic names, if they are not available
on the ES.
9. Select the required CP from the "Access point 1" drop-down list box. The list shows all
devices installed on the computer or the symbolic names that are suitable for time
synchronization.
10.Select the "Master" check box.
11.If you are using a redundant CP, select the required CP for "Access point 2" and click the
check box "Master" (default setting).
This defines the OS server as time master.
12.Click "OK" to save your entries.
5. Open the "Options" tab and select the "Time-of-day mode" check box.
6. Click "OK".
Note
Comply with the following instructions for the time synchronization settings on the OS:
• We recommend assigning parameters to all OS servers as time master.
• If you have configured on an engineering station, select the check box "Use symbolic
names". If this check box is not selected, only those installed cards of the ES will be
displayed that are not naturally present on the OS. Symbolic names on the other hand
are converted in runtime on the OS.
• To synchronize the time via the plant bus, configure a device via "Access point 1". In
the following cases configure a second device via "Access point 2".
– If you want to use a redundant device.
– If you want to synchronize two plant busses via one "bridge".
– If you want to synchronize two plant busses as master concurrently.
Note
OS server in a domain
Before you set the time synchronization parameters for a PCS 7 system in a Windows
domain, create a detailed plan of your network structure. This plan must contain all the
relevant information for time synchronization:
• Which computer is the domain controller?
• Which computers belong to the domain and receive the time from the domain
controller?
• Which computers do not belong to the domain and where do they obtain their time
from?
• Which computers are time masters and which are time slaves?
4.4.3 How to set time synchronization on an OS in a domain without central time master
Basic configuration
'&
3'&(PXODWRU '& 26&OLHQWV %$7&+6WDWLRQ
7HUPLQDOEXV
266HUYHU (QJLQHHULQJ
266HUYHU
VWDQGE\ 6WDWLRQ
3ODQWEXV
$6 $6
Requirement
● All AS must be configured as time slaves.
● An NTP time server must be connected.
● The domain controller must be configured as the time master of the overall structure.
3. Select the "Accept time from permanently defined computer" check box and click the
domain controller "Computer 1" that is parameter assigned as time master.
4. For "Computer2" select an additional domain controller as passive time master if desired.
5. Select the "Synchronization via plant bus (master, slave)" check box.
6. Select the check box "Display symbolic names of the access points". This will display the
communication modules of the OS server with symbolic names, if they are not available
on the ES.
7. Select the CP under "Access point 1" for time synchronization parameters have been
assigned, and select the "Master" check box. If you use a redundant CP, select the
required CP for "Access point 2" and select the "Master" check box (default setting).
6. Click "OK".
Result
The coupling module will now receive and send time message frames. The OS servers are
cooperative time masters. If a CP1613 does not receive a time signal, WinCC time
synchronization switches to master mode. It will then send time signals for the failed time
master as replacement.
Note
The AS can only be synchronized if at least one OS server is activated.
Instructions for configuring the domain controller are described in the Microsoft literature:
"Configuring an authorized time server in Windows Server 2003" at the Internet Address
http://support.microsoft.com/kb/816042/de
CAUTION
If a time time jump of more than 5 seconds takes place on the OS server in the UTC, then
the OS server configured as time master will no longer be used as time master. In addition
the I&C system message "Time synchronization has been permanently deactivated" will be
output.
Note that also after a restart this server is no longer defined as time master. Reconfigure
the OS server as time master and load the configuration on the OS server.
4.4.4 How to set time synchronization on an OS in a work group with central time master
Basic configuration
26&OLHQWV
7HUPLQDOEXV
266HUYHU 266HUYHU
&3 &3
VWDQGE\
3ODQWEXV
*36'(& 6,&/2&.
$6 $6
Requirement
● In the configuration console for the CP of the OS server the option "Time tracking" must
be selected.
● All AS are configured as time slaves (exception: CPU 416-3 PN/DP and CPU 414-3
PN/DP).
● The OS server is equipped with a CP1613 or with a BCE network card.
4. Select the "Synchronization via plant bus (master, slave)" check box.
5. From the "Access point 1" drop-down list box select the CP for which you have clicked
time synchronization in the configuration console. The list shows all devices installed on
the computer that are suitable for time synchronization.
6. Select the "Master" option button.
7. If you use a redundant CP, select the required CP under "Access point 2",
8. Select the "Master" option button.
9. Click "OK".
4.4.5 How to set time synchronization on an OS in a work group without central master
Basic configuration
26&OLHQWV
7HUPLQDOEXV
266HUYHU 266HUYHU
VWDQGE\
3ODQWEXV
$6 $6
Requirement
● OS server must be time master on the plant bus
● All AS must be configured as time slaves
● Restriction: CPU 416-3- PN/DP and CPU 414-3 PN/DP cannot be used in this
configuration (synchronization lacking).
6. Select "CP1613" as access point 1 and click the "Master" check box.
7. Select "<none>" as access point 2.
8. Select "Every 5 minutes" for triggering the I&C system message.
9. Click "OK".
Result
The coupling module can now send and receive time messages. The OS servers are
cooperative time masters. If a CP1613 does not receive a time signal on the plant bus,
WinCC time synchronization switches to master mode. It will then send time signals for the
failed time master as replacement.
CAUTION
If a time jump of more than 5 seconds occurs, the computer defined as the time master
becomes a time slave. The message "Time synchronization has been permanently
switched to slave" is generated.
Note that also after a restart this computer is no longer defined as time master. Reconfigure
the computer as time master and load the configuration on the computer.
4.4.6 How to set the OS server for reception of time service via DCF77RS
Requirement
● In the Control Panel the COM interface must be set for the DCF 77 receiver.
● The extended FIFO setting must be switched off.
● The DCF 77 reception service must be installed, parameters must have been assigned,
and it must have been started.
You can find additional information about installing the DCF 77 reception service in the
section "Configuring DCF 77 reception service for Windows."
Procedure
To set the OS server for reception of the time service via DCF 77, proceed as follows:
1. Open the OS server.
2. Select the "Time synchronization" editor from the tree view of WinCC Explorer.
3. In the shortcut menu select the command "Open".
The dialog box "Time Synchronization" opens.
6. From the "Access point 1" list select the CP for which you have clicked time
synchronization in the configuration console.
Here all CP are displayed that are available in the OS server.
7. Select the "Master" option button.
8. If you use a redundant CP, select the required CP for "Access point 2",
9. Select the "Master" option button.
10.Click "OK".
See also
Configuring DCF 77 reception service for Windows (Page 53)
Requirement
● An AS with one of the CP 443-1, 443-5 Extended capable of time synchronization is
used.
● A CPU capable of time synchronization is used for the SIMATIC mode.
● Time master is an external time sender
Result
The AS is configured as time slave for time synchronization.
Note
These settings are in the "Options" tab under "Switch on time synchronization" for older
CP443-1 (<EX11).
6. Click "OK".
If you have multiple stations repeat this procedure for each CP.
Result
The communications processor uses the SIMATIC mode for time synchronization.
5. Go to the tab "Mode" and select the "DP master" option button.
6. Go to the "Options" tab and select the option button "From station to LAN" in the area
"Time synchronization" "Forward time message frames".
7. Click "OK".
Result
The time message frames of the time master will be forwarded to the AS on the plant bus.
Note
Please note the following:
• The CPUs 414-3 PN/DP (6ES7416-3ER05-0AB0) and 416-3 PN/DP (6ES7414-3EM05-
0AB0) can only be synchronized using the NTP mode. We recommend a SICLOCK TM
that supports a maximum of 50 NTP requests as external clock.
These CPUs can only be used in PCS 7 configurations with a plant bus and a terminal
bus (see section "How to set time synchronization on an AS for NTP mode").
• For all other CPUs we recommend that you continue to use the SIMATIC mode.
See also
How to set time synchronization on an AS for NTP mode (Page 90)
Requirement
● A CPU 416-3 PN/DP or a CPU 414-3 PN/DP are used.
Result
The AS is configured as time master for time synchronization.
Setting PN IO
To configure the PN IO interface for time synchronization, proceed as follows:
1. Open the project in SIMATIC Manager.
2. Select the station that will be synchronized.
3. Open the configuration of the hardware.
4. Select the PN IO interface and select the "Object Properties" command in the "Edit"
menu.
5. Open the "Time synchronization" tab and select the check box "Enable time-of-day
synchronization in NTP mode" in the "NTP Mode" area.
Result
The PN IO interface is used for time synchronization for the NTP mode.
Configuration steps
Use SIMATIC BATCH to plan, control, and log batch processes. Time synchronization of the
complete plant is particularly important for these processes. SIMATIC BATCH runs alone or
together with the operator station on a PC. The following table shows which configuration
steps are necessary to synchronize the processes from SIMATIC BATCH:
Introduction
If SIMATIC BATCH is running on a PCS 7 PC that does not have WinCC time
synchronization, this PC will be synchronized via the "DCF 77 Client" software to be
installed. You will find the DCF 77 client on the toolset DVD in the "Additional Products"
folder.
Requirement
● The DCF77 client must be installed.
Additional information on installing the DCF 77 installation client is available in the section
"Configuring DCF 77 reception service".
Procedure
To configure time synchronization on a SIMATIC BATCH station, proceed as follows:
1. Open the DCF 77 reception service from the menu "Start > Settings > Control Panel".
3. Click "OK".
Procedure
If SIMATIC BATCH is installed on the operator station, it will be synchronized via the WinCC
time synchronization.
See also
Configuring the time synchronization of the OS (Page 62)
Configuration steps
Time synchronization of the complete plant is particularly important for SIMATIC Route
Control processes. SIMATIC Route Control runs alone or together with the operator station
on a PC. The following table shows which configuration steps are necessary to synchronize
the processes of SIMATIC Route Control:
Introduction
If SIMATIC Route Control is running on a PCS 7 PC that does not have WinCC time
synchronization, this PC will be synchronized via the "DCF 77 Client" software to be
installed. You can find the "DCF 77 Client" software on the toolset DVD in the "Additional
Products" folder.
Requirement
● The DCF 77 client must be installed.
Additional information on installation of the DCF 77 client is provided in the section
"Configuring DCF 77 reception service.
Procedure
To configure time synchronization for the Route Control station, proceed as follows:
1. Open the DCF 77 reception service from the menu "Start > Settings > Control Panel".
3. Click "OK".
Procedure
If SIMATIC Route Control is installed on the operator station, it will be synchronized via the
WinCC time synchronization. The procedure for this is described in the section "Configuring
time synchronization of the OS".
See also
Configuring the time synchronization of the OS (Page 62)
Introduction
A connected clock is not provided for PCS 7 Box as a standalone system and with swapped
out engineering. The time is only synchronized with WinCC from the PC clock. The following
procedure refers to the time synchronization of the SIMATIC BOX in the PCS 7 network.
Requirement
● A time master such as SICLOCK TM must be integrated in the plant bus.
● The on-board Ethernet network interface of the SIMATIC PCS 7 BOX station must be
connected to the plant bus of the PCS 7 system. This interface card must be capable of
processing the time signal of the time master.
● WinAC must be installed.
● In HW Config, "As slave" must be set as the synchronization mode for the time
synchronization in the AS.
Procedure
To synchronize the time of the AS via the plant bus, proceed as follows:
1. In the menu "Start > SIMATIC > PC Based Control" select the command "WinAC time
synchronization".
For SIMATIC PCS 7 BOX 416 the dialog box "CPU 41x-2 PCI time synchronization" is
opened.
For SIMATIC PCS 7 BOX RTX the dialog box "WinLC time synchronization" is opened.
2. In the "Settings" group under "Source", click "CP".
3. Click "Select".
4. In the subsequently displayed "Set PG/PC Interface" dialog box, select the interface
connected to the plant bus under the "Interface Parameter Assignment in the PG/PC"
group.
5. Then, click "OK" to close the dialog box.
6. Click "OK" to confirm the displayed message.
7. Click "Start" to start the time synchronization.
8. Click "Close" to close the dialog box.
Requirement
● A time master such as SICLOCK TM must be integrated in the plant bus.
● The WinCC project on the ES in the PCS 7 network must be opened.
Procedure
To synchronize the time of the OS via the plant bus, proceed as follows:
1. Open the editor "Time synchronization" in WinCC.
2. Select the "Synchronization via the plant bus (master, slave)" check box.
3. Select the check box "Display symbolic names of the access points".
4. Under "Access point 1" select "<Softnet(1)>" via which the time will be synchronized on
the plant bus. Select the "Slave" option button because SICLOCK TM is time master.
5. Click "OK."
Introduction
The PCS 7 Engineering Station does not have WinCC time synchronization. It is
synchronized via the "DCF 77 Client" software that also must be installed. Thus correct
logging of messages is ensured. If time synchronization via DCF 77 fails, the ES in a domain
still receives a time signal every 8 hours via a connected domain controller.
Requirement
● The "DCF 77 Client" software must be installed.
You can find additional information about installing the "DCF 77 Client" software under
"Configuring DCF 77 reception service for Windows."
Procedure
To synchronize the time on the engineering station, proceed as follows:
1. Open the DCF 77 reception service from the menu "Start > Settings > Control Panel".
3. Click "OK".
4.10.1 How to configure time synchronization of OS servers with redundant CP 1613 and
an external clock
Introduction
The described configuration is based on redundant OS servers on a redundant plant bus.
Requirement
● Each of the two OS servers has two CP 1613.
● Timer is SICLOCK TM.
● WinCC is opened on one of the OS servers.
Procedure
To synchronize the time on a redundant OS with external clock, follow these steps:
1. In WinCC Explorer, select the menu command Editor > Time Synchronization > Open.
The "Time Synchronization" dialog box opens.
2. Select the "Synchronization via plant bus (master, slave)" check box.
3. From the "Access point 1" list select the CP for which you have clicked time
synchronization in the configuration console. The list shows all installed devices that are
suitable for time synchronization.
4. Select the "Master" option button.
This defines the OS server as time master.
5. For "Access point 2" select the required redundant CP and activate the "Master" option
button.
This specifies a redundant time synchronization which implements the connection to the
plant bus on failure of the first CP.
6. Click "OK" to save your entries.
4.10.2 How to configure time synchronization on a PCS 7 system with redundant bus
system
Configuration steps
The following table shows the configuration steps that are necessary to configure the time
synchronization for redundant buses:
Introduction
If you operate multiple plants in one corporate network, the plants should not receive any
time message frames from the corporate network.
Method
Connect the corporate network and the plants via a router. Configure the router in such a
manner that forwarding of time message frames is blocked.
Time zones
UTC, coordinated world time refers to the zero meridian which runs through Greenwich near
London. East of the zero meridian one or more hours is added depending on the distance of
the time zone to the world time measured in Greenwich. West of the zero meridian the
appropriate hours are subtracted. The following table shows the different time of the various
time zones:
Note
If you synchronize multiple plants with only one timer only the time message frame should be
transmitted to the plants. For this purpose use a switch with port lock function, e.g. the
SCALANCE X414-3E. Connect the clocks and the plants to the switch. If port lock is
selected, bidirectional communication is not possible. In this manner only the SIMATIC time
message frame is transmitted on the plant bus; no other data is transmitted on the plant bus.
To find additional information, use the following links:
● http://www.siemens-edm.de/siclock.0.html
● http://siemens-edm.de/fileadmin/Application_Notes/App_Notes_0002.pdf
//----------------------------------------------------------------------------
// This function reads time from a specified computer ("\\PcName").
// Don't forget that in string literals you must write it like"\\\\PcName".
//
// Result is a string of the format "dd:mm:yyyy hh:mm:ss.msc"
//
// Warning: If the specified computer is not reachable, the call to
// NetRemotetime hangs a few seconds and blocks scripting!
//----------------------------------------------------------------------------
BOOL GetTimeFromPC(const char* pszComputerName, char* pszResultBuffer, int
nResultBufferSize)
{
typedef struct _TIME_OF_DAY_INFO
{
DWORD time_elapsedt;
DWORD time_msecs;
DWORD time_hours;
DWORD time_mins;
DWORD time_secs;
DWORD time_hunds;
LONG time_timezone;
DWORD time_tinterval;
DWORD time_day;
DWORD time_month;
DWORD time_year;
DWORD time_weekday;
} TIME_OF_DAY_INFO;
memset(wszUncName, 0, sizeof(wszUncName));
MultiByteToWideChar(0, 0, pszComputerName, -1, wszUncName, MAX_COMPUTERNAME_LENGTH + 1);
if(0 == dwResult)
sprintf(szResult, "%02d.%02d.%04d %02d:%02d:%02d.%03d", ptimeInfo->time_day,
ptimeInfo->time_month, ptimeInfo->time_year, ptimeInfo->time_hours, ptimeInfo->time_mins,
ptimeInfo->time_secs, ptimeInfo->time_hunds * 10);
else
sprintf(szResult, "<error: %d>", dwResult);
if(ptimeInfo != NULL)
NetApiBufferFree(ptimeInfo);
CEDST
Central European Daylight Saving Time
CET
Central European Time
Clock, external
External clocks synchronize a plant with the aid of externally received time signals, e.g. the
radio signal DCF77 or the satellite based GPS signal.
DCF77
Radio reception of the atomic clock in Braunschweig for operation in central Europe
Domain controller
A domain controller is a server that regulates and manages the authentication and
authorization of the computers and users.
GMT
Greenwich Mean Time
GPS
Global Positioning System
Local time
The local time is actual time in the respective time zone.
Stratum, strata
A stratum is a hierarchy level within a structure of time servers. The stratum indicates the
following with a number:
● The distance from the time source
● Which time servers are located on the same hierarchy level
Time master
The time master is responsible for distributing the time signal within time synchronization. It
forwards the time signal to the PCS7 components that have been configured as time slaves.
The following time master types exist:
● Active time master
● Cooperative time master
● Passive time master
Time server
A time server is a server that receives a time synchronization time and/or forwards it.
Time slave
The time slaves are PCS 7 components that receive time signals from the time master and
thus set their own clock.
Time synchronization
With time synchronization data and time of all time-dependent components are unified by a
time master.
Domain N
Configuration, 36
NTP mode
Time synchronization, 30
SICLOCK, 52
Domain with central time master
Configuration, 41
Domains with multiple hierarchies
O
Configuration, 46
Organization
Documentation, 3
E OS
Converting to daylight saving time, 19
Engineering system
Converting to local time, 17
Configuring, 101
OS Client
External
Configuring, 66
Clocks, 27
OS client in work group with central time master
External synchronization
Configuring, 77
Avoiding, 105
OS in work group with central time master
Configuring, 75
OS server
G
Configuring for reception of time service, 81
GPS antenna OS server in domain
Aligning, 59 Configuring, 64
GPS receiver
Activating, 58
Installing, 58 P
PCS 7 plant
Structure, 23
I
Plant busses, separated
Installing Time synchronization, 33
DCF 77 receivers, 54 plants with autonomous internal clocks
GPS receiver, 58 Synchronizing, 107
Internal PN IO
Clocks, 27 Configuring, 91
Purpose
Documentation, 3
L
Local time, 15, 16
R
Redundancy, 104
M Time synchronization, 28, 32
Redundant OS servers with external timer
Multiple plants with an autonomous timer
Configuring, 103
Configuring, 61
Route Control
Configuring, 96
Route Control/operator station
Configuring, 97
Rules
Structure - PCS 7 plant, 25
Systems over multiple time zones, 106
S T
Script "GetTimeFromPC", 109 Target group
Selection Documentation, 4
Time master, 47 time
Separate plant busses Checking, 21
Configuring with SICLOCK TM/TS, 60 Time master, 26
Setting Selection, 47
Local time on the OS, 17 Time slave, 27
Setting the DCF 77 reception service, 56 Time synchronization
SICLOCK Applications, 11
NTP mode, 52 Definition, 13
SIMATIC mode, 51 in domain, 30
SICLOCK GPS, 57 in the work group, 31
Wiring, 58 On separated plant busses, 33
SICLOCK TM, 50 Redundancy, 28, 32
SIMATIC BATCH V5, 14
Configuring, 93 Time synchronization without central time master
SIMATIC BATCH/operator station Configuration, 44
Configuring, 94
SIMATIC BOX
Configuring, 98 V
SIMATIC mode
V5
SICLOCK, 51
Time synchronization, 14
Skills, required, 4
Validity, 4
Standard time, 15
Stratum
Definition, 24
W
Structure
PCS 7 plant, 23 Wiring
Structure - PCS 7 plant SICLOCK GPS, 58
Rules, 25 Work group
Synchronizing Configuration, 35
Synchronizing multiple systems with autonomous Time synchronization, 31
internal clocks, 107 Work group with central time master
Systems over multiple time zones Configuration, 37
Rules, 106 Work group without central time master
Configuration, 39