Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading/writing PLC tags from PLC s7-1500

Tags:

c#

plc

I was wondering if there is any way to read and write values from the PLC tags folder using a custom c# application?

enter image description here

I have tried using Snap7 which is great tool to use and actually got it working, but only reading and writing data blocks and not tags what I am willing to achieve. I haven't tried Libnodave just yet.

Would you please recommend me a way to achieve this and if there is other ways to do this.

Update #1

I partiely understand now how to read and write Merkers. But how about Inputs and outputs such as those?

enter image description here

Update #2

I have setup a watch table and got it working using Python Snap7, but wasn't able to do the same using C#. enter image description here

like image 470
user3641381 Avatar asked Nov 23 '25 21:11

user3641381


2 Answers

Besides any tag value from a datablock, libnodave can get/set input, output and memory tags. Snap7 can also do that. I do not see any problem with that.

like image 188
avra Avatar answered Nov 26 '25 10:11

avra


Its very easy to read and write using Libnodave. Download latest Libnodave.dll from official site and refer this sample. You will get an idea.

like image 40
Olivarsham Avatar answered Nov 26 '25 10:11

Olivarsham



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!