ornl-epics / etherip

Java lib. for Ethernet/IP (AllenBradley ControlLogix, Compact Logix PLCs)
Eclipse Public License 1.0
112 stars 69 forks source link

90 Length of String #43

Open ZootHii opened 2 years ago

ZootHii commented 2 years ago

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 commented 2 years ago

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?