If you do not add some COM gateways beneath the TCP Server, then the TCP Server accepts any unitID.
If you do add some COM gateways, then it only accepts the correct UnitID, 0xFF.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using Codesys 3.5.18 , is it possbile to define the Uinid ID in MOdbus TCP server?
If you do not add some COM gateways beneath the TCP Server, then the TCP Server accepts any unitID.
If you do add some COM gateways, then it only accepts the correct UnitID, 0xFF.