Skip to main content

Dialog: Project Settings – SFC

Symbol: _cds_icon_option_as.png

Function: The dialog is used to configure the settings of SFC objects. The properties of each new SFC object automatically have the configured settings.

Call: Project → Project Settings command, SFC category

Requirement: A project is open.

Tab: Variables

Implicitly generated flags for checking and monitoring the processing in an SFC chart

Usage

_cds_icon_checked.png: The corresponding flag is used.

Declare

_cds_icon_checked.png: The corresponding flag is created automatically. Otherwise, you have to declare the variable explicitly if you intend to use it (Use is selected).

Apply to all

In this dialog, CODESYS applies changes to existing SFC objects. CODESYS selects the Use defaults option in the properties of the SFC POUs.

Important

Automatically declared variables are visible in the declaration part of the SFC editor only in online mode.

Tab: Build

Table 3. Code Generation

Calculate active transitions only

_cds_icon_checked.png: CODESYS generates code only for currently active transitions.



Table 4. SFC Library

This part of the dialog is available only for compiler versions < 3.4.1.0.

Company

Title

Version

Defines the SFC library which CODESYS uses by default

Namespace

When defined, allows for unique addressing of libraries

Required when various versions of the library are available on the system

Make sure that there are no inconsistencies between the namespace defined in the Library Manager and the namespace defined for the individual object. The data of the SfcIec.library library is used as the default settings which CODESYS provides with the default profile.



Tip

Each SFC POU stores the information via the library version which was valid when you added the POU. This can lead to you using multiple library versions within the same project. In order to prevent this, you can no longer define specific versions of the IecSfc.library in compiler version 3.4.1.0 and higher. The library version, which you use for all SFC POUs in the project, is defined with a placeholder. CODESYS resolves the placeholder depending on the compiler version in use. The allocation of the library version to the compiler version is defined in the library profile.