How to program Modbus Master

edveralli
Posts: 1
Joined: Thu Jan 31, 2019 2:28 am

How to program Modbus Master

Postby edveralli » Thu Jan 31, 2019 2:37 am

Hello everybody,

I am trying to figure how to program an ESP32 as a Master Modbus device.
The code I found in the esp sdk (mbcontroller.h) seems to be only for the Slave.

Can you help me with a code example of the Master Modbus ?
I can program in Arduino IDE or with the C Espressif toolchain as well.


I appreciate your help.
Best regards,
Eduardo
Buenos Aires, Argentina

ESP_alisitsyn
Posts: 8
Joined: Fri Feb 01, 2019 4:02 pm

Re: How to program Modbus Master

Postby ESP_alisitsyn » Mon Feb 04, 2019 8:48 am

Hello Eduardo,

There are plans to support Modbus Master RTU and TCP in ESP-IDF v4.0, but it was postponed. However there is a "Work In Progress" version of Modbus Master and Slave with examples. I can share it with you. Would you like to get the WIP implementation or it is ok for you to wait for official release?

--
Alexey

Adham Aboud
Posts: 41
Joined: Mon Apr 30, 2018 5:32 pm

Re: How to program Modbus Master

Postby Adham Aboud » Sun Mar 17, 2019 9:47 am

Hello Alexy,

Could you please share the WIP implemenation for the Modbus mater RTU with me also ?

Thank you in advance,
Adham
ESP_alisitsyn wrote:
Mon Feb 04, 2019 8:48 am
Hello Eduardo,

There are plans to support Modbus Master RTU and TCP in ESP-IDF v4.0, but it was postponed. However there is a "Work In Progress" version of Modbus Master and Slave with examples. I can share it with you. Would you like to get the WIP implementation or it is ok for you to wait for official release?

--
Alexey

ESP_alisitsyn
Posts: 8
Joined: Fri Feb 01, 2019 4:02 pm

Re: How to program Modbus Master

Postby ESP_alisitsyn » Mon Mar 18, 2019 10:04 am

Hello Adham,

Sure, I can share the implementation with you. Please find this topic and WIP implementation there:
https://www.esp32.com/viewtopic.php?f=1 ... ter+modbus
The official support will be released later but API should be unchanged. It includes IDF component with common interface for Modbus Master and Slave. Please use it with official Espressif license.

--
Alexey

Adham Aboud
Posts: 41
Joined: Mon Apr 30, 2018 5:32 pm

Re: How to program Modbus Master

Postby Adham Aboud » Thu Mar 28, 2019 9:54 am

Thank you Alexy
ESP_alisitsyn wrote:
Mon Mar 18, 2019 10:04 am
Hello Adham,

Sure, I can share the implementation with you. Please find this topic and WIP implementation there:
https://www.esp32.com/viewtopic.php?f=1 ... ter+modbus
The official support will be released later but API should be unchanged. It includes IDF component with common interface for Modbus Master and Slave. Please use it with official Espressif license.

--
Alexey

Who is online

Users browsing this forum: Bing [Bot] and 13 guests