Node-Red Modbus RTU

Hi,

I have gateway with node-red installed
and i need to make a flow that should send a HEX data frame to a sensor via RS485
this is the frame i should send to the sensor,

and i should receive

this is my first node-red project , so how to accomplish this

Thank you

Hi

What hardware have you installed Node Red?
Have a look at this node

it's an IoT gateway that support node-red with RS485 ports built in

If the gateway has RS485 ports then you should(?) be able to identify the ports using the modbus node I suggested. I think it would be difficult to configure the communications using a serial node.on your first project. Use a Modbus-Read node with Function Code 3 to read from your sensor. You will need to know serial communication settings for your sensor (Baud rate, stop bits etc)

Hi,
To write you can start taking inspiration from the attached code, clearly you have to adjust the configurations of your serial port and be sure of the hardware wiring (A-B).

Are you sure that to query the tool you only have to send the CRC?

To simplify your work, also try to see if it is possible to configure your instrument for the continuous sending of the data string without having to request it via message.

23032020.json (1.4 KB)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.