Example: Configuring The Ip Address Of The Ntp Server In Step 7 Or Setting It In The User Program - Siemens SIMATIC S7-1500/ET 200MP System Manual

Hide thumbs Also See for SIMATIC S7-1500/ET 200MP:
Table of Contents

Advertisement

Commissioning
12.8 Time synchronization
12.8.1
Example: Configuring the IP address of the NTP server in STEP 7 or setting it
in the user program
Automation task
You are using your own NTP server in your network with the IP address 192.168.1.15. Your
own server provides you with the following advantages:
• Protection against unauthorized accesses from outside
• Every device that you synchronize with your own NTP server uses the same time.
You want to synchronize the S7-1500 CPU with this NTP server.
The following sections describe how to configure the IP address of the NTP server in STEP 7 or
set it in the user program.
Configuring the IP address of the NTP server in STEP 7
Procedure
1. Select the S7-1500 CPU in STEP 7.
2. Configure the time synchronization in the "Properties > General > Time" parameter group.
3. Set the "Set NTP server in the project" value at the "Time synchronization" parameter.
4. For "NTP Server 1", enter the IP address of the NTP server: 192.168.1.15.
5. Download the hardware configuration to the CPU.
Result
The S7-1500 synchronizes the time with the NTP server 192.168.1.15.
Set IP addresses of the NTP server with the "T_CONFIG" instruction
Requirement:
• You selected the option "Set NTP server directly on the device (e.g. PLC program, display)"
in the "Time synchronization" drop-down list in STEP 7.
To set the IP address for the NTP server, use the following block parameters of the
"T_CONFIG" instruction:
• Req: A positive edge at the block parameter "Req" starts a job of the "T_CONFIG"
instruction.
• Interface: Enter the HW ID of the PROFINET interface 1 of the CPU at the block parameter
"Interface". In this example, the HW ID is "64".
• Conf_Data: Area in which you save the IP addresses of the NTP server. Use the data type
"IF_CONF_NTP" for this purpose.
280
Automation system
System Manual, 01/2023, A5E03461182-AK

Advertisement

Table of Contents
loading

Table of Contents