6 Programmed Communication Connections
A-169
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
Example
Address Name Type Initial Value Comment
0.0 STRUCT
+0.0 DB_TYP WORD W#16#1 Identifier
+2.0 FIELD_1 STRUCT // Field 1 (here system data field)
+0.0 Type INT 0 Type of data to be transferred 0 ... 5
+2.0 ID INT 0 Connection ID (with system parameters 0)
+4.0 Subfield_Cnt INT 3 Number of subfields belonging to this field
+6.0 Sub_field_1 STRUCT // Subfield 1 SUB_IP_V4
+0.0 Sub_field_ID INT 1 // Number of the subfield
+2.0 Sub_field_len INT 8 // Length of the subfield in bytes
+4.0 STAT9 STRUCT
+0.0 STAT10 BYTE B#16#C0
+1.0 STAT11 BYTE B#16#6F
+2.0 STAT12 BYTE B#16#DE
+3.0 STAT13 BYTE B#16#6A
=4.0 END_ STRUCT
=8.0 END_ STRUCT
+14.0 Sub_field_2 STRUCT // Subfield 2 SUBNET_MASK
+0.0 Sub_field_ID INT 2 // Number of the subfield
+2.0 Sub_field_len INT 8 // Length of the subfield in bytes
+4.0 Parameter STRUCT 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
+22.0 Sub_field_3 STRUCT // Subfield 3 default router
+0.0 Sub_field_ID INT 8 // Number of the subfield
+2.0 Sub_field_len INT 8 // Length of the subfield in bytes
+4.0 STAT9 STRUCT
+0.0 STAT10 BYTE B#16#C0
+1.0 STAT11 BYTE B#16#6F
+2.0 STAT12 BYTE B#16#DE
+3.0 STAT13 BYTE B#16#6A
=4.0 END_ STRUCT
=8.0 END_ STRUCT