Hello Damina177 I want to use this "cheap" solution but it`s Lantronix x port embedded into device. Can you please send me this example how you communicate with RTU slave by TCP? BR.Risto
ok, thank you anyway. Will use socat to virtualize port.
User manual of that device? If i`m using some mb sotware where i can choose rtu over tcp everything works fine. One option is to create virtual com port and use it as mb com port. But i was hoping there is good option to do all code and config inside CodeSys. Cant find any information about that issue. There is possibility to set mb Slave, com port under mb TCP Slave. Looks like the option i need, but cant find any documentation and will recive "TCP communication error" after i configure any slave...
Hello, I have device where serial data is mirrored into TCP port(Lantronix Xport). There is also Modbus possible but it`s MB RTU over TCP. Is there any good way to use mb rtu protocol over tcp? Best Regards, Risto
@nothinrandom, Thanks for your replay. I copied PLC Chat and used this as example. Even when i run same code as in PLC Chat i get same action. I will check differences with CoDeSys example. Br.Risto
Hello everyone. Im new in this forum and facing one problem I cant go around. I`m using NBS.TCP library to read and write directly into socket. Problem is that when TCP_Client connection is active TCP_Write is not writing anything until negative edge on TCP_Client xEnable. System is running on Debian. Anyone can give me some hint ? Thank you. Risto