Table Of Contents

Compound States

Version:
    Last Modified: September 6, 2017

    Compound states are sub-state machines that contain simple states and transitions. Compound states can nest within other compound states.

    Figure 1. Compound State Elements
    1. Intermediate state—Intermediate states can serve as the destination for transitions from states inside or outside of the compound state.
    2. Initial state—Transitions to terminals on the border of compound states will trigger the initial state.
    3. Terminal—Terminals can connect external transitions to the border of the compound state. They can also act as tunnels to connect transitions with simple states inside the compound state. To create compound state terminals:
      • Double-click the edge of the compound state.
      • Connect a transition to the edge of a compound state.
      • Connect a transition to simple state within the compound state.
    4. Compound state name—This field displays the name of the compound state. You can rename the compound state by clicking directly on the field.
    5. Default signal values—This field displays the default signal values for the compound state. You can expand or collapse the field by clicking the box in the upper right corner.
    6. Transition from compound state—Input logic can trigger transitions from the borders of compound state. If the logic evaluates as true, the User Program will transition out of the compound state regardless of the current simple state.
    7. Transition from simple state—Input logic can trigger transitions from simple states within the compound state. If the logic evaluates as true, the User Program will transition out of the compound state.

    Recently Viewed Topics