I tested Modbus server on Raspberry Pi with Codesys.
It works perfect, but there is only one problem: When I disconnect Modbus Master (client on my PC), I can not connect it again. Only RESET of Raspberry helps.
This is my configuration for test:
the codesys 3.0 version of the network.lib is not an official version approved by us
this version was created by the user jzhvymetal
there is a problem in the detection of the termination of the connection