
L-force | PLC Designer
Editors in PLC Designer
DMS 3.2 EN 02/2011 TD29 261
7.2.16 Syntax Coloring
In all editors you receive visual support in the implementation and declaration of
variables. Errors are avoided, or discovered more quickly, because the text is displayed
in color.
A comment left unclosed, thus annotating instructions, will be noticed immediately;
keywords will not be accidentally misspelled, etc.
The following color highlighting will be used:
Blue Keywords
Green Comments in the text editors
Pink Special constants (e.g. TRUE/FALSE, T#3s, %IX0.0)
Red Input error (for example, invalid time constant, keyword, written in lower case,...)
Black Variables, constants, assignment operators, ...
7.2.17 Shortcut Mode
The declaration editor for »PLC Designer« allows you to use the shortcut mode. This
mode is activated when you end a line with <Ctrl><Enter>
The following shortcuts are supported:
• All identifiers up to the last identifier of a line will become declaration variable
identifiers
• The type of declaration is determined by the last identifier of the line. In this
context, the following will apply:
B or BOOL gives the result BOOL
I or INT gives the result INT
R or REAL gives the result REAL
S or string gives the result STRING
• If no type has been established through these rules, then the type is BOOL and the
last identifier will not be used as a type (Example 1.).
• Every constant, depending on the type of declaration, will turn into an
initialization or a string (Examples 2. and 3.).
• An address (as in %MD12) is extended around the ATATDeclaration>Proc...
attribute(Example 4.).
• A text after a semicolon (;) becomes a comment (Example 4.).
• All other characters in the line are ignored (e.g., the exclamation point in Example
5.).
Comentarios a estos manuales