Kunbus C Series Getting Started

Profinet io slave module

Advertisement

Quick Links

cRIO PN – C SERIES PROFINET IO Slave Module
Getting started
V2.3/20.09.2017
cRIO PN-GettingStarted- V2.3/20.09.2017

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Kunbus C Series

  • Page 1 PN – C SERIES PROFINET IO Slave Module Getting started V2.3/20.09.2017  cRIO PN-GettingStarted- V2.3/20.09.2017...
  • Page 2 Revision History Version Date Description Resp. V2.3 20.09.2017 Kunbus Branding, Location of Example / GSD changed because of VIPM package V2.2 23.06.2015 Schreibfehler Seite 15 Slot von 0-16 auf 1-16 korrigiert V2.1 24.03.2014 Read/Write record index and error codes added V2.0...
  • Page 3: Table Of Contents

    Getting started Contents Contents Introduction ........................1 Worldwide Support and Services ................. 1 Prerequisites: ....................... 1 Installation ........................2 Configuring the PN IO-Controller with the cRIO PN IO-Device module ......3 FPGA Method Nodes ....................4 IO Data Methode Nodes ..................5 4.1.1 Read/Write IO Data Method ..............
  • Page 4 Contents Getting started List of Figures Figure 1: Measurement and Automation Explorer ..............2 Figure 4: cRIO PN Module API ....................4 Figure 5: Read/Write IO Data Method Node ................5 Figure 6: Get Output Data Method Node ................5 Figure 7: Set Input Data Method Node ...................
  • Page 5 Getting started Contents List of Tables Table 1: Read/Write IO Data Parameter ................5 Table 2: Get Output Data Parameter ..................6 Table 3: Get Input Data Parameter ..................6 Table 4: Read/Write Alarm Parameter ................... 7 Table 5: Set Diagnostic Data Parameter ................8 Table 6: Set Process Data Paramete ..................
  • Page 6 Contents Getting started Blank page  cRIO PN-GettingStarted-V2.3/20.09.2017 Business Confidential/ Proprietary...
  • Page 7: Introduction

    Getting started Introduction Introduction This document describes the set into operation procedure of the cRIO PN module as IO-Device. Worldwide Support and Services The National Instruments website is your complete resource for technical support. At ni.com/support, you have access to everything from troubleshooting and application development self-help resources to email and phone assistance from NI Application Engineers.
  • Page 8: Installation

    Installation Getting started Installation  Install the cRIO PN according the document cRIO PN – Installation Instructions  Switch on the CompactRIO system  Install the cRIO PN driver software downloaded from Tools Network  Check by the NI MAX (Measurement & Automation explorer) the proper installation of the cRIO system: Figure 1: Measurement and Automation Explorer Note: The cRIO PN module will be not displayed here.
  • Page 9: Configuring The Pn Io-Controller With The Crio Pn Io-Device Module

    For this the cRIO PN module ships with a GSDML (GSD) file that can be imported on the PN IO-Controller configuration tool. The cRIO PN GSDML file GSDML-Vx.x- Kunbus-cRIO PN-yyyymmdd.xml can be found in the folder “…\Public\Documents\Kunbus GmbH\GSDML”. Additionally the GSDML file is included in the auto populating folder “GSDML”...
  • Page 10: Fpga Method Nodes

    C Series Modules from the shortcut menu to display the Add Targets and Devices dialog box. 2. Click the New target or device radio button, select C Series Module, and click OK button to display the New C Series Module dialog box.
  • Page 11: Io Data Methode Nodes

    Getting started FPGA Method Nodes IO Data Methode Nodes 4.1.1 Read/Write IO Data Method The Read/Write IO Data Method transmits input data to the IO Controller and receives output data from the IO Controller. The related I/O data are stored in the internal memory. Additionally the method sets the IOPS input status and returns the IOCS output status of the IO Device Slot.
  • Page 12: Set Input Data Method

    Configured cRIO PN Output data size Note: If the value may not return the real configured output data length, please contact the KUNBUS GmbH to get the latest firmware update of the cRIO PN. Table 2: Get Output Data Parameter 4.1.3...
  • Page 13: Alarm Data Method Nodes

    Getting started FPGA Method Nodes Alarm Data Method Nodes 4.2.1 Read/Write Alarm Method The Read/Write Alarm Method handles specific diagnostic- and alarm messages. The related diagnostic- and alarm data are stored in the internal memory. The internal memory can be accessed by the Set Diagnostic Data Method and the Set Process Data Method.
  • Page 14: Set Process Data Method

    FPGA Method Nodes Getting started Figure 7: Set Diagnostic Data Method Node Parameter Value Description 0 – 253 Index Byte-Address of the IO Device diagnostic data stream Index 0 = Diag Byte 0; Index 1 = Diag Byte 1; … 0 –...
  • Page 15: Record Data Method Nodes

    Getting started FPGA Method Nodes Record Data Method Nodes cRIO PN supports acyclic data exchange in combination with the PN IO-Controller by PN IO ReadRec- and WriteRec services. cRIO PN provides internal buffers for every configured PN IO slot storing read- and write specific acyclic data.
  • Page 16: Read Record Method

    FPGA Method Nodes Getting started 4.3.1 Read Record Method The Read Record Data Method receives read record data from the IO Controller. The read record data are stored in the internal memory. The internal memory can be accessed by the Get Record Data Method.
  • Page 17: Write Record Method

    Getting started FPGA Method Nodes 4.3.3 Write Record Method The Write Record Data Method transmits record data to cRIO PN module which then can be read by the PN IO Controller. The record data are stored in the internal memory. The internal memory can be accessed by the Set Record Data Method.
  • Page 18: Labview Rt Profinet Io Device Vi

    The VI specific context help menu describes in detail all VI specific parameters. IO Device menu Use the cRIO PN palette to access the RT IO Device VIs. Click Functions Palette » Kunbus GmbH » cRIO PN Device: Figure 14: cRIO PN Device menu 5.1.1...
  • Page 19: Device Alarm Data

    Getting started LabVIEW RT PROFINET IO Device VI IOPS 0x00 Bad by Subslot Input status 0x80 Good 0 – 254 Input length Size of cRIO PN IO-Device input data transmitted to the IO-Controller 0 – 254 Output length Size of cRIO PN IO-Device output data received from the IO-Controller [0 –...
  • Page 20: Device Record Data

    LabVIEW RT PROFINET IO Device VI Getting started 1 – 16 Slot PROFINET IO Slot [0 – 255] Alarm data IO-Device alarm data Table 13: Device Alarm Parameter 5.1.3 Device Record Data The CS_cRIO-PN_IO-Device_RecordData.vi exchanges Alarm-Data with the PN IO- Controller.
  • Page 21: Rt Device Example

    2. Add the cRIO-PNAD module to your FPGA Target:  Right-click your FPGA Target in the Project Explorer window and select New » C Series Modules from the shortcut menu to display the Add Targets and Devices dialog box. ...
  • Page 22 RT Device Example Getting started 6. Configure Open FPGA VI Reference to communicate between the Host VI and FPGA VI.  Double-click the RT Master example CS_cRIO-PN_IO- DeviceExample(Host).vi and select Window»Show Block Diagram.  Right-click the Open FPGA VI Reference function and select Configure Open FPGA VI Reference from the shortcut menu to display the Configure Open FPGA VI Reference dialog box.
  • Page 23: Error Codes

    Getting started Error codes Error codes Status and Error codes returned by the cRIO PN module are handled via the Error Terminal of the Property and Method Node. Right-click the Property or Method Node and select Show Error Terminals from the shortcut menu to enable the error handling.
  • Page 24 Information is subject to change without notice. Refer to the NI Trademarks and Logo Guidelines at ni.com/trademarks for more information on NI trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering NI products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patents Notice at ni.com/patents.

This manual is also suitable for:

Crio pn

Table of Contents