9/18/2018 10:42 AM | |
Posts: 102 Rating:
|
Hi experts! TIA V14 SP1 PLC: 1214C DC/DC/DC or 1512SP-1 PN as the client of the TCP-connection PC with a custom program as the server of the TCP-connection I've been programming and improving a communication FB for some time now and am at the point where it (almost) does exactly what I want it to do. It all works fine if I connect to the server and start sending and receiving my messages. Once I disconnect and reconnect though (either by unplugging the LAN-cable or by using TDISCON), the FIRST message the server should respond with never gets sent. This at fist looked like a server-problem, but after a few trial runs with Hercules, I figured out that only if the previous client was the PLC, the next connection has this fault. If I connect and disconnect with Hercules and connect with the PLC afterwards, all's well. I tried the whole thing outside of my FB with only a TCON, TDISCON, TDIAG, TSEND and TRCV... same issue So I was wondering... Does the TDISCON send any "S***w you guys, I'g going home" message to the server upon disconnecting, or does it simply cut the connection on the PLC's side and be done with it? Have any of you encountered a similar error? Thanks in advance for your help! Greetings, Mike P.S. I aslo tried storing the connection data in a global system DB TCON_IP_V4 or a local TCON_IP_V4 -> no difference |
Last edited by: NiM_0021 at: 9/18/2018 10:45:00 AM |
|
Follow us on