+ All Categories
Home > Documents > LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and...

LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and...

Date post: 30-Jul-2020
Category:
Upload: others
View: 14 times
Download: 0 times
Share this document with a friend
18
LabVIEW-RT PROFIBUS VISA Driver DP-Slave Getting Started V1.35 27.04.2017 Project No.: 5303 Doc-ID.: LabVIEW-RT PROFIBUS VISA Driver KUNBUS
Transcript
Page 1: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver DP-Slave

Getting Started

V1.35

27.04.2017

Project No.: 5303 Doc-ID.: LabVIEW-RT PROFIBUS VISA Driver

KUNBUS

Page 2: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

d:\project\5302_df_profi_ii\anwenderdoku\labview\version 1.35\gettingstarted_rt_dp-slave_e.doc

Revision History

Version Date Description

V1.35 27.04.2017 Minor changes

V1.34 31.03.2017 KUNBUS Branding

V1.33 16.02.2011 Function Palette location changed

V1.32 02.06.2009 Hot plugging note added

V1.31 02.06.2009 Minor fixes

V1.30 16.11.2007 RT Installation changed

V1.29 25.09.2007 DPV1 added

V1.23 03.08.2006 Configurator II Download and Monitor/Modify

V1.22 17.07.2006 Link to Configurator II changed

V1.21 13.01.2006 New install tool / Download tool upgrade

V1.2 28.07.2005 Driver modification / Example update

V1.11 13.01.2006 New install tool / Slave example upgrade

V1.1 28.07.2005 Driver modification / Example update

V1.0 01.06.2005 Initial Version

KUNBUS GmbH

Heerweg 15c 73770 Denkendorf, Germany Phone +49 711 300 20 678 Fax +49 711 300 20 677

Copyright 2017 by KUNBUS GmbH

This document is protected by copyright. Reproduction, duplication, publishing, transfer or disclosure of the

contents of this document are only permitted after prior written agreement has been obtained from KUNBUS

GmbH.

Page 3: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Introduction

KUNBUS V1.35 / 27.04.2017 1

Contents

1 Introduction ................................................................................................................... 4

1.1 Prerequisites: ....................................................................................................... 4

2 Installation .................................................................................................................... 5

3 Profibus menu and example ....................................................................................... 10

3.1 Profibus menu ................................................................................................... 10

3.2 Profibus example ............................................................................................... 11

Page 4: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Introduction LabVIEW-RT PROFIBUS VISA Driver

2 V1.35 / 27.04.2017 KUNBUS

List of Figures

Figure 1: PXI driver installation step 1 .................................................................................... 5

Figure 2: PXI driver installation step 2 .................................................................................... 6

Figure 3: Measurement and Automation Explorer .................................................................. 7

Figure 4: NI-VISA Server Security .......................................................................................... 8

Figure 5: NI-VISA Remote Settings ........................................................................................ 9

Figure 6: Profibus DP-Slave menu ....................................................................................... 10

Figure 7: Profibus DP-Slave Express menu ......................................................................... 10

Figure 8: Profibus DP-Slave example-DP-Slave Properties ................................................. 11

Figure 9: Profibus DP-Slave example-Monitor/Modify .......................................................... 12

Figure 10: Profibus DP-Slave example-Status Info .............................................................. 13

Figure 11: Profibus DP-Slave example block diagramProfibus DP-Slave Express VI ........... 13

Figure 12: DP-Slave Express Profibus ................................................................................. 14

Figure 13: DP-Slave Express Configuration ......................................................................... 15

Figure 14: DP-Slave Express Monitor/Modify ....................................................................... 16

Figure 15: DP-Slave Express VI ........................................................................................... 16

Page 5: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Introduction

KUNBUS V1.35 / 27.04.2017 3

This page is intentionally left blank !

Page 6: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Introduction LabVIEW-RT PROFIBUS VISA Driver

4 V1.35 / 27.04.2017 KUNBUS

1 Introduction

This document describes the set into operation procedure of the DF PROFI II board as

DP-Slave.

1.1 Prerequisites:

A DF PROFI II CPCI (Compact PCI) and KUNBUS LabVIEW VISA driver for LabVIEW

RT on CD.

National Instruments PXI-System with RT.

The National Instruments LabVIEW Real-Time Development System installed on a

Windows PC.

Installed NI-VISA standard driver on the PXI- and Windows-System.

Page 7: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Installation

KUNBUS V1.35 / 27.04.2017 5

2 Installation

Install the DF PROFI II CPCI board in the PXI-System.

Please note, that the DF PROFI II CPCI board does not support Hot Plugging. If

installing/uninstalling the board the PXI system must be switched off and the

power supply must be interrupted.

Switch on the PXI-System.

Start the Setup from the KUNBUS driver CD delivered with the package.

To install the PROFIBUS LabVIEW VISA driver on the PXI system, start the NI MAX

(Measurement & Automation explorer) and open the software installation wizard by

right clicking the Software item of your PXI system:

Figure 1: PXI driver installation step 1

Page 8: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Installation LabVIEW-RT PROFIBUS VISA Driver

6 V1.35 / 27.04.2017 KUNBUS

Right click the KUNBUS DF PROFI II – RT Installation 1.xx component to install it on

the PXI system

Figure 2: PXI driver installation step 2

All files are copied to the PXI system.

Note: After installation the PXI-System will restart automatically.

Page 9: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Installation

KUNBUS V1.35 / 27.04.2017 7

Check by the NI MAX (Measurement & Automation explorer) the proper installation of

the DF PROFI II board:

Figure 3: Measurement and Automation Explorer

Page 10: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Installation LabVIEW-RT PROFIBUS VISA Driver

8 V1.35 / 27.04.2017 KUNBUS

To allow the access to each PXI-System with a installed DF PROFI II board check the

VISA Server permissions. Create a new server permission as described in the picture

below (follow step 1 – step 4). Refer to the MAX help menu for more information.

Figure 4: NI-VISA Server Security

Page 11: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Installation

KUNBUS V1.35 / 27.04.2017 9

To find DF PROFI II boards in PXI-Systems enable the corresponding remote address

(follow step 1 – step 4). Refer to the MAX help menu for more information.

Figure 5: NI-VISA Remote Settings

Note: If the remote address not listed, use the Create New System-button to create it

manually.

Page 12: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Profibus menu and example LabVIEW-RT PROFIBUS VISA Driver

10 V1.35 / 27.04.2017 KUNBUS

3 Profibus menu and example

The delivery package includes VI’s to initialize the DF PROFI II as DP-Slave. Refer to the

LabVIEW Context Help for details.

3.1 Profibus menu

The KUNBUS DF PROFI II menu can be found under:

KUNBUS Library

Profibus VISA Driver

DF PROFI II DP-Slave

Figure 6: Profibus DP-Slave menu

For an easy access an Express VI is available. The Express VI can be found in the KUNBUS

DF PROFI II menu under:

DP-Slave Express

Figure 7: Profibus DP-Slave Express menu

Page 13: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Profibus menu and example

KUNBUS V1.35 / 27.04.2017 11

3.2 Profibus example

Before the DFP2_DP-SlaveExample sample program can be run select within the

DP-Slave Properties-Tab the DFP2ResourceName of the DF PROFI II board to be used.

Additionally select the Address, the Baud rate and a slave module from module list. These

parameters must correspond with the Profibus master configuration. Run the

DFP2_DP-SlaveExample.vi:

Figure 8: Profibus DP-Slave example-DP-Slave Properties

Page 14: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Profibus menu and example LabVIEW-RT PROFIBUS VISA Driver

12 V1.35 / 27.04.2017 KUNBUS

The Monitor/Modify-Tab shows the input and output data as well as the communication

status of the DP-Slave. To update the input data, change the values of the Modify input data

control and press the Set input data button:

Figure 9: Profibus DP-Slave example-Monitor/Modify

Page 15: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Profibus menu and example

KUNBUS V1.35 / 27.04.2017 13

The Status-Tab shows the DP-Slave communication status in detail:

Figure 10: Profibus DP-Slave example-Status Info

The VI’s block diagram shows the simple steps how to access the DF PROFI II as

DP-Slaves:

Figure 11: Profibus DP-Slave example block diagramProfibus DP-Slave Express VI

Page 16: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Profibus menu and example LabVIEW-RT PROFIBUS VISA Driver

14 V1.35 / 27.04.2017 KUNBUS

For an easy access a Profibus DP-Slave Express VI is available. If dropping the

Express-VI to the block diagram a dialog opens to configure the DP-Slave. Select the

DF PROFI II board, the Profibus address of the DP-Slave and the Baud rate:

Figure 12: DP-Slave Express Profibus

Page 17: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

LabVIEW-RT PROFIBUS VISA Driver

Profibus menu and example

KUNBUS V1.35 / 27.04.2017 15

The Configuration-Tab shows the supported slave modules. The selected module must

correspond with the Profibus master configuration:

Figure 13: DP-Slave Express Configuration

Note: Before using the monitor/modify-mode a available DF PROFI II, a valid Profibus

address, the Baud rate and the module must be selected.

Page 18: LabVIEW-RT PROFIBUS VISA Driver DP-Slave · LabVIEW -RT PROFIBUS VISA Driver Profibus menu and example KUNBUS V1.35 / 27.04.2017 11 3.2 Profibus example Before the DFP2_DP-SlaveExample

Profibus menu and example LabVIEW-RT PROFIBUS VISA Driver

16 V1.35 / 27.04.2017 KUNBUS

The Monitor/Modify-Tab shows the input and output data as well as the communication

status of the DP-Slave. The output data can be modified by clicking directly in the value field

and entering new data. The data must be entered in the same format as displayed, otherwise

they will be ignored:

Figure 14: DP-Slave Express Monitor/Modify

After configuration the Profibus Express VI provides all necessary DP-Slave data:

Figure 15: DP-Slave Express VI

To change the properties double click the Express VI


Recommended