Line numbers in the declaration editor, Declarations as tables, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 266

Advertising
background image

L-force | PLC Designer

Editors in PLC Designer

264

DMS 3.2 EN 02/2011 TD29



In the Address field, you can bind the variable being declared to an IEC address (AT
declaration).

If applicable, enter a Comment. The comment can be formatted with line breaks by
using the key combination <Ctrl> + <Enter>.

By pressing OK, the declaration dialog is closed and the variable is entered in the
corresponding declaration editor in accordance to the IEC syntax.

Note!

The dialog box for variable declaration you also get by the command 'Edit' 'Declare
Variable'. If the cursor is resting on a variable in Online mode, the Autodeclare
window can be opened with <Shift><F2> with the current variable-related settings
displayed.

7.2.19

Line Numbers in the Declaration Editor

In offline mode, a simple click on a special line number will mark the entire text line.

In the online mode, a single click on a specific line number will open up or close the
variable in this line, in case a structural variable is involved.

7.2.20

Declarations as tables

If the Declarations as tables option is activated in the Project Options (category
‘Editor’) or – if you already are working in the declaration editor - in the context menu,
the declaration editor looks like a table. As in a card-index box, you can select the
register cards of the respective variable types and edit the variables.

For each variable you are given the following entry fields.

Name:

Input the identifier of the variable.

Address:

If necessary, input the address of the variable (AT declaration)

Type:

Input the type of the variable. (Input the function block when instantiating a function
block)

Initial:

Enter a possible initialization of the variable (corresponding to the ":= " assignment

operator).

Comment: Enter a comment here.

Both of the display types of the declaration editor can be changed without causing
any problems. In the online mode, there are no different display types.

Insert new declaration:

In order to edit a new variable, select the 'Insert' 'New Declaration' command.

Advertising