BiancoRoyal / node-red-contrib-modbus

maintained by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-modbus
BSD 3-Clause "New" or "Revised" License
302 stars 110 forks source link

Support for RTU “server” #213

Closed rusirius84 closed 2 years ago

rusirius84 commented 4 years ago

I'm submitting a ...

Feature

Node red SOAP / SNMP / MODBUS TCP -> modbus flex server -> modbus rtu master. Modbus RTU master being a third party device querying the flex server.

Current behavior

biancode commented 4 years ago

Hi, like #123 ? Please, could you explain a bit more or maybe add a draw about the stack?

rusirius84 commented 4 years ago

image

image

Apologies I created this thread from my phone which made it difficult to add much clarity around my question.

Attached are two pictures - full flow:

Modus Flex Server Config:

My question is more around this node specifically. Right now I am able to point modbus TCP requests at my instance of Node Red / device (unit-id) / register(s) I am storing the data in and get the correct response back. No problem all good there.

Now what I am curious about is if there is a way either within this same node or some combo of other nodes to have it also listen for requests on a serial port (usb to rs485).

What I am after here is to be able to utilize Node-Red to collect data from multiple sources feed that to an instance of influx for my own purposes as well as expose that data to a third party MODBUS Master via rs485.

In this case node red would need to act as a modbus slave which as mentioned it already does for TCP no problem. What I cant seem to locate or wrap my head around is how to retrieve that same data locally over serial.

Modbus Master initiate request for register 30006 over RS485 connected directly to Node-Red. Node-Red respond with corresponding register value.

Thank you,

rusirius84 commented 4 years ago

quick aside for not only this project but others I see you are involved in... I have access to plenty of MODBUS (IP or Serial) / SOAP / BACNET (IP or MSTP) / SNMP / etc. devices if further testing or evaluation / troubleshooting is ever needed. Have been looking for a way to contribute to these projects as I see great value in the flexibility node-red offers.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. It will be closed in 30 days, but can be saved by removing the stale label or commenting.