5 Call behavior - transition action

5 Call behavior - transition action 1:

Basic sample

This "UML state diagram" sample is based on the sample 4 Call Behavior - Basis. All elements and calling aspects of sample 4 are also contained in this sample, so that the explanations there also apply to this sample and are necessary for understanding this sample. Only the additions to sample 4 are described below. Therefore, please read the description of sample 4 first.

Complementing sample 4 Call Behavior - Basis, this "UML state diagram" sample illustrates another aspect of the call behavior from UML state diagram. For this purpose, the following UML SC elements are additionally included:

Sample project: TF1910_UmlSC_Sample5_CallingBehaviour_Transitions.zip

Overview:

The following sub-aspects illustrate the call behavior of states, composite states and transitions. 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.

Counter => Call frequency:

A transition action is called once when the state transition is executed via the transition.

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

Each action called in a state, composite state or transition enters its name (e.g. "State1__Entry" or "Transition_LeaveState1") 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 action called in a state, composite state or transition stores the cycle ID of the respective 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.

5 Call behavior - transition action 2:

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).