Skip to main content

Dialog: Properties: Build

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

standard icon: 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)

standard icon: 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

standard icon: A system call (runtime system) for functions is possible.

Background: Different from CoDeSys V2.3, 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

standard icon: 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