×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 18130164, Entry date: 08/13/2010
(2)
Rate

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?

  • Entry
  • Associated product(s)

Description:
Time-of-day synchronization is supported by all three major product families in the SIMATIC range: SIMATIC S7, SIMATIC S5 and PC. This synchronization can be done both via Industrial Ethernet and via PROFIBUS and MPI. There are two modes available for time-of-day synchronization via Industrial Ethernet:

  • SIMATIC mode
  • NTP mode (see Entry ID: 17990844)

Time-of-day synchronization via Industrial Ethernet with the SIMATIC mode
This mode is usually used in process automation in conjunction with ISO transport services and is precise to +/- 10ms between the communications processor (CP) and the synchronized CPU with a resolution of +/- 1ms.
Since SIMATIC mode is based on SNAP services (i.e. ISO Layer 2 service) and works with MAC addresses, it can only be used with local Ethernet networks. This mode does not work with IP networks via IP routers, i.e. with configured IP subnets.


Fig. 01

Time-of-day synchronization for the S7-400 station is configured in the Hardware Configuration. In the Properties dialog of the CPU, you select the "Diagnostics/Clock" tab and then select the synchronization mode. You can configure the S7-400 CPUs as time master (time-of-day transmitter) or time slave (time-of-day receiver).
Set whether synchronization is to be in the CPU (synchronization in the PLC) or via MPI (synchronization on MPI). Synchronization in the PLC includes the CPs.
You can select a time interval of between 1 second and 24 hours for the synchronization.

Configuring the S7-400 station as time master (transmitter)
Proceed as follows to configure the S7-400 station as time master.
 

No. Procedure
1. In the hardware configuration of the S7-400 station, you open the Properties dialog of the CPU and select the "Diagnostics/Clock" tab.

Set "As master" for the synchronization mode in the PLC and select the time interval for the synchronization, 1 minute, for example.

Click "OK" to close the dialog. 


Fig. 02

2 The time-of-day messages of the CPU are forwarded via the Industrial Ethernet CP to the time slaves in the Industrial Ethernet subnetwork.

In the hardware configuration of the S7-400 station, you open the Properties dialog of the Industrial Ethernet CP and select the "Time-of-Day Synchronization" tab.

Enable the "Forward time of day" function.

Click "OK" to close the dialog. 


Fig. 03

Configuring the S7-400 station as time slave (receiver)
Proceed as follows to configure the S7-400 station as time slave.
 

No. Procedure
1. In the hardware configuration of the S7-400 station, you open the Properties dialog of the CPU and select the "Diagnostics/Clock" tab.

Set "As slave" for the synchronization mode in the PLC and select the time interval for the synchronization, 1 minute, for example.

Click "OK" to close the dialog. 


Fig. 04

2 The time-of-day messages of the time master are forwarded via the Industrial Ethernet CP to the CPU.

In the hardware configuration of the S7-400 station, you open the Properties dialog of the Industrial Ethernet CP and select the "Time-of-Day Synchronization" tab.

Enable the "Forward time of day" function.

Click "OK" to close the dialog. 


Fig. 05

Notes
More information on time-of-day synchronization via Industrial Ethernet

  • with the S7-300 is available in Entry ID: 44049612
  • with the PC station is available in Entry ID: 44045424
  • with SIMATIC S5 is available in the manual "SINEC CP1430", section 6.6 "Setting and Reading the Time" in Entry ID: 12586144.

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.