Skip to main content

Dialog: Settings – SFC Settings

Function: The dialog defines the default settings for all POUs which are used in the project and which are programmed in SFC.

Call: View → Properties command; context menu of a POU programmed in SFC in the Devices view or in the POUs view

Variables ("SFC Flags")

List of all possible SFC flags

Enabledstandard icon: The SFC flag is enabled and therefore included when processing.

Declarestandard icon: The SFC flag is automatically declared.

If Declare is selected, but Use is not, then the variable is declared, but the flag has does not have any function when processing is performed.

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

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

Use defaults

_cds_icon_checked.png: The settings available here in the dialog overwrite the SFC Settings which are defined within the individual POUs.

For more information, see: SFC flags

Build

Table 11. Code Generation

Calculate active transitions only

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