Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
491 stars 193 forks source link

How to Dynamically Read Struct Symbols and Obtain Subsymbol Values Using the Beckhoff ADS Library in C# #198

Closed jganitzer closed 1 year ago

jganitzer commented 1 year ago

Hello,

I am currently using the Beckhoff ADS library in my C# project and would like to read a struct symbol. My goal is to convert the byte array value of the symbol dynamically at runtime, and retrieve the values of the subsymbols without defining the memory layout of the struct type in the C# code.

Is it possible to achieve this using the Beckhoff ADS library? If so, could you please provide me with some guidance or resources on how to accomplish this?

Thank you for your time and assistance.

pbruenn commented 1 year ago

Beckhoffs ADS .NET documentation is here: https://infosys.beckhoff.com/content/1033/tc3_ads.net/9407515403.html?id=6770980177009971601