Sequential Function Chart: 6 Smart Rules for Clean PLC Steps

Share:
PLC
Sequential Function Chart: 6 Smart Rules for Clean PLC Steps

Machines and batches run in ordered steps, yet ladder code often hides that order inside latches and flags. A flowchart style language puts every step and condition on the screen where anyone can follow it.

IEC 61131 3 Steps and Transitions Parallel Branches Action Qualifiers

SFC is the IEC 61131 3 language for sequences. It shows a process as boxes for steps and bars for transitions, with actions attached to each step.

Hello everyone, today we are going to learn how a sequential function chart organises PLC sequences into steps, transitions and branches, and the design rules that keep machine and batch logic easy to debug.
sequential function chart

What Is a Sequential Function Chart?

A sequential function chart is a graphical PLC language from IEC 61131 3 that describes a process as a series of steps connected by transitions, with actions executed while each step is active. It sits beside the other PLC programming languages and is based on the French GRAFCET method.

Control.com explains that a transition must separate any two steps, and a step must separate any two transitions. This strict alternation keeps sequences unambiguous.

Parallel branches in a step chart shown next to equivalent ladder logic
Image credit: Control.com

Only active steps run their actions, so the controller does less work each scan. The overall behaviour is a classic sequential system, where the next state depends on the present one.

The initial step, drawn with a double box, becomes active at start up. Every other step waits for its incoming transition to be true.

Building Blocks

Step

A box representing one stage of the process.

Best for: fill, heat, mix, drain
State
Transition

A bar with a Boolean condition to move on.

Best for: level reached, timer done
Condition
Action

Code attached to a step, with a qualifier.

Best for: open valve, start motor
Output
Branch

Split into parallel or alternative paths.

Best for: simultaneous or selected operations
Flow

Action code is usually written in ladder or structured text inside the step. Qualifiers decide how long an action lasts.

QualifierMeaningTypical Use
NNon stored, active while the step is activeRun a pump during fill
SSet, stays on after the step endsLatch an alarm
RReset a stored actionClear the latch
PPulse for one scanIncrement a counter
LTime limitedPulse a valve for 5 s
DTime delayedStart after a delay

Parallel and Selective Branches

Selective SplitOnly one path whose condition is true
Path A or BDifferent recipes or products
Parallel SplitAll paths start together
Simultaneous WorkHeating and stirring at once
ConvergeDouble bar waits for all paths

Control.com describes parallel branches as simultaneous paths and selective branches as alternatives, each with its own transition. A parallel branch always closes with a double line that waits for every path to finish.

Selective branches are ideal for recipe choices in ISA 88 batch control. Parallel branches suit machines where two axes move at the same time.

6 Smart Sequential Function Chart Rules

1
Name Every Step
Use process names such as Fill or Heat.
2
Keep Transitions Simple
One clear condition, or a named Boolean.
3
Add Step Timers
Alarm if a step lasts too long.
4
Plan Abort Paths
Define safe shutdown from every step.
5
Separate Interlocks
Keep safety interlocks outside the chart.
6
Limit Chart Size
Use sub charts for complex machines.

Step supervision timers are simple TON timers compared with a maximum expected time. They point operators straight to the stuck condition.

Emergency stops and permissives must never depend on the active step. Handle faults with the methods in PLC fault handling.

Cycle Time Formula

Cycle time = Σ step times + Σ transition delays
Cycles per hour = 3600 ÷ Cycle time

Example, four step washing sequence:
Fill 40 s, Wash 120 s, Drain 30 s, Spin 60 s
Transition delays ≈ 10 s in total
Cycle = 260 s, about 13.8 cycles per hour

Parallel branches take the time of their slowest path, not the sum. Moving slow operations into parallel paths is a quick way to raise throughput.

Record real step times from the controller to find the true bottleneck.

Cycle Time Calculator

Four Step Sequence
Result
Cycle 260 s, 13.8 cycles per hour

Try halving the wash time to see the gain. Then check whether quality still meets specification.

Advantages
  • Sequence is visible at a glance.
  • Easy to find the stuck step.
  • Only active steps are scanned.
  • Natural fit for batch recipes.
Limitations
  • Not ideal for continuous control.
  • Large charts become cluttered.
  • Vendor support varies.
  • Needs discipline with abort logic.

Continuous loops stay in function blocks, as in DCS control strategies. The chart then calls those loops by changing their modes or set points.

B and R SFC Training PDF

PDF
SFC Training Module TM242
B and R training material hosted on a university course page

SFC for Beginners Video

Sequential Function Chart FAQ

What is a sequential function chart?
It is the IEC 61131 3 graphical language for sequences, built from steps, transitions and actions. It shows the order of a process in a flowchart style.
What is the initial step?
It is the double boxed step that becomes active when the controller starts. Every sequence has exactly one initial step to define its starting state.
What is the difference between parallel and selective branches?
Parallel branches run all paths at the same time and join with a double bar. Selective branches run only the path whose transition condition becomes true first.
What does the N qualifier mean?
N means non stored, so the action runs only while the step is active. When the step ends, the action output turns off automatically.
Where should safety interlocks go?
They belong outside the chart in dedicated logic that runs every scan. That way a stuck or skipped step can never disable an emergency stop.
How do I find a stuck step?
Add a supervision timer to each step and alarm when it runs too long. The alarm then names the step and the transition it is waiting for.
Is SFC good for continuous control?
Not really, because PID loops are better handled in function blocks. The chart can still switch loop modes and set points at each step.

Related Articles

External References

What We Learn Today

  • A sequential function chart shows steps, transitions and actions visually.
  • Parallel and selective branches model simultaneous and alternative paths.
  • Step timers and separate interlocks keep sequences safe and easy to debug.
I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!

Leave a Reply

Your email address will not be published. Required fields are marked *