Declaration Editor

The declaration editor is used for declaring variables in the variable lists and POUs.

If the declaration editor is used with an implementation language editor, then is opens in a view above the implementation language editor.

The declaration editor offers two possible views: textual and tabular . in the dialog in Tools ‣ Options ‣ Declaration Editor , you define whether only the textual view or only the tabular view is available, or whether you can switch between both views by means of the buttons on the right side of the editor view.

See also

Declaration Editor in Online Mode

In online mode you will see the tabular view of the editor. The header always contains the current object path:<device name>.<application name>.<object name>. In contrast to offline mode, the table also contains the columns Value and Prepared value.

The Value column shows the current value on the PLC, offering monitoring functionality. If the expression is an array, then you can define the range of the array indices to monitor. You do this, double-click the Data type column to open the Monitoring Area dialog and type in the Start Index and the End Index of the required range. You can use a scroll bar to define a series of 1000 elements easily.

The Prepared value column contains the value that you prepared for forcing or writing.

If you double-click a Prepared value field, then you can specify a value explicitly for writing or forcing. In the case of enumerations, a combo box opens from which you can select a value. In the case of a boolean variable you can toggle the prepared value with the help of the Enter key or the space bar. If an expression (variable) is of a structured data type, for example the instance of a function block or an array variable, then a plus or a minus sign is placed in front.

See also