logix5000 controllers tasks, programs, and routines

Download Logix5000 Controllers Tasks, Programs, And Routines

Post on 06-Apr-2018

218 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • 8/3/2019 Logix5000 Controllers Tasks, Programs, And Routines

    1/70

    Programming Manual

    Catalog Numbers 1756 ControlLogix,1769 CompactLogix, 1789 SoftLogix,

    1794 FlexLogix, PowerFlex 700S withDriveLogix

    Logix5000 Controllers Tasks,

    Programs, and Routines

  • 8/3/2019 Logix5000 Controllers Tasks, Programs, And Routines

    2/70

    Important User Information

    Solid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for theApplication, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales

    office or online at http://literature.rockwellautomation.com) describes some important differences between solid state equipment and hardwired electromechanical devices. Because of this difference, and also because of the wide variety of uses for solid state equipment, allpersons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable.

    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 requirementsassociated 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 inthis 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.

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

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

    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, oreconomic loss.

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

    ATTENTIONIdentifies 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

    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.

  • 8/3/2019 Logix5000 Controllers Tasks, Programs, And Routines

    3/70

    3Publication 1756-PM005B-EN-P - July 2008 3

    Table of Contents

    Preface Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5How to Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

    Chapter 1

    Managing Tasks Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

    Select Controller Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Use Caution in the Number of Tasks That You Use. . . . . . . . . . . 10

    Prioritize Periodic and Event Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Additional Considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

    Leave Enough Time for Unscheduled Communication . . . . . . . . . . . 13Avoid Overlaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

    Manually Check for Overlaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Programmatically Check for Overlaps . . . . . . . . . . . . . . . . . . . . . . 16

    Configuring Output Processing for a Task. . . . . . . . . . . . . . . . . . . . . . 18Manually Configure Output Processing . . . . . . . . . . . . . . . . . . . . . 20Programmatically Configure Output Processing . . . . . . . . . . . . . . 21

    Inhibit a Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Manually Inhibit or Uninhibit a Task . . . . . . . . . . . . . . . . . . . . . . . 22Programmatically Inhibit or Uninhibit a Task . . . . . . . . . . . . . . . . 23

    Choose the Trigger for an Event Task . . . . . . . . . . . . . . . . . . . . . . . . . 25Using the Module Input Data State Change Trigger . . . . . . . . . . . . . . 27

    How an I/O Module Triggers an Event Task . . . . . . . . . . . . . . . . 27Make Sure Your Module Can Trigger an Event Task . . . . . . . . . . 30Checklist for an Input Event Task . . . . . . . . . . . . . . . . . . . . . . . . . 31Estimate Throughput. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Estimate Throughput. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Additional Considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

    Using the Motion Group Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Checklist for a Motion Group Task . . . . . . . . . . . . . . . . . . . . . . . . 37

    Using the Axis Registration Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Checklist for an Axis Registration Task . . . . . . . . . . . . . . . . . . . . . 39

    Using the Axis Watch Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42Checklist for an Axis Watch Task. . . . . . . . . . . . . . . . . . . . . . . . . . 43

    Using the Consumed Tag Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46Maintain the Integrity of Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Synchronize Multiple Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . 49Checklist for the Producer Controller . . . . . . . . . . . . . . . . . . . . . . 50Checklist for the Consumer Controller . . . . . . . . . . . . . . . . . . . . . 51

    Producer Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Produced Tag Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Ladder Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Consumer Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53Event Task Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53Ladder Diagram in the Event Task. . . . . . . . . . . . . . . . . . . . . . . . . 53

    Using the EVENT Instruction Trigger. . . . . . . . . . . . . . . . . . . . . . . . . 54Programmatically Determine if an EVENT InstructionTriggered a Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

  • 8/3/2019 Logix5000 Controllers Tasks, Programs, And Routines

    4/70

    4 Publication 1756-PM005B-EN-P - July 2008

    Table of Contents

    Checklist for an EVENT Instruction Task . . . . . . . . . . . . . . . . . . 55Event Task Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56Ladder Diagram in Program_A. . . . . . . . . . . . . . . . . . . . . . . . . . . . 56Ladder Diagram in Program_B. . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

    Create a Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57Create an Event Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57Create a Periodic Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58Language Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

    Define a Timeout Value for an Event Task . . . . . . . . . . . . . . . . . . . . . 60Assign a Timeout Value to an Event Task . . . . . . . . . . . . . . . . . . . 60Programmatically Configure a Timeout . . . . . . . . . . . . . . . . . . . . . 61Programmatically Determine if a Timeout Occurs . . . . . . . . . . . . 62

    Adjust the System Overhead Time Slice. . . . . . . . . . . . . . . . . . . . . . . . 64Adjust the System Overhead Time Slice. . . . . . . . . . . . . . . . . . . . . 66

    Adjust the Watchdog Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

    Adjust the Watchdog Timer for a Task . . . . . . . . . . . . . . . . . . . . . 67

  • 8/3/2019 Logix5000 Controllers Tasks, Programs, And Routines

    5/70

    5Publication 1756-PM005B-EN-P - July 2008 5

    Preface

    Purpose of this Manual This manual shows how to configure and use produced and consumed tags.This manual is one of a set of related manuals that show common proceduresfor programming and operating Logix5000 controllers. For a complete list of

    common procedures manuals, see the Logix 5000 Controllers CommonProcedures Programming Manual, publication 1756-PM001.

    The term Logix5000 controller refers to any controller that is based on theLogix5000 operating system, such as:

    CompactLogix controllers

    ControlLogix controllers

    DriveLogix controllers

    FlexLogix controllers

    SoftLogix5800 controllers

    How to Use this Manual Some text is formatted differently from the rest of the text.

    Text that is Identifies For example Means

    Italic the actual name of an item that yousee on your screen or in an example

    Right-c

Recommended

View more >