Hello,
I am testing Schneider PM1200 (Modbus protocol) with arduino. I used ModbusMaster.h library for arduino and I used RS485 module for Modbus communication. After uploaded the program to the arduino to read the data from Schneider PM1200 , I got response timeout error. I cannot fix it. Help me out!
Here is my code:
Modbus protocol error
I am testing Schneider PM1200 (Modbus protocol) with arduino. I used ModbusMaster.h library for arduino and I used RS485 module for Modbus communication. After uploaded the program to the arduino to read the data from Schneider PM1200 , I got response timeout error. I cannot fix it. Help me out!
Here is my code:
Code:
#include <ModbusMaster.h> #define MAX485_DE 3 #define MAX485_RE_NEG 2 ModbusMaster node; void preTransmission() { digitalWrite(MAX485_RE_NEG, 1);...