st-one-io / node-red-contrib-pccc

A Node-RED node to interact with some Allen-Bradley PLCs using PCCC protocol
GNU General Public License v3.0
8 stars 2 forks source link

pccc flex out #11

Closed CTGControls closed 1 year ago

CTGControls commented 1 year ago

I would like to make some updates to your "node-red-contrib-pccc" to be able to pass the tag in the message such as:

msg.variable = "N160.1";
msg.payload = 1864
return msg;

or

msg.payload = {
     variable = "N160.1",
     val= 1884
}

I don't want to manage this long term. If I was update the code would you be in accepting a pull request? I need this to work in the next 2 days so if you could please respond ASAP. I would like to start working on it today.

CTGControls commented 1 year ago

I just realized this dose work if you make the tag name and address the same:

msg.variable = "N160:1";
msg.payload = 1400
return msg;