S7NetPlus / s7netplus

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

Could be possible to read PLC's Metadata? #515

Closed mendozagit closed 1 year ago

mendozagit commented 1 year ago

By metadata, I mean.

gfoidl commented 1 year ago

In general that's not possible, as in the PLC it's just a big block of bytes, and how they're addressed / interpreted is up to the user (or program). Similar to RAM on CPUs, where the metadata isn't stored along the data. It's up to the program on how to interpret that values.

Something like this would be possible with optimized blocks (for S7-1200 onwards), but S7NetPlus can't handle these operations, as Siemens has proprietary disclosure of the schema that is applied in that case.

See also https://github.com/S7NetPlus/s7netplus/issues/242

mendozagit commented 1 year ago

@gfoidl, Thanks for your guidance! Good to know.