I'm using omronfins node to connect to my omron plc(CS1G) via CJ1W-EIP21. I am trying to read some data from the plc. I am using the 'read' example provided.
When I inject, the node shows not connected. The debug mesage shows "TypeError: self.socket.connect is not a function".
Not sure where the issue is. Any advice on how to proceed?
We are using a Siemens IOT2050 (gateway-(OS-linux debian)). Here the node red + nodejs are all preinstalled via an image file. Im using their latest image file version from support site.
I actually tried to upgrade the nodejs based on your suggestion but then the entire node red system does not work. I then had to reload the original image file to make it work again.
Im not sure what went wrong in the background of the device when I updated the nodejs version.
I hope it helps, but I had problems myself at the beginning and I was told that with the IOT2050 the existing Node-Red version is not overwritten. So then there are two Node-Red versions.
Then I found ascriptto update Node-Red. (Actually for the Raspberry Pi, but it works on my IOT2050 too)
The script deletes the pre-installed Node-Red version and updates Node.js and Node-Red Npm. (The build-essential package is a reference for all the packages needed to compile a Debian package. It generally includes the GCC/g++ compilers and libraries and some other utilities.)
I have add complete command with once
apt install build-essential git