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

Get_Instance_Attribute_List #41

Open
ZootHii opened this issue Jun 15, 2022 · 1 comment
Open

Get_Instance_Attribute_List #41

ZootHii opened this issue Jun 15, 2022 · 1 comment

Comments

@ZootHii
Copy link

ZootHii commented Jun 15, 2022

How can I use this service ?

@kasemir
Copy link
Contributor

kasemir commented Jun 15, 2022

Good question.

Get_Instance_Attribute_List has been added to the list of service IDs
by e88e1c4 without actually using it,

Get_Instance_Attribute_List(0x55), // Logix5000 Data Access

You can see how the related Get_Attribute_Single is used to read a single attribute in for example

public int getIntAttribute(final CNClassPath classPath ,final int instance, final int attr) throws Exception

In the original C version of this code, you can see how Get_Attribute_Single is called several times after connecting to the PLC to read various informational items like the vendor ID, serial number etc.:
https://github.com/EPICSTools/ether_ip/blob/06f520c55cc1e58ef1782f724498e0c4146f3d6d/ether_ipApp/src/ether_ip.c#L2536

If you have the protocol documentation for Get_Instance_Attribute_List, you could try to add similar code to encode & decode the traffic for Get_Instance_Attribute_List.

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