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

Add my changes to the code #18

Open Thomas-Oliv opened 4 years ago

Thomas-Oliv commented 4 years ago

Hi, this is my first time really using github so sorry If I made I mistake during the pull request. Your library for node red is awesome but I felt like the ethernet-in node was lacking in features, specifically towards handshaking between the PLC and the reader/writer. I added another option so that several values can be sent at once at the update of only a single value. When the selected value which I refer to as the flag is changed, all the variables within the configuration node for that node are sent. Rather than those values being in msg.payload, I moved them to msg.values and I kept msg.payload reserved to store the value of the flag, although this could be reversed. Let me know if you guys need anything else from me.

Thanks,

AverageWeeaboo