plc4x icon indicating copy to clipboard operation
plc4x copied to clipboard

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

Open charlyjna opened this issue 2 years ago • 1 comments

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

  • [X] plc4j
  • [ ] plc4go
  • [ ] plc4c
  • [ ] plc4net

Protocols

  • [ ] AB-Ethernet
  • [ ] ADS /AMS
  • [ ] BACnet/IP
  • [ ] CANopen
  • [ ] DeltaV
  • [ ] DF1
  • [X] EtherNet/IP
  • [ ] Firmata
  • [ ] KNXnet/IP
  • [ ] Modbus
  • [ ] OPC-UA
  • [ ] S7

charlyjna avatar Jun 21 '23 13:06 charlyjna

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

chrisdutz avatar Jul 12 '24 13:07 chrisdutz