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

Page 426

Advertising
background image

L-force | PLC Designer

The Resources

424

DMS 3.2 EN 02/2011 TD29



1-Window-Editor:

For entering variables in a watch list, the list must be selected in the left part of the
Watch and Recipe Manager Window. Then variables are added in the right part at the
current cursor position line by line, either with the help of the input assistant <F2>
(see the note below) or by typing. See Overview, Editor for the requested syntax. If the
variables should be entered in online mode, previously the monitoring must be
deactivated. Via command 'Monitoring aktiv' in the 'Extras' or the context menu you
can switch between activated and deactivated.

Note on using the Input Assistant in the Watch and Recipe Manager: The non-
structured view of the Input Assistant offers additional filter functions for selecting
watch variables: In the Filter input field you can enter a string and additionally
specify whether this string must be found at the beginning of a variable name
(Prefix), at the end of a variable name (Suffix), or at an arbitrary position within the
variable name in order to get the watch variables offered for selection.

Working with Recipes

The variables of a watch list can be preset with constant values. In the tabular editor

this is possible via column recipe value, in the 1-Window-Editor by an assignment via
":=". Then the watch list can be used as a so-called "recipe".

If the presetting should be done automatically with the current values read from the
PLC, then command 'Read Recipe' can be used.

In the 1-Window-Editor variant of the Watch and Recipe Manager the recipe values
must be assigned according to the following example:

PLC_PRG.TIMER:=50
Here variable PLC_PRG.TIMER is preset with 50.
Note the following for variables of type array, structure or function block instance:
The particular elements resp. instance variables must be entered explicitly in order
to be able to preset them with values. Example: Let's assume that a structure STRU
is defined with components a, b,c, and a structure variable struvar is declared in
program PLC_PRG. In order to preset a,b,c with values, the following must be
entered in the watch list:

PLC_PRG.struvar.a:=<value>
PLC_PRG.struvar.b:=<value>
PLC_PRG.struvar.c:=<value>

Correspondingly the presetting of elements of an array must be done: Example for
an array variable arr_var of type ARRAY[0...6]

PLC_PRG.arr_var[0]:=<value>
PLC_PRG.arr_var[1]:=<value>
...

Advertising