Skip to main content

Dialog: Project Settings – SFC

Symbol: _cds_icon_option_as.png

Function: The dialog is used to configure the settings for SFC objects. Each new SFC object automatically has the configured settings in its properties.

Call: Project → Project Settings command, SFC category

Requirement: A project is open.

Tab: Flags

Use

standard icon: The SFC flag variable is used and therefore included in processing.

Variable

Implicitly generated SFC flag variable which can be used for controlling and monitoring the processing of an SFC chart.

Declare

standard icon: The SFC flag is declared automatically.

If the Declare check box is selected but Use is not, then the variable is declared, but the flag has no function during processing.

Note: If you have manually declared an SFC flag variable, then you need to deselect the declaration for this flag in SFC Settings. Otherwise the automatically declared flag overwrites the manually declared flag.

Note: An automatically declared flag variable is visible in the declaration part of the SFC editor only in online mode.

Description

Describes the function of the SFC flag and the effects of setting it.

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

An automatically declared SFC flag variable is 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 IecSfc.library library, which CODESYS provides with the default profile, is used as the default settings.



Tip

Each SFC POU stores the information about 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.

Tab: Analyzation

Table 5. Handling

Compatibility mode

The analysis is based on the language model of the transition objects. If you use transition objects or property objects in alternative branches, this mode may provide incomplete analysis expressions. The mode also requires the Calculate active transitions only property to be activated.

Multibranch mode

The SFC object performs the analysis itself. This mode provides complete analysis expressions even if you use transition objects or property objects in alternative branches. If the Multibranch mode option is activated, it sets the ExternalAnalyzation compiler define for all transition objects in the project.

This feature is available as of CODESYS 3 version 3.5.22.20.