L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 865

Advertising
background image

L-force | PLC Designer

Device Editors

DMS 4.1 EN 03/2011 TD29

863

The I/O mapping has to be done by specifying the corresponding project variables in
column 'Variable':
The type of the channel is already indicated in the Variable column by an icon: for
input, for output. In the respective table cell the path resp. name of the variable is
specified, on which the respective channel should be mapped. You can map on an
already existing project variable or define a new variable, which then will be declared
internally as a global variable.
When mapping structured variables the editor will prevent that both the structure
variable (for example on %QB0) and particular structure elements (for example in this
case on %QB0.1 and QB0.2 etc.) can be entered. This means: When there is a main
entry with a subtree of bit channel entries in the mapping table (as shown in the figure
below), then either in the line of the main entry a variable can be entered or in those of
the subelements (bit channels), never in both.
• If you want to map on an existing variable, you must enter the complete path, that

is "<application name>.<pou path>.<variable name>"; example:
"app1.plc_prg.ivar". For this purpose it is recommended to use the input assistant
via button

. In the Mapping column the symbol will appear ("map on existing

variable") and the address value will be shown crossed out. This does not mean,
that this memory address is not existing any longer. However it is not used directly,
because the value of the existing variable is managed on another memory location
and, especially in case of outputs, not at all another already existing variable
should be stored to this address ("%Qxx" in the I/O mapping), in order to avoid
ambiguities during writing the values.
See in the following example an output mapping on the existing variable xBool_4:

• If you want to map on a new variable, just enter the desired variable name;

example: "bVar1". The icon will be displayed in the Mapping column and the
variable will be declared internally as a global variable. As from there on the
variable will be available globally within the application, the mapping dialog is
another place for the declaration of a global variable.

Note: Monitoring: If a structure variable is mapped on the root element of the
address (the uppermost in the tree of the respective address in the mapping dialog),
then in online mode no value will be displayed in this line. If however for example a
DWORD variable is mapped to this address, then in the root line as well as in the bit
channel lines indented below the respective values will be monitored. Basically the
field in the root line always will stay empty if the value is composed of multiple
subelements.

Advertising