Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading CPU state #413

Open
johnvarney612 opened this issue Aug 29, 2024 · 2 comments
Open

Reading CPU state #413

johnvarney612 opened this issue Aug 29, 2024 · 2 comments

Comments

@johnvarney612
Copy link

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
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants