EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

Shortcut Mode

Overview

The declaration editor and the other text editors where declarations are performed support the shortcut mode.

Activate this mode by pressing CTRL+ENTER when you end a line of declaration.

It allows you to use shortcuts instead of completely typing the declaration.

Supported Shortcuts

The following shortcuts are supported:

oAll identifiers up to the last identifier of a line will become declaration variable identifiers.

oThe type of declaration is determined by the last identifier of the line.

In this context, the following replacements are performed:

B or BOOL

is replaced by

BOOL

I or INT

INT

R or REAL

REAL

S or string

STRING

oIf no type has been established through these rules, automatically BOOL is the type and the last identifier will not be used as a type (see example 1).

oEvery constant, depending on the type of declaration, will turn into an initialization or a string (see examples 2 and 3).

oAn address (as in %MD12) is extended by the AT keyword (see example 4).

oA text after a semicolon (;) becomes a comment (see example 4).

oAll other characters in the line are ignored (see, for example, the exclamation point in example 5).

Examples

Example No.

Shortcut

Resulting Declaration

1

A

A: BOOL;

2

A B I 2

A, B: INT := 2;

3

sX S 2; A string

sX:STRING(2); // A string

4

X %MD12 R 5; Real Number

X %MD12 R 5 Real Number

5

B !

B: BOOL;