Autodeclaration, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 264

L-force | PLC Designer
Editors in PLC Designer
262
DMS 3.2 EN 02/2011 TD29
Examples:
Shortcut
Declaration
A A:
BOOL;
A B I 2
A, B: INT := 2;
ST S 2; A string
ST:STRING(2); (* A string *)
X %MD12 R 5 Real Number
X AT %MD12: REAL := 5.0;(* Real Number *)
B !
B: BOOL;
7.2.18
Autodeclaration
If the Autodeclaration option has been chosen in the Editor category of the Options
dialog box , then a dialog box will appear in all editors after the input of a variable
that has not yet been declared. With the help of this dialog box, the variable can now
be declared.
Dialog Box for Declaration of Variables
With the help of the Class combobox, select whether you are dealing with a local
variable (VAR), input variable( (VAR_INPUT), output variable (VAR_OUTPUT),
input/output variable (VAR_INOUT), or a global variable (VAR_GLOBAL).
With the CONSTANT, RETAIN, PERSISTENT options, you can define whether you are
dealing with a constant or a retain variable
The variable name you entered in the editor has been entered in the Name field, BOOL
has been placed in the Type field. The
button opens the Input Assistant dialog
which allows you to select from all possible data types.