Download Sequential Function Charts-Digital Logic Design And Programming-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!
Sequential Function Charts(SFC) Also,^ like^ in Grafcet, SFC canbe^ programmedto directly relateto^ timing^ or event diagrams.
Sequential Function Charts(SFC)^ ^ From the timing diagram
if the condition Part_Present_LS is satisfied (the limit switch closes), the Advance_Solenoid outputwill turn ON. Once^ the^ Part_In_Position_LS
variable^ is^ ON,^
the Clamp_Solenoid output will turn ON. Then,^ when^ the^ At_Depth_LS
condition^ becomes^ TRUE,
the Drill_Motor output will turn ON for 10 seconds. Note: The Clamp_Solenoid output is also activated during theDrill_Motor action. Once the time expires, the timing diagram indicates that theClamp_Solenoid and Drill_Motor outputs will both turn OFF andstay OFF, while the Return_Solenoid output turns ON. No further action will occur until the At_Top_LS command issatisfied,^ at^ which^ time,
the^ process^ will^ stop^
and^ the Return_Solenoid output will reset for another sequence.
Sequential Function Charts(SFC)^ ^ The^ major^ difference
between^ Grafcet^
and
SFC^ is^ that^ Grafcet
employs^ only^ written
action^ statements,
such^ as^ Open_Variable
(e.g.,^ Open_Valve)
to^ implement^ its
action
blocks and turn devices ON and OFF. SFC, on the other hand, implements actionsin a number of ways using LD, IL, ST, andFBD^ or^ a^ combination
of^ these^ languages,
including custom function blocks.
Sequential Function Charts(SFC)^ ^ Sequential^ function
charts^ can^ be^ thought
of^ as building-block^ objects
used^ to^ create^ the
“total” control program, or the big picture, while the otherlanguages^ are^ used
to^ implement^ detailed programming within the SFC. In fact, SFCs can have what are known in Grafcetterms^ as^ macrosteps,
which^ allow^ one^
master sequential^ function^ chart
to^ have^ other^ sequential function charts as its actions. These smaller, embedded sequential function charts,which have their own steps, transitions, and actions,are similar to subroutines in a program.
Sequential Function Charts(SFC)^ ^ One^ of^ the^ greatest
advantages^ of^ sequential function charts is that they are easier to troubleshootthan standard ladder diagram programs. For example, in the sequential function chart shownearlier if the action Clamp_Solenoid (solenoid ON) atstep 3 does not make the transition to step 4, it iseasy to recognize that a problem occurred at thetransition^ after^ step^
3,^ which^ corresponds
to^ the activation of the At_Depth_LS transition. Thus, an SFC pinpoints the step or transition where afault occurs.
EN 61131-3 (IEC 61131-3)Structuring Resources^ ^ Standard^ for^ the^
programming^ of^ not
just^ one individual^ PLC,^ but^
primarily^ also^ of^ complex automation systems. Control programs for extensive applications must beclearly^ structured^ in
order^ to^ be^ intelligible, maintainable and possibly portable, i.e. transferableto another PLC system. Definitions^ are^ required
not^ only^ for^ elementary language^ commands,
but^ also^ for^ the^
language elements for structuring. Structuring resources relate to the control programsand the configuration of the automation system.
Structuring Resources AtProgram Level^ ^ The structuring resources – program, function block andfunction – contain the actual control logic (rules) of the controlprogram.^ ^ Also known as program organization units.^ ^ Available for any programming language.^ ^ Used for the modularization of control programs and the userprogram – concerns primarily programs and function blocks – oralso supplied by the manufacturer – as far as programs,function blocks are concerned.^ ^ EN 61131-3 (IEC 61131-3) defines a comprehensive set ofstandardised functions and function block.^ ^ Can be expanded by own user functions and function block forspecial or continually recurring tasks.
Structuring Resources AtProgram Level^ ^ Software modules, which can be used in any way,are entered in libraries, where they are madeavailable.^ ^ Programs represent the outer program organizationshell and can be differentiated from the functionblock mainly by the fact that they cannot be invokedby any other program organization unit.^ ^ The sequential function chart represents anotherresource for structuring at program level. Thecontents of the actual programs and function blockcan again be clearly and intelligibly represented bymeans of a sequential function chart.
EN 61131-3 (IEC 61131-3)contd.^ ^ Provides defined and standardized interfacesfor the exchange of data within aconfiguration.^ ^ If specific information such as a readvariable, is required in different programorganization units, this variable is designatedas a global variable.^ ^ Data can then be exchanged via a variabledesignated as such.^ ^ Global variables can only be accessed inprograms and function blocks.
EN 61131-3 (IEC 61131-3)contd.^ ^ What is of interest for networked systems iscommunication beyond a configuration.^ ^ Special standard communication function blocks areavailable to the user for this.^ ^ Defined in EN 61131-5 (IEC 61131-5) and are used inEN 61131-3 (IEC 61131-3).^ ^ Another possibility is the definition of access paths(language resource ACCESS_PATH) to specificvariables.^ ^ These can then also be read or written from otherpositions.