Passing string from Rockwell Compactlogix PLC

I am using node-red-contrib-cip-ethernet-ip. There is no string type nor SINT array.

It appeared that there were 2 nodes that can do the string:
node-red-contrib-cip-ethernet-ip-strings-mfgx and node-red-contrib-rockwell

But they are no longer available. Any pointer? Thank you.

I believe the beta version supports strings: node-red-contrib-cip-st-ethernet-ip (node) - Node-RED

I can't install it from Pallette, it's said 'conflict'.
If I am not mistaken, the cip-etheret-ip was built on st-ethernet-ip

correct.

You have 2 options:

1

  • delete all eip nodes from your flows
  • remove node-red-contrib-cip-ethernet-ip from the palette manager
  • restart node-red
  • add node-red-contrib-cip-st-ethernet-ip to the palette manager
  • re-add your eip nodes to your flows

OR

2

  • stop node-red
  • CD into the .node-red user dir
  • run npm remove node-red-contrib-cip-ethernet-ip
  • run npm install node-red-contrib-cip-st-ethernet-ip
  • start node-red

I recommend option 2.

OK. I uninstalled * node-red-contrib-cip-ethernet-ip

Using npm, I installed the latest version of 'st-ethernet-ip' which is v2.67 from here: st-ethernet-ip - npm.

Is it possible to use it in node-red? There is no palette icon for it.

Not sure why you did that?

That is not a Node-RED node package (its just an npm module).

Why did you not just install the node-red-contrib-cip-st-ethernet-ip package as i instrcuted?

In theory, had you followed option 2 as I wrote it, your existing flows would all simply just work (since node-red-contrib-cip-ethernet-ip and node-red-contrib-cip-st-ethernet-ip are almost identical & most likely 100% compatible - they are built from the the same source, except the node-red-contrib-cip-st-ethernet-ip is newer and supports strings as per your requirement!)

My thought was to get the latest version with more features like UDT, array ... bug fixes.
The site also shows a lot of good examples of JS that I thought I can copy & paste into a function node.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.