State Variables

Code generation for a state machine generates several state variables:

The implementation of these variables is determined automatically, with the exception of memory location and memory segment settings. These settings can be made in the implementation editor of the sm variable, see Specifying the Memory Location of State Variables.

A special method can be defined that reinitializes the state variables. The following rules apply to the reinitialization method:

See also

Implementation Editor – Specifying the Memory Location of State Variables

Specifying a Reinitialization Method for State Variables

Hierarchical Code Generation

Hierarchy

History