apache / plc4x

PLC4X The Industrial IoT adapter
https://plc4x.apache.org/
Apache License 2.0
1.26k stars 402 forks source link

[Bug]: [PLC4J][EIP/LOGIX] Cannot read array #1008

Open charlyjna opened 1 year ago

charlyjna commented 1 year ago

What happened?

Hello,

Using 0.9.1 or 0.11-SNAPSHOT version, EIP or LOGIX, I have some issue reading array and no numeric values.

Examples:

  1. ControlLogix: read PLC_2_Server.DMC1 => give me "INTERNAL ERROR" as response
  2. ControlLogix: read PLC_2_Server[16] (which is the same than above) => works and give me a string as response
  3. ControlLogix same issue than above with BOOLEAN
  4. CompactLogix: read %N40[0] => works and I get a UINT which is the 2 first chars of a string
  5. CompactLogix: read %N40[0]:8 / %n40[0]:INT:8 => Program crash with an ArrayIndexOutOfBoundsException

I attached Java error message and wireshark captures to help in understanding this issue.

Thank you for any help.

PLC4J_EIP-LOGIX_issue.zip

Version

v0.11-SNAPSHOT

Programming Languages

Protocols

chrisdutz commented 3 months ago

Ok ... I managed to setup my Logix device with some arrays and indeed I think we need to put some work in here.