I'm developing a C# application and I need to read/write values from PLC tags folder (TIA Portal). I have looked at S7.Net library and Libnodave but they only read/write data blocks and not tags like my project.
What it proposes :
bool val = true;
plc.Write("DB1.DBX0.0", val);
What I'm willing to get :
bool val = true;
plc.Write("I0.0", val);
Do you have any idea of doing it ? PS: I know there is a old post like this but not resolved.
I'd recomend to use Sharp7, it is a C# port of Snap7 library. To read/write input bytes you can use EBRead/EBWrite functions or if you want to read/write bit use ReadArea/WriteArea functions Sharp7 wiki. Also check target compability for your plc model.
For example to read plc input code can look like this:
NetToPLCSim