show the entry list
Industrial Ethernet S7-300/400 CPs -- Setting up and parameterizing hardware -- Synchronizing time
Time synchronization - Time synchronization in the automation environment
How do you configure the SIMATIC S7-300 as time master or time slave for time-of-day synchronization via Industrial Ethernet in SIMATIC mode?
How do you configure time synchronization?
Where can you find information on the Siclock system?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
How can you calculate the actual local time (summer time or winter time) in the S7-300/400 CPU and then use it on the panel as system time?
How do you configure the SIMATIC S7-400 as time master or time slave for time-of-day synchronization via Industrial Ethernet in SIMATIC mode?
How do you configure a PC as NTP server?
Why can't you use the IEEE Standard 1588 for synchronizing SIMATIC controllers?
Industrial Ethernet S7-300/400 CPs -- Product information -- System description (protocols)
How are the communication resources assigned in the S7-300?
How do you load the 3D, CAx and ePLAN data for the SIMATIC products?
What are the differences between OPEN MODBUS / TCP Redundant V1 and OPEN MODBUS / TCP Redundant V2?
What should you watch out for when you enable the "SNMP" function in the configuration of the security module?
Which security modules support the DNS function?
What should you watch out for when enabling and using the security functions of CP343-1 Advanced and CP443-1 Advanced?
What should you watch out for when upgrading from previous modules to the successor module CP443-1 or CP443-1 Advanced?
How do you verify the authenticity of the Siemens modules CP343-1 and CP443-1?
What should you watch out for when operating a port of CP343-1, 6GK7343-1CX10-0XE0 and 6GK7343-1EX30-0XE0 with firmware V2.1 or higher, with 10 Mbit/s half duplex?
Which IO controllers and IO devices support the following functions: IRT, prioritized startup, MRP, PROFIenergy, Shared device, I device and clock-synchronized mode?
Where do you procure the firmware extension for the CP 343-1 ERPC for database connection?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which modules can you use when implementing software redundancy?
Which types of connection/protocols do the S7-300/400 CPUs and the CPs support by default?
Which PROFINET nodes support automatic commissioning (device replacement without interchangeable medium) in the case of topological configuration and device replacement without topological configuration?
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
Using C-PLUG with network components and SIMATIC CPs
What properties have the communication services and protocols that can be used in the Industrial Ethernet network?
Behavior of the communication processors during data transfer via TCP connections without RFC 1006
What should you watch out for with the ICMP Redirect (Internet control message protocol) function regarding the IP address of the router used for Industrial Ethernet CPs?
What should you pay attention to with the autonegotiation function for negotiating the LAN mode in Industrial Ethernet CPs?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
Which modules support the S7 routing function?
In the case of open TCP/IP communication via Industrial Ethernet using T blocks with IE CPs and CPUs, why are different amounts of messages sent when the maximum length of 1452 bytes of user data is transferred?
What properties, advantages and special features does the ISO protocol offer?
What properties, advantages and special features does the UDP protocol offer?
What properties, advantages and special features does the ISO-on-TCP protocol offer?
What properties, advantages and special features does the S7 protocol offer?
What properties, advantages and special features does the TCP protocol offer?
What are the requirements for disabling the PROFINET CBA interface for CP443-1EX40?
"Time Wait" with TCP connection setup
What are the different data block lengths for the various protocols of Send/Receive communication?
What is RFC1006 and what do I need this service for?
Meaning and function of the "Keep Alive" in TCP connections
S7-300 CPU 31x -- Product information -- Background and system information
What is the emergency address (emergency IP) of a CPU and when is this enabled or disabled?
All-round protection with Industrial Security - System Integrity
What are the differences between OPEN MODBUS / TCP Redundant V1 and OPEN MODBUS / TCP Redundant V2?
What is the difference between "normal routing" and data record routing?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which manufacturer ID, in other words OUI (Organizationally Unique Identifier), does SIEMENS AG use for the MAC addresses of network-compatible devices?
What should you watch out for when using the alarm numbering procedure?
Which IO controllers and IO devices support the following functions: IRT, prioritized startup, MRP, PROFIenergy, Shared device, I device and clock-synchronized mode?
What is the maximum number of parameters that can be assigned to an FC and FB in the S7-300 CPU?
Which types of connection/protocols do the S7-300/400 CPUs and the CPs support by default?
Which PROFINET nodes support automatic commissioning (device replacement without interchangeable medium) in the case of topological configuration and device replacement without topological configuration?
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
Why is only a warm start available for S7-300?
Which SIMATIC S7 modules support the "Direct Data Exchange" function (internode communication)?
Which entries deal with consistent data in conjunction with distributed I/O?
What properties, advantages and special features does the S7 Basis Communication offer?
What properties, advantages and special features does the global data communication offer?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
Which modules support the S7 routing function?
How can you obtain an overview of the memory concept of SIMATIC S7-300 CPUs and C7 devices?
Retentivity behavior of S7-300 CPU 31x and complete devices C7-6xx with MMC
Status of the run-time meter after overall reset
Why does the retentivity behavior of the S7-300 CPUs and C7 devices without MMC (Micro Memory Card) influence the contents of the variables?
Local data addressing with S7-300 / S7 400
S7 300 run-time meter doesn't give any value
S7-400 CPU 41x -- Product information -- Background and system information
All-round protection with Industrial Security - System Integrity
What are the differences between OPEN MODBUS / TCP Redundant V1 and OPEN MODBUS / TCP Redundant V2?
What is the difference between "normal routing" and data record routing?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which manufacturer ID, in other words OUI (Organizationally Unique Identifier), does SIEMENS AG use for the MAC addresses of network-compatible devices?
What should you watch out for when adding components or changing their parameters using CiR (Configuration in Run)?
Which IO controllers and IO devices support the following functions: IRT, prioritized startup, MRP, PROFIenergy, Shared device, I device and clock-synchronized mode?
Which types of connection/protocols do the S7-300/400 CPUs and the CPs support by default?
Which PROFINET nodes support automatic commissioning (device replacement without interchangeable medium) in the case of topological configuration and device replacement without topological configuration?
Behavior of the CPU after power off without back-up battery
I/O addressing with DP slaves
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
What is the difference between a restart (warm restart), cold restart and hot restart of a S7-400 CPU?
Which SIMATIC S7 modules support the "Direct Data Exchange" function (internode communication)?
What properties, advantages and special features does the S7 Basis Communication offer?
What properties, advantages and special features does the global data communication offer?
Which entries deal with consistent data in conjunction with distributed I/O?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
Which modules support the S7 routing function?
CPU does not work in RUN
What does "Correction factor" mean in the "Diagnostics/Clock" tab of the CPU's Properties dialog?
What is multicomputing mode and what are the differences to operating in the segmented subrack?
Differing information on the requirement of offline/ online memory
How can I get an overview of the S7-400 memory concept?
ET 200S (standard modules) -- Product information -- System description
Which modules of the Siemens portfolio support PROFIenergy functions?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which hardware and software components do you need to establish communication between SIMATIC S7 stations and third-party devices using the MODBUS RTU protocol?
Which memory cards are used in the interface modules in the ET 200 with CPU functionality?
Which manufacturer ID, in other words OUI (Organizationally Unique Identifier), does SIEMENS AG use for the MAC addresses of network-compatible devices?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
Which IO controllers and IO devices support the following functions: IRT, prioritized startup, MRP, PROFIenergy, Shared device, I device and clock-synchronized mode?
Which PROFINET nodes support automatic commissioning (device replacement without interchangeable medium) in the case of topological configuration and device replacement without topological configuration?
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
Backing up the IM 151/CPU data on Micro Memory Card
What is the meaning of the terms "sinking" (German: "P-schaltend") and "sourcing" (German: "M-schaltend") in digital modules of SIMATIC?
H Technology CPU 41x -- Product information on H technology -- Technical data
Where do you find the latest updates of the operating systems of S7-41x CPUs?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
How is the Y link structured?
Can you perform an operating system update when an H system is in operation?
Redundant I/Os with S7-400H systems
S7-400H CPU -- Operating restrictions
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Part number:

Introduction
The NTP (network time protocol) is a general mode for synchronizing system clocks in local and global networks. The NTP mode differs fundamentally from most other protocols. NTP synchronizes not just all sorts of clocks with each other but also establishes a hierarchy of NTP time servers and NTP clients. A hierarchy level is called a "stratum", whereby "stratum 1" is the highest level. Time servers of this level synchronize themselves to a reference time source; these can be radio clocks, GPS receivers or modem time services. Stratum One Time Servers make their time available to multiple NTP clients in the network, which are designated as "stratum 2".

In the NTP mode, the CP transmits time-of-day queries (in client mode) to the NTP server in the subnet (LAN) at regular intervals. Taking the responses from the servers as a basis, the most reliable and most precise time-of-day is ascertained, and the time-of-day of the station is synchronized. The advantage of this mode is that it enables the time-of-day to be synchronized over and beyond subnet limits. The precision depends on the quality of the NTP server used.

SIMATIC S7-300 components with the time synchronization function using the NTP.
 
SIMATIC S7-300 Order number Firmware
CPU314C-2 PN/DP 6ES7314-6EH04-0AB0 V3.3
CPU315-2 PN/DP 6ES7315-2EH13-0AB0 V2.5
CPU315-2 PN/DP 6ES7315-2EH14-0AB0 V3.1
CPU315F-2 PN/DP 6ES7315-2FH13-0AB0 V2.5
CPU315F-2 PN/DP 6ES7315-2FJ14-0AB0 V3.1
CPU317-2 PN/DP 6ES7317-2EK13-0AB0 V2.5
CPU317-2 PN/DP 6ES7317-2EK14-0AB0 V3.1
CPU317F-2 PN/DP 6ES7317-2FK13-0AB0 V2.5
CPU317F-2 PN/DP 6ES7317-2FK14-0AB0 V3.1
CPU319-3 PN/DP 6ES7318-3EL00-0AB0 V2.4
CPU319-3 PN/DP 6ES7318-3EL01-0AB0 V3.2
CPU319F-3 PN/DP 6ES7318-3FL00-0AB0 V2.5
CPU319F-3 PN/DP 6ES7318-3FL01-0AB0 V3.2
CP343-1 6GK7343-1EX20-0XE01) V1.1
CP343-1 6GK7343-1EX21-0XE0 V1.0
CP343-1 6GK7343-1EX30-0XE0 V2.0
CP 343-1  IT 6GK7343-1GX11-0XE01) V2.0
CP343-1 IT 6GK7343-1GX20-0XE0 V1.0
CP343-1 Adv 6GK7343-1GX21-0XE0 V1.0
CP343-1 Adv 6GK7343-1GX30-0XE0 V1.0
CP343-1 Adv 6GK7343-1GX31-0XE0 V3.0
CP343-1 Lean 6GK7343-1CX00-0XE01) V1.0
CP343-1 Lean 6GK7343-1CX10-0XE0 V1.0
Table 01
1)
Only the time-of-day of the internal CP diagnostics buffer is synchronized by means of the NTP.

ET 200 CPUs with the time synchronization function by means of the NTP.
 
ET 200 CPU Order number Firmware
IM151-8 PN/DP CPU 6ES7151-8AB00-0AB0 V2.7
IM151-8 PN/DP CPU 6ES7151-8AB01-0AB0 V3.2
IM151-8F PN/DP CPU 6ES7151-8FB00-0AB0 V2.7
IM151-8F PN/DP CPU 6ES7151-8FB01-0AB0 V3.2
IM154-8 PN/DP CPU 6ES7154-8AB00-0AB0 V2.5
IM154-8 PN/DP CPU 6ES7154-8AB01-0AB0 V3.2
IM154-8F PN/DP CPU 6ES7154-8FB01-0AB0 V3.2
IM154-8FX PN/DP CPU 6ES7154-8FX01-0AB0 V3.2
Table 02

SIMATIC S7-400 components with the time synchronization function using the NTP.
 
SIMATIC S7-400 Order number Firmware
CPU412-2 PN 6ES7412-2EK06-0AB0 V6.0
CPU412-5H PN/DP 6ES7412-5HK06-0AB0 V6.0
CPU414-3 PN/DP 6ES7414-3EM05-0AB0 V5.0
CPU414-3 PN/DP 6ES7414-3EM06-0AB0 V6.0
CPU414F-3 PN/DP 6ES7414-3FM06-0AB0 V6.0
CPU414-5H PN/DP 6ES7414-5HM06-0AB0 V6.0
CPU416-3 PN/DP 6ES7416-3ER05-0AB0 V5.0
CPU416-3 PN/DP 6ES7416-3ES06-0AB0 V6.0
CPU 416F-3 PN/DP 6ES7 416-3FR05-0AB0 V5.0
CPU 416F-3 PN/DP 6ES7416-3ES06-0AB0 V6.0
CPU 416-5H PN/DP 6ES7416-5HS06-0AB0 V6.0
CPU 417-5H PN/DP 6ES7417-5HT06-0AB0 V6.0
CP443-1 6GK7443-1EX11-0XE0 V2.0
CP443-1 6GK7443-1EX20-0XE0 V1.0
CP443-1 6GK7443-1EX30-0XE0 V3.0
CP443-1 Adv 6GK7443-1EX40-0XE0 V1.0
CP443-1 Adv 6GK7443-1EX41-0XE0 V1.0
CP443-1 Adv 6GK7443-1GX20-0XE0 V2.0
CP443-1 Adv 6GK7443-1GX30-0XE0 V3.0
CP443-1 IT 6GK7443-1GX11-0XE0 V2.0
Table 03

Activating the NTP for time synchronization
You set the time synchronization for the CPUs via the NTP in the hardware configuration of STEP 7.
Open the Properties dialog of the Industrial Ethernet CP to enable. In the "Time Synchronization" tab, set a check mark for "Activate NTP time-of-day synchronization".
Enter the IP addresses of the relevant NTP servers in the "NTP Server Addresses" field.

Important

  • The NTP mode does not support any automatic changeover between summer time and winter time. This is not provided for in the protocol. You must change the local time accordingly. NTP always transmits the coordinated world time (UTC) or Greenwich Mean Time (GMT). 
    How to calculate summer time is described in Entry ID: 19324378
  • You cannot set any time zones when using the NTP time-of-day synchronization mode in S7-300 and S7-400 CPUs.
  • In the case of CP343-1 IT with order number 6GK7343-1GX20-0XE0 and firmware V1.0 you must select the MPI address 2 for the CPU when using the "Set CPU time" function. As from firmware V1.1, setting the CPU time is independent of the MPI address, see Entry ID: 21070809.

Example of a time-of-day relay with S7-400 as time slave
In order to be able to use the NTP mode you must enable the "Activate NTP time-of-day synchronization" function in the Properties dialog of the Industrial Ethernet CP -> "Time-of-Day Synchronization" tab. Furthermore, at least one IP address of an NTP server must be specified with the "Add..." button and the "Forward time of day to a station" option must be enabled. The time zone and update interval should be set according to the requirements of the project.


Fig. 01

A list of the active NTP servers (Stratum One Time Servers) is available at this link:
http://support.ntp.org/bin/view/Servers/WebHome

You can use these NTP servers for time-of-day synchronization. In this example the time-of-day synchronization is made by means of the Stratum One Time Server of the University of Erlangen-Nürnberg.

In the Properties dialog of the CPU you must configure the S7-400 CPU as time slave in the "Diagnostics/Clock" tab.


Fig. 02

Example of a time-of-day relay with an S7-300 as time slave
In order to be able to use the NTP mode you must enable the "Activate NTP time-of-day synchronization" function in the Properties dialog of the Industrial Ethernet CP > "Time-of-Day Synchronization" tab. Furthermore, at least one IP address of an NTP server must be specified with the "Add..." button and the "Forward time of day to a station" option must be enabled. The time zone and update interval should be set according to the requirements of the project.


Fig. 03

A list of active NTP servers (stratum 1) is available at the following internet site: http://support.ntp.org/bin/view/Servers/WebHome. These NTP servers can be used for time-of-day synchronization. In our example the time-of-day synchronization is made by means of the NTP server (stratum 1) of the University of Erlangen-Nürnberg.

Since the time-of-day of the S7-300 CPU is repeatedly set from the Industrial Ethernet CP, it is necessary to have a connection resource for this service of the S7-300 CPU. Please bear this in mind when configuring the system.

There is only need to configure time-of-day synchronization for the S7-300 CPU if you are using one of the following Industrial Ethernet CPs:
 
SIMATIC S7-300 Order number Firmware
CP343-1 6GK7343-1EX30-0XE0 as from V2.2
CP343-1 Adv 6GK7343-1GX30-0XE0 as from V1.0
CP343-1 Adv 6GK7343-1GX31-0XE0 as from V3.0
CP343-1 Lean 6GK7343-1CX10-0XE0 as from V2.2
Table 04

If you are using one of the above-mentioned Industrial Ethernet CPs, then you must make additional settings in the Properties dialog of the CPU. The settings depend on the configuration of the communication bus in the backplane bus of the CPU.

  • The communication bus is configured as a party line, in other words it is physically "wired through" to the MPI interface on the CPU. This setup is found in CPUs from CPU 312 up to and including CPU 315-2 DP and the C7 devices. In this case, in the Properties dialog of the CPU you select the "Diagnostics/Clock" tab and set "As slave" for the synchronization mode on the MPI.


Fig. 04

  • The communication bus is not configured as a party line, in other words the MPI interface and the communication bus are separate. This bus setup is found in CPUs from CPU 315-2 PN/DP up to and including CPU 319-3 PN/DP. In this case, in the Properties dialog of the CPU you select the "Diagnostics/Clock" tab and set "As slave" for the synchronization mode in the PLC.


Fig. 05

Diagnostics
Open the NCM S7 diagnostics of the Industrial Ethernet CP to determine the status of the time synchronization.

Start the NCM S7 Diagnostics in the Windows START menu by means of "SIMATIC > STEP 7 > NCM S7 > Diagnostics".

Alternatively you can also open the NCM S7 Diagnostics with the SIMATIC Manager. Right-click the Industrial Ethernet CP and select the menu "PLC > Module status". In the "Module status" dialog you switch to the "General" tab and click on the "Special Diagnostics" button to open the NCM S7 Diagnostics of the Industrial Ethernet CP.

Information about time-of-day synchronization in SIMATIC mode or in NTP mode is available in the "Time-of-Day" tab.


Fig. 06

Note the following points when interpreting the display:

Display of configured NTP servers
You can specify up to four NTP servers in the configuration. The relevant NTP servers are addressed by the CP and their reply messages evaluated. The NTP server with the greatest precision is chosen. This ensures that the station with the most precise time is synchronized.

Important here is the Status column. The following displays are possible here:

  • NTP master
    The CP accepts the configured NTP server for time-of-day synchronization. The CP assigns this status to just one of the configured NTP servers.
  • Reachable
    The configured NTP server is reachable in the network, but is not taken for time-of-day synchronization.
  • Reachable (unsynchronized)
    The configured NTP server is reachable in the network, but is not taken for time-of-day synchronization. The CP recognizes from the message that the NTP server is not synchronized.
  • Not reachable
    The NTP server is configured but cannot be reached under the specified IP address.

None of the configured NTP servers is displayed as NTP master
Sometimes all the NTP servers are displayed as Reachable - but none as NTP master.

  • This indicates that the time-of-day of the NTP servers has been evaluated as imprecise.
    In the CP's firmware there are various checks that are defined in the corresponding RFCs (Internet Standard).
  • This might also have something to do with the synchronization of the NTP master. There are multiple time stamps in the NTP message. If an NTP server is not synchronized externally, this is noted accordingly in the time stamps in the messages. The consequence is that the time-of-day of these NTP servers is not accepted.

The fact that there is no potential NTP master among the reachable NTP servers is also indicated to the user in addition by a counter in the diagnostics. In this case the "How often the sampling interval was exceeded" counter is increased by 1 after expiry of the sampling interval.

Note
All CPs that are older than the modules listed or which have an older firmware version do not react to the reply message of an NTP server if the server does not have an even-numbered NTP version, V2.x, V4.x, for example. You must then upgrade the module with the latest firmware version. All more recent modules that support time-of-day synchronization by means of NTP also accept reply messages from other NTP server versions.

SICLOCK TM time-of-day transmitter
The SICLOCK time-of-day transmitter is a separate unit that can transmit time-of-day messages by means of the Ethernet in SIMATIC or NTP mode.

  • SICLOCK TM, order number: 2XV9450-1AR23, firmware as from April 2001

The SICLOCK works exclusively as time-of-day master and broadcasts time-of-day messages in Multicast or Broadcast mode by means of ISO Industrial Ethernet. In NTP mode it is also possible to operate by means of a router. The SICLOCK time-of-day can also be synchronized with a central time from a DCF 77 or GPS receiver.

For more parameters please refer to the SICLOCK manual.

 Entry ID:17990844   Date:2013-03-27 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour