Programming in Sequential Function Chart (SFC)
Each step has an action linked to it. Each step also has a flag linked to it, to indicate if the step is active or not. An IEC Step can have more than 1 action linked to it. Each action can consist of various Boolean variables. In this step the action Clamp is linked. If more actions are added to the step, they will be processed in the order they are linked. A maximum of nine (9) Actions can be linked to one (1) step. Each IEC action is executed twice, when the step becomes active and when the step becomes inactive. An input action can be linked to a step, this action is processed one if the step becomes active. If an output action is linked to a step, the action is processed once. A combination of in and output actions is possible.
DC-B/Holtmann, Martin PLC371 - Programming in SFC March 8, 2013
Programming in Sequential Function Chart (SFC)
N = Not Stored, action is active for as long as the step is active R = Reset, action is reset S = Set, the action will stay active untill there is a Reset L = Time, action is active for a preset time. D = Delayed Time, the action becomes active after the preset time has finished. The action will stay active for as long as the step is active P = Puls, the action is performed once, when the step active SD = Set and time delay, the action becomes active after the time, and stays active untill there is a Reset DS = Time delay and Set, the action becomes active after the time, and stays active untill there is a Reset SL = Stored time delay, the action is active for the set time Time format T#5s Variable Time with datatype TIME.
March 8, 2013 2
Qualifiers
DC-B/Holtmann, Martin
PLC371 - Programming in SFC
Parallel branches (OR function)
4 Condition_A
The OR Function. After step 5 the condition that goes true first, that branch will be processed. The other branch is then not processed.
Condition_D
Condition_B 6 Condition_C 7 Condition_F 17 16
The horizontal line is a single line, each branch starts with a condition. An SFC must be ended of with a jump function. Normally jump back to the Init Step.
Condition_E
Condition_G
10
DC-B/Holtmann, Martin
PLC371 - Programming in SFC
March 8, 2013
Parallel branches (AND function)
4 Condition_A 5 Condition_B
The AND Function. After Step 5 both branches will be processed independly from each other Condition G will wait until both branches have been processed.
The horizontal line is double line.
6 Condition_C 7 17 16 Condition_E
An SFC must be ended of with a jump function. Normally jump back to the Init Step.
Condition_G
10
DC-B/Holtmann, Martin
PLC371 - Programming in SFC
March 8, 2013
Programming in Sequential Function Chart (SFC)
A condition is a single instruction or a combination of conditions linked by logical AND, OR, etc. An action can be a single action or a full application written in one of the programming languages SFC is mostly used to give the program a structure
DC-B/Holtmann, Martin
PLC371 - Programming in SFC
March 8, 2013