Modbus connection error blocks execution

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

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

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

Regards,
Stefan

1 Like