ModBus TCP Exception at master start

B.Botond
Posts: 6
Joined: Sun Dec 19, 2021 3:41 pm

ModBus TCP Exception at master start

Postby B.Botond » Sun Dec 19, 2021 3:52 pm

Hi,

I want to use ModBus TCP Master and I got a trouble at mbc_master_start(). I get always an Exception. :cry: :shock:

I think everything alright until to start the master. I made some status log too. Everything was configured as you can see on the attachment.

I tested with idf 4.3 and idf 4.3.1 an a got the same problem.

Could you help me somebody?

Thank you in advance.

Best regards,
Botond
Attachments
code.PNG
code
code.PNG (46.33 KiB) Viewed 6010 times
modbus.PNG
Error MSG
modbus.PNG (32.63 KiB) Viewed 6010 times

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

Re: ModBus TCP Exception at master start

Postby ESP_alisitsyn » Thu Dec 30, 2021 2:48 pm

Hi B.Botond,

Please add the end of table condition to the address table (NULL).

Code: Select all

char* slave_ip_address_table[] = {
    "192.168.3.40",
    NULL
};

B.Botond
Posts: 6
Joined: Sun Dec 19, 2021 3:41 pm

Re: ModBus TCP Exception at master start

Postby B.Botond » Sun Jan 02, 2022 1:45 pm

Hi ESP_alisitsyn

Thank you very much, now the master is working. :roll: 8-)

Best regards, Botond

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

Re: ModBus TCP Exception at master start

Postby ESP_alisitsyn » Mon Jan 03, 2022 5:03 pm

Hi Botond,

It is good to hear it works now. Good luck with your project!

Who is online

Users browsing this forum: No registered users and 325 guests