libplctag.NET icon indicating copy to clipboard operation
libplctag.NET copied to clipboard

Reading CPU state

Open johnvarney612 opened this issue 1 year ago • 3 comments

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

johnvarney612 avatar Aug 29 '24 14:08 johnvarney612

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?

kyle-github avatar Aug 29 '24 15:08 kyle-github

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

johnvarney612 avatar Aug 29 '24 15:08 johnvarney612

Hi @johnvarney612 - have you had a chance to capture the Wireshark logs for this?

timyhac avatar Oct 08 '24 20:10 timyhac

Hi @johnvarney612 - just a reminder, did you end up getting a chance to capture the wireshark logs for this?

timyhac avatar Jan 26 '25 00:01 timyhac

Hi @johnvarney612 - if you'd still like to grab this it would be great to provide the above info. Closing this issue for now.

timyhac avatar Jul 20 '25 09:07 timyhac