Thank you, I thought the function Connected() was handling a request to the PLC to check the connection status. I was able to work with no issues using by monitoring the status of the PLC. Thanks again
Hello everybody. I am experiencing issues on the Client->Connected() function on a s7-1500 CPU. Using the bleow piece of code: while (!TerminateCondition()) { if (Client->Connected()) { PerformDataExchange(); sleep(TimeRate); // exchange time interval } else if (Client->Connect()!=0) sleep(10); // small wait recovery time } I am able to connect and read without any issue. When I unplug the ethernet cable from the CPU, the Client->Connected() keeps returning true value, so it does not recognize that...