Activity Forums Questions & Troubleshooting Modbus RTU Rs485 with a sensor Reply To: Modbus RTU Rs485 with a sensor

  • ryan

    Member
    July 28, 2021 at 1:56 am

    Thank for you response. So, I use the example given by you guy. I have changed the

    #define SlaveModbusAdd 247

    ControllinoModbusMaster.begin( 9600 ); // baud-rate at 19200

    ModbusQuery[0].u16RegAdd = 0x19; // start address in slave

    ModbusQuery[0].u16CoilsNo = 2; // number of elements (coils or registers) to read.

    These are all the things i have changed. However , the output message doesn’t change at all.

    For ModbusRtu.h , I just copy the ModbusRtu.h from the github link you guys said on the website.\

    For cabling, I just connect the wire according to the function of them.(VCC to 5V GND to GND A to + B to -)