Step-by-Step Guide to Integrating Siemens PLC with RS PRO HMI

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
one of the most challenging parts of any automation project is getting all of the devices to communicate with each other as many of you know trying to get two devices from two different manufacturers to communicate can be the source of a lot of headaches and issues on an otherwise smooth project in this video I will show you how easy it is to connect an RS Pro HMI to an S7 1200 or S7 1500 PLC over an Ethernet Network in the next 10 minutes we will configure and program a PLC in Tia portal create and configure an HMI application in pi studio and test the connection between the two devices this video is brought to you in partnership with RS a global omnichannel provider of industrial product and Service Solutions follow the link in the video description to see how they can help bring value and efficiency into every step of your process let's get started by configuring the PLC in Tia portal in Tia portal I've created a new project and added an S7 1211 PLC to the project I have used an S7 1211 PLC because that's what I have available in my lab if you're following along at home you can use any type of S7 1200 or S7 1500 plc in the devices and networks editor I select the PLC to access the plc's property configuration since the PLC will be communicating with the HMI over an Ethernet based Network I need to configure an IP address for the PLC which is on the same subnet as the HMI to configure the IP address of the PLC I scroll down to profinet interface X1 ethernet addresses and assign the IP address 192.168.1.100 to the plc as well as configuring the IP address for the PLC I have to allow external devices to access the plc's data and enable the communication protocol that is used to exchange data between the PLC and HMI to do this I scroll down to the protection and security section of the plc's properties in this folder I set the access level to full access this allows external devices to read and write all of the data in the plc finally I need to enable put git communication in the PLC this is the communication protocol that is used for communications between the PLC and the RS Pro HMI to enable put get communication I open the connection mechanisms page and activate the permit access with put get communication from remote partner option now that the PLC is configured we can write some simple logic that we will use to test the HMI communication later on I double click on the main OB to open the object once opened I program a simple seal in circuit as shown here with one permissive and two interlock conditions once the programming is done I can Define the tags for my project to show how an RS Pro HMI can interact with different types of tags in an S7 PLC we will use a combination of memory Global output and Global input tags in this example my process can be started or stopped from the HMI using the tags HMI start and HMI stop the addresses for these tags are m0.0 and m0.1 respectively the process can also be stopped with a physical stop button this stop button is wired to the plc's input I 0.0 and I create a tag for this input called BTN stop finally when the process is running the PLC turns on the physical output Q 0.0 which is associated with the tag bcn running once I have finished configuring the logic I compile my project and download it to the plc at this point we have finished programming the PLC and we can turn our attention to Pi Studio the development environment for RS Pro hmis in pi Studio I create a new project you can find the download link for pi studio right in the video description in the new project dialog I specify the name of the project the type of RS Pro HMI used and the communication configuration in this example I want to use the ethernet connection to communicate with the Siemens S7 1200 plc once these settings are configured I click on finish to create the project in the project I need to specify the IP address of the PLC that the HMI will be communicating with I do this in the Project's communication configuration to open the communication configuration activate the project tab in the toolbar and click on communication in the communication dialog box click on setting beside the device IP field to set the IP address for the PLC that the HMI will communicate with notice that I'm only uploading the IP address and I leave the other options at their default values when the configuration is done I click OK on both dialog boxes to store the configuration and close the dialogs we also need to specify the IP address of the HMI to do this click on Project settings and configure the IP address of the HMI in the HMI IP tab now that the HMI is configured we can build our HMI application we can add objects to the HMI screen by dragging them from the toolbox and dropping them on the canvas I'll start by adding a bit switch to the canvas as shown here once an object is placed on the canvas I can double click on the object to open its configuration menu for the bit switch object I need to configure what tag in the PLC it writes to to specify a tag I can click on the edit button beside the right address field in the dialog box that opens I set the PLC tags address as m0.0 which was the address of the HMI start tag I click OK twice to store the configuration and repeat the process to add a second bit switch object for the HMI stop tag with the address m0.1 I also need to specify the mode of this bit switch under mode I select momentary when a bit switch is operating in momentary mode it writes the value true to its Associated tag while the switch is active as well as controlling the value of tags by writing to them from the HMI we can also visualize the status of tags by reading their values from the toolbox I add a bit lamp object to visualize the status of a Boolean tag in the plc once again I can double click on the object to open its configuration dialog and I can Define the address of the tag that the object will read here I'm reading from the address I 0.0 which was the address of the physical stop button I repeat this process to add another bit lamp that reads from the address Q 0.0 which was the output that turns on when the process is running at this stage our HMI is almost finished the last thing I will do is add some text labels to explain what the objects on our HMI do to do this I activate the common object folder in the toolbox and drag a text object onto the canvas above the HMI start bit switch I double click on the object to open its configuration dialog and update the text to HMI start I copy and paste this text object to add labels to the other objects on the canvas if I want I can use the positioning tools available on the toolbar to position and align the objects on the canvas as shown here now that the HMI development is done we can compile the HMI using the compile button on the toolbar and download the application to the HMI once the application is downloaded we can test the communication to make sure that everything is working as expected on my HMI I turn on the HMI start bit switch when this switch is on it writes the value true to the HMI start tag in the PLC in the output bcn running becomes true I can see that the tag bcn running is true because the appearance of the running bitlamp has been updated I turn off the HMI start bit switch and activate the HMI stop bit switch this writes the value true to the HMI stop tag which is an interlock for the process as expected the bcn running tag becomes false and we can see that the process has stopped from the appearance of the running bit lamp finally I can toggle the physical input I 0.0 of the plc I can see the value of the physical input changing from the stop button bit lamp on the HMI at this point we can confidently say that the communication between the PLC and HMI is working in this video I showed you how easy it is to set up communications between a Siemens S7 1200 PLC and an RS Pro HMI using Tia portal and Pi Studio specifically we learned how to specify an IP address for the PLC configure the plc's access level and enable put git communication once the PLC configuration was complete we learned how to configure the IP address of the PLC that the HMI communicates with and how to map HMI objects to tags in the plc if you need guidance on which products best fit your needs RS is a great Solutions partner who offers application Consulting Services the RS engineering team and Technical Solutions Center are ready to support you with your project needs check out the link in the video description to learn more want to dive into the world of Siemens PLC programming we've got you covered enroll in the realpars course it's free and super easy to follow click on the link in the video description to get started plus we've included links to the hardware and software discussed in the video including the S7 1200 PLC and rs Pro HMI let's make learning fun and accessible together [Music] [Music]
Info
Channel: RealPars
Views: 20,670
Rating: undefined out of 5
Keywords: Step-by-Step Guide to Integrating Siemens PLC with RS Pro HMI, Integrating Siemens PLC with RS Pro HMI, Siemens PLC RS Pro HMI integration, Siemens PLC, RS PRO HMI, S7-1200 PLC, S7-1500 PLC, Ethernet network, TIA Portal, piStudio, HMI, PLC Configuration, PLC IP address Configuration, PUT/GET communication, PLC Programming, HMI Application, How to connect HMI to Siemens PLC, rs pro touch screen hmi display, siemens compatible hmi, siemens plc programming example
Id: aHVdsKyDPP0
Channel Id: undefined
Length: 12min 32sec (752 seconds)
Published: Mon May 22 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.