SFC Editor
The SFC editor is a graphic editor. A newly added SFC POU contains an init step and a subsequent transition.
In the SFC editor, you can insert the individual elements into a diagram using commands from the SFC menu, the context menu or the Toolbox view.
When inserting using a menu command, the elements that can be inserted at the currently selected position are available for selection.
Before inserting branches in parallel to several actions and transitions, you need to select these actions and transitions through multiple selection.
You can also drag and drop SFC elements from the Toolbox view into the diagram. As soon as you drag an element into the editor, TwinCAT marks all possible insert positions with gray rectangles. If you move the mouse over a possible insert position, the color of the rectangle changes to green. If you release the mouse button, the element will be inserted at this point.
If you insert a branch using drag-and-drop, you must mark the beginning and end of the branch with the mouse. You mark the beginning of the branch by releasing the mouse at an insert position. The color of the rectangle changes to red. The end of the branch is defined by clicking on a second insert position. TwinCAT then inserts a branch around the objects between the start mark and end mark.
For copying step and transition elements, which call action objects or transition objects, you can set two different duplication modes. The references are either copied, or the referenced objects are "embedded" and duplicated during copying.
The behavior and appearance of the editor can be defined in the TwinCAT options in the category TwinCAT > PLC Environment > SFC editor.
See also:
- Common Functions in Graphical Editors
- Programming in Sequential Function Chart (SFC)
- TC3 User Interface documentation: SFC
- TC3 User Interface documentation: Dialog Options - SFC editor