Skip to main content

Variable declaration

Auto Declare

  1. In the variable declaration editor, click Insert Variable Declaration in the context menu.

  2. In the Declare Safety variable dialog, edit or select the Scope fields. Name, Type, Initial value, and optionally Comment.

  3. Click the OK button.

. Input fields of the "Declare Safety variable" dialog
  • Scope

  • Name

  • Type

  • Initial value

  • Comment

Existing declarations can be changed by double-clicking the respective field in the declaration table.

User-defined data types

The User-defined Types data type category contains function blocks of the safety application and the libraries. This category can be selected in the Input Assistant, which is opened in the Declare Safety variable dialog by clicking the SafetyEllipsesButton.png button. In the case of already declared variables the Input Assistant of the data type is opened as follows:

  1. In the declaration window, select the type cell of the corresponding variable.

  2. In the list box, click the ... symbol.