Тёмный

COM09. OPC UA - Siemens S7-1500 (OPC UA Client) and S7-1200 (OPC UA Server) TIA Portal 

Electrical Automation Hands-On
Подписаться 22 тыс.
Просмотров 55 тыс.
50% 1

#OPCUA #Siemens #TIAPortal
COM01.OPC UA - Siemens S7-1200 PLC(OPC UA Server) and UaExpert(OPC UA Client)
• COM01. OPC UA - Siemen...
COM02.OPC UA - Three OPC UA Client Tools For Free
• COM02. OPC UA - Three ...
COM08. OPC UA - BECKHOFF TwinCAT 3 TF6100(OPC UA Server) and UaExpert(OPC UA Client)
• COM08a. OPC UA Beckhof...
COM12.OPC UA - Connect PLC (PID Controller) to Matlab/Simulink (Process Model) via OPC UA
• COM12. OPC UA - Connec...
ID:109762770
support.industry.siemens.com/...
Industrial Automation Data Collection
• Industrial Automation ...

Наука

Опубликовано:

 

31 май 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 106   
@AlexMacabu
@AlexMacabu 4 года назад
Great video! The best one I've seen so far. Thanks for sharing all this knowledge!
@electricalautomation
@electricalautomation 4 года назад
Thanks for watching!
@vbit8365
@vbit8365 3 года назад
Impressive, I stumble upon your video through some google search looking for the Siemens PDF manual. This is 47min of pure education. Video Quality 5/5, Mic Quality 5/5, Ease for me as a non-English speaker to understand 5/5
@electricalautomation
@electricalautomation 3 года назад
Thanks very much for your feedback! Keep in touch, and welcome to my channel!
@siddharthmarathe4235
@siddharthmarathe4235 3 года назад
Thanks for Sharing. Useful Information. Your good work will be supported by me and my team.
@electricalautomation
@electricalautomation 3 года назад
Thanks and Welcome!
@Reggie24242
@Reggie24242 3 года назад
Excellent video, thanks for sharing!
@electricalautomation
@electricalautomation 3 года назад
Glad you enjoyed it! Thanks for watching!
@luisdonaldomartinezgazcon6571
@luisdonaldomartinezgazcon6571 7 месяцев назад
Thanks my friend it was very functional for me.
@electricalautomation
@electricalautomation 7 месяцев назад
Thanks! Welcome
@miroslavlenghard6422
@miroslavlenghard6422 3 месяца назад
Thank you very much. Very clever and very good information for me. Thanks again.
@electricalautomation
@electricalautomation 3 месяца назад
Welcome! Glad you like it
@electricalautomation
@electricalautomation 3 года назад
Recommend to use the latest CPU firmware to do the test. Some wired problem may be caused by the firmware issue. e.g. V4.4.1 of S7-1200 fixed some issues on the OPC UA functions. Update V4.4.1 The S7-1200 CPU firmware update V4.4.1 replaces the V4.4.0 and corrects the following issues: -Corrects the number of allowed S7 routed connections with left-side modules -When TIA downloads only hardware configuration, the OPC UA security policies are applied appropriately -Corrects the OPC UA Structure sizes in OPC UA Binary Protocol -Improves secure open user communication robustness -Allows secure open user communication when using self-signed certificates -Fixes sporadic DataLog corruption when downloading from the Web server
@ercanmutlu1534
@ercanmutlu1534 3 года назад
çok teşekkür ederim
@electricalautomation
@electricalautomation 3 года назад
Thanks and welcome!
@hanssarpei548
@hanssarpei548 2 года назад
Thanks!
@electricalautomation
@electricalautomation 2 года назад
Welcome! Glad it is helpful
@ahmedatef5563
@ahmedatef5563 2 года назад
Great video
@electricalautomation
@electricalautomation 2 года назад
Thanks! Welcome!
@woutkonings
@woutkonings 2 года назад
Very helpful video! I cannot quite hear what you are saying at 39:45 to make sure the data is being read all the time? Also, I was wondering, how can we now read this data on the S71500 on the other network interface X2? Do I only need to configure the addresses in the watch table and is the data then already readable? Or does this require more configuration in the program?
@electricalautomation
@electricalautomation 2 года назад
Thanks for watching! At 39:45, to update your data receiving buffer/variables, the *.opcUARead needs to be a rising edge to trigger the 'reading'. If you need to continuously reading the variables, then the *.opcUARead should be a pulse with certain period, e,g, 1HZ to allow the *.opcUARead every 1 second to trigger one time. Regarding the X2 question, it does not matter with port of the S7-1500 CPU you are using.
@blaisofotso3439
@blaisofotso3439 3 года назад
Thank you for your prompt answer. I have a question. If the opc server and client are now part of the hardware I.e embedded in hardware , does it mean that we don't need to purchase opc products like top server or kepware? Can you please make a video on TIA portal from beginner to advance. Explaining the best practices as per where to write code on OB100, DB and FC, FB. How to develop project in wincc scada with tia portal from scratch to the end. Thank you in advance.
@electricalautomation
@electricalautomation 3 года назад
Hi Blasio, yes, if the PLC/CPUs they have built-in OPC UA Server/ Client functions, the two PLC can communicate with each other. This is is main idea of this COM09 video. This allows PLCs can communicate with other PLCs and software cross the vendors, brands, and platforms. I believe the OPC UA will be built in in the most of the main stream controllers in near years.
@electricalautomation
@electricalautomation 3 года назад
Thanks for your comments about the topics. I will note them down. As you saw more than 150 videos in my channel, most of them look like slightly 'advance', that is because, those topics has been in my mind many years and I am eager to share them asap, e.g. PID, Motion Controls, Safety Controls, Commutations. I will come back to show the basic programming concepts or topics after those adv topics basically set up. Welcome to leave comments or send emails for any interesting topics. Have a nice day!
@blaisofotso3439
@blaisofotso3439 3 года назад
Dear Team, I have to really give you respects for your great work. they are really hands on and hepfull as well. May i please suggest to do some drawing at certain points to clarify connections between devices? I believe doing so will not throw me off the topic. Regards
@electricalautomation
@electricalautomation 3 года назад
Thanks Bro, thanks for your comments. All the videos are made by myself, and all your feedback could make me to improve. You are welcomed to leave any comments or recommendation, also feel free to send me emails for questions discussions. Thanks again!
@yunahuang1540
@yunahuang1540 3 года назад
Thanks for sharing. I use the example project connecting to the third party opcua server, the client device is S7-1500(CPU 1511-1).After compiling, the result is ok except one error : Cannot update the data block for client interface. I didn't find out where is wrong.
@electricalautomation
@electricalautomation 3 года назад
Please find the DBs you have, find out all the 'red' mark on the data type area, and using right-click to manual update the 'Data type'. as shown in ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oChVcRaUt9M.html. Also check if the you have the date type under the layer 'PLC data type' the system needs.
@samitshah1984
@samitshah1984 3 года назад
Thanks for the video i have been following it but when i go on the Client interface_1 i can only see server inside the object but not the tags or other items
@electricalautomation
@electricalautomation 3 года назад
You could use the UaExpert(OPC UA Client) to connect to the OPC UA Server for a test, if it is still (no tags,) then check if S7-1200 OPC UA Server side got miss sth,
@kayhan667
@kayhan667 2 года назад
Thanks for video firstly! I wonder about "Events". I can see types and other folders when I use UaExpert as a client. But in "tia portal opc ua server interface" I can only see object folders. So I can't add "events" to the client plc. Do you have any advice about it? thanks!
@electricalautomation
@electricalautomation 2 года назад
I never used events of OPC UA. I also have no idea how it works. Are there some reasons you have to use it?
@kayhan667
@kayhan667 2 года назад
@@electricalautomation yes Im trying to create communication m2m, and server was created by machine manufacturer so I cant modify server model. Because of m2m I should use plc as a client and I can’t see all folder in tia portal interface as uaexpert.
@electricalautomation
@electricalautomation 2 года назад
@@kayhan667 I don't think you can find the variables in the events in S7-1200 with the current revision. But maybe try S7-1500 with the latest revision at TIA portal V17. Or You might contact Siemens for asking if the PLC can provide more variables and more folders.
@Oluwasedago
@Oluwasedago 2 года назад
Thank you once again for this, must the Server and Client be on the same Subnet for connection to exist?
@electricalautomation
@electricalautomation 2 года назад
Hello, I don't think they must be the same subnet. As long as the client can access the IP of the server, e.g via VPN or Router, they should be Ok
@Oluwasedago
@Oluwasedago 2 года назад
@@electricalautomation Thank you very much for always replying fast. I have a challenge with connection. I am trying to use a simulation server software and I cannot get an IP address from it. It uses opc.tcp.hostname.port/opcua... I used that at the opcua client interface import interface settings and it works because I am able to bring in the tags from the server. However, because the IP address at the hardware settings is not correct, the connection for real data exchange does not happen, it goes into error. My question is, do you know any OPC-uA server simulator I can use that will give me an IP address for connection or do you know how I can set same for Prosys or Matrikon servers. I have downloaded a lot and it's all same. Thank you once again.
@electricalautomation
@electricalautomation 2 года назад
@@Oluwasedago You could try KepserverEX www.kepware.com/en-us/products/kepserverex/. I used it as OPC server before, it is free for test every 2 hours
@Oluwasedago
@Oluwasedago 2 года назад
@@electricalautomation Thank you very much. I have gotten the IP into the Client PLC and I still get the BUSY and ERROR indicator issues anytime I try to connect. Since I am able to connect and bring in the tags from the Server into the OPCUACleintInterface, I want to assume this issue might be related to the Siemens PLCSIM Adv. and the Server Simulator not being able to connect internally for the real data transfer. Since I am using 2 simulation softwares. Do you have any experience of same using two simulation softwares? Perhaps I need to try with a real PLC.
@electricalautomation
@electricalautomation 2 года назад
@@Oluwasedago I would recommend use real hardware for the test. Also use the latest version of software and hardware. The new PLCSim improve the OPC UA communication.
@minhkieu8210
@minhkieu8210 3 года назад
hi AD how can i install multiple versions of TIA on . I have installed full TIA V16 including wincc runtime advand.Thanks
@electricalautomation
@electricalautomation 3 года назад
Multiple versions of TIA Portal can be installed in one system. As my system, I installed from V12 to V16. But I installed all those versions from low to high version, never tried to install a lower version after a high version.
@alvarocristoballabrador2523
Can i acces multiple servers whit a s7-1500? reading writing for example 30 s7-1200 actin like a server and one s-71500 as a client?
@electricalautomation
@electricalautomation Год назад
You need to check your CPU OPC UC client connection resources, you can find this number in the CPU hardware configuration properties.
@carlosquiroga1402
@carlosquiroga1402 2 года назад
Hi sir You can do Opc Ua client between node-red an tia Portal V16, try to use the PLC SIM advanced
@electricalautomation
@electricalautomation 2 года назад
Hi Carlos, the node -red may run as the OPC UA Client, and the Siemens S7-1200/1500 runs as OPC UA Server. Therefore, you can review the S7-1200 OPC UA Server portion in this video.
@yajichinnam
@yajichinnam 2 года назад
Does it requires any license for OPC UA client.. I am testing with PLCsim advance and s7 1200 pl
@electricalautomation
@electricalautomation 2 года назад
Yes, you need to purchase a license, but the license is a paper permission ~~.
@yajichinnam
@yajichinnam 2 года назад
@@electricalautomation tested with plcsim adv v4.0 as client (s71500) ... It's working .. Thank you
@electricalautomation
@electricalautomation 2 года назад
@@yajichinnam Glad to hear that! Enjoy
@maximechardonnay5682
@maximechardonnay5682 2 года назад
Hey ! Great video ! But, when I import UDT or a Struct in my Server Interface, I seen't my UDT or my Struct in my Client Interface... Can you help me ?
@electricalautomation
@electricalautomation 2 года назад
Hello I am concerning if the client interface supports UDT. Please use the variables only without using UDT.
@bauchibauch
@bauchibauch 3 года назад
Can u Just use SOAP/Http and get a Wsdl File instead of using TCP/IP connection?
@electricalautomation
@electricalautomation 3 года назад
Hello my friend, the SOAP is a different topic from the OPC UA discussed in this video. But regarding the SOAP, this link support.industry.siemens.com/cs/document/109763879/library-for-http-communication-(lhttp)?dti=0&lc=en-WW could give you some ideas. OPC UA is spreading and will be commonly used method to allow machine to communicate with machine (local or global), more specifically PLC to PLC between different brands. LHTTP would be a way to allow PLCs to communicate directly via the Internet (global). This link, it provide a way to allow PLCs to communicate locally or globally. However, I have no idea how other brands support this method, e.g. A-B, Omron, Beckhoff.. I also slightly doubt the security issue from this Http method. But OPC UA does a good job on communication security.
@bauchibauch
@bauchibauch 3 года назад
@@electricalautomation thank you :)
@gr.imadeddine324
@gr.imadeddine324 4 года назад
does it work with 02 CPUs (s7-1500) in the same project with both on PLCSIM Advanced ?
@electricalautomation
@electricalautomation 4 года назад
I think it works if you use two CPUs running in PLCSIM Advanced and let them communicate via OPC UA. I didn't try this because I use one the real S7-1200 as OPC UA Server. The key idea of this video is going to show the how the S7-1500 OPC UA Client works. I am very welcome if you could give a feedback once you try two CPU in PLCSIM advanced. Thanks
@gr.imadeddine324
@gr.imadeddine324 4 года назад
@@electricalautomation So far it doesn't seem to work, i have an error code on the opc ua status of the client interface ! 16#8601, so i guess that the client couldn't get connected to the server ! (i used the same project file that siemens gave, which is the one you used to get the client CPU) i don't know if the connection between the 02 CPUs could be established using opc UA on plcsim advanced ! If you can do that please let me know ! Thanks for the video and all the informations you gave on it ! Keep going !
@electricalautomation
@electricalautomation 4 года назад
@@gr.imadeddine324 Hi My friend, I just try using PLC SIM Advanced for two CPUs, Unfortunately, my laptop becomes freeze when two CPU instance running in PLCSIM Advanced. I tried three times, the system all freeze can not let me download the project to the PLCSIM adv. I am not sure what the performance of the system on your side. Therefore, I highly recommend you OPC UA or Client at least one hardware instead of all 'virtual'. I believe, if you use one side via hardware, it will be done.
@gr.imadeddine324
@gr.imadeddine324 4 года назад
@@electricalautomation Hi ! thanks for your effort ! from my side, i was able to download the the project on both client and server on PLCSIM advanced, i also tried one CPU server alone without client and it did work on it ! but the two at the same time didn't work ! I also think the same as you ! i think that we need one part to be real and not virtual so that we can establish the communication between the client and server ! Thank you so much again for all what you've done ! i wsh you all the best !
@electricalautomation
@electricalautomation 4 года назад
@@gr.imadeddine324 Thanks GR. I wish you all the best! Welcome to my channel, and welcome to watch my other playlists. Thanks!
@marius9692
@marius9692 2 года назад
I need help, I generated a client interface and was able to find the server online and fill the read/ write-lists with the data I want to receive from the server. Now the problem is, that I'm receiving the error code 16#8601 from the function block. But when I'm able to find the server in the client-interface setting, I should be able to connect to the server with the function block or am I wrong? I'm using v16 and a cpu1500. The client and the server are running on the same device. Could that be a problem?
@electricalautomation
@electricalautomation 2 года назад
I would recommend try Client, and Server separately first. If they can work individually, then you may modify port 4840 to another port number, the server/client may conflict using the same port.
@marius9692
@marius9692 2 года назад
Thanks, running the server on a different device solved the problem. Now I wonder if it is possible to realize a kind of subscription, with this client function. My goal is to only send data, when it has changed. Is there a way to achieve that?
@electricalautomation
@electricalautomation 2 года назад
@@marius9692 May be this link can help you support.industry.siemens.com/cs/document/109756885/opc-ua-methods-for-the-simatic-s7-1500-opc-ua-server-?dti=0&lc=en-WW
@mohsh86
@mohsh86 3 года назад
Am facing a flickering error, status switches between 16#7001 and 16#8617 (Error in the status list after read of namespace indexes according to manual.) any idea? I am using Kepware as OPC UA server
@electricalautomation
@electricalautomation 3 года назад
Hi, referring ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oChVcRaUt9M.html in the video, can the 'OPC UA Server Interface' browse the Tags from Kepware? Also, pls check the middle window 'read list' and 'write list'. the tags in the window also show the OPC UA Node ID. pls check the if the 'ns' namespace match your Kepware side. In addition, double-check if the write list and read list in the 'Interface_Data DB' are updated with your configuration.
@mohsh86
@mohsh86 3 года назад
@@electricalautomation Yes, i can browse tags from Kepware, i have inserted them to readList and writeList as per video. what should the Kepware namespace be ?
@electricalautomation
@electricalautomation 3 года назад
@@mohsh86 How about using another S7-1200 or S7-1500 running as OPC UA Server instead of Kepserver for a try, if this S7-1500 OPC UA Client can communicate, that means Kepserver (OPC UA Server) side has sth to further setting. This can verify if the S71500 OPC UA Client is running properly. Bty, are you using PLCSimAdv or hardware, I highly recommend you use hardware and lastest firmware.
@ufukozer2497
@ufukozer2497 3 года назад
Hi,i`ve the same issue. Did you find the root cause?
@mohsh86
@mohsh86 3 года назад
@@ufukozer2497 I had to get rid of the methods list, set corresponding parameters to NULL at FB
@mrjadoon4614
@mrjadoon4614 4 года назад
On client side if you do not use the Siemens example how you set that up on s7-1500 PLC
@electricalautomation
@electricalautomation 4 года назад
Hello, we have to use 'FB1 OpcUaClient' provided by Siemens, otherwise, it is difficult to build up the 'OPC UA' protocol by your own. Other than this FB1, I basically do my own configuration. e.g. Client Interfaces configuration. I explained the internal connection between the FB1 and the Client Interfaces configuration. Thanks for watching.
@gr.imadeddine324
@gr.imadeddine324 4 года назад
@@electricalautomation Hi friend ! if you know how to do it, could you please do a video configuring the client by your own ! without the FB1 OpcUaClient ? i guess you would use the OPC UA communication library ? to be honest, i've already tried it with a diffrent CPU, ET200SP v2.8 and so far i couldn't get the DONE of Opc_UA_Connect ! (using both client and server on PLCSIM Adv), it would be great to know how You do it ! Thanks a lot for sharing with us you're knowledge !
@mrjadoon4614
@mrjadoon4614 4 года назад
@@electricalautomation thank you for reply, I tried to use this Siemens FB block but unable to connect with server which is not siemens PLC . I can see the tags in that plc in my client PLC interface setting but that FB block does not connect with plc there must be some other setting. If you make a another video just for the setting would be great thank you
@mrjadoon4614
@mrjadoon4614 4 года назад
@@gr.imadeddine324 I have similiar problem unable to connect with PLC, if you find a solution please share with me too thank you
@electricalautomation
@electricalautomation 4 года назад
@@mrjadoon4614 Hi Khan and GR, I think the current version of PLCSIM Adv (even if it is v3.0) is still limited on OPC UA. I think the reason you can not get success when you tested other PLC as OPC Server is that the license, security, and certificate issues. In addition, according to the example program from Siemens , the program on V2.6 and V2.8 are not the same. Base on these, I personally recommend that you'd better not take two many efforts on testing the Client using PLCSim Adv. You;'d better use the hardware to implement the OPC UA.
@dhulfiqaraljaberi6599
@dhulfiqaraljaberi6599 2 года назад
Did you get this error 16#8601???? not connecting to the server!
@electricalautomation
@electricalautomation 2 года назад
8601 means the Client can not connect the server, this is a general fault, could be multiple reasons. Pleaser review the comments under the videos, there are many discussions there.
@mrbloom9082
@mrbloom9082 3 года назад
Great Video. I am just having a problem to get connected to the server. When I modify connect to 1, I am getting the error code 16#8601. Do you know how to solve this problem?
@electricalautomation
@electricalautomation 3 года назад
Please check the configuration of OPC UA Client Interface at 21:14. Can you browse the OPC Server by using right top "OPC UA Server Interface".
@antoninsanitastruffit
@antoninsanitastruffit 3 года назад
@@electricalautomation Hi thanks you for the video, very instructive. Actually I have the same error using the Siemens Demo Project. I browse the OPC Server in the OPC Client Interface but I have error code 8601 with 16#8005_0000 in V15.1 and 16#800A in V16.I also tried the siemens advices but no way support.industry.siemens.com/cs/document/109771693/how-do-you-configure-the-opc-ua-client-of-a-simatic-s7-1500-to-establish-a-connection-via-fqdn-or-to-bypass-the-fqdn-?dti=0&dl=en&lc=es-CR Do you have an idea ?
@electricalautomation
@electricalautomation 3 года назад
@@antoninsanitastruffit Are you using the PLCSim Adv? I would recommend using S7-1500 hardware CPU to do this test, I heard many cases and most of the problems come from the PLCSim Adv, there are many issues on the software environment. According to your error, that is the common 'time out' error. If you make sure all the settings followed my video, then turn to use hardware instead of software Sim.
@antoninsanitastruffit
@antoninsanitastruffit 3 года назад
@@electricalautomation Thank you for your advice, effectively we use PLCSim advanced. We make the same as you but with software, so I think your right an issues come from software. As a solution for our case, we finally choose to use the TIA OPC server fucntion to communicate with external program and work well.
@electricalautomation
@electricalautomation 3 года назад
@@antoninsanitastruffit Glad to hear from you. Thanks
@pierpaolofranceschin8249
@pierpaolofranceschin8249 Год назад
I dont’t see the utility to copy a project from Siemens website…if you try by yourself with a scratch project you learn 10 Times bitter how to use this blocks and you can adapt the better to your application
Далее
Despicable Me Fart Blaster
00:51
Просмотров 9 млн
Блиц по трекам ❤️
00:50
Просмотров 89 тыс.
S7-1500 OPC UA Methods Tutorial
22:30
Просмотров 7 тыс.
What is OPC UA |How it works ? Tutorial for Beginners
10:02
ما هو الـ OPC Server ؟
5:36
Просмотров 10 тыс.
OPC UA Lesson 1- What is OPC UA?
12:52
Просмотров 129 тыс.
TIA Portal: OPC UA Client Interface Tutorial
15:14
Просмотров 19 тыс.
What is OPC? - Part I - What you need to know...
12:44
TIA Portal: PID Compact - How to program and use it!
17:54
#engineering #diy #amazing #electronic #fyp
0:59
Просмотров 339 тыс.