I am trying to establish a connection between node red and s7 1200. The node red is running on Simatic IOT 2040 the image version/OS version I am using for the IOT 2040 is 2.6.1.
I have changed the ethernet port setting to enable internet and connection with S7-1200.
eth0: dhcp
eth1: 192.168.200.5 (to communicate with S7 1200)
Next I started the node red service and installed node-red-contrib-s7 node. The installation was successful.
After the installation I configured the S7 in node to get data from the PLC (S7-1200) and while deploying the node red server crashed.
I checked the log file and I got the below error.
2 Dec 05:59:40 - [red] Uncaught Exception:
2 Dec 05:59:40 - TypeError: stream.off is not a function
at ISOOnTCPClient.isoOnTcp.createConnection (/usr/lib/node_modules/node-red-contrib-s7/node_modules/@st-one-io/nodes7/src/s7endpoint.js:207:24)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at ISOOnTCPClient.emit (events.js:208:7)
at process.nextTick (/usr/lib/node_modules/node-red-contrib-s7/node_modules/iso-on-tcp/src/client.js:193:45)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)