![Siemens SIMATIC NET CP 1243-1 DNP3 Configuration Manual Download Page 160](http://html.mh-extra.com/html/siemens/simatic-net-cp-1243-1-dnp3/simatic-net-cp-1243-1-dnp3_configuration-manual_1265365160.webp)
OUC program blocks (CP)
A.3 Changing the IP address during runtime
Configuration - DNP3
160
Configuration Manual, 11/2018, C79000-G8976-C508-01
Note
Changing the IP parameters with a dynamic IP address
Note the effects of program-controlled changes to the IP parameters if the CP obtains a
dynamic IP address from the Internet service provider: In this case, the CP can no longer be
reached by communications partners.
Requirements - Configuration
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.
Requirements - STEP 7 version
●
STEP
7 ≥
V14
Requirements - Firmware versions
●
CP 1243-1
–
CP firmware ≥
V2.1.7x
–
CPU firmwa
re ≥
V4.2
●
CP 1542SP-1 IRC
–
CP firmware ≥
V1
–
CPU firmware ≥
V2.0 (CPU 151xSP)
Program blocks
Program-controlled changing of the IP parameters is supported by program blocks. The
program blocks access address data stored in a suitable system data type (SDT).
The following program blocks and system data types can be used:
●
T_CONFIG
Along with:
–
IF_CONF_V4
–
IF_CONF_NTP
–
IF_CONF_V6
–
IF_CONF_DNS
The address parameters can only be configured with temporary validity in the CP. In the
respective "IF_CONF_..." SDT, the "Mode" = 2 parameter must be set.
Note
No feedback from the CP
"T_CONFIG" does not support feedback from the CP to the CPU. Errors in the block call
or in setting the address parameter are not reported. The block outputs "BUSY" or
"DONE" regardless of whether the address parameter was set.
You can find detailed information on parameter assignment of the blocks and SDTs in the
STEP 7 information system.