Burster 9251 PROFINET Series User manual

OPERATION MANUAL
Fieldbus-Controller Model 9251
PROFINET Integration into TIA Portal
Manufacturer:
© 2020
burster
praezisionsmesstechnik gmbh & co kg
burster
präzisionsmesstechnik gmbh & co kg
All rights reserved
Talstr. 1 - 5
P.O. Box 1432
76593 Gernsbach
76587 Gernsbach
Germany
Germany
Valid from:
26.10.2020
Tel.: +49-7224-645-0
Applies to:
9251-VXX03
Fax.: +49-7224-645-88
Email: inf[email protected]om
www.burster.com
4003-BAPROFINETTIAEN-5999-101530

2of 22
Table of Contents
Introduction.......................................................................................................................................................3
1. Creating new project ..........................................................................................................................4
2. Installation of GSDML files .................................................................................................................6
3. Creation of network connections........................................................................................................7
4. Create a sample program ................................................................................................................11
5. Further Examples .............................................................................................................................17
5.1 Reading of ‘string’ data types...........................................................................................................18
5.2 Read and Write of ‘real’ data types ..................................................................................................21

3of 22
Introduction
This quick start guide describes an approach how you can configure the 9251 via TIA Portal using the
example of S7-1511 CPU. Please note that the samples here cannot be directly used in your production line
because they have beed extremely simplified to reach a better understanding. Therefore, you may have to
complete them by checking of status, error, length values etc.
Please also note that you will have to use the 9251 PROFINET manual to get futher information about
input and output parameters (cyclic as well acyclic data transfer)

4of 22
1. Creating new project
Start the Totally Integrated Automation Protal, select Create New Project (a), assign the project
a name (b) and click Create (c):
a
b
c

5of 22
Go to Devices & networks (a) on the left side select Add new device (b) and look for your CPU (c).
Afterwards click the Add button (d).
b
c
d
a

6of 22
2. Installation of GSDML files
Note: Please make sure that your GSDML file is compatible to the field bus firmware in the 9251.The latest
GSDML file is available for download on www.burster.com. Also for compatibility reasons, uninstall all
previous GSDML files of particular device if you have any!
Go to Options →Manage general station description files (GSD)
Navigate to your 9251 GSDML directory (a)(you will find the GSD files for download on
www.burster.com Download Area/Software), select the GSD file (b) and click Install (c)
a
b
c
a

7of 22
3. Creation of network connections
Double click Device Configuration (a) in the project tree und switch to Network view (b) :
a
b

8of 22
Now select the burster_9251_Buscoupler device in the catalog and drag & drop it into the working
area (a):
Select an Ethernet port on the S7 and hold the left mouse button down to connect the S7 with 9251:
a
a

9of 22
If device is not automatically assigned, change now to Network view (a) to assign a controller to the
9251. Click on the link “Not assigned” (b) of 9251 and select your controller (c):
Note: Check if devices also connected physically to the right ports. You find the port number
assignment directly on the device front side.
Next, click on the burster-9251 device (a) and then switch to Device view (b)
Now, remove the entry BusCoupler Data short 1 (a) from the Device overview
a
c
b
a
b

10 of 22
in addition, insert the entry BusCoupler Data extended (a) into the Device overview table (b), you
can drag it or just double click on the entry:
Note: In comparison to the “short” version, allows the extended version the receiving of 32 last
measurement values, so you can expand this example to show all 32 last values.
If you have a modular device with several 9250 modules and would like to communicate with those modules,
you just have to drag the modules (depending on how many modules are connected) the module
“Measurement Module 9250 (1) Strain Gauge” (short or extended) from the module tree into the table
Device overview.
a
b

11 of 22
4. Create a sample program
In this section, you will learn how to create a simple program to read a measurement value from the
analogue input of the bus controller. You will need to refer Cyclic Input Data of the 9251 PROFINET
Interface Documentation manual to understand the meaning of input bytes.
Expand the tree node Program blocks in the Project tree and double click Add new block:

12 of 22
Select in the new window Organization block (a) and then Cyclic interrupt (b). As language set
SCL (c), change the cyclic time to 1.000.000 µs (d) and click OK (e):
Declare a new variable meas_val under PLC Tags
a
b
c
d
e

13 of 22
then type in the following source code in the code field of the new block:
"meas_val" := DWORD_TO_REAL("INPUT_BYTES_2_5");
Please note: the addresses may be different. You have to check them in the Device view →Device
overview of the 9251.
You will also see that the TIA-Editor replaces the input addresses with tags. You can change the
tags names in PLC Tag table (e.g. to IN_BYTES_2_5):

14 of 22
Before you load the project into the CPU you have to set the IP address of your CPU. To do this
please go to Device view and select Ethernet addresses (a) in General tab. Set now the IP-
Address and a subnet mask(b) for your PLC:
a
b

15 of 22
To load the configuration into the CPU select it first go to Online →Download to device and click
on Start search (a) to look for your controller. Then select the controller and click on Load (b):
To watch the measurement value, go to Watch and force tables (a) →Add new watch table (a)
und add the variable meas_val to the table (b):
a
b
b
a

16 of 22
Now click on “Go online” (a) and then “Monitor all” (b) to watch the value of meas_val
b
a
Measurement value of
analogue input

17 of 22
5. Further Examples
In the followed examples, a Hardware-ID is used to access a certain slot. To find this, please select a
burster-9251 device in Topology view or Network view and then switch to Device view. Click with the
right mouse button on the desired module, e.g. BusCoupler Data extended and select Properties:
You will see the hardware identifier in the tab General:

18 of 22
5.1 Reading of ‘string’ data types
Example 1: Reading the serial number of the 9251
In this example, we perform a read access on index 15 to get the serial number of 9251. For these acyclic
operations, you will need an instance of a RDREC block.
Add a Startup block to the Program blocks using Add new block:

19 of 22
Add variables to the Startup block:
Then add a new Data block:
In addition, insert the variable device_serial into this new block:
Use the following source code to get the serial number from the device:

20 of 22
Source code:
REPEAT
"RDREC_DB"(REQ:=TRUE,
ID:=264, // 263: HW-ID (see introduction of 'Further examples')
INDEX:=15, // Index 15: Serial
MLEN:=20, // Max. length of data to read
VALID=>#Valid, // New Data received and valid
BUSY=>#Busy, // Read not completed yet
ERROR=>#Error, // Error
STATUS=>#Status, // State
LEN=>#lenRead, // Number of bytes was read from device
RECORD:= #serial); // Array[0..19] of Byte
UNTIL NOT #Busy
END_REPEAT;
IF #Error = TRUE OR #Status <> 0 THEN
RETURN;
END_IF;
Chars_TO_Strg(Chars:=#serial,
pChars:=0,
Cnt:=19,
Strg=>"Data_block_1".device_serial);
Example 2: Reading of serial number
Add now the variable to your Watch table and set the PLC into the RUN mode:
Note: Datatype String in TIA Portal contains two additional bytes, which represent the length of the
string. To cut off these two bytes, use the function ‘Chars_TO_Strg’ to convert the byte array to a
String data type.
Other manuals for 9251 PROFINET Series
1
This manual suits for next models
1
Table of contents
Other Burster Controllers manuals
Popular Controllers manuals by other brands

Cisco
Cisco Catalyst C9800-L Hardware installation guide

Microchip Technology
Microchip Technology MCP1643 user guide

Concoa
Concoa BRAZE.PAK MAPP 806-7019 quick start guide

Zennio
Zennio MAXinBOX 66 v2 Technical documentation

Baelz Automatic
Baelz Automatic 373-E66 Series operating instructions

TDI
TDI TURBOTWIN T100-VE Installation and operating manual