Getting started Linux DF PROFI II 28/11/2017
Disclaimer 1 Disclaimer © 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.
Table of content 1 Disclaimer ............................................................................................... 2 2 Validity ..................................................................................................... 4 3 Install Driver ............................................................................................. 5 4 LED Indication ......................................................................................... 6 5 Operation as PROFIBUS Master ................
Validity 2 Validity This document describes the installation of the software and the configuration of the DF PROFI II with Linux.
Install Driver 3 Install Driver ◦ 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. ◦ Your PC system is switched on. ◦ Start the Shellscript DFPROFI_II-INSTALL.sh from the KUNBUS driver DVD. ◦ Insert the directory where the package should be installed.
LED Indication 4 LED Indication Green LED: On: Firmware loaded and started. Off: Firmware not loaded. Yellow LED: On: PROFIBUS started. Off: PROFIBUS stopped. Red LED: On: PROFIBUS failure (at least one Slave is not connected to the bus or with external diagnosis). Off: Getting started Linux No PROFIBUS failure.
Operation as PROFIBUS Master 5 Operation as PROFIBUS Master The PROFIBUS configuration is carried out by the KUNBUS PROFIBUS configuration tool Configurator III.exe. At the Moment, Configurator III.exe is only available for Windows operating systems. But you can copy the configuration file to a Linux system: ✓You have a Windows PC. ◦ Insert the driver dvd. ◦ Open the folder “Konfigurator_III”. ◦ Select the file “setup.exe” with double click. ◦ Follow the installation instructions.
Operation as PROFIBUS Master The following dialogue box will open: Figure 4: Select file ◦ Select the configuration file ◦ Click “OK” ◦ Click “Start” The configuration file is loaded on DF PROFI II. DF PROFI II is now ready to use.
Operation as PROFIBUS Slave 6 Operation as PROFIBUS Slave If you are using the DF PROFI II as DP Slave you must not download a configuration file. The necessary initialization must be carried out directly by the application. Please note that you will find detailed information about the initialization of the board as DP Slave in the source code of the PROFIBUS sample program (see chapter “example program”).
Sample Program 7 Sample Program The delivery package includes a detailed C/C++ sample code. You will find the sample program in the installed directory (default: /usr/ local/dfprpci). It is a Windows 32-Bit console application focused on the DF PROFI II programming interface. The sample does not support any graphical features for the sake of clarity.
Function I First enter: Initialize DF PROFI II Second enter: Close DF PROFI II Open communication channel Close communication channel Start PROFIBUS Read process data Write process data Read/write process data Read diagnosis data of a slave Read out errors (only for support) Initialize Slave Read/write data of a Slave Close program O C S G P E D L A F Esc Operation mode Master/Slave Master/Slave Master Master Master Master Master Master Master Slave Slave Master/Slave Tabelle 1: Commands Using DF PROF
Sample Program Beispielprogramm The sample program defines the following as default: Baudrate: PROFIBUS address: I/O-Konfiguration: 1.5 MBit (6) 11 4 Byte Input / 4Byte Output (CFG-Bytes: 0x13, 0x23) You can find all possible I/O configurations (necessary CFG Bytes included) in the DFPROFI GSD-File. The configuration of the DP Slave must be identical with the configuration of the DP Master. Beispielprogramm beenden ◦ Press “I” The connection to the PROFIBUS is closed.