Parameterization of a module instance

Parameter representation in XAE

The block diagram in the Browser Parameters tab:

Parameterization of a module instance 1:


In general, TcCOM modules can be parameterized via the parameter list under the Parameter (Init) tab in the TwinCAT 3 development environment (XAE). Simulink modules can also be parameterized via the block diagram, if block diagram export is enabled in the Simulink coder settings under Tc Advanced.

Module- and model-specific parameters

The parameter list contains module- and model-specific parameters. Examples of module-specific parameters are "Call Parameter" or "External Mode Parameter". In the block diagram these parameters are only shown in the parameter section (on the right-hand side of the window) if the top level of the block diagram ("<root>“) is selected.
Model-specific parameters are defined as "tunable" parameters in the Simulink blocks. The parameter list displays them as a structure.

In the block diagram these model parameters are assigned to a block or indeed several blocks. The values can be adjusted when the corresponding block is selected. The parameter values (startup, prepared or online) can then be adjusted in the drop-down menu of the property table or in the parameter window directly in the block diagram:

Parameterization of a module instance 2:

Hover with the mouse over the name of the drop-down menu (in this case ModelParameters.Kp) to show its ADS information as a tooltip. Right-click on the name to copy the ADS symbol information to the clipboard.

Access to the model-specific parameters is only possible, if

"Default", "Startup", "Online" and "Prepared"

The following value types can be found in the drop-down menu of the Property table of the block diagram: