# Passing string from Rockwell Compactlogix PLC

**URL:** <https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021>\
**Category:** General\
**Created:** [20 November 2023 02:31 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021 "2023-11-20T02:31:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bachphi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bachphi/32/104849_2.png) [@bachphi](https://discourse.nodered.org/u/bachphi)\
**Post date:** [20 November 2023 02:31 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/1 "2023-11-20T02:31:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 November 2023 07:15 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/2 "2023-11-20T07:15:01Z")

</div>

I believe the beta version supports strings: [node-red-contrib-cip-st-ethernet-ip (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-cip-st-ethernet-ip/in/5fYnLUcjL77U)

---

<div class="post-metadata">

**Author:** ![bachphi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bachphi/32/104849_2.png) [@bachphi](https://discourse.nodered.org/u/bachphi)\
**Post date:** [20 November 2023 12:18 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/3 "2023-11-20T12:18:13Z")

</div>

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_

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 November 2023 12:23 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/4 "2023-11-20T12:23:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bachphi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bachphi/32/104849_2.png) [@bachphi](https://discourse.nodered.org/u/bachphi)\
**Post date:** [20 November 2023 23:24 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/5 "2023-11-20T23:24:14Z")

</div>

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](https://www.npmjs.com/package/st-ethernet-ip).

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

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 November 2023 23:32 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/6 "2023-11-20T23:32:05Z")

</div>

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!)

---

<div class="post-metadata">

**Author:** ![bachphi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bachphi/32/104849_2.png) [@bachphi](https://discourse.nodered.org/u/bachphi)\
**Post date:** [21 November 2023 00:26 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/7 "2023-11-21T00:26:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 December 2023 00:26 UTC](https://discourse.nodered.org/t/passing-string-from-rockwell-compactlogix-plc/83021/8 "2023-12-05T00:26:40Z")

</div>

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