Communication
10.2 PROFINET
S7-1200 Programmable controller
542 System Manual, 03/2014, A5E02486680-AG
Table 10- 17 T_CONFIG instruction
req:=_bool_in_,
interface:=_word_in_,
conf_Data:=_variant_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_dword_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.
Table 10- 18 T_CONFIG data types for the parameters
Starts the instruction on the rising edge.
CONF_DATA Input Variant Reference to the structure of the configuration data;
CONF_DATA is defined by a System Data Type (SDT).
DONE Output Bool
• 0: Job has not yet started or is still running.
• 1: Job was executed without error.
BUSY Output Bool
• 0: The job is complete.
• 1: The job is not yet complete. A new job cannot be
triggered.
ERROR Output Bool Status parameters with the following values:
• 0: No error
• 1: Error occurred during processing. STATUS provides
detailed information on the type of error.
STATUS Output DWord Status information including error information. (Refer to
the Error and Status condition codes in the table below.)
ERR_LOC Output DWord Fault location (field ID and subfield ID of the error
The IP configuration information is placed in the CONF_DATA data block, along with a
Variant pointer on parameter CONF_DATA referenced above. The successful execution of
the T_CONFIG instruction ends with the handover of the IP configuration data to the network
interface. Errors are assigned to the STATUS output parameter.
Table 10- 19 Condition codes for ERROR and STATUS
0 00000000 No error
Note: If the instruction executes successfully, the "no error" status may not be returned.
The job is not finished (BUSY = 1).