Entering ST-Code

Enter your application in the ST-editor by writing code. logi.CAD 3 provides the following possibilities for entering ST-code:

Possibility

Note

input via keyboard

logi.CAD 3 highlights the errors so that you are able to create your application in ST correctly and quickly.
However, it is good to have some knowledge about the ST-syntax according to →IEC-standard. If not, see "Supported ST-syntax". This article lists the syntax elements that are supported for the application by logi.CAD 3.

content assist

Content assist is certainly one of the fastest methods to enter code.

copying/cutting existing code and pasting as new code

default features for Copy, Cut and Paste as certainly known from other applications

Refactoring of ST-code

Refactoring is certainly one of the fastest methods to edit the existing code.

The next table contains other useful possibilities to enter ST-code and information where to find the appropriate commands in logi.CAD 3:

Other p ossibility

Meaning

command in logi.CAD 3

word completion

enter proposal for the started word
The proposal is based on the contents of all opened editors. Select the command repeatedly until the requested proposal appears.

in menu Edit, Word Completion

toggle comment

toggle comment for all currently selected lines
(The delimiter // is inserted resp. removed.)

from context menu in the ST-editor, Source, Toggle Comment

format code

format the code within the current selection
If no code is selected, all code within the editor is formatted. If the ST-code contains errors, formatting is not possible.

from context menu in the ST-editor, Source, Format

logi.CAD 3 provides keyboard shortcuts for even more actions in ST-editor to quickly change, delete or select code and to quickly navigate within the ST-editor.