I assume you have an Ethernet switch that provides Ethernet port connection to the Fx1616-BA, the Weintek HMI and the MOXA?
The HMI connect to the PLC using Modbus TCP protocol and that part is working fine according to your experience.
The PLC connects to the MOXA using <TCPCONNECT....> command. I assume once connected MOXA works transparently and will transfer data from the PLC to its serial port and vice versa.
1) Does the PLC use this connection regularly?
2) Does the PLC close the TCP connection after transferring data with external serial port or does it keep it open?
3) Does MOXA has a timeout for this connection if it is idle?
4) Did you define the client connection time-out value on the PLC?
What version is your PLC's firmware? if it is an older firmware (current release is F91.
![Cool 8)](https://triplc.com/smf/Smileys/default/cool.gif)
you can try to upgrade the firmware to see if it makes a difference. Contact support@triplc.com for upgrade instructions if you don't have it.