Тёмный

Python OPC UA client communication with Siemens PLC TIA Portal 

plcwars
Подписаться 771
Просмотров 22 тыс.
50% 1

Discord channel for support:
/ discord
Used software:
- Tia V17
- PLCSiM Advanced V4.0
- Python 3.9.0
Links:
- github.com/Mareh07/plcwars-py... (used files)
- github.com/FreeOpcUa/opcua-cl... (Simple OPC-UA GUI client.)
- github.com/FreeOpcUa/python-o... (Pure Python OPC UA / IEC 62541 Client and Server)
OPC_Unified_Architecture:
- en.wikipedia.org/wiki/OPC_Uni...

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

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@tejaswinirajput1576
@tejaswinirajput1576 5 месяцев назад
Thank you so mush for this video. Grateful to find this video.
@jeroenconinx6121
@jeroenconinx6121 Месяц назад
Thanks so much!
@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!!! :)
@leezhaohong5239
@leezhaohong5239 2 года назад
well done!
@jelker5778
@jelker5778 9 месяцев назад
Very usefull, thank you!
@martinferrand4711
@martinferrand4711 Год назад
Lovely!
@maxpenfold8699
@maxpenfold8699 Год назад
nice! 😊
@rom3453
@rom3453 Год назад
great!! :)
@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!!
@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
@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.
@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"
@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
@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.
@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
@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.
Далее
What is OPC UA |How it works ? Tutorial for Beginners
10:02
Июль в Tanks Blitz
51:46
Просмотров 93 тыс.
OPC UA with Python
15:59
Просмотров 16 тыс.
What is OPC UA and How it Works? [1 of 11]
12:46
Просмотров 100 тыс.