Troubleshooting/diagnostics

  1. In the event of connection problems the PING command can be used to ascertain whether the external communication partner can be reached via the network connection. If this is not the case, check the network configuration and firewall settings.
  2. Sniffer tools such as Wireshark enable logging of the entire network communication. The log can then be analyzed by Beckhoff support staff.
  3. Check the hardware and software requirements described in this documentation (TwinCAT version, CE image version etc.).
  4. Check the software installation hints described in this documentation (e.g. installation of CAB files on CE platform).
  5. Check the input parameters that are transferred to the function blocks (network address, port number, data etc., connection handle.) for correctness. Check whether the function block issues an error code. The documentation for the error codes can be found here: Overview of error codes.
  6. Check if the other communication partner/software/device issues an error code.
  7. Activate the debug output integrated in the TcSocketHelper.Lib during connection establishment/disconnect process (keyword: CONNECT_MODE_ENABLEDBG). Open the TwinCAT System Manager and activate the LogView window. Analyze/check the debug output strings.