4 Call Behavior - Basis

This "UML state diagram" sample illustrates the basic calling behavior of the UML state diagram and includes the following UML SC elements:

Sample project: TF1910_UmlSC_Sample4_CallingBehaviour_Basic.zip

Overview

The following sub-aspects illustrate the call behavior of states and composite states. With the help of different programming means the different calling aspects are illustrated (programming tools => calling aspect).

The respective assignment of the programming tools to the call aspect is explained below.

Both use cases are applied for the composite state:

Counter => Call frequency

Each ENTRY/DO/EXIT action, that is called in a state or a composite state, increments a corresponding counter. This illustrates the call frequency of an action and indicates that:

Entering the called state action in an array => Call sequence

Each ENTRY/DO/EXIT action that is called in a state or in a composite state enters its name (e.g. "State1__Entry") into an array. This illustrates the call sequence of the different actions and indicates that:

Task cycle IDs => Assignment of the call to the cycle ID

Each ENTRY/DO/EXIT action that is called in a state or a composite state stores the cycle ID of the first and last call. This illustrates which call takes place in which cycle and indicates that:

Visualization

In addition to the convenient online mode of the UML SC diagram, the behavior of the state machine and the values of the counters, the table and the task cycle IDs can be tracked via the visualizations. The visualization also contains switches for switching between the states and for resetting the values.

In order to facilitate familiarization with the sample project, two visualizations with different information content are included:

4 Call Behavior - Basis 1:

The values of the transition conditions can be changed not only via the visualization or the declaration editor of the FB, but also directly via the UML SC diagram.

If the transition consists of only one transition variable, the value of the variable can be changed for writing or forcing by double-clicking on the monitoring value. If a value was prepared for writing or forcing, this is indicated in the upper right-hand corner of the monitoring area (see also: Online Mode).