libplctag / libplctag.NET

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

Reading CPU state #413

Open johnvarney612 opened 2 weeks ago

johnvarney612 commented 2 weeks ago

Moving code using Net.Logix to use libPlcTag.NET instead. Net.Logix has two special tags $CPU_STATE and $CPU_INFO that access system data usually accessed in the PLC program using GSV eg accessing the ControllerDevice attributes. I have found info to use @raw to read the wall clock time but no examples to read other class/attribute combinations. @tags does not list the system tag data. The rawPayload for reading the wall clock time is not obvious. Any help would be useful. Thanks

kyle-github commented 2 weeks ago

Hmm, we should probably set up a wiki page with common class/instance/attribute data for raw tags to use to get/set common things like time and these CPU states.

Any chance you can use Wireshark and capture what the Net.Logix library does when it gets those special tags?

johnvarney612 commented 2 weeks ago

I'll look into getting the data. Thanks for the very fast response