ProSoft Technology 5204-DFNT-PDPMV1 User Manual

PDPMV1
ProLinx Gateway
PROFIBUS DPV1 Master
March 23, 2011
PROTOCOL MANUAL
Your Feedback Please
We always want you to feel that you made the right decision to use our products. If you have suggestions, comments, compliments or complaints about our products, documentation, or support, please write or call us.
How to Contact Us
ProSoft Technology
5201 Truxtun Ave., 3rd Floor Bakersfield, CA 93309 +1 (661) 716-5100 +1 (661) 716-5101 (Fax) www.prosoft-technology.com support@prosoft-technology.com
Copyright © 2011 ProSoft Technology, Inc., all rights reserved.
PDPMV1 Protocol Manual
March 23, 2011
ProSoft Technology ®, ProLinx ®, inRAx ®, ProTalk ®, and RadioLinx ® are Registered Trademarks of ProSoft Technology, Inc. All other brand or product names are or may be trademarks of, and are used to identify products and services of, their respective owners.
ProSoft Technology® Product Documentation
In an effort to conserve paper, ProSoft Technology no longer includes printed manuals with our product shipments. User Manuals, Datasheets, Sample Ladder Files, and Configuration Files are provided on the enclosed CD-ROM in Adobe® Acrobat Reader file format (.PDFs). These product documentation files may also be freely downloaded from our web site: www.prosoft-technology.com
Important Installation Instructions
Power, Input, and Output (I/O) wiring must be in accordance with Class I, Division 2 wiring methods, Article 501-4 (b) of the National Electrical Code, NFPA 70 for installation in the U.S., or as specified in Section 18-1J2 of the Canadian Electrical Code for installations in Canada, and in accordance with the authority having jurisdiction. The following warnings must be heeded:
WARNING - EXPLOSION HAZARD - SUBSTITUTION OF COMPONENTS MAY IMPAIR SUITABILITY FOR CLASS I, DIV. 2; WARNING - EXPLOSION HAZARD - WHEN IN HAZARDOUS LOCATIONS, TURN OFF POWER BEFORE REPLACING OR WIRING MODULES WARNING - EXPLOSION HAZARD - DO NOT DISCONNECT EQUIPMENT UNLESS POWER HAS BEEN SWITCHED OFF OR THE AREA IS KNOWN TO BE NON-HAZARDOUS. THIS DEVICE SHALL BE POWERED BY CLASS 2 OUTPUTS ONLY.
ProLinx® Products Warnings
WARNING – EXPLOSION HAZARD – DO NOT DISCONNECT EQUIPMENT UNLESS POWER HAS BEEN SWITCHED OFF OR THE AREA IS KNOWN TO BE NON-HAZARDOUS. AVERTISSEMENT – RISQUE D'EXPLOSION – AVANT DE DÉCONNECTER L'EQUIPMENT, COUPER LE COURANT OU S'ASSURER QUE L'EMPLACEMENT EST DÉSIGNÉ NON DANGEREUX.
ProLinx Gateways with Ethernet Ports
Series C ProLinx™ Gateways with Ethernet ports do NOT include the HTML Web Server. The HTML Web Server must be ordered as an option. This option requires a factory-installed hardware addition. The HTML Web Server now supports:
8 MB file storage for HTML files and associated graphics files (previously limited to 384K)  32K maximum HTML page size (previously limited to 16K)
To upgrade a previously purchased Series C model
Contact your ProSoft Technology distributor to order the upgrade and obtain a Returned Merchandise Authorization (RMA) to return the unit to ProSoft Technology.
PDPMV1 ♦ ProLinx Gateway Contents PROFIBUS DPV1 Master Protocol Manual
Contents
Your Feedback Please ........................................................................................................................ 2
How to Contact Us .............................................................................................................................. 2
ProSoft Technology® Product Documentation .................................................................................... 2
Important Installation Instructions ....................................................................................................... 3
ProLinx® Products Warnings ............................................................................................................... 3
ProLinx Gateways with Ethernet Ports ............................................................................................... 3
To upgrade a previously purchased Series C model ..................................................................... 3
1 Functional Overview 9
1.1
1.2
1.3
1.4
1.5
1.6
1.3.1
1.3.2
1.3.3
1.3.4
About the PROFIBUS Protocol ............................................................................... 10
Compatibility Note ................................................................................................... 11
PROFIBUS DP Architecture .................................................................................... 12
How Cable Length Affects Communication Rate .................................................... 12
Bus Access .............................................................................................................. 12
Token Passing ......................................................................................................... 13
Master/Slave Polling ................................................................................................ 13
Communication Types ............................................................................................. 14
Master/Slave Communication Phases .................................................................... 15
Gateway Internal Database ..................................................................................... 16
2 Configuration 17
2.1
2.2
2.3
2.4
2.5
2.1.1
2.1.2
2.1.3
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
2.2.6
2.2.7
2.2.8
2.2.9
2.2.10
2.2.11
2.2.12
2.2.13
2.2.14
2.2.15
2.4.1
2.4.2
2.4.3
2.4.4
Configuring the Gateway ......................................................................................... 18
Installing ProSoft Configuration Builder Software ................................................... 18
Setting Up the Project ............................................................................................. 22
Setting Gateway Parameters .................................................................................. 24
PROFIBUS Master DPV1........................................................................................ 26
Input Start Register ................................................................................................. 26
Input Data Size ........................................................................................................ 26
Output Start Register ............................................................................................... 26
Output Data Size ..................................................................................................... 26
Input Byte Swap ...................................................................................................... 27
Output Byte Swap ................................................................................................... 27
Mailbox Register ...................................................................................................... 28
Slave Diagnostics Register ..................................................................................... 29
Alarm Register ......................................................................................................... 29
Status Data Register ............................................................................................... 29
Minimum Command Delay ...................................................................................... 29
Response Timeout .................................................................................................. 29
Watchdog Register .................................................................................................. 29
Watchdog Timeout .................................................................................................. 30
Watchdog Reset Value ............................................................................................ 30
PROFIBUS Master Commands .............................................................................. 31
Example Mailbox Commands ................................................................................. 33
Set Operating Mode ................................................................................................ 33
Get Live List ............................................................................................................ 38
Start/Stop Slaves ..................................................................................................... 43
Other Mailbox Commands....................................................................................... 49
Configuring the PROFIBUS DP Network ................................................................ 52
ProSoft Technology, Inc. Page 5 of 157 March 23, 2011
Contents PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
2.5.1
2.6
2.7
2.5.2
2.5.3
Installing the GSD Files .......................................................................................... 52
Configuring the PROFIBUS Slaves ........................................................................ 53
Printing the ProLinx Memory Map .......................................................................... 69
Downloading the Project to the Gateway ............................................................... 71
Backing Up the Project ........................................................................................... 72
3 Mailbox Messaging 75
3.1
3.2
3.3
3.1.1
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.2.6
3.2.7
3.2.8
3.2.9
3.2.10
3.3.1
3.3.2
3.3.3
3.3.4
3.3.5
Mailbox Message Queuing ..................................................................................... 76
Queue Timeouts ..................................................................................................... 76
Special Function Mailbox Messaging Commands .................................................. 77
Mailbox Message: Set Operating Mode ................................................................. 78
Mailbox Message: Set Slave Mode ........................................................................ 80
Mailbox Message: Get Slave Diagnostics .............................................................. 83
Mailbox Message: Get Slave Configuration ........................................................... 86
Mailbox Message: Get Database Information ........................................................ 87
Mailbox Message: Get Live List .............................................................................. 89
Mailbox Message: Acyclic Data Read: Class 1 ...................................................... 91
Mailbox Message: Acyclic Data Write: Class 1 ...................................................... 93
Mailbox Message: Start Slave ................................................................................ 95
Mailbox Message: Stop Slave ................................................................................ 96
Mailbox Messaging Error Codes............................................................................. 99
Acyclic Message Status Word ................................................................................ 99
Return Codes ........................................................................................................ 100
Error Codes ........................................................................................................... 101
DP-V1 Error Codes ............................................................................................... 102
Command Error Codes ......................................................................................... 103
4 Diagnostics and Troubleshooting 105
4.1
4.2
4.3
4.4
4.5
4.6
4.7
4.3.1
4.3.2
4.5.1
4.5.2
4.6.1
4.6.2
4.6.3
4.6.4
4.6.5
4.6.6
4.7.1
Required Hardware ............................................................................................... 106
Basic Troubleshooting Steps ................................................................................ 107
PROFIBUS DP-V1 (PDPMV1 Driver) Master LED Indicators .............................. 108
PROFIBUS Master Indicators ............................................................................... 108
Examples .............................................................................................................. 109
Viewing the Online Status of the PROFIBUS Network ......................................... 110
Using ProSoft Configuration Builder (PCB) for Diagnostics ................................. 112
Using the Diagnostic Window in ProSoft Configuration Builder - PLX ................. 112
Main Menu ............................................................................................................ 115
Standard PROFIBUS Slave Diagnostic Bytes ...................................................... 117
Byte 0 - Station Status 1 Bits ................................................................................ 117
Byte 1 - Station Status 2 Bits ................................................................................ 117
Byte 2 - Station Status 3 Bits ................................................................................ 118
Byte 3 - Master Address ....................................................................................... 118
Byte 4 - Ident Number High .................................................................................. 118
Byte 5 - Ident Number Low ................................................................................... 118
Status and Status Mapping ................................................................................... 119
PDPMV1 Command Status Data Area ................................................................. 120
5 Reference 121
5.1
5.1.1
PROFIBUS comDTM ............................................................................................ 122
ProSoft Technology Product Availability ............................................................... 122
Page 6 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Contents PROFIBUS DPV1 Master Protocol Manual
5.1.2
5.2
5.3
5.4
5.5
5.6
5.1.3
5.1.4
5.1.5
5.1.6
Introduction to PROFIBUS comDTM .................................................................... 123
System Requirements ........................................................................................... 126
Installation ............................................................................................................. 127
Quick Start ............................................................................................................. 128
Verifying the comDTM Version and comDTM Install Version ............................... 133
RS-232 Configuration/Debug Port ........................................................................ 139
DB9 to Mini-DIN Adaptor (Cable 09) ..................................................................... 140
PROFIBUS Master Port ........................................................................................ 141
Supported PROFIBUS Services ........................................................................... 142
Constructing a Bus Cable for PROFIBUS DP ....................................................... 143
6 Support, Service & Warranty 147
Contacting Technical Support ......................................................................................................... 147
6.1
6.2
6.1.1
6.1.2
6.1.3
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.2.9
6.2.10
Return Material Authorization (RMA) Policies and Conditions.............................. 149
Returning Any Product .......................................................................................... 149
Returning Units Under Warranty ........................................................................... 150
Returning Units Out of Warranty ........................................................................... 150
LIMITED WARRANTY ........................................................................................... 151
What Is Covered By This Warranty ....................................................................... 151
What Is Not Covered By This Warranty ................................................................ 152
Disclaimer Regarding High Risk Activities ............................................................ 152
Intellectual Property Indemnity .............................................................................. 153
Disclaimer of all Other Warranties ........................................................................ 153
Limitation of Remedies ** ...................................................................................... 154
Time Limit for Bringing Suit ................................................................................... 154
No Other Warranties ............................................................................................. 154
Allocation of Risks ................................................................................................. 154
Controlling Law and Severability ........................................................................... 154
Index 155
ProSoft Technology, Inc. Page 7 of 157 March 23, 2011
Contents PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
Page 8 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Functional Overview PROFIBUS DPV1 Master Protocol Manual
1 Functional Overview
In This Chapter
About the PROFIBUS Protocol .............................................................. 10
Compatibility Note ................................................................................. 11
PROFIBUS DP Architecture .................................................................. 12
Communication Types ........................................................................... 14
Master/Slave Communication Phases ................................................... 15
Gateway Internal Database ................................................................... 16
The PROFIBUS Master protocol driver exists as a single port implementation. The driver can be configured as a Class 1 and Class 2 PROFIBUS Master to interface with other PROFIBUS slave devices. The unit is also used for configuration of the nodes on the PROFIBUS network. It provides access to standard and extended diagnostic information, as well as freeze/sync capability, Acyclic Communication (DPV1, Class 1 and 2), and Alarm Handling (DPV1). The PROFIBUS Master port can be used to continuously interface with PROFIBUS slave devices over a serial communication interface (RS-485).
ProSoft Technology, Inc. Page 9 of 157 March 23, 2011
Functional Overview PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
1.1 About the PROFIBUS Protocol
PROFIBUS (Process Field Bus) is a widely used, open-standards protocol created by a consortium of European factory automation suppliers in 1989.
PROFIBUS is a Master/slave protocol. The Master establishes a connection to the remote slave. When the connection is established, the Master sends the PROFIBUS commands to the slave.
The ProLinx PDPMV1 gateway unit acts as an input/output module between devices on a PROFIBUS DP network and any other communication protocol. The gateway uses an internal database to send data and mailbox requests and responses to all PROFIBUS slaves on the PROFIBUS DP network.
PROFIBUS supports a variety of network types. The network type supported by the PLX-PDPMV1 gateway is PROFIBUS DP version 1.0, which is designed for remote I/O systems, motor control centers, and variable speed drives.
Page 10 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Functional Overview PROFIBUS DPV1 Master Protocol Manual
1.2 Compatibility Note
The PDPMV1 product is not backward-compatible with the PDPM product due to new enhancements and command structure. The PDPMV1 PROFIBUS DP-V1 Master gateway provides enhanced features beyond the PDPM DP-V0 gateway as follows:
1 Increased Cyclic I/O. The PDPMV1 provides 768 Words of Input and 768
Words of Output.
2 ProSoft Configuration Builder (PCB) complete support. The PCB provides
module-level configuration and integrated PROFIBUS Master network configuration support.
3 The PDPMV1 Master supports DP-V1 Class 1 or Class 2 DPV1 features such
as acyclic communication with slaves for parameterization and other slave settings, alarm handling, extended diagnostics.
ProSoft Technology, Inc. Page 11 of 157 March 23, 2011
Functional Overview PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
1.3 PROFIBUS DP Architecture
The PROFIBUS DP-V1 Master network supports multiple Master systems with several slaves.
The following table shows the most important features of PROFIBUS DP-V1 Master:
Standard EIN 501 70
DIN 19245
Transmission equipment (Physical) EIA RS-485
IEC 1158-2 (through link or coupler) Fiber Optic Cable (not available)
Transfer procedure Half-duplex
Bus topology Linear bus with active bus termination
Bus cable type Shielded twisted pair conductors
Connector 9-pin D-Sub
Number of nodes on the bus Max: 32 with no repeaters
Max: 125 with 3 repeaters in 4 segments
1.3.1 How Cable Length Affects Communication Rate
Max Bus Cable Length Per Segment Baud Rates (for 12 Mbps cable)
1.2 km 9.6 kbit/sec
1.2 km 19.2 kbit/sec
1.2 km 93.75 kbit/sec
1.0 km 187.5 kbit/sec
0.5 km 500 kbit/sec
0.2 km 1.5 Mbit/sec
0.1 km 3 Mbit/sec
0.1 km 8 Mbit/sec
0.1 km 12 Mbit/sec
1.3.2 Bus Access
Two different bus access procedures handle the various communication requirements for the PROFIBUS DP-V1 Master topology:
Token Passing Polling
Page 12 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Functional Overview PROFIBUS DPV1 Master Protocol Manual
1.3.3 Token Passing
Token passing ring is the basis for communication between the more complex, active stations. All stations have the same rights in that a token is passed from station to station in a logical ring. The token is passed to each station with a maximum, definable token cycle time. A station is given transmission rights for the duration of time that it has the token.
1.3.4 Master/Slave Polling
Master/slave polling guarantees a cyclic, real-time based data exchange between the station with transmission rights, the active station, and its subordinates, the passive stations. In this case, the Master is able to pass data to the slave and/or receive data. The services in layer 2 (field-bus data link in ISO­OSI reference model) organize this communication.
ProSoft Technology, Inc. Page 13 of 157 March 23, 2011
Functional Overview PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
1.4 Communication Types
In addition to point-to-point data transfer, the PROFIBUS protocol can also handle the following types of communication.
Broadcast communication: An active node sends an unacknowledged
message to all other nodes (Master and slaves)
Multicast communication (control instructions): An active node sends an
unacknowledged message to a group of nodes (Master and slaves)
Page 14 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Functional Overview PROFIBUS DPV1 Master Protocol Manual
1.5 Master/Slave Communication Phases
The communication between the Master and the slaves takes place in the following phases:
Parameterization and configuration phase Usable data transfer phase
Before a DP slave can be integrated into the usable data transfer phase, the parameterization and configuration phase runs a device identification test that verifies that the planned configuration matches the actual device configuration for each slave in the PROFIBUS network. The test verifies that:
The device is actually there It is the right type of device The station address set on the device matches the station address in the bus
configuration
The formats, telegram length information, and bus parameters are correct
and
The number of configured inputs and outputs is correct
ProSoft Technology, Inc. Page 15 of 157 March 23, 2011
Functional Overview PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
1.6 Gateway Internal Database
The internal database is central to the functionality of the gateway. This database is shared between all the ports on the gateway and is used as a conduit to pass information from one device on one network to one or more devices on either connected network. This permits data from devices on one communication port or network to be viewed and controlled by devices on another port or network.
In addition to data from the Master and slave ports, status and error information generated by the gateway can also be mapped into the internal database.
Page 16 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Configuration PROFIBUS DPV1 Master Protocol Manual
2 Configuration
In This Chapter
Configuring the Gateway ....................................................................... 18
PROFIBUS Master DPV1 ...................................................................... 26
PROFIBUS Master Commands ............................................................. 31
Example Mailbox Commands ................................................................ 33
Configuring the PROFIBUS DP Network ............................................... 52
Downloading the Project to the Gateway .............................................. 71
Backing Up the Project .......................................................................... 72
ProSoft Technology, Inc. Page 17 of 157 March 23, 2011
Configuration PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
2.1 Configuring the Gateway
Because the task of configuring the PROFIBUS network can be challenging, ProSoft Technology has provided a configuration tool called ProSoft Configuration Builder (PCB) that will help you with the following tasks:
Creating a configuration project (page 22) Setting gateway parameters (page 24) Configuring the PROFIBUS network (page 52) (Master and slaves) Downloading the project to the gateway (page 71)
The following topics of this chapter explain each task step-by-step.
2.1.1 Installing ProSoft Configuration Builder Software
You must install the ProSoft Configuration Builder (PCB) software to configure the gateway. You can always get the newest version of ProSoft Configuration Builder from the ProSoft Technology website.
To install ProSoft Configuration Builder from the ProSoft Technology website
1 Open your web browser and navigate to http://www.prosoft-
technology.com/pcb
2 Click the D
Configuration Builder.
3 Choose S 4 Save the file to your Windows Desktop, so that you can find it easily when
you have finished downloading.
5 When the download is complete, locate and open the file, and then follow the
instructions on your screen to install the program.
If you do not have access to the Internet, you can install ProSoft Configuration Builder from the ProSoft Solutions Product CD-ROM, included in the package with your gateway.
OWNLOAD HERE
AVE
or S
AVE FILE
link to download the latest version of ProSoft
when prompted.
Page 18 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Configuration PROFIBUS DPV1 Master Protocol Manual
To install ProSoft Configuration Builder from the Product CD-ROM
1 Insert the ProSoft Solutions Product CD-ROM into the CD-ROM drive of your
PC. Wait for the startup screen to appear.
2 On the startup screen, click P
RODUCT DOCUMENTATION
. This action opens a
Windows Explorer file tree window.
3 Click to open the U
TILITIES
folder. This folder contains all of the applications
and files you will need to set up and configure your gateway.
4 Double-click the S
PCB_*.
EXE
file and follow the instructions on your screen to install the
ETUP CONFIGURATION TOOL
folder, double-click the
software on your PC. The information represented by the "*" character in the file name is the PCB version number and, therefore, subject to change as new versions of PCB are released.
Note: Many of the configuration and maintenance procedures use files and other utilities on the CD-ROM. You may wish to copy the files from the Utilities folder on the CD-ROM to a convenient location on your hard drive.
Using the Online Help
Most of the information needed to help you use ProSoft Configuration Builder is provided in a Help System that is always available whenever you are running ProSoft Configuration Builder. The Help System does not require an Internet connection.
To view the help pages, start ProSoft Configuration Builder, open the H menu, and then choose C
ONTENTS
.
ELP
Adding a Location to an Existing Project File
1 Right-click the P
ROJECT
icon and select A
DD LOCATION
. A new Location icon
appears. or
Select the P
2 Choose P
ROJECT
ROJECT
icon.
from the P
ROJECT
menu, and then choose A
DD LOCATION
.
A new Location icon appears. or
If the Default Location has not been named (is not already an existing project), right-click the folder and choose R
3 Type in the Location name.
ENAME
.
Adding a Project to an Existing Project File
1 Select the D 2 Open the P
This action opens a new Project folder.
EFAULT PROJECT
ROJECT
menu, choose P
icon.
ROJECT,
and then choose A
DD PROJECT
.
ProSoft Technology, Inc. Page 19 of 157 March 23, 2011
Configuration PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
Adding a Module
Begin the process of creating your custom application configuration by selecting the module type of your ProLinx gateway.
1 Double-click the D
EFAULT MODULE
icon to open the Choose Module Type
dialog box.
2 In the Choose Module Type dialog box, select the M
ODULE
type.
Or
1 Open the P 2 On the L
ROJECT
OCATION
menu and choose L
menu, choose A
DD MODULE
OCATION.
.
To add a module to a different location
1 Right-click the L
OCATION
folder and choose A
DD MODULE
. A new Module icon
appears.
Or
1 Select the L 2 From the P
OCATION
ROJECT
icon.
menu, select L
OCATION
, and then select A
DD MODULE
.
Page 20 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Configuration PROFIBUS DPV1 Master Protocol Manual
Configuring Gateway Parameters
1 Click the [+] sign next to the module icon to expand gateway information. 2 Click the [+] sign next to any icon to view gateway information and
configuration options.
3 Double-click any icon to open an Edit dialog box. 4 To edit a parameter, select the parameter in the left pane and make your
changes in the right pane.
5 Click OK to save your changes.
Creating Optional Comment Entries
1 Click the [+] to the left of the icon to expand the module
comments.
2 Double-click the icon. The Edit - Module Comment dialog box
appears.
3 Enter your comment and click OK to save your changes.
Printing a Configuration File
1 Select the module icon, and then click the right mouse button to open a
shortcut menu.
2 On the shortcut menu, choose V
IEW CONFIGURATION
. This action opens the
View Configuration window.
3 In the View Configuration window, open the F
ILE
menu, and choose P
RINT.
This action opens the Print dialog box.
4 In the Print dialog box, choose the printer to use from the drop-down list,
select printing options, and then click OK.
ProSoft Technology, Inc. Page 21 of 157 March 23, 2011
Configuration PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
2.1.2 Setting Up the Project
To begin, start ProSoft Configuration Builder. If you have used other Windows configuration tools before, you will find the screen layout familiar. ProSoft Configuration Builder’s window consists of a tree view on the left, an information pane and a configuration pane on the right side of the window. When you first start ProSoft Configuration Builder, the tree view consists of folders for Default Project and Default Location, with a Default Module in the Default Location folder. The following illustration shows the ProSoft Configuration Builder window with a new project.
Your first task is to add the PDPMV1 gateway to the project.
1 Use the mouse to select D
EFAULT MODULE
in the tree view, and then click the
right mouse button to open a shortcut menu.
Page 22 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Configuration PROFIBUS DPV1 Master Protocol Manual
2 On the shortcut menu, select C
HOOSE MODULE TYPE
. This action opens the
Choose Module Type dialog box.
3 In the Product Line Filter area of the dialog box, select the gateway series
(PLX5K for wired gateways, or PLX6K for wireless gateways). In the Select Module Type dropdown list, select the model number for your gateway (for example, 5204-MNET-PDPMV1), and then click OK to save your settings and return to the ProSoft Configuration Builder window.
The next task is to set the gateway parameters.
ProSoft Technology, Inc. Page 23 of 157 March 23, 2011
Configuration PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
2.1.3 Setting Gateway Parameters
Notice that the contents of the information pane and the configuration pane changed when you added the PDPMV1 gateway to the project. The red "X" icon indicates that the gateway’s configuration is incomplete.
1 Click the plus sign [+] next to the module icon to expand the module tree, and
then expand the PLX PDPM-V1 tree.
2 Double-click the PROFIBUS M
ASTER
DPV1 object. This action opens the Edit
dialog box.
3 In the Edit dialog box, enter the values for Input Data Size and Output Data
Size (PROFIBUS input and output point words) to match the values required
by your application. To change a value, select the parameter to modify in the left pane, and then type the new value in the edit field in the right pane.
Page 24 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Configuration PROFIBUS DPV1 Master Protocol Manual
For the sample application, the input and output data size values are fixed to a value of 768.
4 Click OK to save your settings and return to the ProSoft Configuration Builder
window.
At this time, you may wish to rename the Default Project and Default Location folders in the tree view.
To rename an object
1 Select the object, and then click the right mouse button to open a shortcut
menu. From the shortcut menu, choose R
ENAME
.
2 Type the name to assign to the object. 3 Click away from the object to save the new name.
ProSoft Technology, Inc. Page 25 of 157 March 23, 2011
Configuration PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
2.2 PROFIBUS Master DPV1
2.2.1 Input Start Register
0 to 3230 Database start register for input data.
2.2.2 Input Data Size
0 to 768 Total number of PROFIBUS Input Words (one word equals two bytes) from all
PROFIBUS slaves. These Input Words will be the data received from slave devices on the PROFIBUS network.
2.2.3 Output Start Register
0 to 3230 Database start register for output data.
2.2.4 Output Data Size
0 to 768 Total number of PROFIBUS Output Words (one word equals two bytes) to be
sent to all PROFIBUS slaves. These Output Words will be the data sent to slave devices on the PROFIBUS network.
Page 26 of 157 ProSoft Technology, Inc. March 23, 2011
PDPMV1 ♦ ProLinx Gateway Configuration PROFIBUS DPV1 Master Protocol Manual
2.2.5 Input Byte Swap
YES or NO
This parameter determines if the bytes in the PROFIBUS Input Data area are swapped before being stored in the gateway memory database. If the parameter is set to NO, no swapping will be applied. If the parameter is set to YES, the order of bytes in each word will be swapped before being stored in memory.
Example:
With Input Byte Swap set to NO, incoming order is unchanged - ABCDEF  With Input Byte Swap set to YES, each byte pair is swapped - BADCFE
2.2.6 Output Byte Swap
YES or NO
This parameter determines if the bytes in the PROFIBUS Output Data area are swapped before being transmitted to slaves on the PROFIBUS network. If the parameter is set to NO, no swapping will be applied. If the parameter is set to
YES, the order of bytes in each word will be swapped before being transmitted.
Example: With Output Byte Swap set to NO, outgoing output order is unchanged -
ABCDEF
With Output Byte Swap set to YES, each output byte pair is swapped -
BADCFE
ProSoft Technology, Inc. Page 27 of 157 March 23, 2011
Configuration PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
2.2.7 Mailbox Register
0 to 3700, -1 to disable Enter the database register for DPV1 mailbox messages, or -1 to disable mailbox
messages. Mailbox messages can be sent through the database to the PROFIBUS Master.
This functionality requires 290 registers of the database. The map of the database area utilized for this purpose is as follows.
Offset Description
0 This is the handshake word used to tell the PROFIBUS driver when a new acyclic
message is ready to send. If the value at this location is zero (0), no message will be sent. If the value is not zero, then the PROFIBUS driver will send an acyclic message using the contents of words 1 through 144. This handshake word should be set to a non-zero value only after the complete acyclic message is stored in offsets 1 to 144. After the PROFIBUS driver has added the acyclic message to the queue, this register will be set to zero (0), so that the message is not repeated and to indicate that a new acyclic message may be prepared. NOTE: It would be a good practice to check the value of word 145 to be sure it is set to zero (indicating that no acyclic messages are awaiting processing) before setting this word to a non-zero value, triggering an acyclic message. This will help avoid acyclic data collisions and data loss.
1 to 144 This area holds the acyclic message bytes to send. Please refer to Mailbox
Messaging (page 75) for the format of this data area. NOTE: The header words (first 32 bytes) are stored in little-endian format and the gateway will change the order to big-endian format before sending.
145 This handshake word indicates when a new acyclic response message has been
received by the PROFIBUS driver. If the value is zero (0), no response message has been received. If the value is non-zero, a response message has been received and stored in words 146 to 289. This data should be transferred by the other gateway protocol for external processing. After the acyclic message has been externally processed, a message should be returned through the other protocol that sets this address to zero, to indicate readiness to receive and process a new acyclic response message.
146 to 289 This area holds the acyclic message response bytes. Please refer to Mailbox
Messaging (page 75) for the format of this data area. The header words (first 32 bytes) are stored in little-endian format to make it easier to use.
Alarm acyclic messages are sent from the PROFIBUS driver to the database if this feature is enabled by entering a valid database register in the configuration file. This feature requires 145 database registers. The format of the data area is as follows.
Offset Description
0 This is the alarm handshake word. If the value is not zero (0), alarm data is present
in the words 1 through 144. This register should be set to zero after the alarm is process, so another alarm can be passed through the database. If this register is zero (0), the database area is ready to receive a new alarm message.
1 to 144 This area holds the alarm acyclic message received by the PROFIBUS Master
device. Please refer to Mailbox Messaging (page 75) for a description of this acyclic message. The header (first 32 bytes) of the message is stored in little-endian format
Page 28 of 157 ProSoft Technology, Inc. March 23, 2011
to make it easier to process.
PDPMV1 ♦ ProLinx Gateway Configuration PROFIBUS DPV1 Master Protocol Manual
2.2.8 Slave Diagnostics Register
0 to 3600, -1 to disable Enter the database register start location for DPV1 slave diagnostics messages,
or -1 to disable slave diagnostics. When this register is enabled, the gateway will automatically place 378 words of
collected slave diagnostic data into the specified database start register. Each slave requires 3 words of data. Data is gathered for slaves 0 to 125. The
application will poll for a new slave every 100 milliseconds.
2.2.9 Alarm Register
0 to 3900, -1 to disable Enter the database register for DPV1 alarm messages, or -1 to disable alarm
messages.
2.2.10 Status Data Register
0 to 3900, -1 to disable Enter the gateway memory database register for DP-V1 status data messages,
or -1 to disable status data messages.
2.2.11 Minimum Command Delay
0 to 32767 Minimum number of milliseconds between each command.
2.2.12 Response Timeout
0 to 5000 milliseconds Number of milliseconds to wait for response to command. The value is set
depending upon the communication network used and the expected response time of the slowest device on the network.
2.2.13 Watchdog Register
The Watchdog function allows the gateway to monitor a database register, the Watchdog Register, to check for loss of communication with the non-PROFIBUS communication protocol. If this function is used, the other gateway protocol is expected to change the value in the Watchdog Register at an interval less than the amount of time specified in the Watchdog Timeout parameter. If the value in the Watchdog Register does not change within this amount of time, a communication loss is assumed and the Watchdog function will set the PROFIBUS outputs to the default value specified in the Watchdog Reset Value parameter. To disable this function, set this parameter to a value of -1.
ProSoft Technology, Inc. Page 29 of 157 March 23, 2011
Configuration PDPMV1 ♦ ProLinx Gateway Protocol Manual PROFIBUS DPV1 Master
2.2.14 Watchdog Timeout
Sets the period of time (in 0.1s increments) for the gateway to wait for communication loss detection. For example, set this parameter to 100 to set a waiting period of 10 seconds. To disable this function, set this parameter to a value of -1.
2.2.15 Watchdog Reset Value
Sets the value that will be sent to the PROFIBUS output byte registers upon communication loss as detected by the Watchdog function. To disable this function, set this parameter to a value of -1.
Page 30 of 157 ProSoft Technology, Inc. March 23, 2011
Loading...
+ 127 hidden pages