EEC3420 Industrial Control 
Department of Electrical Engineering 
│ Lecture 6 │ 
SFC based Process Control Design 
© Vocational Training Council, Hong Kong. Week 1
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
2 
Learning Objectives 
 Know the background of Sequential Function Chart 
(SFC) 
 Understand the operation of SFC 
 Process design using SFC
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
• a special high-level language to describe control 
sequences in graphical schedules 
• at the late 70s the first function chart program 
Grafcet was developed in France 
• the base for the definition of the international 
standard IEC 848 (“Preparation of function charts for 
control systems”) 
• used to structure the internal organization in a 
control program 
• written in a language that is defined to perform 
sequential control functions 
© Vocational Training Council, Hong Kong. Week 
3
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
SFC describes the control sequences with 
predefined rules for: 
• Controls that have to be executed and in 
which order they shall be done. 
• Execution details for each instruction 
© Vocational Training Council, Hong Kong. Week 
4
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
The SFC can be divided into two parts, the 
“sequence“ part and the “object” or “control” 
part. 
In the “sequence” part the order between the 
control steps is described and in the “object” or 
control” part is the internal actions that shall be 
executed. 
© Vocational Training Council, Hong Kong. Week 
5
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
According to IEC 611131-3 (1998-11-18) page 
86 the SFC elements give a division of the 
control program in a number of steps and 
transitions connected to each other by directed 
links. 
To every step there is one or several actions 
and to each transition there is a condition 
connected. 
© Vocational Training Council, Hong Kong. Week 
6
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Step: 
The program behavior in a step follows a 
number of rules defined by the associated 
actions that is connected to the step. The step 
can be either active or inactive. At any given 
moment, its active steps, the internal and the 
output variable values define the state of the 
control program. 
© Vocational Training Council, Hong Kong. Week 
7
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Step: 
Graphically a block that contains a step-name 
represents the steps. A vertical line attached to 
the top of the step represents the directed link 
to the step. A vertical line connected 
graphically represents the link from the step to 
the bottom of the step 
© Vocational Training Council, Hong Kong. Week 
8
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Step: 
The step that is “active” is the step that is 
currently executed. To indicate if a step is 
active or inactive, there is a step flag. The step 
flag is represented by a Boolean, the value of 
the step flag is one if the step is active and 
zero if the step is inactive. 
© Vocational Training Council, Hong Kong. Week 
9
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Step: 
The time that is spent in a step is saved as the 
variable “step elapsed time” it keeps it value 
when a step is inactivated. The value on “step 
elapsed time” is reset when a step is activated. 
© Vocational Training Council, Hong Kong. Week 
10
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Step: 
The control program must have an initial state, 
in this state the internal and output variables 
have their initial values and the control 
program stand in its initial step. The initial step 
is the step that is initially active and there shall 
be exactly one initial step. The initial step is 
represented graphically by a step with double 
lines for boarder. 
© Vocational Training Council, Hong Kong. Week 
11
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Step: 
The number of steps per SFC and the 
accuracy for the “step elapsed time” is 
dependent on the implementation. 
© Vocational Training Council, Hong Kong. Week 
12
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Transitions: 
There are transitions between every step 
Thanks to the transition the program can pass 
from one or more preceding steps to one or 
more successor steps. When the program 
passes a transition the successor step(s) 
becomes active and the preceding step 
becomes inactive. The transition is made along 
the vertical directed link. 
© Vocational Training Council, Hong Kong. Week 
13
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Transitions: 
To each transition there are associated steps, 
which is called transition conditions. The 
transition condition shall result in an evolution 
of a simple Boolean expression. Sometimes 
the user wants the transition condition to 
always be true, and then the symbol 1 or the 
keyword true shall represent it. 
© Vocational Training Council, Hong Kong. Week 
14
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Actions: 
Every action is associated with a step. The 
step can have none or several actions 
associated. If there is no associated action to 
the step, it will be considered as a WAIT 
function. 
© Vocational Training Council, Hong Kong. Week 
15
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Actions: 
The WAIT function is a function that is waiting 
for the successor transition to be true. An 
action can be described in several ways, for 
example with a ladder-diagram, logical circuits 
or with Boolean expressions. 
© Vocational Training Council, Hong Kong. Week 
16
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Action blocks: 
This is a graphical element for the combination 
of a Boolean variable with one of the action 
qualifiers to produce an enabling condition. The 
action block contributes with a kind of Boolean 
indicator variable; it can be set by a specific 
action to indicate its completion, time-out, error 
conditions, etc. 
© Vocational Training Council, Hong Kong. Week 
17
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Action blocks: 
The graphical concatenated action blocks can 
have multiple indicator variables, but just one 
common Boolean input variable, it shall act 
simultaneous for all the concatenated blocks. 
© Vocational Training Council, Hong Kong. Week 
18
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Action qualifier: 
Each step/action association shall have an 
associated action qualifier. The action qualifier 
can have the following values according to IEC 
61131-3 (1998-11-18) page 97. 
© Vocational Training Council, Hong Kong. Week 
19
EEE3420 Industrial Control 
Introduction to Sequential Function 
Chart 
Action qualifier: 
© Vocational Training Council, Hong Kong. Week 
20
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
21 
Representation of a sequential 
process by SFC 
Basic 
component 
symbols used in 
the SFC 
(IEC 6113-3)
EEE3420 Industrial Control 
Basic structures of SFC 
The SFC syntax can handle much more than 
just an iterative execution of the same control 
instructions. 
The initial step, step(s) and transitions can be 
connected in several ways, which makes it 
possible to describe many complicated 
functions. 
© Vocational Training Council, Hong Kong. Week 
22
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
23 
Basic structures of SFC 
Simple sequence, 
this is just a step 
followed by a 
transition or a 
transition followed 
by a step
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
24 
Basic structures of SFC 
Alternative parallel 
sequences consist of 
two or more transition 
succeeding a step, so 
that the execution can 
take alternative ways 
depending on external 
conditions.
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
25 
Basic structures of SFC 
Simultaneous parallel 
sequences, are made 
up of two or more steps 
placed parallel after a 
transition. The parallel 
steps can be 
simultaneously active.
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
© Vocational Training Council, Hong Kong. Week 
26 
Simple 
Sequence
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Simple Sequence : 
The Boolean equations for X2 and X3 are: 
X2 = ( X1•a + X2 )•/X3 
X3 = ( X2 •b + X3 ) •/X4 
Here X2 is an active step. When X2 is active, the actions 
Y1 and Y2 are asserted. When X2 is inactive, the 
execution of Y1 and Y2 will stop. 
© Vocational Training Council, Hong Kong. Week 
27
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
© Vocational Training Council, Hong Kong. Week 
28 
Alternative 
parallel 
sequence
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Alternative parallel sequence : 
The Boolean equations for X2, X3, X4 and X5 are: 
X2 = ( X1•a + X2 ) • /X3 • /X4 
X3 = ( X2•b + X3 )•/X5 ‘alternate parallel branch 
X4 = ( X2•c + X4 )•/X5 
X5 = ( X3•d + X4•e + X5 )•/X6 
There are two conditions entering step X5. 
© Vocational Training Council, Hong Kong. Week 
29
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
© Vocational Training Council, Hong Kong. Week 
30 
Simultaneous 
parallel 
sequence
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Simultaneous parallel sequence : 
The Boolean equations for X2, X3, X4, X5, X6, X7 and 
X8 are: 
X2 = ( X1 • a + X2 ) • /X3 
X3 = ( X2 • b + X3 ) • /X4 
X5 = ( X2 • b + X5 ) • /X6 
X6 = ( X5 • d + X6 ) • /X7 
X4 = ( X3 • c + X4 ) • /X8 
X7 = ( X6 • e + X7 ) • /X8 
X8 = ( X4 • X7 • f + X8 ) • /X9 
© Vocational Training Council, Hong Kong. Week 
31
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
© Vocational Training Council, Hong Kong. Week 
32 
Branching 
sequence
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Branching sequence : 
The Boolean equations for X2, X3, X4 and X5 are: 
X2 = ( X1 • a + X2 ) • /X3 • /X5 
X3 = ( X2 • b + X3 ) • /X4 
X4 = ( X3 • c + X4 ) • /X5 
X5 = ( X2 • e + X4 • d + X5 ) • /X6 
There are two branches for step X2, it enters the step 
X3 if condition b is asserted and it enters the step X5 
if condition e is asserted. 
© Vocational Training Council, Hong Kong. Week 
33
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
© Vocational Training Council, Hong Kong. Week 
34 
Repeating 
sequence
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Repeating sequence : 
The Boolean equations for X2, X3, X4 and X5 are: 
X2 = ( X1 • a + X4 • e + X2 ) • /X3 
X3 = ( X2 • b + X3 ) • /X4 
X4 = ( X3 • c + X4 ) • /X5 • /X2 
X5 = ( X4 • d + X5 ) • /X6 
© Vocational Training Council, Hong Kong. Week 
35
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
© Vocational Training Council, Hong Kong. Week 
36 
Initial step
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Initial step : 
To enter into Step 0, either a “First Scan” input signal or 
nand logic of all the rest of the steps can be used. So the 
Boolean equation for Step 0 is: 
Step0 = ( FirstScan + Step0 ) • /Step1 
or if the nand logic of all the rest of the steps is used, then 
Step0 = ( /Step1 • /Step2 • /Step3 + Step0 ) • /Step1 
© Vocational Training Council, Hong Kong. Week 
37
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
© Vocational Training Council, Hong Kong. Week 
38 
Inserting 
blank step
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Inserting blank step : 
The looping in the SFC on the left cannot be implemented 
as it is impossible for Setp2 to serve as the setup point and 
the exit point for Step1 at the same time. So a blank step 
Step3 is inserted to implement the required looping. 
© Vocational Training Council, Hong Kong. Week 
39
EEE3420 Industrial Control 
Implementation of SFQ by basic 
ladder building block 
Inserting blank step : 
The Boolean equation for Step1, Step2 and Step3 are as 
follows: 
Step1 = ( Step3 • 1 + Step1 ) • /Step2 
Step2 = ( Step1 • LS1 + Step2 ) • /Step3 
Step3 = ( Step2 • LS2 + Step3 ) • /Step1 
© Vocational Training Council, Hong Kong. Week 
40
EEE3420 Industrial Control 
Example of process control by using 
SFC 
Design the logic to move a lift between 3 floors, and 
the control functions as follows: 
– The lift has for each floor one button which, if 
pressed, causes the lift to visit (i.e. move to and 
stop at) that floor. 
– Each floor has a button to request an up-lift or a 
down-lift. They are cancelled when a lift visits the 
floor. 
– A lift without requests should remain in its final 
destination and await further requests. 
© Vocational Training Council, Hong Kong. Week 
41
EEE3420 Industrial Control 
Example of process control by using 
SFC 
© Vocational Training Council, Hong Kong. Week 
42 
There are six cases: 
1. Consider first at 
the 3rd floor called 
by the 1st floor.
EEE3420 Industrial Control 
Example of process control by using 
SFC 
© Vocational Training Council, Hong Kong. Week 
43 
2. Next consider the 
case of the lift at 
the 1st floor called 
by the 3rd floor
EEE3420 Industrial Control 
Example of process control by using 
SFC 
© Vocational Training Council, Hong Kong. Week 
44 
3. Then consider 
the case of the lift 
at the 3rd floor 
called by the 2nd 
floor
EEE3420 Industrial Control 
Example of process control by using 
SFC 
© Vocational Training Council, Hong Kong. Week 
45 
4. Then consider 
the case of the lift 
at the 1st floor 
called by the 2nd 
floor.
EEE3420 Industrial Control 
Example of process control by using 
SFC 
© Vocational Training Council, Hong Kong. Week 
46 
5. Then consider 
the case of the lift 
at the 2nd floor 
called by the 1st 
floor.
EEE3420 Industrial Control 
Example of process control by using 
SFC 
© Vocational Training Council, Hong Kong. Week 
47 
6. Finally consider 
the case of the 
Lift at the 2nd floor 
called by the 3rd 
floor.
EEE3420 Industrial Control 
© Vocational Training Council, Hong Kong. Week 
48 
Summary 
 SFCs are suited to processes with 
single/parallel flow of execution 
 SFCs are suited to processes with clear 
sequence of operation 
 SFC may be implemented by using block 
logic 
 SFC may also be implemented using 
sequence bits
EEE3420 Industrial Control 
SFC based Process Control Design 
© Vocational Training Council, Hong Kong. Week 
49 
End of Lecture 6 
 Revision 
The IEC 61131-3 Programming Language 
Specification

Eee3420 lecture06 rev2011

  • 1.
    EEC3420 Industrial Control Department of Electrical Engineering │ Lecture 6 │ SFC based Process Control Design © Vocational Training Council, Hong Kong. Week 1
  • 2.
    EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 2 Learning Objectives  Know the background of Sequential Function Chart (SFC)  Understand the operation of SFC  Process design using SFC
  • 3.
    EEE3420 Industrial Control Introduction to Sequential Function Chart • a special high-level language to describe control sequences in graphical schedules • at the late 70s the first function chart program Grafcet was developed in France • the base for the definition of the international standard IEC 848 (“Preparation of function charts for control systems”) • used to structure the internal organization in a control program • written in a language that is defined to perform sequential control functions © Vocational Training Council, Hong Kong. Week 3
  • 4.
    EEE3420 Industrial Control Introduction to Sequential Function Chart SFC describes the control sequences with predefined rules for: • Controls that have to be executed and in which order they shall be done. • Execution details for each instruction © Vocational Training Council, Hong Kong. Week 4
  • 5.
    EEE3420 Industrial Control Introduction to Sequential Function Chart The SFC can be divided into two parts, the “sequence“ part and the “object” or “control” part. In the “sequence” part the order between the control steps is described and in the “object” or control” part is the internal actions that shall be executed. © Vocational Training Council, Hong Kong. Week 5
  • 6.
    EEE3420 Industrial Control Introduction to Sequential Function Chart According to IEC 611131-3 (1998-11-18) page 86 the SFC elements give a division of the control program in a number of steps and transitions connected to each other by directed links. To every step there is one or several actions and to each transition there is a condition connected. © Vocational Training Council, Hong Kong. Week 6
  • 7.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Step: The program behavior in a step follows a number of rules defined by the associated actions that is connected to the step. The step can be either active or inactive. At any given moment, its active steps, the internal and the output variable values define the state of the control program. © Vocational Training Council, Hong Kong. Week 7
  • 8.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Step: Graphically a block that contains a step-name represents the steps. A vertical line attached to the top of the step represents the directed link to the step. A vertical line connected graphically represents the link from the step to the bottom of the step © Vocational Training Council, Hong Kong. Week 8
  • 9.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Step: The step that is “active” is the step that is currently executed. To indicate if a step is active or inactive, there is a step flag. The step flag is represented by a Boolean, the value of the step flag is one if the step is active and zero if the step is inactive. © Vocational Training Council, Hong Kong. Week 9
  • 10.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Step: The time that is spent in a step is saved as the variable “step elapsed time” it keeps it value when a step is inactivated. The value on “step elapsed time” is reset when a step is activated. © Vocational Training Council, Hong Kong. Week 10
  • 11.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Step: The control program must have an initial state, in this state the internal and output variables have their initial values and the control program stand in its initial step. The initial step is the step that is initially active and there shall be exactly one initial step. The initial step is represented graphically by a step with double lines for boarder. © Vocational Training Council, Hong Kong. Week 11
  • 12.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Step: The number of steps per SFC and the accuracy for the “step elapsed time” is dependent on the implementation. © Vocational Training Council, Hong Kong. Week 12
  • 13.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Transitions: There are transitions between every step Thanks to the transition the program can pass from one or more preceding steps to one or more successor steps. When the program passes a transition the successor step(s) becomes active and the preceding step becomes inactive. The transition is made along the vertical directed link. © Vocational Training Council, Hong Kong. Week 13
  • 14.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Transitions: To each transition there are associated steps, which is called transition conditions. The transition condition shall result in an evolution of a simple Boolean expression. Sometimes the user wants the transition condition to always be true, and then the symbol 1 or the keyword true shall represent it. © Vocational Training Council, Hong Kong. Week 14
  • 15.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Actions: Every action is associated with a step. The step can have none or several actions associated. If there is no associated action to the step, it will be considered as a WAIT function. © Vocational Training Council, Hong Kong. Week 15
  • 16.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Actions: The WAIT function is a function that is waiting for the successor transition to be true. An action can be described in several ways, for example with a ladder-diagram, logical circuits or with Boolean expressions. © Vocational Training Council, Hong Kong. Week 16
  • 17.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Action blocks: This is a graphical element for the combination of a Boolean variable with one of the action qualifiers to produce an enabling condition. The action block contributes with a kind of Boolean indicator variable; it can be set by a specific action to indicate its completion, time-out, error conditions, etc. © Vocational Training Council, Hong Kong. Week 17
  • 18.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Action blocks: The graphical concatenated action blocks can have multiple indicator variables, but just one common Boolean input variable, it shall act simultaneous for all the concatenated blocks. © Vocational Training Council, Hong Kong. Week 18
  • 19.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Action qualifier: Each step/action association shall have an associated action qualifier. The action qualifier can have the following values according to IEC 61131-3 (1998-11-18) page 97. © Vocational Training Council, Hong Kong. Week 19
  • 20.
    EEE3420 Industrial Control Introduction to Sequential Function Chart Action qualifier: © Vocational Training Council, Hong Kong. Week 20
  • 21.
    EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 21 Representation of a sequential process by SFC Basic component symbols used in the SFC (IEC 6113-3)
  • 22.
    EEE3420 Industrial Control Basic structures of SFC The SFC syntax can handle much more than just an iterative execution of the same control instructions. The initial step, step(s) and transitions can be connected in several ways, which makes it possible to describe many complicated functions. © Vocational Training Council, Hong Kong. Week 22
  • 23.
    EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 23 Basic structures of SFC Simple sequence, this is just a step followed by a transition or a transition followed by a step
  • 24.
    EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 24 Basic structures of SFC Alternative parallel sequences consist of two or more transition succeeding a step, so that the execution can take alternative ways depending on external conditions.
  • 25.
    EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 25 Basic structures of SFC Simultaneous parallel sequences, are made up of two or more steps placed parallel after a transition. The parallel steps can be simultaneously active.
  • 26.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block © Vocational Training Council, Hong Kong. Week 26 Simple Sequence
  • 27.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Simple Sequence : The Boolean equations for X2 and X3 are: X2 = ( X1•a + X2 )•/X3 X3 = ( X2 •b + X3 ) •/X4 Here X2 is an active step. When X2 is active, the actions Y1 and Y2 are asserted. When X2 is inactive, the execution of Y1 and Y2 will stop. © Vocational Training Council, Hong Kong. Week 27
  • 28.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block © Vocational Training Council, Hong Kong. Week 28 Alternative parallel sequence
  • 29.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Alternative parallel sequence : The Boolean equations for X2, X3, X4 and X5 are: X2 = ( X1•a + X2 ) • /X3 • /X4 X3 = ( X2•b + X3 )•/X5 ‘alternate parallel branch X4 = ( X2•c + X4 )•/X5 X5 = ( X3•d + X4•e + X5 )•/X6 There are two conditions entering step X5. © Vocational Training Council, Hong Kong. Week 29
  • 30.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block © Vocational Training Council, Hong Kong. Week 30 Simultaneous parallel sequence
  • 31.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Simultaneous parallel sequence : The Boolean equations for X2, X3, X4, X5, X6, X7 and X8 are: X2 = ( X1 • a + X2 ) • /X3 X3 = ( X2 • b + X3 ) • /X4 X5 = ( X2 • b + X5 ) • /X6 X6 = ( X5 • d + X6 ) • /X7 X4 = ( X3 • c + X4 ) • /X8 X7 = ( X6 • e + X7 ) • /X8 X8 = ( X4 • X7 • f + X8 ) • /X9 © Vocational Training Council, Hong Kong. Week 31
  • 32.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block © Vocational Training Council, Hong Kong. Week 32 Branching sequence
  • 33.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Branching sequence : The Boolean equations for X2, X3, X4 and X5 are: X2 = ( X1 • a + X2 ) • /X3 • /X5 X3 = ( X2 • b + X3 ) • /X4 X4 = ( X3 • c + X4 ) • /X5 X5 = ( X2 • e + X4 • d + X5 ) • /X6 There are two branches for step X2, it enters the step X3 if condition b is asserted and it enters the step X5 if condition e is asserted. © Vocational Training Council, Hong Kong. Week 33
  • 34.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block © Vocational Training Council, Hong Kong. Week 34 Repeating sequence
  • 35.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Repeating sequence : The Boolean equations for X2, X3, X4 and X5 are: X2 = ( X1 • a + X4 • e + X2 ) • /X3 X3 = ( X2 • b + X3 ) • /X4 X4 = ( X3 • c + X4 ) • /X5 • /X2 X5 = ( X4 • d + X5 ) • /X6 © Vocational Training Council, Hong Kong. Week 35
  • 36.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block © Vocational Training Council, Hong Kong. Week 36 Initial step
  • 37.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Initial step : To enter into Step 0, either a “First Scan” input signal or nand logic of all the rest of the steps can be used. So the Boolean equation for Step 0 is: Step0 = ( FirstScan + Step0 ) • /Step1 or if the nand logic of all the rest of the steps is used, then Step0 = ( /Step1 • /Step2 • /Step3 + Step0 ) • /Step1 © Vocational Training Council, Hong Kong. Week 37
  • 38.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block © Vocational Training Council, Hong Kong. Week 38 Inserting blank step
  • 39.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Inserting blank step : The looping in the SFC on the left cannot be implemented as it is impossible for Setp2 to serve as the setup point and the exit point for Step1 at the same time. So a blank step Step3 is inserted to implement the required looping. © Vocational Training Council, Hong Kong. Week 39
  • 40.
    EEE3420 Industrial Control Implementation of SFQ by basic ladder building block Inserting blank step : The Boolean equation for Step1, Step2 and Step3 are as follows: Step1 = ( Step3 • 1 + Step1 ) • /Step2 Step2 = ( Step1 • LS1 + Step2 ) • /Step3 Step3 = ( Step2 • LS2 + Step3 ) • /Step1 © Vocational Training Council, Hong Kong. Week 40
  • 41.
    EEE3420 Industrial Control Example of process control by using SFC Design the logic to move a lift between 3 floors, and the control functions as follows: – The lift has for each floor one button which, if pressed, causes the lift to visit (i.e. move to and stop at) that floor. – Each floor has a button to request an up-lift or a down-lift. They are cancelled when a lift visits the floor. – A lift without requests should remain in its final destination and await further requests. © Vocational Training Council, Hong Kong. Week 41
  • 42.
    EEE3420 Industrial Control Example of process control by using SFC © Vocational Training Council, Hong Kong. Week 42 There are six cases: 1. Consider first at the 3rd floor called by the 1st floor.
  • 43.
    EEE3420 Industrial Control Example of process control by using SFC © Vocational Training Council, Hong Kong. Week 43 2. Next consider the case of the lift at the 1st floor called by the 3rd floor
  • 44.
    EEE3420 Industrial Control Example of process control by using SFC © Vocational Training Council, Hong Kong. Week 44 3. Then consider the case of the lift at the 3rd floor called by the 2nd floor
  • 45.
    EEE3420 Industrial Control Example of process control by using SFC © Vocational Training Council, Hong Kong. Week 45 4. Then consider the case of the lift at the 1st floor called by the 2nd floor.
  • 46.
    EEE3420 Industrial Control Example of process control by using SFC © Vocational Training Council, Hong Kong. Week 46 5. Then consider the case of the lift at the 2nd floor called by the 1st floor.
  • 47.
    EEE3420 Industrial Control Example of process control by using SFC © Vocational Training Council, Hong Kong. Week 47 6. Finally consider the case of the Lift at the 2nd floor called by the 3rd floor.
  • 48.
    EEE3420 Industrial Control © Vocational Training Council, Hong Kong. Week 48 Summary  SFCs are suited to processes with single/parallel flow of execution  SFCs are suited to processes with clear sequence of operation  SFC may be implemented by using block logic  SFC may also be implemented using sequence bits
  • 49.
    EEE3420 Industrial Control SFC based Process Control Design © Vocational Training Council, Hong Kong. Week 49 End of Lecture 6  Revision The IEC 61131-3 Programming Language Specification