Monday, September 10, 2012

The Modbus library

The head source uses a lib for modbus slave protocol.

The source is here:
https://sites.google.com/site/jpmzometa/Home

Using the new IDE 1.0.1 there are two error:

1) in file ModbusSlave.h the line
#include "WProgram.h" 
must change with
#include "Arduino.h"

2) in file ModbusSlave.cpp the line 250
Serial.print(query[i], BYTE);
must change with
Serial.write(query[i]);

see you soon...



1 comment:

  1. Dear sir,

    I need to print the data coming from rs485 using max 485.But no library is working for me .
    Pls suggest connections and library so that i can read the incoming rs 485 data from a temp indicator using arduino's serial monitor.Pls reply soon.

    Thanks
    Harshit arora
    harshit.engineer@gmail.com

    ReplyDelete