Customizing Arrangement Of Io Devices In The Program - Siemens SIMATIC PROFINET Function Manual

With step 7 v14
Hide thumbs Also See for SIMATIC PROFINET:
Table of Contents

Advertisement

Functions
5.9 Standard machine projects
Procedure
To set the partner port for a program controlled interconnection, proceed as follows:
1. Select the PROFINET interface of the device (IO controller or IO device) whose port you
want to set.
2. In the properties of the PROFINET interface, select the area "Port interconnection"
(Extended options > Port [...] > Port interconnection).
3. From the drop-down list, select "Setting partner by user program" as partner port.
4. Repeat steps 1 to 3 for each port to be interconnected via the user program.
See also
Customizing arrangement of IO devices in the program (Page 222)
5.9.2.5

Customizing arrangement of IO devices in the program

Requirements
● IO controller supports configuration control for IO systems, for example CPU 1516pro-2
PN as of firmware version 1.7 as an IO controller
● STEP 7 V13 SP1
● At least one partner port was configured as "Partner set by user program".
● The rules (Page 225) for the establishment and operation of a standard machine project
have been considered.
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.
222
PROFINET with STEP 7 V14
Function Manual, 09/2016, A5E03444486-AG

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents