Use the SIMATIC PC station software to define the IP addresses at the PROFINET IO (PNIO) network card for all safety devices that shall be created. The WinCC OA host needs a PROFINET network card for connecting to the PROFINET / PROFIsafe network. In case of a PROFIsafe network, in addition to the safety devices (F-devices) at least one safety controller (F-host) must be available.
Note
Follow the instructions from the FAILsafe Programming and Operating Manual for the F-host programming.
To connect the WinCC OA host to such a network, the PROFIsafe driver must be configured as F-device. After that the connection to the safety controller can be established and exchanging data and status information is possible.
The following description requires an already configured network including a safety controller (see picture below).
Figure: PROFINET network with safety controller (plc_1) and a connected F-device (dut)
You have to create and configure a new device for the PROFIsafe driver. Go to PC systems > PC general > PC station in the hardware catalog on the right side.
Figure: Hardware catalog
Create a device by drag & drop or a double click on PC station.
Figure: Created PC-Station (PC-System_2)
You have to define the PROFINET network card for the created device. Go to PC systems > Communications modules > PROFINET/Ethernet > CP1616 in the hardware catalog.
Figure: Hardware catalog - CP1616
Select the appropriate card and add it to the PC station by drag & drop or a double click. Connect the card to the safety controller.
Figure: PC-Station (PC-System_2) with network card CP1616
For configuring the communication module you have to select the card and go to the "Property" tab in the menu below.
Defining the IP address
Go to PROFINET interface > Ethernet addresses in the general properties to set the card's IP address in the project.
Figure: Setting the IP address
Configuration as an IO device
Go to PROFINET interface > Operating mode in the general properties and check the option "IO device".
Figure: CP1616 as IO device
Go to Operating mode > I-device communication to define the process image for the device. Therefor, the transfer areas must be defined (refer to Details on the PROFIsafe driver for limitations). The areas are automatically mapped to the respective address area of the safety controller ("Address in IO controller" in figure below) as soon as the device is connected to the controller.
Figure: Configuration of the transfer areas
If PROFIsafe shall not be used (i.e. no transfer areas of type F-PS are defined) and communication via PROFINET is sufficient for the device, only the following steps are necessary to complete the configuration:
Compile the created PC station and the safety controller with the button
Download the settings (tab Online > Download to Device or CTRL+L) to the particular physical device, i.e. the CP1616 card and the PLC
This section is only relevant if the WinCC OA host shall support the communication via PROFIsafe. In this case some manual adaptations to the CP1616 I-device are necessary so it can be used as a PROFIsafe-compatible F-device.
Break the connection of the CP1616 card and the safety controller and compile the PC station via the button.
Go to Operating mode > I-device communication in the general properties of the CP1616 module. Scroll down to find the Export generic station description file (GSD) option under the transfer areas. Export the GSD file with a click on the "Export" button.
Figure: Exporting the GSD file
Open the exported file in an appropriate text editor and edit the following F-Parameters.
Set the attribute DefaultValue of F_Block_ID to 0
Set the attribute DefaultValue of F_WD_Time to 5000 (ms)
Remove all attributes of F_iPar_CRC to disable this paramater
Figure: Edited F-Parameters
Open and check the file with the help of the "PROFINET GSD-Checker" tool to recalculate the contained check values (see https://www.profibus.com/download/profinet-gsd-checker/).
Go to the Options tab and click on Manage general station description files. Select the edited file and import it by clicking the "Install" button.
Figure: Import of the GSD file
The device is shown under Other field devices > PROFINET IO > PLCs & CPs in the updated hardware catalog after importing the GSD file.
Figure: Hardware catalog - F-device
Create the F-device via double click or drag & drop.
Figure: Created F-device (pc-system_2.cp 1616_1)
Connect the F-device to the safety controller.
Figure: Connection to safety controller established
You have to define the F-host's correct F-source address at the F-device. Select the F-host and go to Fail-safe > F-parameters in the general properties.
Figure: F-source address of the safety controller
The value of Central F-source address must match the F_Source_add parameter of the F-device. Select the transfer area defined for the device (in this case Transfer area_1) in the network or device overview.
Figure: Network view - transfer area of F-device
After selecting the appropriate transfer area, go to the general properties and click on PROFIsafe to show the list of F-parameters. Insert the value of the central F-source address at the F_Source_Add parameter. The remaining F-parameters must be adapted as required, e.g. the F_Dest_Add parameter must be unique within the PROFIsafe network.
Figure: Transfer area of F-device - defining the F_Source_Add parameter
To finalize the configuration you have to compile the safety controller and the F-device and download it to the particular physical device (tab Online > Download to device or CTRL+L). After that the safety controller is able to detect the F-device in the network.
V 3.16
Copyright ETM professional control 2015 All Rights Reserved