Adding STM Code Modules : Setting Module Parameters

Setting Module Parameters

After selecting Module Procedures Only, you can set the parameters for an individual module.

Complete the following steps to set parameters:

1.
2.
Select Options > Module Settings from the Profile Editor’s main menu.

The Module Settings window opens.

 

Note:
Because you selected Module Procedures Only in the previous procedure, the Code Generator disables Separate File per Statechart, and enables Parameter Setting.
3.
Click Parameter Setting. The Parameters for Module xx window opens.

 

Note:
The order in which you enter the parameters is very important since this is the order in which they appear in the <module_name>_init function.
4.
Enter the Type (Data-Item, Condition, Event) and Mode (IN, OUT, IN/OUT) parameters for the selected elements.
5.
Click Choose to select additional parameters. The Selection of Module Parameters window opens