st-one-io / node-red-contrib-cip-ethernet-ip

A Node-RED node to interact with Allen Bradley / Rockwell PLCs
GNU General Public License v3.0
51 stars 26 forks source link

Offline plc related to a mismatched order in tags (only for arrays) #41

Open bombjackit opened 1 year ago

bombjackit commented 1 year ago

Describe the bug

I have some arrays (all of 150 elements) :

To read some data I inserted the tags (without explicity indication of type) in "eth-ip endpoint node" for example :

  1. x[1]
  2. x[2]
  3. z[50]
  4. y[3]
  5. k[30]

the result is that plc is signed offline (in eth-ip in with mode All tags)

How to solve problem

The problem, only if I read data from arrays, seems to be the order : I must read in group all equal data type.

For example this not work

  1. x[1] DINT
  2. x[2] DINT
  3. z[50] STRING
  4. y[3] DINT
  5. k[30] STRING

But this work

  1. x[1] DINT
  2. x[2] DINT
  3. y[3] DINT
  4. z[50] STRING
  5. k[30] STRING

Expected behavior

Eth ip in must not sign offline a plc that work and that is well configured.

Environment

bombjackit commented 9 months ago

Issue posted in the right place https://github.com/SerafinTech/node-red-contrib-cip-st-ethernet-ip/issues/3