Page 1 of 1

ModBus TCP Exception at master start

Posted: Sun Dec 19, 2021 3:52 pm
by B.Botond
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

Re: ModBus TCP Exception at master start

Posted: Thu Dec 30, 2021 2:48 pm
by ESP_alisitsyn
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
};

Re: ModBus TCP Exception at master start

Posted: Sun Jan 02, 2022 1:45 pm
by B.Botond
Hi ESP_alisitsyn

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

Best regards, Botond

Re: ModBus TCP Exception at master start

Posted: Mon Jan 03, 2022 5:03 pm
by ESP_alisitsyn
Hi Botond,

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