node-red-contrib-cip-ethernet-ip
node-red-contrib-cip-ethernet-ip copied to clipboard
Reading a value from a matrix (bidimensional array) of STRING_8 cause the write of truncated string on plc
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
- Version of this node: node-red-contrib-cip-st-ethernet-ip 2.0.0-beta.3
- Node-RED version: 2.2.2
- PLC Part Number: 1756-L83ES
- OS: Windows 10 professional 21H2
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)
Issue reposted in the right place : https://github.com/SerafinTech/node-red-contrib-cip-st-ethernet-ip/issues/2