Dialog: Properties: Build Permalink

Symbol: _cds_icon_property_object.png

Function: The dialog contains options for compiling (build operation) the object.

Call: “View  Properties” command; context menu of the object in the device tree

Name

Description

“Exclude from build”

_cds_icon_option_activated_copy.png: This object and recursively its child objects are not included in the next compile operation.

The object entry is displayed in green fonts in the “Devices” view or in the “POUs” view.

“External implementation”

“(Late link in the runtime system)”

_cds_icon_option_activated_copy.png: CODESYS does not generate any code for this object when the project is compiled. The object is linked as soon as the project is running on the target system, provided it exists there (for example, in a library).

The maximum length of these object names (function blocks and methods) is 64 characters.

The object name is appended with ‎(EXT)‎ in the “Devices” view or in the “POUs” view.

“Enable system call”

_cds_icon_option_activated_copy.png: A system call (runtime system) for functions is possible.

Background: Different from CODESYS V2.3 Gateway Server, the ADR operator in V3 can be used with function names, program names, function block names, and method names. It replaces the ‎INSTANCE_OF‎ operator.

BUT: It is not possible to call function pointers from within CODESYS.

“Link always”

_cds_icon_option_activated_copy.png: The object is marked in the compiler and therefore always included in the compile information. This means that it is always compiled and downloaded to the controller.

Note: The pragma ‎{attribute 'linkalways'}‎ can also be used to instruct the compiler to always include an object.

“Compiler defines”

Here you can specify "defines" or conditions for compiling the object (conditional compile). You can also specify the ‎expr‎ expression, which is used in these kinds of pragmas. Multiple entries are possible as a comma-separated list (see ‎{define}‎ statements).

Example: ‎hello, test:='1'‎

“Additional compiler definitions from the device description”

“Defined in device”

List of compiler definitions which originate from the device description

These compiler definitions are used in the build if they are not listed in the “Ignored definitions” field.

“Ignored definitions”

List of compiler definitions from the device description which are not used in the build

_cds_icon_arrow_right.png

Copies the selected compiler definition from the “Defined in device” field to the “Ignored definitions” field

_cds_icon_arrow_left.png

Moves the selected compiler definition from the “Ignored definitions” field to the “Defined in device” field

The compiler definition is used in the build.

For more information, see: ⮫ “Conditional Pragmas ”, ⮫ Further information