Siemens NCM S7 Manual De Usuario

Descargar
Página de 255
Header
Parameter
Programmed Communication Connections
159
SIMATIC NET NCM S7 for Industrial Ethernet
Release 6/2003
C79000–G8976–C129–07
5.6
Subfield types 
Different parameters are required depending on the parameter field. Each
parameter is described by a subfield. Which subfields are required is explained in
the descriptions of the system data and the connection types in the previous
sections.
Each subfield consists of the specific parameter section and the header (4 Byte).
Example
The following excerpt from a CONF_DB illustrates the structure of a subfield based
on the example of the SUBNET_MASK subfield type. 
Address
Name
Type
Initial Value
Comment
+14.0
Sub_field_2
STRUCT
// Subfield 2 type SUBNET_MASK
+0.0
Sub_field_ID
INT
2
// Subfield ID
+2.0
Sub_field_len
INT
8
// Total length of the subfield in bytes
+4.0
Parameter
STRUCT
Parameter range of SUBNET_MASK
+0.0
Value_1
BYTE
B#16#FF
+1.0
Value_2
BYTE
B#16#FF
+2.0
Value_3
BYTE
B#16#FF
+3.0
Value_4
BYTE
B#16#0
=4.0
END_
STRUCT
=8.0
END_
STRUCT
In total, the following subfield types are available:
Table 5-7
 
Subfield
ID 
1)
Subfield type
Subfield
length (in
bytes)
Meaning of the Parameter
1
SUB_IP_V4
4 + 4
IP address according to IPv4
2
SUB_NETMASK
4 + 4
Subnet mask
3
SUB_DNS_NAME
Length of
DNS name +
4
DNS name
4
SUB_DNS_SERV_ADDR
4 + 4
DNS server address
8
SUB_DEF_ROUTER
4 + 4
IP address of default router
9
SUB_LOC_PORT
2 + 4
Local port
10
SUB_REM_PORT
2 + 4
Remote port, also for E-mail connections