103BCommunication
10.2 PROFINET
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
421
10.2.2.6
T_CONFIG
The T_CONFIG instruction changes the IP configuration parameters of the PROFINET port
from the user program, allowing the permanent change or setting of the following features:
●
Station name
●
IP address
●
Subnet mask
●
Router address
Note
Located in the CPU "Properties", "Ethernet address" page, the "Set IP address using a
different method" (Page 426) radio button allows you to change the IP address online or
by using the "T_CONFIG" instruction after the program is downloaded. This IP address
assignment method is for the CPU only.
Located in the CPU "Properties", "Ethernet address" page, the "Set PROFINET device
name using a different method" (Page 427) radio button allows you to change the
PROFINET device name online or by using the "T_CONFIG" instruction after the program
is downloaded. This PROFINET device name assignment method is for the CPU only.
WARNING
After you use the T_CONFIG to change an IP configuration parameter, the CPU
restarts. The CPU will go to STOP mode, warm restart, and return to RUN mode.
Control devices can fail in an unsafe condition, resulting in unexpected operation of
controlled equipment. Such unexpected operations could result in death or serious injury
to personnel, and/or damage to equipment.
Ensure that your process will go to a safe state when the CPU restarts as a result of
T_CONFIG instruction execution.
Table 10- 21 T_CONFIG instruction
LAD / FBD
SCL
Description
"T_CONFIG_DB"(
req:=_bool_in_,
interface:=_word_in_,
conf_Data:=_variant_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_dword_out_,
err_loc=>_word_out_);
Use the T_CONFIG instruction to change the IP
configuration parameters from your user program.
T_CONFIG works asynchronously. The execution
extends over multiple calls.