Before using the DF PROFINET IO as a controller on Port 1, you need to create a configuration which describes the PROFINET network. This configuration is created using the KUNBUS configuration tool Configurator III. Configurator III allows you to create the complete PROFINET IO configuration based on Device GSDML files. Refer to the Configurator III help for details.Start Configurator III from Start >> All Programs >> Kunbus GmbH >> Kunbus Configurator. From the Project Menu choose “New” to create a new PROFINET configuration. Then, drag and drop a DF PROFINET IO controller board to the configuration window as shown in Figure 5.
Figure 5: Configurator III Controller Part
From the Online Menu choose “Driver selection” and press “Search...” to update the selection window as seen in Figure 6. Choose your controller board or controller alias and press OK.
Figure 6: Configurator III Controller Selection
If using a slave device from another vendor, you can import the descriptor file to Configurator III by going to Tools >> Install new PROFINET/GDSML XML-file.As an example, we will configure a loopback with Port 2 of the DF PROFINET IO as the device and Port 1 as the controller. If you are using a 3rd-party device, the steps to configure the device will be similar. From PROFINET Device >> IO drag and drop a DF-Profinet-IO device board to the configuration window as shown in Figure 7.
Figure 7: Configurator III Slave Part
From the In/Out Modules configuration list drag your device memory configuration to Slot 1 as shown in Figure 8.
Figure 8: Configurator III device memory configuration
Press the Download button in the menu bar as seen in Figure 9. The “Project save” dialog appears if the document has not been saved. Name your project and save it to the configurator projects folder. Wait until the download has finished successfully.
Figure 9: Configurator III configuration download
The DF PROFINET IO interface card comes with a typical PROFINET IO Device description file (GSDML file), which is located in the folder C:\Users\Public\Documents\KUNBUS GmbH\GSDMLThe GSDML file is used to configure the DF PROFINET IO Device on the related PROFINET IO Controller (i.e. a PLC). To configure the DF PROFINET IO device, import the GSDML file into the related PROFINET IO Controller configuration tool that comes with your controller.The GSDML file offers several modules with different data sizes for input- output- and combined inputs/outputs, which can be used to configure the DF PROFINET IO module.The DF PROFINET IO device supports shared Device operation mode, which means that multiple PROFINET IO controllers can access different slots of the DF PROFINET IO device simultaneously. For the proper configuration of shared devices, refer to the relevant user manual of the PROFINET IO controller configuration tool.For operation as a device, use Port 2 on the card.
You can find KUNBUS PROFINET IO VIs in the functions palette under Industrial Communicatons>>KUNBUS GmbH>>DF PROFINET IO.To find Examples, Use Help>>Find Examples. Navigate to Toolkits and Modules>>Third-Party Add-Ons>>KUNBUS GmbH>>PROFINET. Here you can find the example DF PROFINET IO GettingStarted.lvproj.To continue the loopback example from above, open both the DF PROFINET IO GettingStarted Controller.vi (Controller.vi) and DF PROFINET IO GettingStarted Device.vi (Device.vi). For both VIs, select your DF PROFINET IO card from the "PROFINET..." dropdown box in the upper left of the Front Panel. In Device.vi, set "Slot" to -1.Start Controller.vi first, then start Device.vi. They might initially display a bad APDU status (0x21 on Controller.vi and 0x00 on Device.vi) as both get set up. The APDU status for normal operation is 0x35, and the green and yellow LEDs should be on beside the physical card ports.Send data from the Controller.vi to the device by entering it into "Modify Output Data" and clicking "Set output data." You should see it show up on the Device.vi's "Output data" indicator as seen in Figure 10.You can send data from the device to controller by entering it in Device.vi's "Modify input data" and clicking "Set input data", also in Figure 10.
Figure 10: DF PROFINET IO GettingStarted Device.vi example after sending and receiving data.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.