This example shows how the
transitions get evaluated prior to the execution of any state
in a Hierarchical State Machine.Consider the state machine diagram below:

Figure 1 - State machine with 2 Finite States and 1 transition
Finite State 1 and Finite State 2 are modeled as in Figures 2 and 3 respectively.

Figure 2 - Diagram from Finite State 1

Figure 3 - Diagram from Finite State 2
There is a transition defined between these diagrams as follows:

Figure 4 - Transition from Figure 1
First, the transition is evaluated as true. Thus, after the Initial State, the next Finite State to be execute is the Finite State 2. As can be seen in Figure 5, there isn't a curve in the plot. This is due to the lack of execution of the diagram in Finite State 1. Figure 6 shows that the only Finite State executed is the Finite State 2.

Figure 5 - Scope from Finite State 1

Figure 6 - Scope from Finite State 2
About MWF
MWF is a traditional Brazilian company that provides a wide range of electronic and mechatronic products for industry sectors such as automotive, agricultural machinery and aerospace.
Contact Us
Rua Doutor Siqueira, 139 / Sala 804 Campos dos Goytacazes - RJ, Brasil
contact@mwf-technologies.com
© 2018-2026 MWF. All rights reserved.