Professional Documents
Culture Documents
Home Products Tutorial Directory Glossary Contrib: Tools For PLC Programming
Home Products Tutorial Directory Glossary Contrib: Tools For PLC Programming
com/sequential_function_charts_all
Search
Recent Posts
Home Products Tutorial Directory Glossary Contrib
Ads by Google
PLC Software
Ladder Diagram
PLC SCADA Training
PLC Simulator Implementing Sequential Function Chart Designs using Ladder Diagram
Programming Language for Programmable Logic Controllers
PLC Programming
Handbooks by James McWhinnie
Allen Bradley Napier University, Edinburgh, Scotland.
Siemens
Modicon
ABSTRACT
1.0 Introduction
IEC 61850 / IEC61131-3
Tools, development and Many systems have sequential operation requirements and Sequential
products for substation
Function Charts (SFC’s) have become a popular method of accurately
automation system
www.copalp.com specifying sequential control requirements. SFC’s have many advantages for
software development both in the design stage as well as the
Programmable implementation and testing, maintaining and fault finding stages.
Automation
Design Stage
Compact IO. Ethernet
interface. Programmable Detailed clear graphical specification
Automation Controller Non software people can specify / verify
www.mksinst.com
Implementation
Straight forward conversion from specification to code
Structured testing / debugging
Maintenance of Software
Readily understood by engineer modifying software
Machine Maintenance
Allows quick accurate fault diagnosis
Automation Geeks After a brief introduction of SFC’s to the reader, this paper will show how to
implement the charts using Ladder Diagram (LD) programming language.
Then will go on to discuss how fault diagnosis and predictive fault diagnosis
can be achieved.
This section will briefly explain the SFC and demonstrate how it can be used
to specify control requirements by an example. Then a method of
Popular Articles
PLC Timeline implementing SFC designs will be outlined and demonstrated.
Rockwell Automation's Sequential Function Charts break a sequential task down into Steps,
Retroincabulator!
Transitions and Actions. These are drawn graphically to describe a sequence
PLC Basics
PLC Simulators of interactions, as shown in Fig 1 below. Convention states that flow through
Cheap PLCs an SFC is from top to bottom unless indicated by an arrow.
Navigation
Book reviews
Online books
Recent posts
About
RSS
Feed Me! Firefox and
PLCdev
User login
Username: *
Figure 1: Sequential Function Chart Example
Password: * The sequence is broken down into steps (or states) where actions are carried
out. The transition conditions define logical conditions that cause the process
Log in to move from the existing step to the next step. Actions contain three fields
Create new account as shown in Fig2.
Request new password
Figure 2: Actions
An Action consists of a qualifier which defines what type of action e.g. S for
set, R for reset and N for continuous while in step. A description of the action
or tag name and finally the address acted on. As the design progresses more
detail can be added as shown Fig 3. This detail would include memory (%M),
input (%I) and output (%Q) address information.
2.1 Implementation
It is important when designing software for a PLC that the designer is aware
of the operation of the ‘scan’. The PLC scan typically consists of the following
sequential operations: Reads in the states of external devices into an area of
memory designated input (I) memory. Evaluates user programme writing
output results to memory (M) and output memory (Q). The output memory
is then used to drive the real physical outputs, Fig 4.
When implementing SFC’s using Ladder Diagram (LD) the step and transition
logic can be treated separately from the action logic. The Ladder Diagram
logic for a typical step is shown in Fig 5.
Each step can be entered from at least one step. If it can be entered from
more than one step then all possible previous steps must be reset.
Once the Step/Transition logic has been completed then the actions can
written. In a simple system outputs can be driven directly from the states as
shown in Fig 6.
To illustrate the use of SFC and how they may be implemented let us
consider a simple example.
The sequence does not operate until the switch is closed again i.e. it
operates every time the switch is closed and if piston A is in its home
position.
Taking the written description, a SFC can be drawn. As the inputs and
outputs have been assigned detailed memory information can be included, as
shown in Fig 8.
From this the Step/Transition code can be written as shown in Fig 9. Note
the Step logic is entered in reverse order to ensure that a sequence is
entered for at least one PLC scan (ref.).
Step 1 Contains additional logic, the “InitSeq”, a one shot (is true for first
scan) signal is used to place the system into step 1 when the PLC is first
switched on or moved from stop to run and the Emergency Stop input is
used to drive the system into step 1 which in this case is considered to be
the safe state. Note also that all other states are reset, this is necessary as
for example an Emergency Stop could happen in any step.
Next is the software to drive the outputs. This is relatively simple as shown
in fig 9.
The use of SFC’s has advantages when testing and commissioning control
system software. One of the features of Programmable Logic Controller
programming systems is the ability to monitor programmes and variables
online. This allows the engineer to monitor the step progress by viewing the
appropriate memory bits. If the machine stops the current step can be easily
identified and by viewing its logic network, it is a staright forward task to
identify which transition conditions are not being met. This can then identify
the areas requiring investigation.
reply
reply
reply
reply
reply
reply
reply
reply
reply
reply
reply
reply
SFC
reply
reply
Home