libplctag / libplctag.NET

A .NET wrapper for libplctag.
https://libplctag.github.io/
Mozilla Public License 2.0
194 stars 50 forks source link

Using `raw_tag_type_bytes` for dynamic tags #382

Open timyhac opened 2 weeks ago

timyhac commented 2 weeks ago

With the release of libplctag v2.6.0, a new use case has been enabled that allows application code to make use of tag metadata sent by the PLC.

This means that it is possible to have dynamically-typed tags without needing to fetch the entire PLC tag listing, which might be useful for some applications where the user is interactively deciding which tags to monitor. It is also useful if migrating from another PLC communication package which had this capability.

Below is a prototype of what using this capability could look like.

Notes:

The example has been added to the repository under the Examples folder here.

INondas commented 1 week ago

Hello gurus, the release is applied also in nuget package for c#? I would like to test it on ControlNet using backplane routing.

timyhac commented 1 week ago

@INondas - no its just a code example for now.

You can test it by copying the code into your own project.