How to Send Temperature on RS485 with modbus protocol..as slave.

Hello,

I am practising coding arduino. I have a project to send Temperature to the device which reads modbus with RS485 network. Here there are many modbus libraries. but i can,t send temperature because of complexity. I have following devices with me......

  1. Arduino Nano.

  2. DS3231 temperature sensor.

  3. MAX485 module
    ......
    modbus device require the following parameters to read the arduino slave,

  4. baud rate

  5. ID

  6. bitrate

  7. parity

  8. stopbit etc.....
    and to read the temperature it require address of the data(temperature), and data type i.e. int8, int16, unit8, uint16, unit32, real data.... something like that. I am not conversant with all these parameters.
    ,,,,
    anyone plz do some code for this job.

data9091:
Hello,

I am practising coding arduino. I have a project to send Temperature to the device which reads modbus with RS485 network. Here there are many modbus libraries. but i can,t send temperature because of complexity. I have following devices with me......

  1. Arduino Nano.

  2. DS3231 temperature sensor.

  3. MAX485 module
    ......
    modbus device require the following parameters to read the arduino slave,

  4. baud rate

  5. ID

  6. bitrate

  7. parity

  8. stopbit etc.....
    and to read the temperature it require address of the data(temperature), and data type i.e. int8, int16, unit8, uint16, unit32, real data.... something like that. I am not conversant with all these parameters.
    ,,,,
    anyone plz do some code for this job.

Why would any of us want to do this for you?

You said you are practicing coding, but ask other to do it for you.

Is sounds like you have homework due on Monday.

Chuck.