simply Modbus Master 2 way communication

Submitted by Ameeth on Tue, 11/19/2019 - 20:53

hi , i tested both program of arduino RS485 modbus as master and slave communication , great thanks for this project and tutorial ,

but i want to send 16 keys data to simply modbus master software as arduino in slave mode but also need recive data 

from modbus like LED on OFF cammand and error massage , here in bothe example Arduino as master and arduino as Slave there are differant library and command are used , in hardware in RS 485 module DE and RE pin is short and in master mode not , so i want ask how i can use this project as slave mode but as transreceiver mode , want send digital keys data and receive cammand etc , please suggest.

https://circuitdigest.com/microcontroller-projects/rs485-modbus-serial-communication-using-arduino-uno-as-slave

https://circuitdigest.com/microcontroller-projects/rs-485-modbus-serial-communication-with-arduino-as-master