Troubleshooting/diagnostics

  1. Check the hardware and software requirements described in this documentation (TwinCAT version, CE image version etc.).
  2. Compare the interoperability check list of controlled station and control station.
  3. Check the software installation hints described in this documentation (e.g. installation of CAB files on CE plattform).
  4. 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.
  5. Check the network address and port number parameter that are transferred to the function block for correctness.
  6. Check whether the function block issues an error code/source. The documentation for the error codes can be found here: Overview of error codes.
  7. Check the protocol parameters that are transferred to the function block (iK, iW, t0, t1, t2, t3, APDULength etc.). Compare them to the parameters set in the controlled station.
  8. Check the system parameters that are transferred to the function block (ASDU address, ASDU address octet size, information object address octet size, cause of transfer octet size, etc. ). Compare them to the the parameters set in the controlled station.
  9. Check the acquisition parameters that are transferred to the function block (initialization sequence, cyclic general interrogation, cyclic counter interrogation, cyclic test commands, etc. ).
  10. Check the data point configuration (type, information object addresses etc.).
  11. Check if the controlled station issues an error code.
  12. Activate the debug output during connection establishment and/or of ASDU data. Open the TwinCAT System Manager and activate the LogView window. Analyze/check the debug output strings.
  13. Check the usage of FB_SocketCloseAll() function block and the usage of the LISTEN_MODE_CLOSEALL parameter in your PLC application.
    If your application is working with more than one TCP/IP connections (server/clients) than you have to use one instance of FB_SocketCloseAll() function block to close old/opened connections. Activate this function block instance only once at program start and don't use the LISTEN_MODE_CLOSEALL parameter.
  14. Sniffer tools such as Wireshark enable logging of the entire network communication. The log can then be analysed by Beckhoff support staff.