Description

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Description

mapp Services V5.16

A global variable – the mapp Link – is created automatically for every mapp component added in the Configuration View. Like all other variables, if this MpLink is not used anywhere in the application, then no memory will be reserved for it at runtime. Normally, however, the MpLink is specified with the various functions and function blocks to identify the respective mapp components.

If global variables should be avoided, this can be done using function block MpComGetLink. This function block returns the MpLink of a mapp component based on its name. Be sure to complete the following steps:

Do not use automatically generated MpLink

The automatically generated global variables should not be used as function parameters or on the input of a function block. If the automatically generated global MpLink is not used anywhere, no memory will be reserved for it.

Using MpComGetLink

Instead, this function block returns the MpLink on the output. The name of the component is specified on input "ComponentName". The name of the components is located at the top of the component configuration.

componentname

This can be used for other mapp components either directly (address of function block output "MpLink") or indirectly (connect local variable with the data type MpComIdentType to the output).