SNTP Service SL Library Documentation

Company:

CODESYS

Title:

SNTP Service SL

Version:

1.9.0.0

Categories:

Application|Utils

Namespace:

SNTP

Author:

CODESYS Development GmbH

Placeholder:

SNTP_Service_SL

Description [1]

The SNTP Library contains function blocks for easy implementation of SNTP client and server components on a CODESYS control. The function block SNTPGetUTCTime can be used to request the UTC time of a SNTP/NTP server (SNTP V3, SNTP V4). The function block SNTPServer can be used to build a simple SNTP server.

Function blocks of the SNTP library:
  • Function block to request the time of a SNTP server: SNTPGetUTCTime (SNTP client).

  • Function block to provide the local server time: SNTPServer (SNTP server)

The package contains following components:
  • Library SNTPService (Namespace: SNTP)

  • Example project (SNTP client and server)

  • Help file (chm)

  • Product data sheet (English, German)

The package SNTPService includes the library SNTPService and the example project SNTPExample. The application SNTPRequestExample shows the usage of the function block SNTPGetUTCTime. The application SNTPServerExample shows how to use the function block SNTPServer.

Application SNTPRequestExample

The application reads the current UTC time from a SNTP server and shows the result, the local time and the time difference in a visualization.

_images/SNTPClient.png

Visualization of the application SNTPRequestExample

Application SNTPServerExample

The application SNTPServerExample starts a simple SNTP server on port 123.

_images/SNTPServer.png

Application ‘’SNTPServerExample``

Contents:

Indices and tables