Page 2
Revision History Version Date Description Resp. V2.3 20.09.2017 KUNBUS rebranding, location of GSD JKU, AME V2.2 01.09.2015 cross-reference amendment in chapter 4 V2.1 25.06.2015 Prerequisites changed regarding NI RIO Version V 2.0 26.09.2013 Change from MDK 1.0 to MDK 2.0 MF,JK V1.4...
NI-RIO Version 14.5 or higher needs to be installed. A PROFIBUS DP Master System connected to the cRIO PB Slave module. Note: The CompactRIO PROFIBUS DP modules require 2.5 W of power, so you must use it in Slot 1 while leaving Slot 2 empty.
Figure 1: Measurement and Automation Explorer Note: The CompactRIO PROFIBUS DP modules require 2.5 W of power, so you must use it in Slot 1 while leaving Slot 2 empty. Note: The cRIO PB module will not be displayed here.
PLC. cRIO file KUNB0B57.GSD found folder “…\Public\Documents\Kunbus GmbH\GSD”. Additionally the GSD file is included in the auto populating folder “GSD” inside the PROFIBUS DP Slave Example project. CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
DP-AutoSlave mode. DP-AutoSlave means that after power on the cRIO PB module automatically starts in DP Slave mode and waits to be configured by a DP Master system (i.e.PLC). In DP-AutoSlave mode cRIO PB automatically detects the PROFIBUS baud rate. CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
Value Description 0 – 240 Read Count Data size of the received output data stream 0 – 255 Slave Status Communication status of cRIO PB module Table 2: Read/Write Slave Data Parameter CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
The Get Slave Output Data Method reads output data received from the DP Master from internal memory. Use the Read/Write Slave Data Method first to update the output data in the internal memory. CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
Index 0 = Input Byte 0; Index 1 = Input Byte 1; … 0 – 255 Data Input data byte Length Max cRIO PB Slave input data size Table 5: Set Slave input Data Parameter CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
The VI specific context help menu describes in detail all VI specific parameters. DP-Slave menu Use the cRIO PB palettes to access the RT DP-Slave VIs. Click Functions Palette » Addons » Kunbus Librarys » cRIO PB Slave » DP-Slave: Figure 7: DP-Slave menu 5.1.1 Slave I/O-Data The CS_cRIO-PB_DP-Slave_SlaveIOData.vi exchanges I/O data and status with the cRIO...
Page 13
DP Slave output data Communication status of cRIO PB Slave 0 – 255 Slave Status Refer to 0 Table 2: Read/Write Slave Data Parameter Slave Status for detailed information Table 6: Slave I/O-Data Parameter CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
Set and Get DP-AutoSlave address On LabVIEW click Menu Help Find Examples. The “NI Example Finder” opens. Choose the directory Toolkits and Modules -> Third-Party Add-Ons -> KUNBUS GmbH -> PROFIBUS and open the LabVIEW project “CS_cRIO-PB_DP-SlaveExample.lvproj”. Complete the following steps to use the CRIO PB module with your FPGA Target: 1.
Page 15
FPGA VI Reference dialog box. Click the VI radio button, select CS_cRIO-PB_DP-SlaveExample(FPGA).vi in the Select VI dialog box and click the OK button. Run the CS_cRIO-PB_DP-SlaveExample(Host).vi and following the Instructions in the DP- Slave section. CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
Deactivate DP-AutoSlaveMode configured for DP- AutoSlaveMode (see AutoSlaveMode. None other chapter 4.1.1) operation than DP- AutoSlaveMode. mode can be activated 0x17 cRIO module DP-AutoSlaveMode Activate not active activated AutoSlaveMode (see chapter 4.1.1) CompactRIO PROFIBUS DP-Getting Started-V2.3/20.09.2017 Business Confidential/ Proprietary...
Page 17
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.
Need help?
Do you have a question about the CompactRIO PROFIBUS DP and is the answer not in the manual?
Questions and answers