Configuring runtime

Once the project has been configured, you can make further settings and then export the FMU.

Configuration interface

1. Left-click on the SimIoMaster node.
2. Select the Simulation Runtime for FMI tab.
The configuration window of the Simulation Runtime for FMI opens.
Configuring runtime 1:

In the configuration interface of the Simulation Runtime for FMI, you can set the behavior of the runtime on the left-hand side:

Control

Description

Export FMU

Exports the FMU with the corresponding settings.

FMU file name

Name of the exported FMU without file extension, the FMI standard recommends using only ASCII characters.

FMU export directory

Directory for FMU export

FMI version

Version of the FMI specification, FMI 2.0 and FMI 3.0 are supported.

Simulation time pacing

Limits the temporal progression of the simulation to real-time.

Wait for activation

The simulation is prevented from progressing at a certain point in time until the user activates a Solution on the target.

Wait for activation at [s]

Time in seconds, regarding the Wait for activation checkbox.

Include boot project

The Solution is built automatically during FMU export and integrated into the FMU.

Auto start

If a boot project has been integrated in the FMU, it is started automatically after initializing the runtime.

Information: The automatic start of the boot project is only possible if all required TwinCAT licenses are available on the system.

On the right side of the configuration interface, select the signals that should actually appear as inputs and outputs of the FMU. For this purpose, the I/O hierarchy from the System Manager is presented here once again. You can use all variables that have an FMU variable name as inputs and outputs in the FMU. Use the Add FMU variable name checkbox to select or deselect it. The corresponding TwinCAT data type and the FMI data type are also displayed. If, for example, only the variable SimIoMaster > SimIoGroup > Outputs > ActPos is to be used as the output of the FMU for a drive, you can deselect all other variables and only activate the corresponding checkbox on ActPos.

Once you have made all the settings, click on the Export FMU button. The export path in the file system is displayed at the bottom of the configuration interface. In the example, the pre-set export directory and the pre-set file name are used:

%ProgramData%/Beckhoff/TwinCAT/Functions/TE1421-Simulation-Runtime-for-FMI/TcSimRuntimeFmi.fmu