103BCommunication
10.2 PROFINET
S7-1200 Programmable controller
424
System Manual, 11/2011, A5E02486680-05
The configuration data of CONF_DB consists of a field that contains a header
(IF_CONF_Header) and several subfields. IF_CONF_Header provides the following
elements:
●
field_type_id (data type UInt): Zero
●
field_id (data type UInt): Zero
●
subfield_cnt (data type UInt): Number of subfields
Each subfield consists of a header (subfield_type_id, subfield_length, subfield_mode) and
the subfield-specific parameters. Each subfield must consist of an even number of bytes.
The subfield_mode supports a value of 1 (permanent validity of the configuration data)
Note
Only one field (IF_CONF_Header) is currently allowed. Its parameters field_type_id and
field_id must have the value zero. Other fields with different values for field_type_id and
field_id are subject to future extensions.
In the IF_CONF_Header field, only two subfields, "addr" (IP address) and "nos" (Name of
station) are currently allowed.
Table 10- 24 Subfields supported
subfield_type_id
Data type
Explanation
30
IF_CONF_V4
IP parameters: IP address, subnet mask, router address
40
IF_CONF_NOS
PROFINET IO device name (Name of station)
Table 10- 25 Elements of the IF_CONF_V4 data type
Name
Data type
Start value
Description
Id
UInt
30
subfield_type_id
len
UInt
18
subfield_length
mode
UInt
1
subfield_mode (1: permanent)
InterfaceAddress
IP_V4
ADDR
Array [1..4] of Byte
-
Interface address
ADDR[1]
Byte
b#16#C8
IP address high byte: 200
ADDR[2]
Byte
b#16#0C
IP address high byte: 12
ADDR[3]
Byte
b#16#01
IP address low byte: 1
ADDR[4]
Byte
b#16#90
IP address low byte: 144
SubnetMask
IP_V4
ADDR
Array [1..4] of Byte
-
Subnet mask
ADDR[1]
Byte
b#16#FF
Subnet mask high byte: 255
ADDR[2]
Byte
b#16#FF
Subnet mask high byte: 255
ADDR[3]
Byte
b#16#FF
Subnet mask low byte: 255
ADDR[4]
Byte
b#16#00
Subnet mask low byte: 0