Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

Modbus protocol error

$
0
0
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:
Code:
#include <ModbusMaster.h>

#define MAX485_DE      3
#define MAX485_RE_NEG  2

ModbusMaster node;

void preTransmission()
{
  digitalWrite(MAX485_RE_NEG, 1);...
Modbus protocol error

Viewing all articles
Browse latest Browse all 1271

Trending Articles