L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 476

Advertising
background image

L-force | PLC Designer

Menu Commands sorted by Categories

474

DMS 4.1 EN 03/2011 TD29

Object: By default: the name of the currently edited object. To define another object
where the variable declaration should be performed, select one of the available
objects. For example, if you are going to declare a global variable (Scope:
VAR_GLOBAL), here you will get all global variables lists already defined within the
project.
Type: By default: INT, if this is the first variable in the line: INT, but, if there is already a
declared variable in the line, the type of this variable will be pre-set. For modifying this
entry you can press button

to get the Input Assistant dialog which allows you to

select one from all possible data types. In case you want to declare an array variable
you might use the array wizard which is offered also via the arrow button. See below
for a description.
Scope: By default: VAR (local variable). Alternatively set another scope from the
selection list.
Initialization: Here you can enter an explicit initialization value for the variable. If
nothing is entered here, the variable will be initialized with the default value. Not yet
implemented: Press button

to get assistance by.....

Address: The variable being declared can be bound to an IEC address ("AT" declaration).
Example: variable "b" of type "INT" and Address "%IB0" -> declaration: "b AT %IB0 :
INT;"
Comment: If applicable, enter a comment. The comment text can be formatted with
line breaks by using the key combination <Ctrl> + <Enter>. It will appear in the
declaration part of the object in the line above variable declaration.
Flags: CONSTANT, RETAIN, PERSISTENT: Activate the desired option to define whether
you are dealing with a constant or a remanent variable. The respective attribute will be
added to the keyword VAR, for example "VAR CONSTANT" initiating the declaration
part for the variable. The PERSISTENT option only will be available if a Persistent
Variables list exists.

Advertising