Pragma instructions for parameter manager entries, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 273

Advertising
background image

L-force | PLC Designer

Editors in PLC Designer



DMS 3.2 EN 02/2011 TD29

271

Pragma {bitaccess...} for the Bitaccess

This pragma can be used to get a correct display of a variable, which is doing a
bitaccess with the help of a global constant, in the input assistant, in the intellisense
function and at monitoring in the declaration window. Furtheron it will effect that,
when this variable is monitored in the declaration window of the particular POU, the
used global constants are shown below the respective structure variable.

Note!

The project option 'Replace constants' (category Build) must be activated !

The pragma must be inserted in the declaration of the structure in a separate line. The
line is not terminated by a semicolon.

Syntax:

{bitaccess <Global Constant> <Bitnumber> '<comment>'}

<Global Constant> : Name of the global constant, which must be defined in a global

variables list.

<Bitnumber> : Value of the global constant, as defined in the global variables list.

For an example click here. See for an example in chapter Operands in CoDeSys,
Addressing bits in variables.

7.3.3

Pragma {link} for linking a POU during code generation

Normally a POU (program, function, function block) or a data unit type definition
(DUT) which is not called within the project, will not be linked during code generation.
But it might be desired that a function, e.g. included in the project via a library, should

be available after download on the runtime system even if it is not used by the
application program directly (e.g. for any check operations). For this purpose you can
add the {link} pragma at any desired position in the declaration part of a POU or in a
DUT in order to force a linking of the POU anyway.

7.3.4

Pragma instructions for Parameter Manager entries

Pragma instructions can be inserted in variable declarations in order to create entries
for these variables in parameter lists which are handled in the Parameter Manager. It

depends on the target system, whether the Parameter Manager is available in the PLC
Designer programming system. This means it must be activated in the target settings,

category Networkfunctionality.

Advertising