Options

In the TwinCAT UML options (Tools > Options >TwinCAT > PLC Environment > UML) you can configure the settings relating to the UML editors for the entire project. Modified options take effect when the dialog is closed, even in UML editors that are already open.

General

Contact spacing

Grid line spacing in pixels. Default: 10

Hook onto the grid

Options 1: (default): Elements in the UML editors are aligned to the grid when the position is changed.

Options 2:: Elements in the UML editors are not aligned to the grid when the position is changed.

This setting can also be changed using a command in the editor.

Display grid points

Options 3:: The grid is visible in the editor as a grid of points.

Options 4: (default): The grid is not visible in the editor.

Note element:

If the text to be displayed is longer than the defined size of the Note element, ellipses (...) are displayed. In these cases, the tooltip of the Note element displays the full text.

Maximum width

Maximum number of pixels that can be displayed in a line.

Minimum value: 100

Maximum value: 2000

Default: 300

Maximum number of lines

Number of lines that are displayed in the Note element.

Minimum value: 1

Maximum value: 100

Default: 10

See also:

Settings tab

State diagram

Position Condition and Action of a relation together

Options 5:: A guard condition and an action belonging to the same transition are always repositioned together in the diagram.

Options 6: (default): A guard condition and an action can be positioned independently of each other in the diagram.

Class diagram

Show prompt when deleting objects from diagram

Options 7: (default): When using the command to remove the selected elements from the diagram, a query dialog with the following options appears first:

  • Remove from diagram
  • Remove from project and diagram (no undo possible)

Options 8:: When using the command to remove the selected elements, they are only deleted from the diagram. The elements remain in the project.

Skip refactoring preview

Options 9:: If refactoring is initiated in the diagram, the project-wide change is made without first opening the Refactoring dialog with a preview of all change points.

Options 10: (default): When refactoring is initiated in the diagram, the Refactoring dialog opens with a preview of all change points.

Hide variables:

Options 11:

Available from TC3.1 Build 4026

To reduce the amount of information within the class diagram to the desired focus, the following options are available.

Hide internal variables

Internal variables have one of the following scopes:

VAR, VAR_TEMP, VAR_STAT, VAR_INST

Options 12:: All internal variables are hidden in the programming objects in the class diagram.

Options 13: (default): Internal variables are displayed.

Hide signature variables

Signature variables have one of the following scopes:

VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT, VAR_EXTERNAL

Options 14:: All signature variables are hidden in the programming objects in the class diagram.

Options 15: (default): Signature variables are displayed.

Hiding POU components according to access level:

Options 16:

Available from TwinCAT 3.1.4026.12

The following options can be used to hide or show access modifiers for methods, actions, transitions and properties. Components with an access modifier with a lower access level are shown or hidden in each case

The priority of the access levels in descending order is as follows:

Hide PRIVATE components

Options 17:: All POU components with the access modifier PRIVATE are hidden in the class diagram.

Options 18: (default): POU components with the access modifier PRIVATE are displayed. If this option is disabled, the following three options (PROTECTED, INTERNAL, all) are also automatically disabled.

Hide PROTECTED components

Options 19:: All POU components with the access modifier PROTECTED are hidden in the class diagram. If this option is enabled, the previous option (PRIVATE) is automatically enabled as well.

Options 20: (default): POU components with the access modifier PROTECTED are displayed. If this option is disabled, the following two options (INTERNAL, all) are also automatically disabled.

Hide INTERNAL components

Options 21:: All POU components with the access modifier INTERNAL are hidden in the class diagram. If this option is enabled, the previous two options (PRIVATE, PROTECTED) are automatically enabled as well.

Options 22: (default): POU components with the access modifier INTERNAL are displayed. If this option is disabled, the following option (all) is also automatically disabled.

Hide all components

Options 23:: All POU components are hidden in the class diagram. If this option is enabled, the previous three options (PRIVATE, PROTECTED, INTERNAL) are automatically enabled as well.

Options 24: (default): Not all POU components are hidden. Whether some components are hidden depends on the other options.

Hiding POU components by type:

Options 25:

Available from TwinCAT 3.1.4026.12

Hide METHODS

Options 26:: All methods are hidden in the class diagram.

Options 27: (default): Methods are displayed in the class diagram.

Hide ACTIONS

Options 28:: All actions are hidden in the class diagram.

Options 29: (default): Actions are displayed in the class diagram.

Hide PROPERTIES

Options 30:: All properties are hidden in the class diagram.

Options 31: (default): Properties are displayed in the class diagram.