Skip to main content

Command: Add Entry Action

Symbol: _cds_icon_sfc_add_entry_action.png

Function: The command opens the Add Entry Action dialog where you define a new entry action. Depending on the SFC options, a dialog prompt may open for you to select the duplication mode for the new step action.

Call: SFC menu; context menu of the selected step element

Requirement: A step element in SFC is selected.

The entry action is automatically opened in the ST editor. The step element contains an E in the lower left corner.

For more information, see the following: Action

Prompt for selecting the duplication mode

Options:

  • Copy reference: A new step calls the same actions: If the step is copied in SFC, then the link to the step action(s) is also copied. The steps copied from one another will therefore all call the same actions.

  • Copy implementation: New action objects are created for a new step: This means that the step actions for the copied steps are embedded. By default, the newly generated action objects are displayed below the SFC POU in the device tree or in the POUs view. These objects initially contain a copy of the original implementation code of the respective action.

    The display of the embedded objects can be enabled or disabled in the tree by means of the Show Embedded Objects or Hide Embedded Objects commands in the context menu of an SFC object.