Steve-Mcl / node-red-contrib-mcprotocol

A Node-red node for communicating with mitsubishi PLCs using MC Protocol over Ethernet
https://github.com/Steve-Mcl/node-red-contrib-mcprotocol
21 stars 18 forks source link

Error conecction with Fx3U-Enet-ADP protocol UDP frame 1E #13

Open john102594 opened 2 years ago

john102594 commented 2 years ago

When trying to connect to the fx3ge, fx3u or fx3u-enet-adp plc via udp protocol, the gx work 2 software requires a destination port, consequently the communication node shows timeout, reading the library I was able to solve it in the following way in the mcprotocol file: add into function MCProtocol.prototype.connectNow under in the line self.netClient = dgram.createSocket("udp4"); (Line359) the next code if (cParam.frame == "1E") { self.netClient.bind(cParam.port); }

image

image

image

please your comments on these modifications I am very grateful with your module and I am implementing it with several Mitsubishi PLC

Huynhbaoky commented 1 year ago

Hi john,Steve, As I follow your advise. But still error timeout. Please support me. image