0% found this document useful (0 votes)
560 views15 pages

Siemens S7 PLC Connection

This document provides instructions for connecting a Bronkhorst High-Tech mass flow or pressure instrument as a slave device to a Siemens S7 PLC master controller using Profibus-DP communication. It describes preparing the Siemens PLC as the master, configuring the Profibus network in Step7 software, adding the Bronkhorst instrument as a slave device, and downloading a test program to the PLC to send setpoint changes to the slave instrument. Connecting the hardware and following the provided configuration steps allows for cyclic input/output communication between the PLC master and Bronkhorst instrument slave.

Uploaded by

kicior
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
560 views15 pages

Siemens S7 PLC Connection

This document provides instructions for connecting a Bronkhorst High-Tech mass flow or pressure instrument as a slave device to a Siemens S7 PLC master controller using Profibus-DP communication. It describes preparing the Siemens PLC as the master, configuring the Profibus network in Step7 software, adding the Bronkhorst instrument as a slave device, and downloading a test program to the PLC to send setpoint changes to the slave instrument. Connecting the hardware and following the provided configuration steps allows for cyclic input/output communication between the PLC master and Bronkhorst instrument slave.

Uploaded by

kicior
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

APPLICATION NOTE

SIEMENS S7 PLC CONNECTION

TO DIGITAL MASS FLOW / PRESSURE INSTRUMENTS

Doc. no.: 9.02.584 B Date: 09-03-2009

Multi-bus

ATTENTION: Please read this instruction manual carefully before installing and operating the instrument. Not following the guidelines could result in personal injury and/or damage to the equipment..

BRONKHORST HIGH-TECH B.V. SCOPE OF THIS APPLICATION NOTE This application note describes step-by-step how to connect a Bronkhorst High-Tech Profibus-DP slave instrument (meter/controller) to a Siemens S7 PLC Profibus-DP master using Step7. This example may be also used for other types of PLCs.

9.02.584

Page 2

BRONKHORST HIGH-TECH B.V.

TABLE OF CONTENTS
1 Setting up master-slave communication with Siemens S7 PLC................................................................. 4 1.1 Prepare Siemens S7 PLC ................................................................................................................... 4 1.2 Step 7 configuration actions for Profibus communication ................................................................... 5 1.3 Adding a Bronkhorst meter/controller to the Profibus-DP system..................................................... 11 1.4 Testprogram on master PLC sending setpoints to slave Bronkhorst meter/controller...................... 15

9.02.584

Page 3

BRONKHORST HIGH-TECH B.V.

Setting up master-slave communication with Siemens S7 PLC

1.1 Prepare Siemens S7 PLC


This example is given for a Siemens S7-300 CPU315-2 DP. Setting-up other types of Siemens PLC will look almost the same, but may differ on details. Communication between PC(-card) and PLC for programming and setting can be realized by means of an MPI-cable or via Profibus. On the CPU315-2 DP both interfaces are present and can be used. In the example the MPI-interface will be used for programming/setting the PLC and the Profibus connector on the PLC will be used to communicate with the Bronkhorst meters/controllers. At the PLC: - Connect the MPI-cable between PC-card and PLC (left sub-D 9 connector) - Connect the Profibus cable to the PLC and the Bronkhorst meter(s)/controller(s) See picture below for details:

Put switch on PLC on RUN-P

For more information about Siemens PLC or Simatic equipment see: http://www.ad.siemens.de/simatic

For more information about Bronkhorst High-Tech equipment see:

www.bronkhorst.com

9.02.584

Page 4

BRONKHORST HIGH-TECH B.V.

1.2 Step 7 configuration actions for Profibus communication


1. Start-up Simatic Manager (Step 7)
SIMATIC Manager.lnk

2. Select [File][New project wizard][Next]

3. Select CPU315-2 DP and press [Next]

9.02.584

Page 5

BRONKHORST HIGH-TECH B.V. 4. Select Blocks OB1 and Language STL and press [Next]

5. Fill-in Project name, e.g.: Bronkhorst demo and press [Finish]

9.02.584

Page 6

BRONKHORST HIGH-TECH B.V. 6. On the new screen click on [Simatic 300 station] at the left side of the screen

7. At the right will appear two icons with Hardware and CPU315-2 DP(1) 8. Double-click on [Hardware] and a new screen will appear: the HW-Config screen

9. At the right side, with available hardware, first add a power supply, therefore:

9.02.584

Page 7

BRONKHORST HIGH-TECH B.V. 10. Under [Simatic 300][PS-300] drag&drop [PS 307 5A] to little screen left with rail and CPU315-2 DP

11. Now double-click on [DP-Master] and select Tab [General] and at interface: [Properties]

12. Select Tab [Parameters] and at Address fill in address of master (PLC)

9.02.584

Page 8

BRONKHORST HIGH-TECH B.V. 13. At Subnet select [New] in case of ---not networked---, otherwise select [Properties]

14. At [Network Settings], select Transmission rate (Baudrate) and Profile: [DP]

9.02.584

Page 9

BRONKHORST HIGH-TECH B.V.

15. Press 3x [OK] to close all (Profibus properties) screens, a dashed line with PROFIBUS(X): DP master
system(Y) will appear next to the object with the PLC to screen UR. The PLC has been setup now as Profibus master. Now your PLC (master) is ready to add slaves to the Profibus system.

9.02.584

Page 10

BRONKHORST HIGH-TECH B.V.

1.3 Adding a Bronkhorst meter/controller to the Profibus-DP system


16. Now the slave(s) can be added to the Profibus system. First GSE or GSD-file has to be loaded (when not already done before) to add a new slave (Bronkhorst meter/controller). 17. Go to [Options][Install new GSE]. Select path and load file BHT_0586.GSD.

18. Now look at the right side under [PROFIBUS DP] (double click on it or press + left to text) 19. Select [Additional Field Devices][General][Bronkhorst meter/controller], drag&drop [Bronkhorst meter/controller] to left side dashed line with PROFIBUS(X): DP master system(Y), give it the wanted slave-address at [Parameters] and press [OK].

9.02.584

Page 11

BRONKHORST HIGH-TECH B.V. 20. An icon with a Bronkhorst High-Tech instrument will appear on the screen. 21. At the bottom-left side a table will appear with slots for modules from the Bronkhorst meter/controller. Press + in front of [Bronkhorst meter/controller] (right). A list with available modules for slave configuration will appear. These modules are available variables/parameters in the Bronkhorst meter/controller for cyclic I/O, which means that these variables/parameters will be send/requested several times in a second. 22. At least [Measure, integer (read)] should be dragged&dropped into the slot-table to slot 0 at the bottomleft side. Add also [Setpoint, integer (write)] to slot 1 (NOTE: slave should be a Bronkhorst controller, able to receive setpoints !). See document nr. 9.17.023 for description of all Bronkhorst meter/controller variables/parameters.

23. Add all modules wanted for cyclic I/O communication between master and Bronkhorst meter/controller slave. Max. 50 modules can be add to the slot-table. Each variable/parameter will get one or more bytes reserved in the Input or Output area of the memory of the PLC. All variables will be stacked, starting from address 0. I/O address may be adjusted when needed and are available for further handling in the PLC.

9.02.584

Page 12

BRONKHORST HIGH-TECH B.V. 24. To set parameter data (A-cylic I/O that will be sent only to the slave instrument when communication starts between master and slave), double-click the icon with the Bronkhorst meter/controller. At [Parameter Assignment] all parameter data can be set. See document nr. 9.17.023 for description of all Bronkhorst meter/controller variables/parameters. Press [OK] when ready.

25. Make sure switch on PLC is in RUN-P position. 26. Select [PLC][Download] to download all settings into the PLC. Select Target module and press [OK]. Select Station Addres: MPI address 2 and press [OK]. Press [OK] at the message screen [Stop Target Modules].

9.02.584

Page 13

BRONKHORST HIGH-TECH B.V. 27. Press [Yes] if program asks if it is o.k. to restart the PLC.

28. After a few seconds all red and orange LEDs will go off, the green LED on the PLC at RUN will blink a few times and will stay on, together with the green LED at DC5V. The master is now communicating with the slave(s) without problems.

9.02.584

Page 14

BRONKHORST HIGH-TECH B.V.

1.4 Testprogram on master PLC sending setpoints to slave Bronkhorst meter/controller


29. For further testing a little program can be load into the PLC, e.g. to send setpoint changes. 30. In the Simatic Manager select at [Blocks] [OB1]. This is a module which will be called cyclicly by the PLC.Double-click [OB1] to open the editor and write following lines into the square where the cursor is blinking.

31. Select [File][Save] and [PLC][Download], Press [Yes] at next question. From now on the testprogram will send each 10 sec. Setpoint step changes between 20% and 80%.

9.02.584

Page 15

You might also like