Working in the SFC Editor
The SFC editor is a graphical editor. A new SFC POU contains an initial step and a subsequent transition.
In the SFC editor, you can insert individual elements into the chart by using commands in the SFC menu, context menu, or the ToolBox view.
When inserting via a menu command, the elements which can be inserted at the currently selected position are available for selection.
Before inserting branches in parallel with multiple actions and transitions, you need to select these actions and transitions via multiselection.
You can also drag SFC elements into the chart from the ToolBox view. As soon as you drag an element into the editor, CODESYS highlights all possible insert positions with gray rectangles. When you mouse over a possible insert position, the color of the rectangle changes to green. Now release the mouse button to insert the object at this location.
When inserting a branch using drag and drop, you need to use the mouse to mark the start and end of the branch. You mark the start of the branch by releasing the mouse button at an insert position. The color of the rectangle changes to red. You define the end of the branch by clicking on a second insert position. This closes the branch between the start and end markers.
Two duplication modes are available for copying step and transition elements with references to action or transition objects:
The references are retained. The copies reference the same objects as the original elements.
The referenced objects are duplicated. They are included as embedded objects in the copies of the steps and transitions.
You define the behavior and appearance of the editor in the CODESYS options in the SFC Editor.
For more information, see the following: