Upload
jhuskanovic
View
63
Download
1
Tags:
Embed Size (px)
DESCRIPTION
test
Citation preview
MAPBGETST-ENG
Profibus Getting Started User's Manual
Version: 1.00 (July 2006)
Model No.: MAPBGETST-ENG
We reserve the right to change the contents of this manual without warning. The informationcontained herein is believed to be accurate as of the date of publication; however, Bernecker +Rainer Industrie-Elektronik Ges.m.b.H. makes no warranty, expressed or implied, with regardsto the products or the documentation contained within this book. In addition, Bernecker + RainerIndustrie-Elektronik Ges.m.b.H. shall not be liable in the event of incidental or consequentialdamages in connection with or resulting from the furnishing, performance, or use of theseproducts. The software names, hardware names, and trademarks used in this document areregistered by the respective companies.
1Profibus Getting Started User's Manual V 1.00
2 Profibus Getting Started User's Manual V 1.00
Chapter 1: General information
Chapter 2: SIMATIC Manager
Chapter 3: B&R Fieldbus Configurator
Figure index
Table index
Index
3Profibus Getting Started User's Manual V 1.00
4 Profibus Getting Started User's Manual V 1.00
Table of contents
Table of contents
Chapter 1: General information ....................................................... 71. Manual history ...................................................................................................................... 72. Integration of Profibus DP bus controllers ............................................................................ 8
2.1 X20 Profibus DP bus controller ....................................................................................... 82.2 X67 Profibus DP bus controller ....................................................................................... 8
3. GSD file ................................................................................................................................ 94. B&R BC Profibus GSD User's Manual ................................................................................ 105. B&R BC Profibus Design Tool ............................................................................................ 10
Chapter 2: SIMATIC Manager ........................................................ 131. Siemens SIMATIC software ................................................................................................ 132. Requirements ..................................................................................................................... 13
2.1 Software ........................................................................................................................ 132.2 Hardware ....................................................................................................................... 132.3 Project environment ...................................................................................................... 13
2.3.1 Creating a new project manually ............................................................................. 143. Installing the GSD file ......................................................................................................... 174. Integration of Profibus DP bus controllers .......................................................................... 195. X2X Link extension ............................................................................................................. 21
5.1 Configuring the I/O modules .......................................................................................... 225.2 Variable assignments .................................................................................................... 23
6. Downloading the Configuration ........................................................................................... 237. Controlling the modules ...................................................................................................... 23
Chapter 3: B&R Fieldbus Configurator ......................................... 251. Introduction ......................................................................................................................... 252. Integrating the GSD file ...................................................................................................... 25
2.1 User interface ................................................................................................................ 252.2 Directory structure ......................................................................................................... 252.3 Viewing the GSD file ..................................................................................................... 26
3. Creating a Profibus DP configuration ................................................................................. 283.1 Inserting a master .......................................................................................................... 28
3.1.1 Master configuration ............................................................................................... 293.2 Bus parameters ............................................................................................................. 313.3 Inserting a slave ............................................................................................................ 31
3.3.1 Slave Configuration ................................................................................................. 333.3.2 Parameter data ....................................................................................................... 343.3.3 DPV1 parameter ..................................................................................................... 36
4. Online connection ............................................................................................................... 374.1 Downloading the created configuration ......................................................................... 384.2 Result of the configuration ............................................................................................. 384.3 Controlling the modules ................................................................................................. 38
5. Project configuration in Automation Studio ......................................................................... 395.1 Requirements in Automation Studio .............................................................................. 395.2 Communication profile ................................................................................................... 39
5Profibus - Getting Started User's Manual V 1.00
Table of contents
5.3 Creating a BR module ................................................................................................... 405.4 Inserting a BR module ................................................................................................... 415.5 Configuration of a B&R Profibus DP bus controller ....................................................... 41
5.5.1 Initialization ............................................................................................................. 425.5.2 I/O data traffic ......................................................................................................... 43
5.6 Transferring project to controller ................................................................................... 44
6 Profibus - Getting Started User's Manual V 1.00
General information • Manual history
Cha
pter
1G
ener
al in
form
atio
n
Chapter 1 • General information
1. Manual history
Version Date Comment
1.00 July 2006 First version
Table 1: Manual history
7Profibus - Getting Started User's Manual V 1.00
General information • Integration of Profibus DP bus controllers
2. Integration of Profibus DP bus controllers
The purpose of this Getting Started document is to describe the integration of B&R Profibus DPbus controllers as slaves in Profibus master systems. This includes integrating them in aSiemens SIMATIC environment as well as an example project created with the B&R FieldbusConfigurator.
The range of B&R Profibus DP bus controllers includes modules from the X67 and X20 systems.All B&R Profibus DP bus controllers support X2X Link. The main goal here is to decentralize thebackplane of a rack system. The cable replaces the backplane that connects all of the modules.Directly connected X20, X67 and XV modules can be arranged in intervals of up to 100 m pastthe confines of the switching cabinet.
2.1 X20 Profibus DP bus controller
The X20 Profibus DP bus controller X20BC0063 makes it possible to connect X2X Link I/Onodes to the Profibus DP. It supports Profibus DP with all of its options and other additionalproperties. In addition to the device diagnostics, module diagnostics, and channel diagnosticsprovided with the Profibus standard, it is also possible, for example, to switch to the slotdiagnostics option in S7 format. X20 or other modules that are based on X2X Link can beconnected to the bus controller. For a detailed description of the X20BC0063, including a list of required accessories, refer to theUser's Manual for that particular module. Technical details are listed in the corresponding datasheet.
2.2 X67 Profibus DP bus controller
In addition to the characteristics already named in reference to the X20 bus controllers, the X67Profibus DP bus controller X67BC6321 has an additional latch function for very fast events thatcan be scanned using digital mixed modules. The two additional variants of the X67BC6321module, identified by the extension at the end of the name (X67BC6321.L08 andX67BC6321.L12), differ with regard to the number of digital channels and type of connections.For more detailed information regarding the product and its configuration options, refer to theUser's Manual or data sheet for the module.
Model number Short description Image
X20BC0063 X20 bus controller fieldbus interface, 1 Profibus DP interface, status indicator LEDs, 9-pin DSUB connection
Table 2: X20 Profibus DP bus controller
8 Profibus - Getting Started User's Manual V 1.00
General information • GSD file
Cha
pter
1G
ener
al in
form
atio
n
The following table presents an overview of the various X67 Profibus DP bus controllers.The following refers to Profibus DP bus controllers in general. The variants are only discussedwith respect to actual variations in the creation of the project.
3. GSD file
For successful integration of a B&R Profibus DP bus controller in the Engineering Tool, thecorresponding GSD file must be imported. The GSD files for the modules listed above are available on the B&R homepage (www.br-automation.com) Entering a model number or serial number under "Product Search" brings upthe corresponding product information. The download area for each module has a link to theGSD Package. This contains a number of graphic files, the "B&R BC Profibus GSD User'sManual", and the "B&R BC Profibus Design Tool", in addition to the necessary GSD file.
Before you download the file, you can select a version number (e.g. V2.18). When integrating aProfibus controller in another engineering tool for the first time, it is recommended to use thehighest available version.
Model number Short description Image
X67BC6321 X67 Profibus DP bus controller, X2X Link supply 3 W, 8 digital channels can be configured as input or output, 24 VDC, 0.5 A, configurable input filter, 2 event counters 20 kHz, LED status indicators
X67BC6321.L08 Profibus DP bus controller, X2X Link supply 15 W, 16 digital channels can be configured as inputs or outputs, 24 VDC, 0.5 A, configurable input filter, 2 event counters 50 kHz, M8 connectors, LED status indicators
X67BC6321.L12 Profibus DP bus controller, X2X Link supply 15 W, 16 digital channels can be configured as inputs or outputs, 24 VDC, 0.5 A, configurable input filter, 2 event counters 50 kHz, M12 connectors, LED status indicators
Table 3: X67 Profibus DP bus controller
9Profibus - Getting Started User's Manual V 1.00
General information • B&R BC Profibus GSD User's Manual
It is not necessary to update a previously integrated GSD file, since using a newer GSD file mightrequire the latest firmware. A firmware update cannot be performed by the user. After extracting the compressed file, the GSD file can be found in the "Import" folder.
4. B&R BC Profibus GSD User's Manual
The B&R BC Profibus GSD User's Manual contains more detailed information about GSD files.This includes a more in-depth explanation of the above mentioned version dependencies andfirmware versions. In addition to instructions for installing the GSD file, it also containsinstructions for configuring the bus controller and I/O modules. Furthermore, the manual alsocontains explanations of various diagnostic options and detailed register descriptions.
5. B&R BC Profibus Design Tool
The B&R BC Profibus Design Tool makes it possible to test the feasibility of potential busconfigurations. After selecting the bus controller, the local I/O, and the X2X cycle time, allconceivable variations of the connected I/O modules can be configured. If the combinationentered is technically feasible, the status indicator will read "Ok". The total number of modulesselected is listed in parentheses. The bus controller itself is counted automatically, so at leastone module is always configured. If there are conflicts in the configuration, the status indicatorreads "Parameter frame too big (Profibus DP Standard)".
The X2X cycle time input field has a selection of times from 200 µs to 1 ms. The desired numberof I/O modules can be entered in the gray "Used" column.
The order of I/O modules on the bus is irrelevant here; only data related to power is relevant. X67supply modules (X67PS1300) cannot be configured, and do not need to be, since as purelyelectronic modules for power supply they do not carry any I/O data traffic. All other modules
Figure 1: Downloading the GSD file
10 Profibus - Getting Started User's Manual V 1.00
General information • B&R BC Profibus Design Tool
Cha
pter
1G
ener
al in
form
atio
n
require an entry. To make the configuration process as simple as possible, the "Available"column lists the maximum possible number of each module. It is dynamic, and is automaticallyupdated after every entry.When you have selected the X20BC0063, the only local I/O available is the requiredX20PS9400. This is not the case with the X67 bus controllers. For these modules, there areseveral local I/Os to select from. They are are identified by the extension "-CO1, -CO2,..." at theend of their name. This describes the register assignment in the module, and is described in theB&R BC Profibus GSD User's Manual. If no selection is made here, the value suggested by theDesign Tool can be used.
The following image shows a section of the B&R BC Profibus Design Tool.
Figure 2: Section of the B&R BC Profibus Design Tool
11Profibus - Getting Started User's Manual V 1.00
General information • B&R BC Profibus Design Tool
12 Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Siemens SIMATIC software
Cha
pter
2SI
MAT
IC M
anag
er
Chapter 2 • SIMATIC Manager
1. Siemens SIMATIC software
Much of the following information can also be found in the manual "SIMATIC, ConfigureHardware and Connections with STEP 7" for the SIMATIC STEP 7 software from Siemens. Thisis available free from the documentation area under the addresshttp://www.automation.siemens.com. The screen shots seen here were also created using theSIMATIC software from Siemens.
2. Requirements
2.1 Software
For an engineering tool, the SIMATIC STEP7 V5.4 software package from SIEMENS is used.The following screen shots are taken from this version. The B&R Profibus DP bus controllers canalso be used with older software versions without problems, however. There may be differencesin the layout of the user interface, but the menu structure has mainly been kept the same. Thereshould be no problems integrating the bus controllers using this document as a reference.
2.2 Hardware
A Profibus master is required in order to use any of the B&R Profibus DP bus controllers. For anexample configuration, we selected a SIMATIC S7-300 station with the CPU315-2DP. It takesthe role of the Profibus master, and serves as the starting point for the integration. In order toprogram the CPU and access it for diagnostics, an online connection is required. Configurationoptions for the programming interface, like using a PC adapter for example, can be found in theOnline Help for the SIMATIC Manager as well as in the appropriate User's Manual.
2.3 Project environment
A new GSD file can only be added to an open project. Either an existing project can be openedor a new one can be created. This is done using the "New Project Wizard" or entered manually.
13Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Requirements
2.3.1 Creating a new project manually
A new project can be created in the SIMATIC Manager from the menu under: File->New. Underthe "User Projects" tab, you can assign a project name (in this case "test") and choose where tosave the project. Select "Project" as the project type. No settings need to be made under the"Libraries" and "Multiprojects" tabs.
Once the project is created, the hardware must be configured. In the menu, underInsert->SIMATIC 300 Station, you can add a SIMATIC 300 station. The user can choose a namefor the station. Here we used the name "SIMATIC 300(1)".
The selected SIMATIC 300 station is then listed in the project folder "test".
When you select the SIMATIC 300(1) station, an icon appears in the right window for configuringthe hardware. A double click opens the hardware configuration window.
Figure 3: Creating a new project
Figure 4: Selecting the SIMATIC 300 station
14 Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Requirements
Cha
pter
2SI
MAT
IC M
anag
er
In order to add the desired components, the hardware catalog must be made visible underView->Catalog. Alternatively, components can be added via Insert->Insert Object .A mounting rail is used as a foundation for further configuration (SIMATIC300/Rack-300/Rail).The CPU315-2DP is then added to this (SIMATIC300/CPU-300/CPU315-2DP). This is onlypossible on slot 2, since slot 1 is reserved for the supply voltage. After it is added, a configuration window opens for the fieldbus connection. If the project doesnot yet have a Profibus connection, a new one can be created using the "New" button. Theengineering tool automatically suggests a name (PROFIBUS(1)) as well as the Subnet ID. TheSubnet ID is a combination of the project number and the subnet number. It is important if youwant to go online with a programming device and no corresponding project exists.
If no other entries are known, the values suggested by the engineering tool can be used. Nosettings need to be made under the "Network Settings" tab. The automatically entered valuesare the standard Profibus configuration. This also applies to the "Options" and "Bus Parameters"
Figure 5: Inserted SIMATIC 300 station
Figure 6: Hardware configuration window
15Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Requirements
settings. The baud rate can be set between 9.6 kBits/s and 12,000 kBits/s. Both the X20BC0063and the X67BC6321 have automatic baud rate detection and support the entire available rangeof baud rates.
The following image shows the CPU315-2DP on slot 2 and the newly created PROFIBUS(1)network connection.
Figure 7: Creating a Profibus network
Figure 8: Profibus connection
16 Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Installing the GSD file
Cha
pter
2SI
MAT
IC M
anag
er
3. Installing the GSD file
The GSD file can only be imported using the hardware configuration window. This can beopened by clicking once on the "SIMATIC 300(1)" station, and then double-clicking on"Hardware".
Select "Install GSD file" from the "Options" menu.
In the window that opens, you can choose to install the GSD file from a Step 7 project or fromanother directory. Use the "Browse" function to select the appropriate path. The GSD files toinsert are listed in the lower area of the window.With the "Install" button, the GSD files can be inserted in the hardware catalog. Please keep inmind that the installation of a new GSD file cannot be undone. A successful installation isconfirmed with a message window.
Figure 9: Selecting hardware configuration
Figure 10: Installing new GSD files
17Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Installing the GSD file
Selection window for GSD files to be imported:
After selection and installation of the GSD file, the imported B&R Profibus DP bus controllers arefound in the folder Profibus DP/Additional Field Devices/I/O/B&R. They are now completelyintegrated and can be configured with all the corresponding I/O modules.
Figure 11: Importing the GSD file
Figure 12: Integrated GSD files in the hardware catalog
18 Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Integration of Profibus DP bus controllers
Cha
pter
2SI
MAT
IC M
anag
er
4. Integration of Profibus DP bus controllers
B&R Profibus DP bus controllers are added in the network connection view "Connections". Thiscan be opened when CPU315-2DP is selected.
For the Profibus DP bus controller to be connected successfully, the DP interface of the SIMATIC300(1) station on the CPU315-2DP must be active. When active, is it is highlighted (see imagebelow). After integrating the bus controller, a configuration window opens. The only thing to configure isthe address. All other settings can be left as they are. Important: the selected addresses mustmatch the node numbers set on the bus controller.
Figure 13: Selecting the network connections view
Figure 14: Integrating the bus controllers
19Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Integration of Profibus DP bus controllers
On the X67BC6321 the left node number switch should be multiplied by 16.
After a successful integration, the configuration should like this:
Information:
Both X67 and X20 Profibus DP bus controllers only take on the newly assigned nodenumbers after a restart!
Figure 15: X20BC0063 - node number switches
Figure 16: X67BC6321 - node number switches
Figure 17: Integrated X67 bus controller
20 Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • X2X Link extension
Cha
pter
2SI
MAT
IC M
anag
er
5. X2X Link extension
Open the hardware configuration by double-clicking on the B&R bus controller symbol in thenetwork connections view. The desired I/O modules can be added to the bus controller from thehardware catalog.Unlike with the B&R BC Design Tool, the order of modules does play an important role here. Thepositions/slot numbers of the I/O modules must match the actual physical structure.Since the Profibus DP bus controller X67BC6321 includes the X67DM1321 module, this isautomatically positioned at slot 1. In configurations with the X20 bus controller X20BC0063, therequired power supply module X20PS9400 is positioned at slot 1. All other slot assignments canbe chosen freely.
In the example, an X67DO1332-C01 and an X67DI1371-C01 are connected to the X2X Link. Theengineering tool automatically assigns the I/O addresses, and this can be ignored for now.
Figure 18: X2X Link extension
21Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • X2X Link extension
5.1 Configuring the I/O modules
Right-click and select "Object Properties" to configure the various I/O modules.
Under the "Address/ID" tab you can assign addresses manually. In the "Parameter Assignment"section, in the "Device-specific parameters" folder, it is possible, for example, to manually set thedigital channels of the X67DM1321 module as inputs or outputs. The values provided in the "Hexparameter assignment" folder should not be changed. These hex number combinations areautomatically generated from the selected configuration. If a particular I/O module does notrequire configuration, then no "Device-specific parameters" folder is displayed.
Figure 19: Configuring the I/O modules
22 Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Downloading the Configuration
Cha
pter
2SI
MAT
IC M
anag
er
5.2 Variable assignments
Variable names can be assigned in the "Edit Symbols" window. Right-clicking on an I/O moduleopens the configuration window for that module. Every channel can be assigned symbolicnames and detailed comments.
6. Downloading the Configuration
After making the desired configurations and module assignments as well as the correspondingsoftware configuration, the configuration is transferred to the controller (CPU315-2DP). To beginthe transfer process, the project must be saved and compiled. In the hardware or networkconnections views, this can be done using the menu option Station/Network->Save andCompile. Control data is downloaded using the Download button, or using the menu optionPLC->Download (Download to Current Project) while the SIMATIC station is selected. A projectcan also be downloaded in the hardware or network connections views. After selecting thecontroller onto which the new project is to be transferred, the necessary interface can beconfigured. Use "View" to see a list of all available stations.
In order to program the controller, it must be temporarily set to "STOP". This message shouldalso be acknowledged with "OK". After the download is complete, the CPU will restart afterasking for confirmation.
7. Controlling the modules
In order to quickly and simply test, for example, a module's outputs, there is the "Monitor/Modify"function. This can be called up when in hardware view by right-clicking on a module. Themodified values can be entered and then assigned by selecting "Modify". The "Monitor" functionmonitors the inputs and outputs and displays their current status.
Figure 20: Variable assignments
23Profibus - Getting Started User's Manual V 1.00
SIMATIC Manager • Controlling the modules
In the above screenshot, the outputs Q1.0 and Q1.1 of the X67DO1332 output module were setto TRUE and visually represented using the "Monitor" function. Active outputs can also beidentified by the corresponding LEDs on the module.
Figure 21: Monitor/Modify function
24 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Introduction
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
Chapter 3 • B&R Fieldbus Configurator
1. Introduction
The B&R Fieldbus Configurator makes it possible create a uniform configuration for the mostpopular fieldbus systems, such as Profibus, CANopen, and DeviceNet. Standardizedconfiguration files (GSD, ESD files) are used to configure the various bus stations. A graphiceditor is used to configure the bus and the corresponding bus stations.Additionally, the B&R Fieldbus Configurator can create BR files (with the ending ".br"). These areneeded to configure the stations in the Profibus network for a project using Automation Studio.
2. Integrating the GSD file
When the program starts, the B&R Fieldbus Configurator automatically reads all GSD files whichare stored in its GSD directory. The device names are recorded in an internal list. The devicespecific data is read from the GSD file during the configuration. If a DP slave device is required that does not yet appear in the selection list, it must be added.There are two ways to do this. Either via the user interface itself or within the directory structureof the B&R Fieldbus Configurator.
2.1 User interface
New GSD files can be integrated via the menu under File->Copy GSD. In the window that opens,the source path of the desired GSD file (".gsd") can be entered. A copy of the selected file issaved in the GSD folder of the B&R Fieldbus Configurator. Be sure that the files you areimporting are not write protected. In addition to the GSD file, the graphic files needed to displaythe module in the Configurator are also imported. A message box will appear to acknowledgethe successful copy of the GSD file and the corresponding bitmap files.
2.2 Directory structure
All GSD files imported into the Configurator are saved in one folder. This folder is found here:BrAutomationTools\BRFBCfg\Fieldbus\PROFIBUS\GSD.GSD files to be added can be placed in this folder.To ensure a successful integration, the files must have the format "*.gsd". The Configurator'sGSD folder can be moved anywhere in the directory structure. It is also possible to create a newfolder.
25Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Integrating the GSD file
It is important to remember, however, that the B&R Fieldbus Configurator can only use one folderas a reference for the GSD database. All necessary GSD files must therefore be stored in thisfolder. The path for the GSD folder can be set in the menu under: Settings\Path.
In the field "GSD File Directory", you can enter the path for the folder containing the GSD files.There is also the option of setting both the "Extension" of the GSD files to be imported as wellas the "Project File Directory". If you do not wish to change them, the default values can be used.For the Configurator to apply the changes you have made, the software must be restarted.
GSD files specified by the PNO (PROFIBUS user organization) for PROFIBUS FMS are notsupported by the B&R Fieldbus Configurator.
2.3 Viewing the GSD file
Using the viewing window Tools->GSD Viewer you can display more detailed information aboutthe selected GSD file. In addition to general information such as module name and ID number,you can also display the revision number and supported baud rates.
All values listed in the GSD Viewer are read-only, and cannot be changed. By clicking on "More",you can see notes regarding, for example, the maximum length of inputs and outputs. All graphicfiles for the module are listed in the "Layout" selection. The "Identifier" button reveals addressinginformation about each of the integrated modules.
Figure 22: GSD folder
Figure 23: Path of the GSD folder
26 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Integrating the GSD file
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
Figure 24: GSD file information
27Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
3. Creating a Profibus DP configuration
Select File->New to create a new configuration. All installed fieldbus systems are shown in a list.In this example, "PROFIBUS" should be selected as the fieldbus. The name of the newly createdproject can be assigned at the end or with the function File->Save As.
3.1 Inserting a master
A master can be inserted using the menu option Insert->Master. This can be also be done usingthe appropriate icon. A selection window opens, which lists all available masters on the left side.Here you have the chance to assign masters a station address and a description. These can beedited at any time when configuring the individual masters.
In the example below, the aPCI interface module 3IF766.9 is selected (Profibus DP master).
After selecting the master (3IF766.9), the configuration will look like this:
Figure 25: Master selection
Figure 26: Selecting a DP master - 3IF766.9
28 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
3.1.1 Master configuration
By placing the focus on the master and selecting the menu option Settings->Master Settings, double-clicking on the master, or via the right-click menu, you canopen the master configuration window. The following settings are possible:
• Station address of master
• (Symbolic) description of the master
• Selection of the master as the current master (e.g. to execute a download)
For Profibus DP there are additional setting options:
• To open the DP Master Settings window
• To activate/deactivate auto addressing
Auto addressing means that: The addresses are assigned starting at 0 and increasing according to the entry order of theslaves. They can be displayed and checked under the menu option View->Address table. Theinformation is updated when you save the configuration, view the address table, or before youdownload.
When auto addressing is deactivated, the user must enter the addresses for the slaves manually.
After clicking on the "DP Master Settings" button, the following settings can be made for themaster:
• Startup behavior after system initialization
If "Automatic release of the communication by the device" is selected, the master device startswith the data exchange on the bus immediately after the initialization has completed. When"Controlled release of the communication by the application program" is selected, dataexchange on the bus is initialized by the application program. This option guarantees that no
Figure 27: Master configuration window
29Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
unwanted states reach the outputs, since the application program has complete control over theI/O data traffic. However, this requires systematic control of the modules by the applicationprogram. The following example configuration is executed using Automation Studio.
• User program monitoring
The watchdog time determines how long the device waits for the software watchdog to betriggered by the application program until it sets the outputs of the slave device to zero. Thisaction does not start automatically and must be enabled by the application program.
• Addressing mode
The addressing mode for the process data determines how the process data addresses (offsets)are interpreted. Byte addressing and word addressing are both possible.
• Storage format (word module)
The storage format determines how the data words are stored in the process image. For theword format, you can switch between Big or Little Endian addressing.
• Handshake of the process data
This is for setting the handshake process of the process data between the application and themaster. This selection is important for the correct data exchange between the applicationprogram and the device.The handshake selected must be supported by the application program. This is the case, forexample, for "buffered, host controlled" and for "bus synchronous, host controlled". The option "no consistence, uncontrolled" is useful for quick, simple diagnostics.
• Hardware parameter
Figure 28: Master settings
30 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
The size of the hardware's dual port memory is specified with this parameter. The valueincreases or decreases the valid address range for the process data addresses. This is only astatic display of the value. It cannot be changed.
For the following example, the settings should be made to match those in the above screenshot.
3.2 Bus parameters
Using menu option Settings->Bus Parameter, the baud rate can be set between 9.6 kBits/s and12,000 kBits/s. Both the X20BC0063 and the X67BC6321 have automatic baud rate detectionand support the entire available range of baud rates.
3.3 Inserting a slave
A Profibus DP slave can be inserted into the configuration via menu option Insert->Slave , or byclicking on the appropriate icon. All slave devices which have GSD files stored in the GSDdirectory are available for selection and displayed in the list on the left. A filter can be used tolimit the selection list to certain slave types (I/O slave, PLC, etc.) or vendors. Additional information regarding the individual slaves can be found below the "Available slaves"selection list if they have been selected.. The slave appears in the list on the right by doubleclicking or by clicking on the Add button. All devices in the list on the right are assigned to thecurrent master, which is also displayed in this window.
Figure 29: Slave selection window
31Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
The station address automatically increases by one with each slave added to the list on the right.The station address and the slave name can be changed at any time in the slave configurationwindow.
Note: A slave can be selected more than once. However, each slave must have its own uniquestation address to tell it apart from other slaves on the network. Important: the station addressesentered must match the node numbers set on the bus controller.In the example configuration, the Profibus DP bus controller X67BC6321 is selected as slave. Itconnects the Profibus DP network with the X2X Link. If multiple masters are configured in aproject, it is important to ensure that when the slaves are inserted they are assigned to theircorresponding masters (this can be selected in the top right of the "Init Slave" window or in theslave configuration).
Information:Both X67 and X20 Profibus DP bus controllers only take on the newly assigned nodenumbers after a restart!
Figure 30: X20BC0063 - node number switches
Figure 31: X67BC6321 - node number switches
Figure 32: Master - Slave example configuration
32 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
3.3.1 Slave Configuration
The slave configuration window opens with a double-click on the desired slave or via the menuoption Settings->Slave Configuration. In this window, modules and their addresses are assignedin the process image memory of the master. Important: The addresses entered must match the ones in the PC application.
The general settings of the slave configuration include station address and slave name.Depending on whether the "Activate device in actual configuration" field is selected, the slavecan be activated or deactivated in the current fieldbus configuration. If this is deactivated,process memory is used in the master for this slave, however no data exchange occurs from themaster to this slave. A deactivated slave is crossed out in the graphic view.
The "Enable watchdog control" function activates communication monitoring. This is used by theslaves to identify communication errors to the corresponding DP master. If the DP slavedetermines an interruption in its communication with the master, defined by the monitoring time,then the slave independently resets and sets the outputs to a safe state. If this function isdeactivated and the master fails during the communication, the slave outputs are not reset. Thismay result in dangerous situations! Think carefully, therefore, before turning off the watchdogmonitoring.
Figure 33: X67BC6321 - slave configuration window
Generalsettings
Moduleselection
Configuredmodules
33Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
Another feature of the general setting area is information about the slave configuration. Theinformation includes the maximum number of connected modules and the actual current numberof connected modules. The information about the maximum data lengths for input and outputdata compared to the actually configured lengths can be helpful for address management.
In the middle section there is a display window with the current module selection. All modulesthat are integrated and available for selection are listed here. For each module there isinformation about the required input and output bytes.
The lower section lists the already configured modules. This list can be adjusted by removing oradding modules from the module selection. Be sure that the slot assignments match the actualphysical structure!
Since the Profibus DP bus controller X67BC6321 includes the X67DM1321 module,it must always be positioned at slot 1. All other slot assignments can be chosenfreely.
With configurations using the X20 bus controller X20BC0063, remember that slot 1must always be reserved for the power supply module X20PS9400. All other slotassignments can be chosen freely.
I/O addresses can be entered by the user or automatically assigned using the B&R FieldbusConfigurator. This is done using the "auto addressing" function, which can be activated in themaster configuration. Offset address specifications apply to data addressing in the master.Address specifications do not apply to data addressing in the slave. The slave organizes its owndata addressing.
Input and output data from the slave is transferred on the bus directly to dual port memory. Offsetaddresses refer to the master. There are two types of slaves: a simple slave has a fixed datalength. A modular slave has a data length which can be configured. A modular slave is basicallya combination of simple slaves with one station address.
Clicking on the "Symbolic Names" button, you can assign symbolic names to the modules andindividual bits. Previously defined and saved modules can be added to the configuration usingthe "Predefined Modules" button.
3.3.2 Parameter data
Clicking on the "Parameter Data" button in the slave configuration or by selecting menu optionSettings->Parameter Data with the slave selected opens the window for editing parameter data.This data is generated based on the number of modules used and their configuration and shouldnot be altered.
34 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
Clicking on the "Common" button brings up general information about the data format being usedand the X2X cycle time.
The "Module" button takes you to a list of modules (if multiple modules are configured) forconfiguring the individual modules.
Figure 34: Parameter data
Figure 35: General parameters
Figure 36: List of modules for configuration
35Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Creating a Profibus DP configuration
For the X67DM6321 all digital channels have been set as outputs.
The following image shows the configuration of a temperature module (not part of the exampleconfiguration).
3.3.3 DPV1 parameter
Clicking on the "DPV1 settings" button in the slave configuration opens the editing window forthe DPV1 parameter. DPV1 is used for non-cyclic data exchange and is used for read, write andalarm editing functions.
Note: Neither X20 nor X67 Profibus DP bus controllers support DPV1!
Figure 37: Digital channels set as outputs
Figure 38: Configuration of a temperature module
36 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Online connection
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
4. Online connection
An online connection is required to load the newly created configuration to the Profibus DPmaster. To select this and start the download, select menu option Online->Download. A windowopens with a list of available interfaces.
In this example, the serial interface will be used. To do this, select "CIF Serial Driver". Similarly,one could use the TCP/IP interface, for example. Information about the configuration options canbe found in the online help for the B&R Fieldbus Configurator.
The serial interface selected on the programming device (PC) can be connected using the"Connect COM x" button. If the connection attempt fails, the appropriate error number is returned(see online help for the error codes).
Only when the returned error value is "0" can the interface be used for communication. Thefollowing image shows a connection to the COM 2 interface.
Figure 39: Interface selection
Figure 40: Selection - COM interface
37Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Online connection
4.1 Downloading the created configuration
If a connection has been established via the serial interface, the configuration can be transferred.If bus data traffic is already in progress, a message appears stating that both the master and theslave will be stopped for the attempted download.
4.2 Result of the configuration
If in the master configuration the start up behavior after system initialization was set to"Automatic release of the communication by the device", then the Profibus DP slaves (in thiscase the B&R Profibus DP bus controllers) start automatically and should be in RUN mode, justlike the master. When "Controlled release of the communication by the application program" is selected, theslave waits for the application program to initialize the start. This can be observed on the statusLEDs. The status of the bus controllers is "Wait for Config" (X67BC6321: Status Indicator 1:Green/On, Red/Blinking) (X20BC0063: STATUS/On, ERROR/Blinking). The bus controllers arenot switched to RUN mode until the the configuration is started in the application program.
4.3 Controlling the modules
The network connections view is a quick and simple interface for controlling the module outputs.It can be opened with the menu option Window->Network View. The left column contains thelogical network view, which shows both the master and the corresponding slaves. In the middle is a tag list, and to the right is the I/O watch window. Pulling selected bus elementsfrom the left side into this window lets you monitor input and output data and assign the providedvalues. To do this, right-click on the desired element and choose "Start".
Figure 41: Network view
38 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Project configuration in Automation Studio
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
All selected modules are listed in a table view. For the X67DM1321 all digital channels havebeen set as outputs.
The output values are also listed, since they are read back over the input channels. The outputLEDs on the module should light up according to the value entered in the "Value" field.
Note: This is only possible with the "No consistence, uncontrolled" handshake. Otherwise the I/Omaster data are always overwritten by the I/O buffer.
5. Project configuration in Automation Studio
To configure the Profibus DP slaves in Automation Studio, they must first be integrated. Theycannot simply be inserted in the hardware tree as usual. A BR module must therefore be createdusing the B&R Fieldbus Configurator that contains the entire network configuration. This canthen be inserted as a "System Object".
5.1 Requirements in Automation Studio
In addition to the necessary BR files, the "DPMaster" library must be integrated in the librarymanager. This can be opened via Open->Library Manager. The "Insert Library" icon opens aselection window. In the "Add Library" section the "DPMaster" library can be selected andinserted.
5.2 Communication profile
The settings in the B&R Fieldbus Configurator must be different than in the previous example toprevent unwanted states at the outputs. In the master configuration, the communication profilemust be switched to "Controlled release of the communication by the application program" andthe data traffic must be switched to "Buffered, host controlled". All other settings can be used asthey are.
Figure 42: I/O watch
39Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Project configuration in Automation Studio
5.3 Creating a BR module
If you are satisfied with your configuration and all modules are set up, then a BR module can becreated via menu option Tool->B&R->Generate DBM/BR Module. To do this the focus must beon the master in the graphic view. The creation of the BR module runs in the background. The the created files are stored in theproject folder. A subfolder is created, with the same name as the master, which contains theentire configuration. If the project contains multiple masters, a subfolder is made for each one that contains thecreated files. These folders have the same names as the respective masters.
The created BR files are named as follows: "dpm_xxx.br". Where "xxx" stands for the stationnumber that was entered for the master. In addition to the ".br" file, a ".dpm" and a ".bak" file arealso created.
The following image shows two saved projects ("test00", "test01"). The project "test01" containstwo masters ("Station_1" and "Station_5"). Since for "Station_5" the station number "5" wasentered, the created files are named "dpm_005.***".
Figure 43: BR module folder
40 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Project configuration in Automation Studio
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
5.4 Inserting a BR module
Created BR modules can be inserted in an open Automation Studio project. A "System Object"can be inserted under the menu option Insert->New Object. The desired BR file can be selectedand integrated.
The inserted BR module can be found in the list of data objects. A project may look like this:
5.5 Configuration of a B&R Profibus DP bus controller
Integrating the BR module lays the foundation for the integration of the slave modules, yet thesemust still be initialized, started/stopped, and configured. The following example will describe asimple control of the outputs. A more detailed description of all FBKs used can be found in the in the Automation Studio onlinehelp under:
The B&R Software\ Automation Runtime I/O management\ Bus systems and configuration\Fieldbus\ Profibus DP\ DP Master Library\ FBK Description
Figure 44: Inserted BR module
41Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Project configuration in Automation Studio
5.5.1 Initialization
Module initialization procedure:
• DPMInit
When this function is called, the module specified by "DPMInit_0.Device" is initialized. In thiscase it is the interface module 3IF766.9 (SS1) with the PROFIBUS DP interface (IF2).
• DPMConfig
The "DPMConfig_0.DevIdent" parameter specifies the module on which a download shouldoccur. Data is supplied by the "DPMInit" function. The "DPMConfig_0.ConfModulName" pointerspecifies the name of the configuration module which should be loaded to this card. Thepreviously created "dpm_000" from the configuration with the X67BC6321 (all channels set asoutputs), the X67DO1332 and the X67DI1371 has been selected here.
Figure 45: Module initialization
42 Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Project configuration in Automation Studio
Cha
pter
3B&
R F
ield
bus
Con
figur
ator
5.5.2 I/O data traffic
In this example application, the outputs of the X67DM1321 and the X67DO1332 should becontrolled. A variable is used to count upwards and send the result to the digital outputs. If anoverrun occurs, it resets to 0 and starts again.
• DMPStart
The "DPMStart_0.DevIdent" parameter specifies which master should be started. Data issupplied by the DPMInit function.
• DPMio
This function block is attached to the previously selected buffered, master controlledcommunication profile. I/O data transfer is buffered by cyclically calling the FBKs from a taskclass and by the configured communication mode. The "DPMio_0.DevIdent" parameter specifies which B&R card the I/O data should copy. Data issupplied by the DPMInit function. This FBK copies the input and output data areas between theDPMaster and the specified buffers. Possible process data transfer procedures:
• Buffered, host controlled
• Bus synchronous, host controlled
Figure 46: Controlling the outputs
43Profibus - Getting Started User's Manual V 1.00
B&R Fieldbus Configurator • Project configuration in Automation Studio
5.6 Transferring project to controller
After the newly created project has been successfully compiled (Project->Build All) it can betransferred to the controller. (Project->Transfer to Target). To start the CPU, execute a warmrestart (Project->Services->WarmRestart).
44 Profibus - Getting Started User's Manual V 1.00
Figu
re in
dex
Figure index
Figure index
Figure 1: Downloading the GSD file .............................................................................. 10Figure 2: Section of the B&R BC Profibus Design Tool................................................. 11Figure 3: Creating a new project ................................................................................... 14Figure 4: Selecting the SIMATIC 300 station ................................................................ 14Figure 5: Inserted SIMATIC 300 station ........................................................................ 15Figure 6: Hardware configuration window ..................................................................... 15Figure 7: Creating a Profibus network ........................................................................... 16Figure 8: Profibus connection........................................................................................ 16Figure 9: Selecting hardware configuration................................................................... 17Figure 10: Installing new GSD files ................................................................................. 17Figure 11: Importing the GSD file .................................................................................... 18Figure 12: Integrated GSD files in the hardware catalog................................................. 18Figure 13: Selecting the network connections view......................................................... 19Figure 14: Integrating the bus controllers ........................................................................ 19Figure 15: X20BC0063 - node number switches............................................................. 20Figure 16: X67BC6321 - node number switches............................................................. 20Figure 17: Integrated X67 bus controller ......................................................................... 20Figure 18: X2X Link extension......................................................................................... 21Figure 19: Configuring the I/O modules........................................................................... 22Figure 20: Variable assignments ..................................................................................... 23Figure 21: Monitor/Modify function .................................................................................. 24Figure 22: GSD folder...................................................................................................... 26Figure 23: Path of the GSD folder ................................................................................... 26Figure 24: GSD file information ....................................................................................... 27Figure 25: Master selection ............................................................................................. 28Figure 26: Selecting a DP master - 3IF766.9 .................................................................. 28Figure 27: Master configuration window.......................................................................... 29Figure 28: Master settings............................................................................................... 30Figure 29: Slave selection window .................................................................................. 31Figure 30: X20BC0063 - node number switches............................................................. 32Figure 31: X67BC6321 - node number switches............................................................. 32Figure 32: Master - Slave example configuration ............................................................ 32Figure 33: X67BC6321 - slave configuration window...................................................... 33Figure 34: Parameter data............................................................................................... 35Figure 35: General parameters ....................................................................................... 35Figure 36: List of modules for configuration .................................................................... 35Figure 37: Digital channels set as outputs....................................................................... 36Figure 38: Configuration of a temperature module.......................................................... 36Figure 39: Interface selection .......................................................................................... 37Figure 40: Selection - COM interface .............................................................................. 37Figure 41: Network view.................................................................................................. 38Figure 42: I/O watch ........................................................................................................ 39Figure 43: BR module folder............................................................................................ 40Figure 44: Inserted BR module........................................................................................ 41Figure 45: Module initialization........................................................................................ 42Figure 46: Controlling the outputs ................................................................................... 43
45Profibus - Getting Started User's Manual V 1.00
Figure index
46 Profibus - Getting Started User's Manual V 1.00
Table index
Tabl
e in
dex
Table index
Table 1: Manual history....................................................................................................... 7Table 2: X20 Profibus DP bus controller ............................................................................. 8Table 3: X67 Profibus DP bus controller ............................................................................. 9
47Profibus - Getting Started User's Manual V 1.00
Table index
48 Profibus - Getting Started User's Manual V 1.00
Index
Inde
x
Index
B
B&R Fieldbus Configurator ........................25
G
GSD file .......................................................9GSD file download .......................................9GSD file version ...........................................9GSD User's Manual ...................................10
M
Manual history .............................................7
N
Node number switches ........................20, 32
P
Profibus Design Tool ................................. 10
S
SIMATIC Step 7 ......................................... 13
X
X20BC0063 ................................................. 8X2X cycle time ........................................... 10X2X Link ...................................................... 8X67BC6321 ................................................. 8X67BC6321.L08 .......................................... 8X67BC6321.L12 .......................................... 8
49Profibus - Getting Started User's Manual V 1.00
Index
50 Profibus - Getting Started User's Manual V 1.00