Тёмный
plcwars
plcwars
plcwars
Подписаться
Комментарии
@mustaphaelboukhari5124
@mustaphaelboukhari5124 25 дней назад
THANK YOU SO MUCH
@NattapasPhongthananikorn
@NattapasPhongthananikorn 25 дней назад
do you have an example about db_write (string) ?
@sargaps2825
@sargaps2825 Месяц назад
Great video .. Thank you so much..I have a doubt, I was not able to start the opcua_python instance in PLC sim advance.. The start button is disabled while using virtual ethernet adaptor..What should I do ?
@plcwars
@plcwars Месяц назад
You can join our discord community, it would be easier to help you there. Without any screens it is quite difficult to know what is wrong.
@jeroenconinx6121
@jeroenconinx6121 Месяц назад
Thanks so much!
@tejaswinirajput1576
@tejaswinirajput1576 5 месяцев назад
Thank you so mush for this video. Grateful to find this video.
@user-ec3dj9pp4j
@user-ec3dj9pp4j 5 месяцев назад
Hi @plcwars, how about connecting OPC UA client to server with certificate and private key? Do you have tutorial? Because I couldn't find any videos that uses certification and private key.
@plcwars
@plcwars 5 месяцев назад
Hi! I have personally not done it, but maybe this link helps: opcfoundation.org/forum/opc-ua-implementation-stacks-tools-and-samples/opc-ua-client-sample-with-signandencrypt-basic256sha256-certificate/ You can also join our discord and ask there, maybe someone knows.
@user-ec3dj9pp4j
@user-ec3dj9pp4j 5 месяцев назад
@@plcwars, thanks for your reply. I will look at it.
@user-ec3dj9pp4j
@user-ec3dj9pp4j 5 месяцев назад
Hi @plcwars, how about via api to connect to an OPC UA server? Have your tried it? Thanks.
@plcwars
@plcwars 5 месяцев назад
@@user-ec3dj9pp4j unfortunately I have not used it
@user-ec3dj9pp4j
@user-ec3dj9pp4j 5 месяцев назад
@@plcwars , okay. Thanks.
@user-nh2sy5jm7d
@user-nh2sy5jm7d 5 месяцев назад
hi, great video, I am new to this and don't understand how to create an instance, at 1:30 into the video you reverence the instance opcua_python and I don't know where this comes from or how to make one, any help would be very helpful, thank you
@plcwars
@plcwars 5 месяцев назад
Hi, thank you! This is just an instance of the plc. It means basically that you have to create a simulation of the PLC. This is a simulated PLC device. If you just type a name there and select start it should work. If you need more help you can join the discord server and you should get more detailed support there.
@user-nh2sy5jm7d
@user-nh2sy5jm7d 5 месяцев назад
thank you@@plcwars
@user-oq2fp6hx6q
@user-oq2fp6hx6q 6 месяцев назад
i can buy you on for the tuto
@plcwars
@plcwars 6 месяцев назад
you can contact me here: plcwarsyt@gmail.com
@user-oq2fp6hx6q
@user-oq2fp6hx6q 6 месяцев назад
nice tuto!! did you think make a video with siemens logo 8.3 and snap7.?
@plcwars
@plcwars 6 месяцев назад
thanks! unfortunately, I do not have access to the siemens logo
@juniorberard9611
@juniorberard9611 6 месяцев назад
Did you make vidéo Tuto again?
@plcwars
@plcwars 6 месяцев назад
What do you mean by that? I did not do it again?
@CloroxBleach0
@CloroxBleach0 7 месяцев назад
Cool!
@chaukeoscar4295
@chaukeoscar4295 8 месяцев назад
Very helpful video. Good job!
@MacTeslucas
@MacTeslucas 9 месяцев назад
Do you know how I can get firmware version or software version from the plc using snap7?
@jelker5778
@jelker5778 10 месяцев назад
Very usefull, thank you!
@shaheersherif7366
@shaheersherif7366 11 месяцев назад
Thank you!
@merveuzun4612
@merveuzun4612 Год назад
can you check your emails?
@merveuzun4612
@merveuzun4612 Год назад
i downloaded your code and run it but why is it so slow please answer, how do i sped it up?
@merveuzun4612
@merveuzun4612 Год назад
please share the whole code
@plcwars
@plcwars Год назад
Hi @merveuzun4612 full code is here in branch "step2" github.com/Mareh07/plcwars-pickandplace/tree/step2
@merveuzun4612
@merveuzun4612 Год назад
@@plcwars thank you so muchh
@merveuzun4612
@merveuzun4612 Год назад
thank you for the videos bro
@zachivan2928
@zachivan2928 Год назад
thanks bro for those useful opcua python function,it really helps,ON Chinese version of Youthbe Bilibili I can‘t not find enough information about how to use opcua and anyncua to opera the PLC,many thanks!!! :)
@Cod3OfWar
@Cod3OfWar Год назад
Why your address is double but for me it's not it's show something like this %DB2.DBW0
@dogukanurkmez2154
@dogukanurkmez2154 Год назад
ı have connection refused error. how can ı solve it
@dabrosz9404
@dabrosz9404 2 месяца назад
Were you able to solve it, currently having the same problem
@eliudrodriguezh.5188
@eliudrodriguezh.5188 Год назад
refused by PLC, i follo as you tell us, " Optimized block access property should be off and PUT/GET must be enabled. Also CPU access protection should be set to full."
@jesusmartinalcala4730
@jesusmartinalcala4730 Год назад
Hello, thank you really much for the amazing videos! I have a doubt, in case that i want to read real time data from the machine such as setpoints or sensor readings, do i have to create a DB like you did or could read straight the values? Thank you in advance!!
@rom3453
@rom3453 Год назад
great!! :)
@vanbinh1221
@vanbinh1221 Год назад
tks Sir
@maxpenfold8699
@maxpenfold8699 Год назад
nice! 😊
@user-oj9xk8bu5p
@user-oj9xk8bu5p Год назад
где продолжение?
@martinferrand4711
@martinferrand4711 Год назад
Lovely!
@MunishReddy
@MunishReddy Год назад
Amazing video. I am trying to read the values after every 5 secs. Any help would be appreciated.
@martinferrand4711
@martinferrand4711 Год назад
I'm not very well versed in Python however there are multiple path you could take: - A loop (basic but lack flexibility) - same loop but in a thread so it doesn't prevent the rest of the from working (however you have to be careful) - Event based system (no clue how one would do that in python) (maybe the Queue package could help) - Scheduler (never tried) It depend on what you want to do. Maybe there is a way to something better using python or the automaton Edit: Added some options
@plcwars
@plcwars Год назад
as mentioned above I would try with task scheduler to run a script, on linux based systems equivalent would be cron task
@metehancihan6943
@metehancihan6943 Год назад
Hello, thank you for the video first. I made some steps with this tutorial. But now i have the problem that when i change the values (DB100, just some variables. isnt connected with the rest of my sps program yet) in my opcua server (Booleans) they all are set to TRUE and i dont know why. Is this a known Problem? When i print out the client_node_dv (the DataValue for the OPCUA-Server) on my console with print() the values are as i want them to be. It seems like a Problem in the Connection between Server and TIA. Would be nice if u could help me out. Thanks
@plcwars
@plcwars Год назад
Hi Metehan, you could have a wrong data type defined so you would overwrite more values than you intend to, as an example you would like to change one boolean but you try to write int then you will overwrite more than one bool. I am not sure what exactly is the problem, so the values that you read from opc ua are different than the ones online in the plc? I came up with an idea of creating a discord channel so it would be easier to help in such cases: discord.gg/kU3g94rNXx
@engineermahmoud4017
@engineermahmoud4017 Год назад
could I use this method to communicate with s71200 DC/DC/AC?
@plcwars
@plcwars Год назад
Hi Mahmoud, I believe you should be able to.
@MehdiVaezi-vq4qu
@MehdiVaezi-vq4qu Год назад
Hi Is it possible to program the PLC with this library? Is it possible to write the program using this protocol on the PLC?
@plcwars
@plcwars Год назад
Hi Mehdi, this is not what Python Snap7 is for, so you are not able to write plc program using it.
@3coco322
@3coco322 Год назад
Hello, i tried to run the "opcua-client"-command, but it didnt recognize the command...do you know what the problem could be? I installed the required packages and also installed winpython with PyQT5 but its still not working Thanks in advance!
@plcwars
@plcwars Год назад
Hi! What message do you get back exactly in the terminal? Did you try to copy it and search in the google? This could be helpful.
@vigneshk.r9959
@vigneshk.r9959 Год назад
run "app" inside folder "opcua-client-gui-master"
@wolfeer5365
@wolfeer5365 Год назад
i'm getting this error while trying to read a db from a 1500: "line 403, in read_area check_error(result, context="client")" and "RuntimeError: b'CLI : function refused by CPU (Unknown error)'". Can this issue be fixed? Thanks
@plcwars
@plcwars Год назад
Hi Wolfeer, please have a look at my first video for snap7, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xSTfmCdepyw.html from 0:25. Optimized block access property should be off and PUT/GET must be enabled. Also CPU access protection should be set to full.
@pravinshinde640
@pravinshinde640 Год назад
Thanks for the tutorial. Can you please tell how to write string values?
@radoslavklein662
@radoslavklein662 Год назад
def WriteMemoryChar(start_address, length, value): writing = plc.mb_write(start_address, length, bytearray(value.encode('utf-8'))) print(writing) print('Start Address: ' + str(start_address) + ' Value: ' + value) ............ charlength = 10 chars = 'HelloWorld' ChartStartAddress = 104 for i in range(charlength): char = chars[i] WriteMemoryChar(ChartStartAddress + i, 1, char) ............... In TIAPortal create smt function for moving CHARs from memory to STRING in DB.. ............... Youre welcome :)
@obatochukwu2675
@obatochukwu2675 10 месяцев назад
I acn tell you how to write string send me an email
@ulyssesperezii
@ulyssesperezii Год назад
Thanks or the tutorial. Any Idea why I get the error 'function refused by CPU (unknown error)'? Thanks in advance :) :)
@plcwars
@plcwars Год назад
Hi! thanks for your feedback! There could be several reasons, did you check if "optimized block access" property is turned off? Is the PUT/GET enabled? Access level should be set to full. You can have a look in the following links for some more description. stackoverflow.com/questions/47979438/s7-1200-snap7-exception-cli-function-refused-by-cpu-unknown-error sourceforge.net/p/snap7/discussion/general/thread/c9ec5278/ I hope you will find your issue. Please let me know how it goes! ;)
@rezazaimzadeh4276
@rezazaimzadeh4276 Год назад
Hello. Very good video but I couldn't connect with plcsim (cpu 1200). If possible, post a video about transferring webcam video (if there is such a thing) to hmi in TIA or wincc and connecting it to s7-1200. Thank you
@cvg4057
@cvg4057 Год назад
Hi, Could you please let me know if it is possible to use Snap7 for updating PLC program (I have existing program running on PLC. I have made some changes to it on another machine and i created archive of the project in another machine. Now i want to upload the archive project to PLC, is this possible using Snap7 library)
@plcwars
@plcwars Год назад
Hi, I believe that for the downloading plc program you need dedicated software which in this case will be TIA Portal.
@cvg4057
@cvg4057 Год назад
Hi, Could you please let me know if it is possible to use Snap7 for updating PLC program (I have existing program running on PLC. I have made some changes to it on another machine and i created archive of the project in another machine. Now i want to upload the archive project to PLC, is this possible using Snap7 library)
@sigmadews5403
@sigmadews5403 Год назад
Thank you for this tutorial. Can you describe the difference between snap7 and OPC UA when connecting to Siemens PLC? Is snap7 for Siemens something like ADS protocol for Beckhoff PLCs?
@plcwars
@plcwars Год назад
Hi! Thanks for your feedback. OPC UA is industrial standard for data exchange. (en.wikipedia.org/wiki/OPC_Unified_Architecture) Snap7 is something to interface directly with the S7 communication protocol which Siemens uses in theirs PLCs. (snap7.sourceforge.net/) I am not familiar with Beckhoff and ADS so I am not able to compare it and tell you if it is something similar.
@tinhuynh6582
@tinhuynh6582 2 года назад
hi sir how i can contact you directly?
@plcwars
@plcwars 2 года назад
Hi Tin, you can contact me on this email: plcwarsyt@gmail.com
@tinhuynh6582
@tinhuynh6582 2 года назад
i can do it the same on s7 1200?
@rezamagham4495
@rezamagham4495 2 года назад
Thanks please tell us how to communicate by scada pack with python
@plcwars
@plcwars Год назад
Hi reza, I never had opportunity to work with scada pack so I am not sure if it is possible.
@maxwelmagoi
@maxwelmagoi 2 года назад
can you do a video for larger data types such as intergers
@plcwars
@plcwars 2 года назад
Hi Maxwel, please have a look here, I hope it will be helpful. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Eo8NyNE1bRY.html
@wikiart44xD
@wikiart44xD 2 года назад
Very cool video. The bald dude describes stuff well 🙃
@kathirangamuthu3574
@kathirangamuthu3574 2 года назад
Thank you very much for sharing details
@johnrussell3680
@johnrussell3680 2 года назад
Prⓞм𝕠𝕤𝐌 👏
@thatguyfromravenclaw
@thatguyfromravenclaw 2 года назад
Hello. Could you please tell me how to read M bit registers/addresses (Like M2.0). Thanks.
@plcwars
@plcwars 2 года назад
Hi Abhishek, please have a look at my new video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Eo8NyNE1bRY.html
@leezhaohong5239
@leezhaohong5239 2 года назад
well done!
@alierdemkurnaz9899
@alierdemkurnaz9899 2 года назад
Hi. What should I do to change real or int instead of bool ? could you help me ?
@plcwars
@plcwars 2 года назад
Hi Ali, You can take a look at this link: github.com/gijzelaerr/python-snap7/blob/master/example/write_multi.py It is an example of reading and writing different types than boolean. I hope it will be helpful. Let me know how did it go!