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

Page 440

Advertising
background image

L-force | PLC Designer

The Resources

438

DMS 3.2 EN 02/2011 TD29



Creating an Instance parameter list:

Edit a Template from the selection list below the table. This list offers all templates
currently available for functionblocks or structures in the Parameter Manager plus the
option ARRAY, which you select, if you want to refer directly to an array used in your
project. Press Apply to insert the predefined components to the parameter list table.

For option Synchronous actions please see above: Creating a Template parameter list.

In the edit field Base variable enter exactly that project variable (must be of type of
the functionblock or the structure or the array which is described by the chosen
template), for the components of which you want to create parameter entries.

Enter a Base index and Base subindex for the instance. The indices and subindices of
the particular components then will be calculated automatically by adding the index
resp. subindex values which are defined in the template for each component (in case
of arrays the base will be 0). They will be filled automatically to the respective
attribute fields. Example: If you enter a base index "3" for a component, for which an
index offset "3000" is defined in the template, the component will be set to index

3003.

The command Insert missing entries in the context menu or in the 'Extras' menu will
cause an update of the entries according to the current version of the used template.
That might be useful after having deleted entries or after the template has been
modified.

Example:

Create a functionblock fubo with input- or output variables: a,b,c. In PLC_PRG define
the following FB-instances: inst1_fubo:fubo; inst2_fubo:fubo. Compile the project.

Now open the Parameter Manager in order to create parameter lists for the variables
inst1_fubo.a, inst1_fubo.b, inst1_fubo.c and inst2_fubo.a, inst2_fubo.b, inst2_fubo.

First insert a parameter list which is of type 'Template' and name it "fubo_template".
Define the Base-POU: "fubo". Press Apply and define some attributes for the

components a,b,c: te. Inter alia enter the Index offsets: for a: 16#1, for b: 16#2, for c:
16#3. Also the SubIndex offsets, e.g. a: 16#2, b: 16#3, c: 16#4.

Now insert a new parameter list which is of type 'Instance'. Choose template
"fubo_template". Insert the Base variable "inst1_fubo". Define a Base index of e.g.
16#2300 and a Base subindex of 30 (you must regard the ranges defined in the target
settings in tab Networkfunctionality !). Now press Apply to get displayed the indices
which are calculated for the componentes a, b, c by the addition of base offsets and
template defined offsets: Indices: 16#2301, 16#2302, 16#2303; SubIndices:16#23,

16#33, 16#43.

Basing on this automatically created entries now you can continue to edit the
parameter list.

Advertising