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

Any one know whether HSL can read/write AB Controllogix time? #22

Open
U11Leung opened this issue Apr 26, 2022 · 4 comments
Open

Any one know whether HSL can read/write AB Controllogix time? #22

U11Leung opened this issue Apr 26, 2022 · 4 comments

Comments

@U11Leung
Copy link

As the title says, does anybody know or ever try to read/write plc time on Allen-Bradley ControlLogix/CompactLogix? Searched the API document but did not find anything related

@dathlin
Copy link
Owner

dathlin commented Apr 26, 2022

I'm very sorry, there is currently no built-in API to read and write time data, but you can read raw byte data, and you can parse it into time type data yourself.

@U11Leung
Copy link
Author

Appreciate your quick reply! But I want to know more about raw byte data? Is by reading raw byte data I can read the plc local time, which is displayed here? How am I reading that?
image

@dathlin
Copy link
Owner

dathlin commented Apr 26, 2022

There are currently two methods to try.

  1. Use DEMO to browse the node content of PLC, there is a special CIP protocol node browsing interface. Check to see if there is a system node or the like, the system node may have been blocked, and the success rate of this method is not high.
  2. If your PLC program can access the time variable, assign the variable data to the common node, and then access the common node variable.

@U11Leung
Copy link
Author

Sorry, but I did not see anything like that you said?
image

image

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