Program blocks
5.2 Changing the IP address during runtime
CP 1243-1
120 Operating Instructions, 04/2017, C79000-G8976-C365-03
Apart from the address parameters of the CP, with T_CONFIG the address parameters of
DNS servers (IF_CONF_DNS) and NTP servers (IF_CONF_NTP) can also be changed
program controlled.
Depending on the STEP 7 version, the following program blocks and system data types can
be used:
●
Along with:
– IF_CONF_V4
– IF_CONF_NTP
– IF_CONF_V6
– IF_CONF_DNS
●
Along with:
– IF_CONF_V4
You will find detailed information on programming the blocks in the STEP 7 information
system.
Requirements - CP programming
To be able to change the IP parameters program controlled the option "IP address is set
directly at the device" must be enabled in the configuration of the IP address of the Ethernet
interface of the CP.