Product:    ISaGRAF 4.0x / 4.1x
Date: 5-March-2001
File: Programming SFC programs.htm
Subject: Guide lines to program SFC diagram
Keywords: SFC - Level2


Here are some steps and some advise to program a SFC without troubles:

Draw your level1 diagram

After creating a new SFC program, you have already the initial step drawn.

Select the icon to insert a transition below the initial step. TransitionIcon.gif (854 bytes)

Put the cursor below the initial step as follows:

TransAfterInitStep.gif (1579 bytes)

Continue to draw you chart as done for this transition.

If you have to place a divergence, select the correct icon:

OR divergence (single line) after a step tbsfelor.gif (847 bytes)

AND divergence (double line) after a transition.tbsfelan.gif (849 bytes)

Place the cursor below the step or the transition.

If you have more than 2 branches to your divergence, first connect elements of the 2 first branches, then select your divergence and click on the New branch icon on the toolbar (tbsfelnb.gif (872 bytes)).

To place a convergence, click on the correct Convergence icon on the toolbar:

OR convergence (single line) after transitions tbsfelor.gif (847 bytes)

AND convergence (double line) after steps.tbsfelan.gif (849 bytes)

Place the cursor below the last element of the left-most branch.

exsfdc3.gif (1318 bytes)

- Select the element to delete
- Press the "Del" Key
- Remake your diagram as you wish.

- Delete the link where you want to insert the elements
- Move all the elements below (select all elements below, and use drag and drop operation)
- Continue your diagram from the last element of the first part of the diagram.
- Move back the part you have moved to connect to the new inserted elements.

Caution: for the diagram to re-connect, you must remind that automatic connection is done only between a step and a transition and vice-versa.

Program the "level2s"

To open the level2 window, click on the step or transition and press Return.

CAUTION: do not use double-click to open level2 window, as it may lead to rename the step or transition, or give the focus to the level2 preview in the level1. If you have done that by inattention, just click in an empty space in the level1 workspace.

When the level2 window is open, select the language in the selection list by clickin on the left part of the title of the action or condition.

mnusfst2.gif (2235 bytes)

Click on the right part of the title and give an IEC61131 name (no special character - no space ...) and press Enter.

Level2ScrollBar.gif (9317 bytes)

SelectBoolButton.gif (1991 bytes)



- When an action block is currently selected, use the Options / Show Level2 as List command
- In the list shown, select the action block you want to delete or move
- Use the buttons of the toolbar to delete or move ActionBlockButtons.gif (1166 bytes)
- Use the command Options / Detail level2 to go back to the normal mode for editing or modifying an action block.

- Use the Options / Show Level2 as List (as detailed above),
- Select the action block that will come after the new inserted action block
- Use the button in the toolbar. tbsfelab.gif (889 bytes)
- Use the command Options / Detail level2 to go back to the normal mode for editing or modifying an action block.


Copyright © 1999-2009 ICS Triplex ISaGRAF Inc. All rights reserved.