Navigation:  Programming > Structured Text > Editor >

Desktop

Previous pageReturn to chapter overviewNext page

 

Every structured text file is presented as follows.

 

 

Figura 1: Arquivo Texto Estruturado

 

The structured text editor has the following components:

 

1.ST editor toolbar

 

Icone

Descrição

Atalho

Go to last edited line

Ctrl + Q

 

 

 

 

Search for selected characters

Ctrl + F3

Go to next selection of characters found

F3

Go to the next selection of found characters (reverse)

Shift + F3

Enable and disable highlighting of found character selections

Alt + Shift + H

Enable and disable frame selection

Ctrl + Shift + R

Go to previous row marker

 

Go to next row marker

 

Enable and disable line marker

 

Shift line left

Alt + Shift + <--

Shift line to the right

Alt + Shift + -->

 

 

 

 

Comment

 

Uncomment

 

 

2.Initialization of local variables

 

The creation and initialization of local variables in the Structured Text language must be carried out at the beginning of the document, between the keywords VAR and END_VAR.

 

Examples:

 

(*Variables Initialization*)

VAR

 

   A : INT;

   B : INT := 100;

   C, D : BOOL;

   F : FB_CTU;

 

END_VAR

 

3.Implementation of functions

 

The ST instructions must be programmed after the keyword END_VAR, the word responsible for closing the area destined for the declaration of local variables.