Declaration Editors

 

Overview

The textual declaration editor serves to create the declaration part of a POU object. It can be supplemented by a tabular view. Any modification made in 1 of the views is immediately applied to the other one.

Depending on the current settings in the declaration editor options, either only the textual or only the tabular view will be available. You can switch between both via buttons (Textual / Tabular) at the right border of the editor window.

Usually, the declaration editor is used in combination with the programming language editors. This means, it will be placed in the upper part of the window which opens when you are going to edit or view (monitor) an object in offline or online mode. The declaration header describes the POU type (for example: PROGRAM, FUNCTION_BLOCK, FUNCTION). It can be extended by POU-global pragma attributes.

The online mode of the declaration editor is structured like that of a Watch view.

Variable declaration is also performed in Global Variable Lists and Data Unit Types, which are created in separate editors.

Also refer to the Variables Declaration chapter.

What Is in This Chapter?

This chapter contains the following topics:

oTextual Declaration Editor

oTabular Declaration Editor

oDeclaration Editor in Online Mode