Can anyone send an article related to arduinomodbus.h library with its keywords and sample code related to keywords
Example for i want to connect modbus client for below parameters
Baudrate -9600
Party bit -Even
Stop bit - 1
How to connect truoght arduinomodbus.h library
Hello @pruthuvi
i am using ModbusMaster library with the same parameter, it uses RTU protocol (RS485/RS232).
Here the link for this library:
ModbusMaster
In the library you can find two or three examples.
Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum . Your topic has been moved.
Hi.
Ill try that library but it it cant to set party bit and stopbit parameter. Do you know how to set that parameter?
@pruthuvi
like so:
Serial2.begin(9600, SERIAL_8E1, 35, 42); //Raudrate, databits parity stopbits, RX, TX
in the setup()
then you call this function:
mbus.begin(2, &Serial2); //Slave ID, port
And in the loop() function you write to register or read from them.
1 Like
system
Closed
August 14, 2024, 2:18am
9
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.