Examples

Example models for generating TcCom modules:

Example

Topics

Description

TemperatureController_minimal

  • Basic principles

A very simple temperature controller that covers the basics.

TemperatureController

  • Parameter access
  • Using bus objects
  • Using test points
  • Using referenced models
  • Using external mode
  • Generating TwinCAT modules from subsystems

A very simple temperature controller with PWM output. Provides a quick overview of how to use the module generator. Also uses Simulink BusObjects (structures) for an output and includes a test point, which affects the accessibility of internal signals vie ADS. ExternalMode is also used in the example.

SFunStaticLib

  • SFunction
  • Static library

Generates TwinCAT modules from Simulink models with SFunctions that are provided by third parties without source code.

SFunWrappedStaticLib

  • SFunction
  • Static library

Generates TwinCAT modules from Simulink models with SFunctions, for which the source code is available, but is dependent on static libraries.

Examples for module generation callbacks:

Example

Topics

Description

Packaging module files into ZIP archives

  • PostPublish callback
  • Archiving generated module files

This simple example illustrates the automatic archiving of generated module files.