Sfc Programing

  • View
    11

  • Download
    0

Embed Size (px)

DESCRIPTION

plc

Text of Sfc Programing

  • Programming Manual

    Logix5000 Controllers Sequential FunctionCharts Ca ta log Numbe rs 1756 ControlLogix, 1769 CompactLogix, 1789 SoftLogix, 1794 Fle xLogix, Powe rFlex 700S with Drive Logix

  • Important user information Read this document and the documents listed in the additional resources section about installation, configuration, and operation of this equipment before you install, configure, operate, or maintain this product. Users are required to familiarize themselves with installation and wiring instructions in addition to requirements of all applicable codes, laws, and standards.

    Activities including installation, adjustments, putting into service, use, assembly, disassembly, and maintenance are required to be carried out by suitably trained personnel in accordance with applicable code of practice. If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be impaired.

    In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment.

    The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and diagrams.

    No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in this manual.

    Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is prohibited.

    Throughout this manual, when necessary, we use notes to make you aware of safety considerations.

    WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may lead to personal injury or death, property damage, or economic loss.

    ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence

    Important: Identifies information that is critical for successful application and understanding of the product.

    Labels may also be on or inside the equipment to provide specific precautions.

    SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present.

    BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous temperatures.

    ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to potential Arc Flash. Arc Flash will cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL Regulatory requirements for safe work practices and for Personal Protective Equipment (PPE).

    Allen-Bradley, Rockwell Software, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc.

    Trademarks not belonging to Rockwell Automation are property of their respective companies.

  • Summary of changes

    This manual contains new and updated information. The following table contains the changes made to this revision.

    Change Topic

    Updated graphics and text for version 24 and Windows 7. Throughout the manual.

    Rock well Automati on Publication 1756- PM006F-E N-P - Oct ober 2014 3

  • Table of contents

    Studio 5000 environment...........................................................................................9 Additional resources.................................................................................................. 10

    Chapter 1

    Introduction................................................................................................................ 11 What is a sequential function chart?..................................................................... 12 Define the tasks .......................................................................................................... 14 Choose how to execute the SFC ............................................................................ 15 Define the steps of the process................................................................................ 16

    Step guidelines..................................................................................................... 16 SFC_STEP structure......................................................................................... 17

    Organize the steps...................................................................................................... 20 Sequence ............................................................................................................... 22 Selection branch ................................................................................................. 22 Simultaneous branch ......................................................................................... 23 Wire to a previous step ..................................................................................... 24

    Add actions for each step ......................................................................................... 25 How do you want to use the action? ............................................................. 25 Use a non-Boolean action ................................................................................ 25 Use a Boolean action ......................................................................................... 26 SFC_ACTION structure ................................................................................ 27

    Describe each action in pseudocode...................................................................... 28 Choose a qualifier for an action ............................................................................. 29 Define the transition conditions............................................................................ 30

    Transition tag ...................................................................................................... 31 How do you want to program the transition? ............................................ 31 Use a BOOL expression ................................................................................... 32 Call a subroutine in a transition ..................................................................... 32

    Transition after a specified time ............................................................................ 33 Turn off a device at the end of a step .................................................................... 35

    Choose a last scan option ................................................................................. 36 Use the Dont Scan option .............................................................................. 38 Use the programmatic reset option ............................................................... 38 Use the automatic reset option....................................................................... 40

    Keep something on from step-to-step .................................................................. 42 How do you want to control the device? ..................................................... 42 Use a simultaneous branch .............................................................................. 42 Store and reset an action................................................................................... 43 Use one large step ............................................................................................... 44

    Preface

    Design a sequential function chart

    Rock well Automati on Publication 1756- PM006F-E N-P - Oct ober 2014 5

  • Table of contents

    End the SFC ................................................................................................................ 45 Use a stop element ............................................................................................. 45 Restart (reset) the SFC ..................................................................................... 46 SFC_STOP structure ....................................................................................... 47

    Nest an SFC ................................................................................................................ 48 Pass parameters ................................................................................................... 49

    Configure when to return to the OS/JSR ........................................................... 49 Pause or reset an SFC................................................................................................ 50 Execution diagrams.................................................................................................... 50

    Chapter 2

    Introduction................................................................................................................ 55 Add and manually connect elements ............................................................ 55 Add and automatically connect elements .................................................... 56 Drag elements...................................................................................................... 56

    Create a simultaneous branch................................................................................. 56 Start a simultaneous branch ............................................................................ 56 End a simultaneous branch...........................