node-red-contrib-cip-ethernet-ip icon indicating copy to clipboard operation
node-red-contrib-cip-ethernet-ip copied to clipboard

Write to Omron PLC

Open NeltherGP opened this issue 4 years ago • 1 comments

I'm trying to write data to an Omnron NX1P2 but I'm getting this error writeError

I managed to connect and read the tag using what is commented in here #10

This is my tag configuration image

any help would be appreciate.

NeltherGP avatar Jun 23 '20 17:06 NeltherGP

Hi,

I have communication on two Omron PLCs (NX1P2-9B24 and 1040).

I had to make this library modification:

The fix is 2 lines modification:

  • comment the line 125 on this file node_modules/ethernet-ip/src/controller/index.js
  • modify ethernet-ip\src\enip\cip\unconnected-send\index.js search for this const build = (message_request, path, timeout = 2000) and change the time out from 2000 to 5056

After this restart Node-red and you should be able to connect and read form the PLC.

FrantaD avatar Nov 28 '21 16:11 FrantaD