Activating/Deactivating Hierarchical Code Generation

  1. Open the project that contains your state machine.

    This may also be the default project.

  2. In the project editor, open the Project Properties window and go to the Statemachine node.
  3. To deactivate hierarchical code generation, Closedproceed as follows.

    • In the Statemachine node, deactivate the Hierarchical Code-Generation (may be changed locally) option to deactivate hierarchical code generation for all state machines in the project.

      In that case, the settings of individual state machines are irrelevant.

  4. To activate hierarchical code generation, Closedproceed as follows.

    1. Activate the Hierarchical Code-Generation (may be changed locally) option to activate hierarchical code generation for all state machines in the project.

    2. Close the Project Properties window.

      Note

      The global setting in the project properties alone is not sufficient to generate hierarchical code.

    3. In Edit menu of the project editor, select Implementation to open the implementation editor of each state machine in the project for which you want to generate hierarchical code.

    4. In the Settings tab, activate the Hierarchical code generation for State Machines option.

    5. Close the implementation editor.

      Note

      Hierarchical code generation takes place only if both options are activated.

See also

Hierarchy

Working with Hierarchy States

Project Properties Window

Statemachine Node