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
49 stars 22 forks source link

Reading a value from a matrix (bidimensional array) of STRING_8 cause the write of truncated string on plc #44

Open bombjackit opened 10 months ago

bombjackit commented 10 months ago

Describe the bug

In Eth IP In, reading 2 tags of type STRING_8 in a matrix (10,2), x in the example belowe, cause the rewrite of the smaller string in the plc.

For example, I read x[0,1] (value "AABBCC") and x[0,0] (value "DDEEFFGG") : at first read of x[0,0] assume the value "DDEEFF" (it was write on plc), I have noted that has same lenght of x[0,1].

Expected behavior

Eth IP In must not write data to plc in any case

Environment

bombjackit commented 10 months ago

Going deeper on this issue, I discovered that if I read tags of type STRING_8 I had the same problem (not only inside an array but single tag) : maybe there is something correlate to the order of inserted tags inside the configuration (like #41)

bombjackit commented 5 months ago

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