NothinRandom / CoDeSys_EIP

Communicate with EtherNet/IP devices using explicit messaging in CoDeSys!
MIT License
24 stars 7 forks source link

Reading 2-dim array of udt #11

Closed PedramK4 closed 2 years ago

PedramK4 commented 2 years ago

Would it be possible to read a two-dimensional array of type udt? udt_Test[i,j] If so, could you please suggest arguments for bRead?

NothinRandom commented 2 years ago

@PedramK4,

Sorry for delayed response. I don't have a controller in front of me, but I'll get to this once I locate one.

Thanks,

NothinRandom commented 2 years ago

Ok, it looks like the current code doesn't support multi-dimensional arrays. I'm going to implement support for 2D and 3D arrays.

NothinRandom commented 2 years ago

@PedramK4,

Sorry for delay. Was able to get my hands on a PLC and tested this on 1D (testArray[0]), 2D (testArray1[0,0]), and 3D (testArray2[0,0,0]). Let me know if this works for you and feel free to raise issues.

PedramK4 commented 2 years ago

Thank you very much!