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

90 Length of String #43

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

90 Length of String #43

ZootHii opened this issue Jun 27, 2022 · 1 comment

Comments

@ZootHii
Copy link

ZootHii commented Jun 27, 2022

Hello, when I try to write less than 90 length of string I got '0x13 Not enough data, The service did not supply enough data to perform the specified operation.' Exception and when I try to write more than 90 length of string there is no problem but when try to read it I got BufferUnderflowException my device is a CompactLogix 5380, 5069-L320ER.

Do you have any idea about it? thank you.

@kasemir
Copy link
Contributor

kasemir commented Jun 27, 2022

Maybe your data type is different from a string, or the CompactLogix treats it different from a ControlLogix series PLC.

When I run the command line test tool to read a string, I get this:

etherip -i 10.0.0.45 testStr
...
CIP_STRUCT (0x02A0): STRUCT_STRING (0x0FCE) 'dfihdfs;ihgds;iofhghsdfig', len 25

Does your device report a CIP_STRUCT with more specific content STRUCT_STRING?

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