RS-485 MODBUS Serial Communication with Arduino as Master

Hi,

im khairul from malaysia.

i try 1 of the project provided which is RS-485 MODBUS Serial Communication with Arduino as Master.

im using arduino UNO and ModbusMaster.h library

i having problem with the code while compiling.

node.begin(1,Serial); ---> this line keep getting error no matching function for call to 'ModbusMaster::begin(int, HardwareSerial&)'

also for this line

node.preTransmission(preTransmission);  ---> the error 'class ModbusMaster' has no member named 'preTransmission'

[original story: Circuit Digest]

Circuit Digest 27 Jun 08:23

RS-485 MODBUS Serial Communication with Arduino as Master

In the previous tutorial we learned about Modbus RS-485 Serial Communication with Arduino as Slave. In continuation with that article today Arduino will be used MODBUS Master and communicate with MODBUS slave. Here MODBUS Slave Software installed computer will be used as MODBUS Master. So, let’s begin by a short introduction about the RS-485 and Modbus.

 

[original story: Circuit Digest]

Circuit Digest 12 Jun 13:02