# Modbus connection error blocks execution

**URL:** <https://community.openems.io/t/modbus-connection-error-blocks-execution/3235>\
**Category:** English Forum\
**Created:** [November 29, 2024, 9:26am UTC](https://community.openems.io/t/modbus-connection-error-blocks-execution/3235 "2024-11-29T09:26:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://community.openems.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@Alex](https://community.openems.io/u/Alex)\
**Post date:** [November 29, 2024, 9:26am UTC](https://community.openems.io/t/modbus-connection-error-blocks-execution/3235/1 "2024-11-29T09:26:40Z")

</div>

Hello all,

I recently discovered a problem when the connection to a Modbus/TCP device is lost. Then the whole program seems to be blocked and the cycle stops for up to a minute. I have copied the console output below. I copied the console output below.

I have to admitt though that I do not have the latest OpenEMS code. My version is from August 23.

Has the bug been fixed in the later versions of the Modbus bridge?

Is there a solution to this bug?

Many thanks in advance!

Regards  
Alex

**Console prints** (The cycle time should be 500 ms and further console logs should appear between the error messages):

2024-11-29T10:13:59,814 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=122/0x7a;length=3] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out  
2024-11-29T10:14:02,814 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=122/0x7a;length=3] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out  
2024-11-29T10:14:05,829 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=131/0x83;length=1] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out  
2024-11-29T10:14:08,843 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=131/0x83;length=1] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out  
2024-11-29T10:14:11,847 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=206/0xce;length=12] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out  
2024-11-29T10:14:14,849 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=206/0xce;length=12] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out  
2024-11-29T10:14:17,865 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=701/0x2bd;length=14] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out  
2024-11-29T10:14:20,874 [sEvcsAc3] ERROR [e.modbus.api.task.AbstractTask] Execute failed FC3ReadHoldingRegisters [evcsAc3;unitid=1;priority=HIGH;ref=701/0x2bd;length=14] OpenemsException: Connection to [141.123.123.140] failed: Connect timed out

---

<div class="post-metadata">

**Author:** ![Sn0w3y](https://community.openems.io/user_avatar/community.openems.io/sn0w3y/32/636_2.png) [@Sn0w3y](https://community.openems.io/u/Sn0w3y)\
**Post date:** [November 29, 2024, 12:58pm UTC](https://community.openems.io/t/modbus-connection-error-blocks-execution/3235/3 "2024-11-29T12:58:14Z")

</div>

I guess i have read something about some fixes in Modbus Brige.

Please update as my guess is, that @stefan.feilmeier fixed it sometime.

Greetings

---

<div class="post-metadata">

**Author:** ![stefan.feilmeier](https://community.openems.io/user_avatar/community.openems.io/stefan.feilmeier/32/2585_2.png) [@stefan.feilmeier](https://community.openems.io/u/stefan.feilmeier)\
**Post date:** [November 30, 2024, 5:55pm UTC](https://community.openems.io/t/modbus-connection-error-blocks-execution/3235/4 "2024-11-30T17:55:21Z")

</div>

Yes, there have been a lot of changes, improvements and fixes to the Modbus bridge. Please try the latest version.

Regards,  
Stefan
