Programming Manual Logix5000 Controllers Sequential FunctionCharts Catalog Numbers 1756 ControlLogix, 1769 CompactLogix, 1789 SoftLogix, 1794 FlexLogi
Preface These documents contain additional information concerning related Rockwell Automation products. Resource Description Logix5000 Controllers
Chapter 1 Design a sequential function chart A sequential function chart (SFC) is similar to a flowchart of your process. It defines the steps or sta
Chapter 1 Design a sequential function chart A sequential function chart (SFC) is similar to a flowchart. It uses steps and transit
Design a sequential function chart Chapter 1 A selection branch chooses between different execution paths. A text box lets you add descriptive tex
Chapter 1 Design a sequential function chart A stop lets you stop and wait for a command to restart. A wire connects one element to another eleme
Design a sequential function chart Chapter 1 1. Organize your project. These functions Go into this type of task • Configure an
Chapter 1 Design a sequential function chart If Then • The SFC is the only routine in the program • The SFC calls all the other
Design a sequential function chart Chapter 1 • When you first open an SFC routine, it contains an initial step and transition. Us
Chapter 1 Design a sequential function chart If you want to Then select or set this member Data type Details Determine how long a
Design a sequential function chart Chapter 1 If you want to Then select or set this member Data type Details Do something one time when the ste
Important user information Read this document and the documents listed in the additional resources section about installation, configuration, and
Chapter 1 Design a sequential function chart This diagram shows the relationship of the X, FS, SA, and LS bits. Once you define th
Design a sequential function chart Chapter 1 To Use this structure With these considerations Loop back to a previous step Wire
Chapter 1 Design a sequential function chart Example situation Example solution At station 12, the machine drills, taps, and bolt
Design a sequential function chart Chapter 1 • The SFC takes the first TRUE path. • The Logix Designer application lets you chan
Chapter 1 Design a sequential function chart Wire to a previous step You can also connect a step to a previous point in your SFC.
Design a sequential function chart Chapter 1 Use actions to divide a step into the different functions that the step performs, suc
Chapter 1 Design a sequential function chart To program a non-Boolean action, you have these options. If you want to Then • Execu
Design a sequential function chart Chapter 1 Example When the S_Complete_the_Batch step is active, the S_Open_Outlet action exec
Chapter 1 Design a sequential function chart If you want to Then select or set this member Data type Details Determine how many times an action
Design a sequential function chart Chapter 1 Each action (non-Boolean and Boolean) uses a qualifier to determine when it starts a
Summary of changes This manual contains new and updated information. The following table contains the changes made to this revision. Change Topic Up
Chapter 1 Design a sequential function chart The transition is the physical conditions that must occur or change in order to go to
Design a sequential function chart Chapter 1 Example You want to complete these steps. 1. Turn on 2 compressors. When a compress
Chapter 1 Design a sequential function chart If you want to Then Enter the conditions as an expression in structured text. Use
Design a sequential function chart Chapter 1 Call a subroutine. Check for the required conditions. When those conditions are
Chapter 1 Design a sequential function chart Description Step becomes active. X bit turns on. Timer clears and then begins to
Design a sequential function chart Chapter 1 Description Step becomes inactive. X bit turns off. Timer retains its value. Alar
Chapter 1 Design a sequential function chart Programmatic reset Automatic reset Use logic to clear data Let the controller auto
Design a sequential function chart Chapter 1 The following table compares the different options for handling the last scan of a s
Chapter 1 Design a sequential function chart Use the Don’t Scan option The default option for handling the last scan of a step is
Design a sequential function chart Chapter 1 2. Clear the required data using any of these methods. • To your normal logic, add
Chapter 1 Design a sequential function chart When the action is not on its last scan (conveyor_start.Q =1), this statement turns o
Design a sequential function chart Chapter 1 Important: The postscan of an action actually occurs when the action goes from ac
Chapter 1 Design a sequential function chart How do you want to control the device? To provide bumpless control of a device during
Design a sequential function chart Chapter 1 Example A paint operation completes these actions. 1. Transfers the product into th
Chapter 1 Design a sequential function chart When the SFC leaves the step that stores the action, the Logix Designer application co
Design a sequential function chart Chapter 1 In this example, a step turns on a fan and then calls another SFC. The nested SFC se
Chapter 1 Design a sequential function chart • The X bit of the stop element turns on. This signals that the SFC is at the stop el
Design a sequential function chart Chapter 1 Example This example shows the use of the SFC Reset (SFR) instruction to restart th
Chapter 1 Design a sequential function chart One method for organizing your project is to create one SFC that provides a high-level
Design a sequential function chart Chapter 1 Pass parameters To pass parameters to or from an SFC, place a Subroutine/Return eleme
Table of contents Studio 5000 environment...9 Additional reso
Chapter 1 Design a sequential function chart Select the Execute until FALSE transition option only when either of these are true: •
Design a sequential function chart Chapter 1 The following diagram shows the execution of a sequence. This… …executes like th
Chapter 1 Design a sequential function chart The following diagram shows the execution of a simultaneous branch. This… …executes l
Design a sequential function chart Chapter 1 The following diagram shows the execution of a selection branch. This… …executes lik
Chapter 1 Design a sequential function chart The following diagram shows options for execution control. This SFC… …executes li
Chapter 2 Program a sequential function chart To add SFC elements, use the SFC toolbar. Add and manually connect elements 1. On the SFC toolbar, clic
Chapter 2 Program a sequential function chart Important: Use caution when copying and pasting components between different vers
Program a sequential function chart Chapter 2 2. To add a path to the branch, click the first step of the path that is to the left of where you w
Chapter 2 Program a sequential function chart 3. Add the transition that follows the simultaneous branch.4. To wire the simultaneous branch to the
Program a sequential function chart Chapter 2 End a selection branch 1. Select the last transition of each path in the branch. To select the tran
Table of contents End the SFC ... 45 Use
Chapter 2 Program a sequential function chart 2. Clear the Use default priorities check box and select a transition. Use the Move
Program a sequential function chart Chapter 2 Click the lower pin of the transition that signals the jump. Then click the to
Chapter 2 Program a sequential function chart Location to which the wire goes Assign the preset time for a step 1. Click the b
Program a sequential function chart Chapter 2 Use an expression to calculate a time To calculate a time based on tags in your proj
Chapter 2 Program a sequential function chart Enter a BOOL expression The simplest way to program the transition is to enter the con
Program a sequential function chart Chapter 2 Call a subroutine when programming a transition 1. In the SFC, right-click the tran
Chapter 2 Program a sequential function chart 2. In the Action Properties dialog box, on the General tab, select the qualifier for
Program a sequential function chart Chapter 2 Browse for a tag Choose a function Choose an operator Create a tag 4. Enter a n
Chapter 2 Program a sequential function chart 1. Double-click the text area of the action. 2. Type the required structured text.
Program a sequential function chart Chapter 2 5. Click OK. Actions execute in the order in which they appear. When Step_003 is
Table of contents Document an SFC ... 70 Language sw
Chapter 2 Program a sequential function chart You can document these SFC components. To document this And you want to Do this Gene
Program a sequential function chart Chapter 2 • Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL configuration) • Tasks • Pro
Chapter 2 Program a sequential function chart Add a tag description 1. Click the button of the element. 2. In the element Prope
Program a sequential function chart Chapter 2 If you the text box to Then Stay in the same spot Stop. You are done. Move with th
Chapter 2 Program a sequential function chart 2. Select the Never display description in routine check box. 3. Click OK. The SFC
Program a sequential function chart Chapter 2 As you program your routine, periodically verify your work. 1. In the top-most tool
Chapter 2 Program a sequential function chart • Modify indicator tags • Add, delete or modify an SBR/RET • Add, delete or modify
Chapter 3 Force steps Use a force to override data that your logic either uses or produces. • Test and debug your logic. • Temporarily keep your pr
Chapter 3 Force steps Important: If you download a project that has forces enabled, the programming software prompts you to enab
Force steps Chapter 3 Forces tab ----------> Forces tab status Means Enabled • If the project contains any forces of thi
Chapter 3 Force steps Important: The ForceStatus attribute shows only the status of I/O forces. It does not show the status of SFC
Force steps Chapter 3 To override the logic of an SFC, you have these options. If you want to Then Override the conditions of
Chapter 3 Force steps For example, to exit this branch, the SFC must be able to complete these actions. • Execute Step_011 at le
Force steps Chapter 3 This path executes. This path does not execute. If you force a path of a simultaneous branch to be FALSE
Chapter 3 Force steps If Then Off No SFC forces currently exist. Flashing No SFC forces are active. But at least one force alread
A action 71 assign qualifier 69 boolean 28 call a subroutine 72 choose between boolean and non-boolean 27 data type 29 non-boolean 27 pro
Index P periodic task application for 16 postscan sequential function chart 37 program action 27 boolean action 28 programmatic reset option
Index T task define 16 text box sequential function chart 76 show or hide in sequential function chart 77 transition BOOL expression 34 cal
Rockwell Automation support Rockwell Automation provides technical information on the web to assist you in using its products. At http://www.rockwe
Preface This manual shows how to design and program Sequential Function Charts (SFCs) for Logix5000 controllers to execute. This manual is one of a se
Commenti su questo manuale