Troubleshooting/diagnostics
- Check the hardware and software requirements described in this documentation (TwinCAT version, CE image version etc.);
- Compare the interoperability check list of control station and substation;
- Check the IO configuration and mapping of PLC variables in TwinCAT System Manager (configuration of serial interface, baudrate, parity, stoppbits settings). Compare them to the parameters set in the substation;
- Check whether the FB_IEC870_5_102TProtocol() function block issues an error code. The documentation for the error codes can be found here: Overview of error codes;
- Check the protocol parameters that are transferred to the function block (link address, FRAMELength etc.). Compare them to the parameters set in the substation;
- Check the configured address lengths (instance of ST_IEC870_5_102TBuffer, TX/RX data buffer): ASDU address octet size, max ASDU size. Compare them to the parameters set in the substation;
- Check the configured data points (type, information object address etc.);
- Check if the substation issues an error code;
- 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;