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

Page 275

Advertising
background image

L-force | PLC Designer

Editors in PLC Designer



DMS 3.2 EN 02/2011 TD29

273

The following entries can be generated:

• Entries in parameter lists of type 'Variables'

− from the declaration part of programs and global variables lists:

For a variable defined in a PROGRAM- or VAR_GLOBAL declaration an entry in a
parameter list of type 'Variables' can be created, if it is declared like described
in the following: (If the parameter list does not yet exist, it will be created
automatically)
Syntax:
{parameter list=<name> [ <key>=<value> <key>=<value> ...further keys ] }
Example: Variable bvar is declared in a program. It should be entered in the

parameter list parlist1 (type 'Variables') with symbolic name bvar1, value 102,
index 16#1200 and subindex 16#2l.

VAR

bvar:INT{parameter list=parlist1 [name=bvar1 value=102
index=16#1200 subindex=16#1 ] };

END_VAR

− via a declaration in the VAR_CONFIG Interface:

There is the possibility to create an entry for a variable in a parameter list of
type 'Variables' by placing a pragma in a VAR_CONFIG window (independent of
variable configurations, which also are done in the VAR_CONFIG interface !):
(If the parameter list does not yet exist, it will be created automatically)
Syntax:

{parameter list=<name> path=<path> [ <key>=<value>
<key>=<value> ...further keys ] }

<path> Path of the variable, for which the entry should be generated, e.g.
"PLC_PRG.act1.var_x"
Example: For variable var_x an entry is created in parameter list "varlist1",
symbolic name is "xvar".

VAR_CONFIG

{parameter list=varlist1 path=PLC_PRG.act1.var_x [
name=xvar ] }

END_VAR

Advertising