Contents Introduction ..............................3 Creating new project ..........................4 Installation of GSDML files ........................5 Creation of network connections ......................6 Perform a measurement and read the measurement result ..............9 Further Examples ............................ 16 Writing of string data types ....................... 16 of 17...
1 Introduction This quick start guide describes an approach how you can configure the RESISTOMAT 2311 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.
2 Creating new project 1. Start the Totally Integrated Automation Protal, select Create New Project (a), assign the project a name (b) and click Create (c): 2. Go to Devices & networks (a) on the left side select Add new device (b) and look for yor CPU (c). Afterwards click the Add button (d).
2311. Also for compatibility reasons, uninstall all previous GSDML files of particular device if you have any! 1. Go to Options→Manage general station description files (GSD) (a) 2. Navigate to your Resistomat 2311 GSDML directory (a) (you will find the GSD on www.burster.com/en/download-area), select the GSDML file (b) and click Install (c) of 17...
4 Creation of network connections 1. Double click Device Configuration (a) in the project tree und switch to Network view (b) : 2. Now select the Resistomat 2311 device in the catalog and drag & drop it into the working area (a): of 17...
Page 7
3. Please select an ethernet port on the S7 and hold the left mouse button down to connect the S7 with Resistomat 2311 (a): 4. Change now to Network view (a) to assign a controller to the Resistomat 2311. Click on the link “Not assigned” (b) of Resistomat 2311 and select your controller (c):...
Page 8
IMPORTANT: Check if devices are also connected physically to the right ports. You find the port number assignment in the section Port-Identification of Resistomat 2311 PROFINET manual 5. Change the device name in Device view → Properties → General → Ethernet addresses:...
5 Perform a measurement and read the measurement result In this section, you will learn how to create a simple program to start and stop a measurement periodically and display the measured resistance value with corresponding unit in a watch table. You will need to refer to sections PLC inputs and PLC outputs of the RESISTOMAT 2311.
Page 10
3. Select in the new window Organization block (a) → Cyclic interrupt (b). Set the cyclic time to 3.000.000 µs (c). As language set SCL (d) and click OK: 4. Type in the following source code in the code field of the new block: "out_start"...
Page 11
5. Add a new function block and name it read_meas_value: You will use this block to read the measurement value string, containing the measurement resistance value and the corresponding unit. For this acyclic operation, you will also need an instance of RDREC block. Variables: of 17...
Page 12
6. Type in the following source code in the new function block: Sourcecode: "Data_block_1".MeasValueAsString := '---'; // Init Measurement value string REPEAT "RDREC_DB"(REQ := TRUE, ID := 296, // 296: HW-ID for slot 48 INDEX := 12, // Index 12: Measurement Status MLEN := 2, // Max.
Page 13
Note: Your Hardware identifier for the slot 48 (Current measurement values) may be different. You can check it in the Device view → Device Overview → System constants: 7. Add a new data block via Add new block (a) → Data block and insert the string variable ‘MeasValueAsString’...
Page 14
8. Before you load the project into the CPU you have to set the IP addresse 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) assigned to your in section IP-Protocol: 9.
Page 15
Make sure that PROFINET Control is enabled in RESISTOMAT 2311. For details, see chapter ® Configuration menu in Resistomat 2311 of the RESISTOMAT 2311 PROFINET manual. ® 1. To control the measurement value just add the variable "Data_block_1".MeasValueAsString to the...
In this example, we perform a write access on slot 30/Subslot 1/index 16 to set the station name of Resistomat 2311. For this acyclic operation, you will need an instance of a WRREC block. You can see the new station name in the info menu of Resistomat 2311.
Page 17
// Write not completed yet ERROR => #Error, // Error STATUS => #Status, // Status RECORD := #abSerial); // Bytes to write UNTIL NOT #Busy #Done END_REPEAT; You can see the written serial in the Order sheet menu of Resistomat 2311. of 17...
Need help?
Do you have a question about the Resistomat 2311 and is the answer not in the manual?
Questions and answers