Object Properties
- Select an UML Statechart in the project tree.
- Open the context menu and select Properties or click on View > Properties.
The tabs that are relevant for UML are described below.
UML
- Abortable:
- Option available for: all Statecharts
- Option enabled (default): Processing of the Statechart can be aborted. Such a Statechart has an additional internal variable: _UML_SC_<name>.Abort.
If this variable is set with IEC code, processing of the Statechart can be stopped immediately, regardless of the internal state. - Option disabled: Processing of the Statechart cannot be aborted.
- UseVarInst:
- Option available for: Statecharts, which were created as "Method" program elements and belong to a function block
- Option enabled (default): The data of the Statechart methods are not temporary; they are held as instance variables for the corresponding function block. If you declare the variables of the method as VAR_INST, the data are held in the same way as for a function block and are no longer temporary, so that the Statechart is passed through in several task cycles as usual.
- Option disabled: The data of the Statechart methods are held on a temporary basis. Methods and their data are usually temporary. If you implement a method with the implementation language UML Statechart and disable the option “UseVarInst”, the method behaves like a cycle-internal state and reinitializes the data at the start of the task cycle. In this case only cycle-internal states can be used.
- Note that this option is only available for Statechart methods that belong to a function block, not for methods that belong to a program, since programs cannot contain VAR_INST declarations.