Commissioning
11.8 Time synchronization
Automation system
System Manual, 12/2017, A5E03461182-AE
249
Changing the IP address of an NTP server in the user program
Automation task
You change the NTP server in your network. The new NTP server has the address
"192.168.1.10".
You want to change the IP address of the NTP server with which your CPU is synchronized,
via the user program.
The example shows how you change the IP address of the NTP server to "192.168.1.10"via
the user program with the instruction "T_CONFIG".
Conditions and parameters
Requirement:
●
You have activated the "Enable time synchronization via NTP server" option for your CPU
in STEP 7.
●
You have configured the following NTP server in STEP 7: Server 1 "192.168.1.15"
To change the IP addressed for NTP servers, use the following block parameter 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.
Содержание Simatic S7-1500/ET 200MP
Страница 1: ......