Documentos de Académico
Documentos de Profesional
Documentos de Cultura
SequentialFunctionChart(SFC)
&StructuredText(ST)
Languages
This presentation presents the
SFC & ST implementation for the
Logix5000 processor.
Copyright 2002 Rockwell Automation Inc., All Rights Reserved
Available as an add-on option for RSLogix 5000 Standard or mini, and included with
RSLogix 5000 Full and Professional
Graphical Free-form drawing / programming environment
Place steps, transitional, simultaneous and select branches and draw connections to
determine execution flow
Position and Organize blocks based on application to improve readability
Floating or linked text boxes provide application documentation (Stored off-line)
SFC
Runtime
Autoscroll
SFC
Editor / Routine
Overview
Quick Access
Property Dialogs
SFC
Routine
SFC
Language
Editor
Step
Description
Embedded
Structured Text
Transitional
SFC
Element
Toolbar
Specific names
with backing
structure tag
Automatic
Name
Generation
Monitor Tag
of on-line
operation
Embedded
Structured
Text Action
Dashed
Cross-reference
Grid
Solid
Report Page
Boundary
Box to indicate
area in view
Move cursor to
Different part
of chart to
change view
Action
SBR/RET
Parameters
Simultaneous
Branch
Initial
Step
Transitional
Select
Branch
Stop
Element
If you want more control software can Prompt for Tag Name when element is
added to SFC chart
Avoids extra step to
create and name tags
Provides more effective
development workflow
Option to automatically
delete tag when element is
removed from chart
Eliminates program
modification steps
Avoids orphaned tags
being left in program
Step Elements
Step
Name
Connection
Points
View Step
Attributes
Backing Tag
Comment
View/Hide
Actions
Edit
State
Structured step tag provide specific names for step configuration and properties
Includes all IEC61131-3 defined attributes and Logix5000 extensions
Directly accessible via an MMI using names stored in the controller
Initial
Step
Step State
Bits
Step
Timer
Execution
Count
Alarms
Display
Options
In-line
Expressions
This step property allows you to specify the location in the chart you
want to being the execution after a restart
Initial
Step
Step Actions
Indicator
Tag
View Action
Attributes
Action
Qualifier
Action
Name
Show/Hide
Actions
Edit
State
Multiple
Actions
per Step
Embedded
Structured
Text Code
Structured Action tag provide specific names for action configuration and properties
Built in Action execution count tracks number of times action is activated - provides
immediate feedback on process execution
Select any tag available in the local program or controller scope areas
Provide run-time data-value updates to assist in debug an maintenance
Datatype SFC_ACTION
Status : DINT;
A : BOOL;
Q : BOOL;
T : DINT;
PRE : DINT;
Count : DINT;
End_Datatype;
Action Qualifiers
Transition Elements
View
Transition
Attributes
Transition
Name
Transition
Force State
Connection
Points
Embedded
Condition
Logic
Enable both
I/O and SFC Forces
together from toolbar
Logic Menu
Provides Control
for Both I/O & SFC
Forced
Transition
Force
Options
Stop Element
SBR Specifies tag(s) to store input parameters for use in the routine
RET Specifies tag(s) you want to return as output parameters
Unlimited number of parameters
Both atomic and compound data types supported
Passed by value
SBR
...
Subroutine
MCR
RET
Return
Status
Simultaneous Branches
Branch
Force
Flexible
Branching
Right Click
to Force
Select Branches
Execution
order
Forced
Transition
Right Click
to Set Order
permits configuration to
closely resemble process
Avoids useless steps placeholders
Flexible
Flexible
Branching
Branching
Default
Left to Right
User
Configured
Directed Link
Source
reference
Destination
reference
Right Click
to Hide
Grid
location
Step Tag
Description
Embedded ST
Action Comment
(Stored Online)
Transition Tag
Description
Embedded ST
Transition Comment
(Stored Online)
Routine Description
Tag Comments
Text Box
Embedded ST
Routine property
dialog and routine tooltip
Routine Property
Dialog
120 Characters
120 Characters
64K Characters
Unlimited
Stored
Off-line
Off-line
Off-line
Import / Export
L5K File
L5K File
L5K File
N/A
Free-floating or
anchored to element
Visibility
Modification
Size
Element
Linkage
SFC Reports
Cross-Reference
Provides a listing of any reference to a tag
Destructive and Non-destructive
Direct and alias references
Location where tag is accessed
LD Rung/Instruction
SFC Element Grid Location
FBD Block Grid Location
ST Line Number
Programmatic Reset
No Reset
Step
Post
Scan
Method
Benefits
No additional programming
required to clear outputs
Works similar to PLCs SFC
Language
Available as an add-on option for RSLogix 5000 Standard or mini, and included with RSLogix
5000 Professional
Fully functional editor
ELSE
< statements>
END_CASE;
REPEAT
<statements>
EXIT
UNTIL <Boolean expression>
END_REPEAT;
ST Instruction Set
Instruction set commonality with Ladder Diagram (LD) and Function Block
Diagram (FBD)
Reduces learning curve
Permits selection of appropriate Language for application
ST Instruction Programming
ST Comments
ST Tag Manipulation
Multiple ways to specify tags in your code
Using a mouse you can navigate
the context menu to the tag browse
tool to select tags
Using the keyboard, Ctrl-Space
provides a tag selection window
with auto-fill / tag lookup
list locates first tag with
matching name
ST On-Line Monitoring
Tag Info
tooltip
Data Values
Tags referenced
In ST Routine
ST Routine Execution
Using FOR, DO UNTIL, and DO WHILE you can perform repetitive loops
Useful for processing arrays or tables
The CPU watchdog timer continues while ST executes, so infinite loops will be trapped
For timers and one-shot instructions external manipulation is required to initialize and
reset
ST Pre-Scan Operation
On power-up the controller performs a pre-scan of each task
to initialize instructions (outputs, non-retentive timers)
Select instructions also perform various operations during pre-scan
Example: ONSR one-shot instruction turns off storage bit...
Off-line programming
ST Programs both downloaded and uploaded (with comments)
Tag values in watch pane update with memory changes
Tooltip provides tag snapshot
Future on-line programming support
LD, FBD, SFC, ST routines can co-exist with other routine types in the
same controller
A routine of any language can
call other SFC, ST, LD or FBD
routines
IEC1131-3 Compliant
languages
Acquiring SFC / ST
The SFC and ST Languages are available in two
forms
Add on option for RSLogix 5000 Mini Edition (9324RLD200ENE) and Standard Edition (9324RLD300ENE)
9324-RLDSFCE Sequential Function Chart Language Option
9324-RLDSTXE Structured Text Language Option
9324-RLDMLPE Multi-Language Pack Option (Includes FBD,
SFC, and STX)
Permits you to purchase just the language(s) you need
Included with RSLogix 5000 Full Edition (9324RLD600ENE) and Professional Edition 9324RLD700NXENE
All languages are included (LD, FBD, SFC, and ST)
Purchase all languages from a single catalog number
Mini Edition
9324-RLD200ENE
Standard Edition
9324-RLD300ENE
Standard/Network
9324-RLD300NXENE
Full Edition
9324-RLD600ENE
Professional Edition
9324-RLD700ENE
Logix5000 Controllers
Supported
CompactLogix53
00 FlexLogix5400
All
All
All
All
Included
Included
Included
Included
Included
Separate Option
Separate Option
Separate Option
Included
Included
Separate Option
Separate Option
Separate Option
Included
Included
Structured Text1, 2
9324-RLDSTXE
Separate Option
Separate Option
Separate Option
Included
Included
PIDE Autoune
9323-ATUNEENE
Separate Option
Separate Option
Separate Option
Separate Option
Separate Option
Lite Included
Lite Included
Lite Included
Lite Included
Pro Included
Separate Option
Separate Option
Included
Separate Option
Included
Separate Option
Included
Included
Included
Included
Separate Option
Separate Option
Separate Option
Included
Included
Ladder Diagram
RSLinx
Functionality / Value
1.
2.
Limited
Able to upload and download without option. Must purchase option to view, edit and print routines in this language
9324-RLDMLPE Multi-Language pack includes FBD, SFC, and STX
Maximum