ag090115 how to configure simatic step7 v5.5 to read...

9
APPLICATION GUIDE Siemens Level and Weighing 1954 Technology Drive, P.O. Box 4225 Peterborough, Ontario K9J 7B1 / Canada Tel.: (705) 745-2431 Fax: (705) 741-0466 www.siemens.com/sensorsystems AG090115 How to configure SIMATIC STEP7 V5.5 to read cyclic data from MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS DPV1 Objective: To use Siemens SIMATC S7300 PLC to read data from MultiRanger/HydroRanger 200 HMI through SmartLinx PROFIBUS DPV1 communication module. Equipment Description MLFB Part Number SIMATIC S7300 S7-315 PLC 6ES7 315-2AG10-0AB0 SIMATIC Step7 V5.5 SP4 SmartLinx PROFIBUS DPV1 module A5E35778741 MultiRanger or HydroRanger 200 HMI Code example for the S7300 Step7 V5.5 SP4 While every effort was made to verify the following information, no warranty of accuracy or usability is expressed or implied. Overview This application guide is an addition to the operating instructions for the MultiRanger/HydroRanger 200 HMI. It focuses on the configuration of SIMATC S7300 PLC to read the cyclic data from MultiRanger/HydroRanger 200 HMI over PROFIBUS DPV1. During the reading process, the PLC will cyclically exchange data with the PROFIBUS slave and present the process data to the user. Hardware set-up Open the MultiRanger/HydroRanger 200 HMI lid. 1. Mount the SmartLinx module into the socket and fix it in place with the two fixing screws (included). 2.

Upload: hanga

Post on 09-Mar-2018

277 views

Category:

Documents


11 download

TRANSCRIPT

Page 1: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

APPLICATION GUIDE

Siemens Level and Weighing 1954 Technology Drive, P.O. Box 4225 Peterborough, Ontario K9J 7B1 / Canada

Tel.: (705) 745-2431 Fax: (705) 741-0466 www.siemens.com/sensorsystems

AG090115

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1

Objective: To use Siemens SIMATC S7300 PLC to read data from MultiRanger/HydroRanger 200 HMI through

SmartLinx PROFIBUS DPV1 communication module.

Equipment Description MLFB Part Number

SIMATIC S7300 S7-315 PLC 6ES7 315-2AG10-0AB0

SIMATIC Step7 V5.5 SP4

SmartLinx PROFIBUS DPV1 module A5E35778741

MultiRanger or HydroRanger 200 HMI

Code example for the S7300 Step7 V5.5 SP4

While every effort was made to verify the following information, no warranty of accuracy or usability is expressed or implied.

Overview

This application guide is an addition to the operating instructions for the MultiRanger/HydroRanger 200 HMI. It focuses on the

configuration of SIMATC S7300 PLC to read the cyclic data from MultiRanger/HydroRanger 200 HMI over PROFIBUS DPV1.

During the reading process, the PLC will cyclically exchange data with the PROFIBUS slave and present the process data to the

user.

Hardware set-up

Open the MultiRanger/HydroRanger 200 HMI lid. 1.

Mount the SmartLinx module into the socket and fix it in place with the two fixing screws (included). 2.

Page 2: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 2 of 9

Process data

Description Data type Byte Word

Point data PV point 1 in programmed units Float 0 0

PV point 1 status byte Word 4 2

PV point 1 signal strength Word 6 3

Module

connector

(underside,

34-pin) to

Siemens

device

Mounting

hole

Terminal block Termination

switch

Node address

switches

Status

indicators

Mounting

hole

Mounting

hole

Page 3: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 3 of 9

Description Data type Byte Word

PV point 2 in programmed units Float 8 4

PV point 2 status byte Word 12 6

PV point 2 signal strength Word 14 7

PV point 3 in programmed units Float 16 8

PV point 3 status byte status Word 20 10

I/O Digital inputs Word 22 11

Relay outputs Word 24 12

mA input 1 Float 26 13

Totalizer 1 Double 30 15

Totalizer 2 Double 34 17

How to configure the SIMATC S7300 PLC

NOTE: this guide assumes the user is familiar with SIMATIC STEP7.

Launch Step7, select File, and then New. 1.

Enter a project name in the project window and click OK. In this example, the project name is Hydroranger200. 2.

Page 4: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 4 of 9

In the project window, right click on the project name, click on Insert New Object and then select SIMATIC 300 Station. 3.

From the Options menu, select Install GSD Files and then browse to the location of the GSD file. Click Install. 4.

Double click on the Hardware option in the main window to open the hardware configuration screen. 5.

Page 5: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 5 of 9

Once in the hardware configuration screen, select the S7300 rack by clicking on the RACK-300 folder in the catalogue tree on 6.

the right side of the screen. Now click on the Rail and drag it over to the rack in the main window.

Then from the catalogue tree, select the S7300 CPU that you are currently using. In the example below, we are using the S7-7.

315 2 DP CPU.

Drag the CPU over to the rack in the main screen. You will then see the window shown below. 8.

Page 6: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 6 of 9

In the pop-up window, click on the Parameters tab and enter the master address. Then click on New to add the PROFIBUS 9.

network. A new window will appear.

In the new window, enter information into the fields as shown below. Click OK to go back to the main screen. The PROFIBUS 10.

network has been added to the CPU.

The main hardware window should now look like this:

Page 7: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 7 of 9

From the catalogue tree, select the PROFIBUS DPV1 card by clicking through PROFIBUS DP, Additional Field Devices, 11.

General, Anybus DPV1 IM.

Drag the Anybus device onto the PROFIBUS network shown below. A new window will appear. 12.

In the new window, enter the slave address for the MultiRanger/HydroRanger 200 HMI and click OK. 13.

Note: The address here should match the address of the rotary switches on the SmartLinx card.

Page 8: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 8 of 9

Now, in the catalogue tree, highlight the Anybus device you have just added. Drag the relevant modules from the catalogue 14.

into the slots to make up 19 Words of input.

From the Station menu, select Save and Compile. 15.

From the PLC menu, select Download to download the configuration to the PLC. 16.

Close the hardware configuration window. 17.

Select Blocks from the main project window. 18.

Right click on the Blocks folder, select Insert New Object and then choose Variable Table. 19.

Enter a name for the VAT table or leave as the default VAT1. 20.

Page 9: AG090115 How to configure SIMATIC STEP7 V5.5 to read ...w3.siemens.com/mcms/sensor-systems/SiteCollectionDocuments/pi/... · How to configure SIMATIC STEP7 V5.5 to read cyclic data

How to configure SIMATIC STEP7 V5.5 to read cyclic data from

MultiRanger/HydroRanger 200 HMI over SmartLinx PROFIBUS

DPV1 APPLICATION GUIDE

AG090115 Page 9 of 9

In the Blocks folder, double click on the VAT Table to open it. 21.

Create a VAT table like the one shown below. 22.

Review the values in the VAT table and confirm that they are correct for your application. 23.