Program Editor

The program editor is displayed in a tab if a program (e.g., PLC_PRG) is double-clicked in the Project Structure or the [Edit] button of the menu ribbon is clicked. For additional information, see the CODESYS online help.

Elements of the Program Editor
Elements of the Program Editor
Elements of the Program Editor

Pos.

Description

1

Tabs
Program editors, library managers, visualizations are displayed based on the selection in the Program Structure (double-clicking).
Right-clicking a tab opens a context menu that contains the following functions:
“Close,” “Close all windows apart from this one,” “Undock/Dock”, “New horizontal/vertical tab group” and “Move to the next/previous tab group”.

2

Declaration Editor
This area normally appears above the program code. It contains the program name, the scope of validity and variable declarations (see CODESYS online help: “Options, Declaration Editor”).

3

Language Editor
The program code appears here when using language editors such as for “Structured Text” (ST) or “Continuous Function Chart” (CFC).

4

Active Tabs
Shows active tabs in a selection list.

5

Text/Table Toggle Button
Toggles between textual and tabular view
(see CODESYS online help: “Options, Declaration Editor”)

 

Textual View

 

Tabular View

6

Zoom factor
The zoom factor enlarges or reduces the content of the declaration and language editor