st-one-io / node-red-contrib-cip-ethernet-ip

A Node-RED node to interact with Allen Bradley / Rockwell PLCs
GNU General Public License v3.0
51 stars 26 forks source link

Write to Omron PLC #20

Open NeltherGP opened 4 years ago

NeltherGP commented 4 years ago

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.

FrantaD commented 2 years ago

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 nodemodules/ethernet-ip/src/controller/index.js
  • _modify ethernet-ip\src\enip\cip\unconnected-send\index.js search for this const build = (messagerequest, 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.