Overview

TE1400 TwinCAT Target for Simulink®

With the TwinCAT 3 Target for Simulink® it is possible to make models developed in Simulink® usable in TwinCAT 3. Various toolboxes such as SimScape™ or Stateflow™ or DSP System Toolbox™ can be integrated in Simulink®. Embedded MATLAB® function blocks are also supported. The models are automatically compiled in C/C++ code with the aid of the Simulink® Coder™ and transformed into TwinCAT objects with TwinCAT 3 Target for Simulink®. These TwinCAT objects can then be executed in real-time in the TwinCAT runtime. They can be either TcCOM objects for direct instantiation and linking with real-time tasks or function blocks for instantiation and processing in a PLC project.

Overview 1:

Areas of application and application examples

The areas of application of TwinCAT Target for Simulink® can be summarized by the following keywords:

The following application examples are intended to illustrate possible areas of application:

Typical procedure

The basic workflow with the TE1400 is as follows:

  1. Models are developed in Simulink®.
  2. Simulink® Coder™ automatically compiles these functions into C/C++ code.
  3. TwinCAT 3 Target for Simulink® converts the generated code into TwinCAT objects.
  4. The generated modules are integrated into a project in TwinCAT 3 Engineering.
  5. They are then transferred to the TwinCAT 3 runtime as part of the TwinCAT project and executed there in the real-time environment.

Integration methods in TwinCAT 3 Engineering

Depending on the use case, the generated modules can be integrated into the project in different ways:

All methods can be seamlessly integrated into TwinCAT 3 Engineering and combined with other TwinCAT functions.

Further Information

Technical short videos

Product descriptions

Customer application videos

Website for MATLAB® and Simulink® with TwinCAT 3: https://www.beckhoff.com/matlab