S7NetPlus / s7netplus

S7.NET+ -- A .NET library to connect to Siemens Step7 devices
MIT License
1.3k stars 580 forks source link

Is it possible to read all the values from a DB from aS7-300 PLC without knowing the structure? #446

Open mut9bu opened 1 year ago

mut9bu commented 1 year ago

Hello With S7.Net I want to monitor data especially from DB's of S7-300 Controllers. But the problem is that I don't know the structure for each DB of each machine. I want to write a code that reads first the structure of the DB and accordingly all the data in the structure.

With other words: How can I see all the data in a Data Block with the correct structure, without defining the DB structure in my code? Is that possible?

yanzixiang commented 1 year ago

no it is not stored on the plc, it is stored in the project on the pc.

mut9bu commented 1 year ago

Thanks for the answer, I know that the neccesary information for the DB structures and symbols are in a SUBBLK.DBT fiel in the S7-Project. I wanted to read them out from this file, but some part of the file seems to be binary. Especialy the part between the structure information. Do you know how to read out the DB structures correctly from this file?