×
Siemens Industry Online Support
Siemens AG
Entry type: Application example, Entry ID: 82203451, Entry date: 04/21/2017
(12)
Rate

Library for SNTP Server Functionality in SIMATIC S7 CPUs (LSNTP)

  • Entry
  • Associated product(s)
The PROFINET CPUs S7-300, S7-400, S7-1200, and S7-1500 can only be configured as NTP clients for time synchronization. With this STEP 7 library you can turn a SIMATIC S7 CPU into an SNTP server and thus realize a simple time synchronization of automation cells.

Solution
In this entry we provide you with library blocks for all current SIMATIC S7 CPUs, which map the functionality of an SNTP server.
The following sample configuration shows a possible use, for example, of an S7-1200 CPU as SNTP server in an automation cell.


Figure 1


The LSNTP_Server function block provides the following functions:
  • Receipt and analysis of an NTP request from a client.
  • Creation and sending of an SNTP message to the requesting client.

Note
For S7-1200 the library is valid for CPU firmware versions up to 3.x and 4.1.3 and higher.

Downloads
  Documentation (1,5 MB)
 Registrierung notwendig  Library "LSNTP" V2.1.0 for TIA Portal V14 (481,8 KB)
 Registrierung notwendig  Example project for TIA Portal V14 (1,2 MB)

Archive
 Registrierung notwendig  Library "LSNTP" V2.0.0 for TIA Portal V13 SP1 (1,9 MB) 
 Registrierung notwendig  Example project for TIA Portal V13 SP1 (5,9 MB)
 Registrierung notwendig  Library for STEP 7 V5.5 (37,7 KB)

Last Changes
Library upgraded to STEP 7 V14
Input "hwID" added to "LSNTP_Server" for S7-1200 and S7-1500


Security information
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept. Siemens’ products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure. Siemens strongly recommends
to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer’s exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under http://www.siemens.com/industrialsecurity.

Additional Keywords
Time synchronization, time leveling, NTP server