I'm forced to ask you for help, because I don't know how to solve it
Our newest SCADA system is not able to communicate by serial port (RS485) and we have some devices that have only RS485 ports. So we need to convert Modbus TCP to Modbus RTU and I think node-red could help with that. Of course there are some converters on market, but in our case delivery time is about 3-6 months.
I've tried to build some nodes by myself, but it was not working as I want.
I used example Modbus Slave from Biancoroyal and adapt it for me, but I've got to precisely describe what register I want to read from RTU slave and redirect it to TCP Slave register. Also some registers was inverted, so this solution is not perfect.
The best way is that the Node-Red could capture Modbus TCP frame, customize it for RTU and pass it away.
The answer should work opposite. Important thing is that we don't have to write registers on slaves. Only function thet we are intrested in is Holding Registers.
for example, if it does MQTT, then this is a very simple task of collecting data from the RS485 devices and sending their values to the MQTT broker. I.E. No need to generate a ModBus TCP Server to support conversion from RTU to TCP
PS: You mention capturing frames and modifying them for RTU - this is (IMO) going too far when there are contrib nodes (e.g. node-red-contrib-modbus) that can (graphically) read from a RTU client and act as a TCP server - therefore making this an (almost) drag and drop (low-code) conversion if you must go down that route.
Lastly, to answer the burning question, yes, node-red can do this (and much more)
Unfornatelly, I'm in that position that only protocol to use is Modbus TCP, so i need real-time converter protocol
Generally with easier projects I can handle myself and many projects I've done already, but this task is harder, that's why I ask for help. In addition you helped me some time ago (once again big thank you ) and I'm ashamed to ask for help again
Does this need to be dynamic? I.e. will the SCADA ask for values from differing addresses, at various times in various sizes - OR - is the SCADA poling 1 particular area regularly and unchanging?