I have connected Allen-Bradely Control logix 1756-EN3TR/B PLC with node-red-contrib-cip-ethernet-ip module where i am trying to reading String value named Recipe from plc which is having tag Recipe_Name.DATA . I am able to read data but now only one word. How can we set element count more than one . I want to read array of 39 element. and then i will use function and use below code to to have in readable format.
def charArray = Recipe
StringBuilder builder = new StringBuilder(charArray.size())
charArray.forEach { ch -> if (ch !== null) builder.append((char) ch) }
return builder.toString()
Currently i am able to read only 1st char.
Any help in this regard will help to devloped production dashboard automation.