This sample is created by Beckhoff Automation LLC., and is provided as-is under the Zero-Clause BSD license.
This example shows how to catch an exception within a TE1400 generated PLC function block, create a memory dump file, and reset the TcCOM object. TwinCAT continues to run through the exception. Analysis of the exception/memory dump file is done offline using Windows debugger.
Should you have any questions regarding the provided sample code, please contact your local Beckhoff support team. Contact information can be found on the official Beckhoff website at https://www.beckhoff.com/en-us/support/.
Further Information on Exception handling in TE1400 can be found at the Beckhoff Infosys under the TE1400 -> From version 2.x.xxxx.x -> Application of modules in TwinCAT -> Exception handling
- TE1000 TwinCAT 3 Engineering version 3.1.4024.22 or higher
- TwinCAT XAR version >= 3.1.4024.22
- Beckhoff TwinCAT Tools for Matlab version >= 2.4.1.0
- Matlab version >= 2019a
- See setup notes from Exception handling Exception handling