Functions
5.10 Standard machine projects
PROFINET with STEP 7
Function Manual, 05/2021, A5E03444486-AL
273
Procedure
The proceedings corresponds to the proceeding for activating optional IO devices.
Only the structure of the data record must be extended for the program-controlled
assignment of the ports. The extension is described in the following sections.
Example: Data record structure for the assignment of partner ports
For the data record structure, you need the HW identifications of the ports.
The data record is to be stored in a data block and to be transmitted to the PROFINET
interface of the IO controller in the user program using the instruction "ReconfigIOSystem".
As the input parameter RECORD of the instruction "ReconfigIOSystem" is of the VARIANT data
type, you first have to create a data type for the data block.
In the following sections, you find a description of the structure of the PLC data type as well
as of the structure of the data block based on this type.
Selecting derived configuration
For the following selected configuration it is shown below what the data record must look
like so that the IO devices are interconnected in the planned order by the user program.
Figure 5-105 Example configuration: Customizing arrangement of IO devices in the user program
This example is based on the flexible configuration from the previous section (Page 1) with
the settings for the respective partner ports described there.
The partner ports in the specific derived configuration have been defined so that it is possible
to name the HW identifications of the ports involved.
The following table only contains those devices whose ports can be defined by the user
program. Only these devices are relevant for the data record structure.
Device
Local port
Partner port setting
Partner port of the selected con-
figuration
IO device_1
p2 = Port 2
HW identifier:
251
Partner is set by user pro-
gram
Port 1 of IO device_3
HW identifier: 261
IO device_2
p1 = Port 1
HW identifier:
281
Partner is set by user pro-
gram
Port 2 of IO device_3
HW identifier: 291
IO device_2
p2 = Port 2
HW identifier:
311
Partner is set by user pro-
gram
Port 1 of IO device_4
HW identifier: 321
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......