# \[new node\] node-red-contrib-cip-ethernet-ip

**URL:** https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251
**Category:** Developing Nodes
**Created:** [13 August 2018 11:19 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251 "2018-08-13T11:19:35Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![machadotiago](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/machadotiago/32/23776_2.png) [@machadotiago](https://discourse.nodered.org/u/machadotiago)
#### Post date: [7 October 2018 20:40 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/21 "2018-10-07T20:40:26Z")

</div>

I'm not sure if I understood your problem. Could you please post some screenshots or a video about your issue?

---

<div class="post-metadata">

### Author: ![PaulG](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@PaulG](https://discourse.nodered.org/u/PaulG)
#### Post date: [8 October 2018 07:01 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/22 "2018-10-08T07:01:06Z")

</div>

Hi,  
when i goto manage palette, the three nodes installed are greyed out, when i try to enable them i get a message in putty "8 Oct 06:53:39 - [warn] Failed to enable node:  
8 Oct 06:53:39 - [warn] - ethernet-ip : SyntaxError: Unexpected token ..."

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/16008d465d01a1e3ea3ede2dc94aef5bcaebdbba.png)

thanks

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [8 October 2018 07:04 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/23 "2018-10-08T07:04:10Z")

</div>

What version of node.js are you using? That error is often caused by the node requiring a newer version.

---

<div class="post-metadata">

### Author: ![PaulG](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@PaulG](https://discourse.nodered.org/u/PaulG)
#### Post date: [8 October 2018 14:54 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/24 "2018-10-08T14:54:28Z")

</div>

i am on version 6.12.3, i can see there is a new version, any idea how i upgarde this ?  
Thanks for your help

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [8 October 2018 14:55 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/25 "2018-10-08T14:55:08Z")

</div>

It will depend entirely on how you installed node.js in the first place, what operating system you are using etc. There is no 'one-click' answer.

---

<div class="post-metadata">

### Author: ![PaulG](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@PaulG](https://discourse.nodered.org/u/PaulG)
#### Post date: [9 October 2018 18:11 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/26 "2018-10-09T18:11:53Z")

</div>

i am using Yocto on a SIMATIC 2040, i tried an update of node.js, but it did not install

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 October 2018 20:17 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/27 "2018-10-09T20:17:35Z")

</div>

> [@PaulG](#):
>
> i tried an update of node.js, but it did not install

Saying it did not install does not give us many clues to help you.  
Tell us what OS you are using, how you installed node.js initially, and how you tried to update it and what the problem was.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [9 October 2018 20:37 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/28 "2018-10-09T20:37:07Z")

</div>

Colin

it's a Simatic 2040 with Yocto on it - the images can be found on their support site - like [https://support.industry.siemens.com/tf/ww/en/posts/latest-sd-card-example-image/156074/?page=0&pageSize=10](https://support.industry.siemens.com/tf/ww/en/posts/latest-sd-card-example-image/156074/?page=0&pageSize=10) - which says node.js is 6.12 - so is built into the firmware.

---

<div class="post-metadata">

### Author: ![PaulG](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@PaulG](https://discourse.nodered.org/u/PaulG)
#### Post date: [10 October 2018 19:23 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/29 "2018-10-10T19:23:07Z")

</div>

HI all, i have been advised that the issue is with the use of Spread Syntax (three dots "...") , this is not supported within older versions of yocto, I'm not a node.js expert, would anyone know how to amend this?

from what i can see in the file the Spread Syntax is used three times.

> <https://github.com/cmseaton42/node-ethernet-ip/blob/master/src/controller/index.js>

  
lines 18 and 267.

some help would be appreciated  
Thanks

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 October 2018 19:36 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/30 "2018-10-10T19:36:29Z")

</div>

I see there is already an issue on that node for this

> <https://github.com/netsmarttech/node-red-contrib-cip-ethernet-ip/issues/3>

You may wish to add your findings and comments there.

@machadotiago - any thoughts ?

---

<div class="post-metadata">

### Author: ![PaulG](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@PaulG](https://discourse.nodered.org/u/PaulG)
#### Post date: [10 October 2018 20:27 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/31 "2018-10-10T20:27:00Z")

</div>

Thanks for the tip

---

<div class="post-metadata">

### Author: ![DONTCHORTLE](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@DONTCHORTLE](https://discourse.nodered.org/u/DONTCHORTLE)
#### Post date: [19 November 2018 18:41 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/32 "2018-11-19T18:41:38Z")

</div>

on the topic of "It is a generic implementation of the industrial EtherNet/IP Protocol"

Would you say then, that this node could be used to, read from/write to, any io device that communicates via Ethernet/IP, or would you say that it is only for PLC use?

---

<div class="post-metadata">

### Author: ![JosephM](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@JosephM](https://discourse.nodered.org/u/JosephM)
#### Post date: [26 April 2019 15:50 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/33 "2019-04-26T15:50:17Z")

</div>

How do you target any of the other tags that are not controller tags?

---

<div class="post-metadata">

### Author: ![seth350](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/seth350/32/4617_2.png) [@seth350](https://discourse.nodered.org/u/seth350)
#### Post date: [27 April 2019 04:49 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/34 "2019-04-27T04:49:04Z")

</div>

Add the tag under a named program scope. You would enter the name of the routine/program that the tag is created under.

There are Controller/Global scope tags and then there are Program/Local tags.

For instance,

```auto
Controller Tags
» MyGlobalTag : BOOL

MyProgramRoutine
» MyLocalProgramTag : BOOL

```

---

<div class="post-metadata">

### Author: ![aldoferrante](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@aldoferrante](https://discourse.nodered.org/u/aldoferrante)
#### Post date: [14 July 2019 16:19 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/35 "2019-07-14T16:19:56Z")

</div>

Hello!  
does this node support reading an entire array data type or do I need to add individual tags for each element? for example data[100] REAL, can I read the entire array in one message?

---

<div class="post-metadata">

### Author: ![aldoferrante](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@aldoferrante](https://discourse.nodered.org/u/aldoferrante)
#### Post date: [14 July 2019 16:48 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/36 "2019-07-14T16:48:48Z")

</div>

i need to read an array of REAL data type 3000 elements in length. I imported a csv file into the node with all individual tags data[0], data[1], data[2]....data[2999], I the node stopped reading at data[1459]. Is there a limit of tags per message?

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [14 July 2019 17:44 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/37 "2019-07-14T17:44:56Z")

</div>

While @machadotiago is sometimes on the forum you might be better asking by opening an issue  
here [https://github.com/netsmarttech/node-red-contrib-cip-ethernet-ip](https://github.com/netsmarttech/node-red-contrib-cip-ethernet-ip)

---

<div class="post-metadata">

### Author: ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)
#### Post date: [1 October 2019 13:25 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/38 "2019-10-01T13:25:08Z")

</div>

Hello all, I'm working with the PCCC and now the "Ethernet/IP" nodes for Allen Bradley. I have confidence in the OPC solutions so far. Having fine success working with plcpeople who fixed some issues for reconnecting when errors are detected. I would like to see if I can depend on the "Ethernet/IP" connection for at least monitoring and feedback of the PLC directly.

I am wondering if it is my configuration, or if there is a fundamental problem with the READ node. The Write note seems to work fine with no errors. However, I cannot read tags from the processor but only on restarting flows. Can anyone help? What are the dependencies on Node.JS version, or other related updates? My Node.JS version is 10.16.0 and Node-RED is v1.0.0-beta.2.

New Information!!  
I tested by writing to the same tag with the programming software. That will update the READ node... Why would it matter that you update the tag by other means except by writing a value by the output Write node?? Strange behavior.

---

<div class="post-metadata">

### Author: ![traderjoe](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@traderjoe](https://discourse.nodered.org/u/traderjoe)
#### Post date: [5 January 2022 15:01 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/39 "2022-01-05T15:01:04Z")

</div>

@gfcittolin @machadotiago I'm using the CIP-ethernet-IP node. It works great! Are there any plans to make it "flexible" like modbus? Allow users to define their own IP address with a payload like this:

```auto
`msg.payload = { 'connectorType': 'TCP', 'tcpHost': '127.0.0.1', 'unitId': 2 } 
return msg `

```

The above string was pulled from the modbus flex connector node  
Otherwise, the node works great. Thanks for making it.

---

<div class="post-metadata">

### Author: ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)
#### Post date: [4 April 2023 13:15 UTC](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251/40 "2023-04-04T13:15:36Z")

</div>

@traderjoe Agreed. I'd also like the ability to populate the vartable programmatically. I submitted that as a feature request on their github page about an hour ago.

Yes, I realize this is an old thread. 🙂

[Previous page](https://discourse.nodered.org/t/new-node-node-red-contrib-cip-ethernet-ip/2251.md?page=1)
