Getting Started Windows DF PROFI II 28/11/2017
© 2016 KUNBUS GmbH, Denkendorf (Deutschland) The contents of this user manual have been prepared by the KUNBUS GmbH with the utmost care. Due to the technical development, the KUNBUS GmbH reserves the right to change or replace the contents of this user manual without prior notice. You can always obtain the latest version of the user manual at our homepage: www.kunbus.de The KUNBUS GmbH shall be liable exclusively to the extent specified in General Terms and Conditions (www.kunbus.de/ agb.html).
Table of content 1 Disclaimer ....................................................................................................... 2 2 Validity ............................................................................................................. 4 3 Operating Systems ........................................................................................ 5 4 Install Software .............................................................................................. 6 5 Configure PROFIBUS .....
Validity 2 Validity This document describes the installation of the software and the configuration of the DF PROFI II with Windows.
The software supports Windows 7 and newer versions. Windows 2000, Windows XP Please note that the 32/64 Bit setup, version 1.0.8, still supports Windows XP. There is an older setup, which still supports Windows 2000, in the directory Windows 2000 on the delivery DVD. Please note, that we cannot provide any technical support for these operating systems.
Install the DF PROFI II PCI/CPCI/PCIe board in your PC system. Please note, if a DF PROFI II CPCI board is used, the board does not support Hot Plugging. If installing/uninstalling the board, the Compact PCI system must be switched off and the power supply must be interrupted. Figure 1: Hardware Installation ◦ Switch on the PC system. ◦ Ignore the dialogue box “New hardware” which is popped up automatically after the board was installed.
Figure 2: Installed DF PROFI II board(s) Getting started Linux 7 / 17 Install Software ◦ Start the setup from the KUNBUS driver DVD delivered with the package. ◦ Please note that Windows 2000 will no longer be supported with the 32/64Bit setup, version 1.0.8 and newer. There is an older setup which still supports Windows 2000 in the directory Windows 2000 on the delivery DVD. ◦ After the driver is successfully installed, start the DFTEST program from the DPCI menu from the START button menu.
The PROFIBUS configuration is carried out by the KUNBUS PROFIBUS configuration tool Configurator III. Configurator III is the perfect tool to create, download and test a PROFIBUS configuration. Refer to the program’s online help menu for all details. Create a configuration and download it to the DF PROFI II board.
LED Indication 6 LED Indication Green LED: On: Firmware loaded and started. Off: Firmware not loaded. Yellow LED: On: PROFIBUS started. Off: PROFIBUS stopped. Red LED: Getting started Linux On: PROFIBUS failure (at least one Slave is not connected to the bus or with external diagnosis). Off: No PROFIBUS failure.
PROFIBUS Basic C and C++ sample This sample exemplarily shows how to use the interface to the PCI card in an easy way. First, a configuration has to be downloaded to the card via Configurator III. The sample is located in the directory “c:\Program Files (x86)\Comsoft GmbH\DFPCI\DF-Tools\CS PROFIBUS Demo \DFProfi_2_PCI_DEMO.exe”. The code sample is prepared for use with Microsoft Visual C++6.0 or higher. It is a Windows 32-Bit console application, which works step by step.
Step 1: Initialize DFXX.DLL and create file handle for hardware access. Step 2: Reset DF PROFI II hardware. Step 3: Open communication channel to DF PROFI II. Step 4: Start the cyclic PROFIBUS traffic on the DF PROFI II. Step 5: Get the current configuration running on the DF PROFI II. Step 6: Exchange data on the PROFIBUS. Step 7: Reset DF PROFI II hardware and stop the PROFIBUS. Getting started Linux 11 / 17 Sample Programs The sample is running step by step by pressing “return”.
Sample Programs PROFIBUS C and C++ sample This sample shows how to: ◦ ◦ ◦ ◦ initialize the DF PROFI II board start the DF PROFI II board exchange process and diagnostic data handle DPV1 services The sample program is located in the directory “C:\Program Files (x86)\Comsoft GmbH\DFPCI\DF-Tools\CS PROFIBUS Demo\DFProfi_2_PCI_DEMO.exe”. The code sample is prepared for use with Microsoft Visual C++6.0. The directory includes all files to compile and link the sample project.
Sample Programs Press Return to display the possible commands: Figure 6: Sample program – Command palette Please note, that for proper working of the sample program, a valid PROFIBUS configuration must be downloaded to the DF PROFI II board.
◦ Press “25” for reading and writing process data ◦ Press “27” for reading diagnostic data from a specific Slave: The structure of the process image and the diagnostic data are detailed described in the chapters 2.3.8 – 2.3.11 of the documentation DP_DPV1_E.pdf.
A Visual Basic sample program is included in the delivery package, which describes the access to the DF PROFI II from Visual Basic. The functionality is similar to the functionality in chapter 4. The sample software is located in the folder: „c:\Program Files (x86)\Comsoft GmbH\DFPCI\DF-Tools\ Visual Basic V6.0 Sample\DFProfi2.exe". The directory includes all files to compile and link the sample project. The sample program shows and executes only the most common functions of the DF PROFI II.
Please consider the following: Master and Slave mode are not allowed to be mixed. To use Master mode, at first a PROFIBUS configuration has to be downloaded to the DF PROFI II by KUNBUS Configurator III tool (within the scope of delivery). Initialization functions ◦ “Init DF PROFI II” resets and initializes the board and gets the board into a defined state (for example before starting a new configuration). ◦ “Open Chanel” is opening a communication channel.
◦ “DfParam” initializes the board as DP Slave. Three parameters have to be assigned: – Slave address (1 - 128), – baud rate, – size of the input and output data. The sample software offers the most common data formats to be selected. Further formats can be found in the DF PROFI II GSD file and added to the source code in an easy way. ◦ “Start DF PROFI II as Slave” activates the DF PROFI II as DP Slave.