MicroLogix 1000 User Programmer (HHP) Manual - Lehigh University

Transcription

Allen-BradleyMicroLogix! 1000with Hand-HeldProgrammer (HHP)(Cat. No. 1761-HHP-B30)UserManual

Important UserInformationBecause of the variety of uses for the products described in thispublication, those responsible for the application and use of thiscontrol equipment must satisfy themselves that all necessary stepshave been taken to assure that each application and use meets allperformance and safety requirements, including any applicable laws,regulations, codes and standards.The illustrations, charts, sample programs and layout examplesshown in this guide are intended solely for purposes of example.Since there are many variables and requirements associated with anyparticular installation, Allen-Bradley does not assume responsibilityor liability (to include intellectual property liability) for actual usebased upon the examples shown in this publication.Allen-Bradley publication SGI-1.1, Safety Guidelines for theApplication, Installation, and Maintenance of Solid-State Control(available from your local Allen-Bradley office), describes someimportant differences between solid-state equipment andelectromechanical devices that should be taken into considerationwhen applying products such as those described in this publication.Reproduction of the contents of this copyrighted publication, inwhole or in part, without written permission of Allen-BradleyCompany, Inc., is prohibited.Throughout this manual we use notes to make you aware of safetyconsiderations:!ATTENTION: Identifies information about practicesor circumstances that can lead to personal injury ordeath, property damage or economic loss.Attention statements help you to: identify a hazard avoid the hazard recognize the consequencesImportant:Identifies information that is critical for successfulapplication and understanding of the product.SLC 500 and MicroLogix are trademarks of Rockwell Automation.

PrefacePrefaceRead this preface to familiarize yourself with the rest of the manual. Thispreface covers the following topics: who should use this manual the purpose of this manual how to use this manual conventions used in this manual Allen-Bradley supportWho Should Use this ManualUse this manual if you are responsible for designing, installing,programming, or troubleshooting control systems that use Allen-Bradleymicro controllers.You should have a basic understanding of electrical circuitry and familiaritywith relay logic. If you do not, obtain the proper training before using thisproduct.Purpose of this ManualThis manual is a reference guide for the MicroLogix! 1000 ProgrammableController with a MicroLogix 1000 Hand-Held Programmer (HHP). Itdescribes the procedures you use to install, wire, and program your microcontroller. This manual: gives you an overview of the micro controller system provides a quick start chapter for beginners describes how to use the Hand-Held Programmer guides you through how to interpret the instruction set contains application examples to show the instruction set in useIf you are using programming software with your MicroLogix 1000Programmable Controller, see page P–4 for related publications.P–1

PrefaceContents of this tentsPrefaceDescribes the purpose, background, and scope of thismanual. Also specifies the audience for whom thismanual is intended.1Installing Your ControllerProvides controller installation procedures and systemsafety considerations.2Wiring Your ControllerProvides wiring guidelines and diagrams.3Connecting the SystemGives information on wiring your controller system for theDF1 protocol or DH-485 network.4Using Your Hand-HeldProgrammerDescribes how to power-up and use your MicroLogix 1000Hand-Held Programmer (HHP). Also explains how toinstall the HHPs memory module.5Quick Start for New UsersProvides step-by-step instructions on how to enter aprogram, edit it, and then monitor it.6Programming OverviewProvides an overview of principles of machine control, asection on file organization and addressing, and aprogram development model.7Using AnalogProvides information on I/O image file format, I/Oconfiguration, input filter and update times and conversionof analog data.8Using Basic InstructionsDescribes how to use the instructions for relayreplacement functions, counting, and timing.9Using ComparisonInstructionsDescribes how to use the instructions to compare valuesof data in your logic program.10Using Math InstructionsDescribes how to use the instructions that perform basicmath functions.11Using Data HandlingInstructionsDescribes how to perform data handling instructions,including move and logical instructions and FIFO andLIFO instructions.12Using Program FlowControl InstructionsDescribes the instructions that affect program flow andexecution.13Using Application SpecificInstructionsDescribes the bit shift, sequencer and STI relatedinstructions.14Using High-SpeedCounter InstructionsDescribes the four modes of the high-speed counterinstruction and its related instructions.15Using CommunicationProtocolsProvides a general overview of the types ofcommunication, and explains how to establish networkcommunication using the message instruction.

PrefaceTabChapterTitleContents16Instruction ListProgrammingProvides examples to teach you Instruction Listprogramming and describes programming considerations.17Entering and Editing YourProgramDescribes the various editing functions you can use withyour program, including search, overwrite, and delete.18After You’ve Entered YourProgramDescribes how to configure, run, and monitor yourprogram.19Common ProceduresDescribes how to perform additional procedures using theHHP menu.20Troubleshooting YourSystemExplains how to interpret and correct problems with yourmicro controller system.Appendix AHardware ReferenceProvides physical, electrical, environmental, andfunctional specifications.Appendix BProgramming ReferenceExplains the system status file, lists the HHP functioncodes, and provides instruction execution times.Appendix CValid Addressing Modesand File Types forInstruction ParametersProvides a listing of the instructions along with theirparameters and valid file types.Appendix DUnderstanding theCommunication ProtocolsContains descriptions of the DF1 protocol and DH-485network.ReferenceAppendix EApplication ProgramsProvides advanced application examples for thehigh-speed counter, sequencer, and bit shift instructions.ReferenceAppendix FOptional Analog InputSoftware CalibrationExplains how to calibrate your controller using softwareoffsets.GlossaryContains definitions for terms and abbreviations that arespecific to this product.Pr ra iProgrammingTroubleshootingReferenceFor More InformationAs part of our effort to preserve, protect, and improve our environment,Allen-Bradley is reducing the amount of paper we use. Less paper meansmore options for you. In addition to traditional printed publications andCD-ROM versions, we now offer on-line manuals with the most up-to-dateinformation you can get. We recommend that you read the relatedpublications listed on the next page before starting up your control system.P–3

PrefaceRelated PublicationsForRead this DocumentDocument NumberA description on how to install and use your MicroLogix! 1000Programmable Controllers. This manual also contains status filedata and instruction set informationMicroLogix! 1000 ProgrammableControllers User Manual1761-6.3A reference manual that contains the status file data and theinstruction set information for the SLC 500 processors andMicroLogix 1000 controllersSLC 500! and MicroLogix! 1000Instruction Set Reference Manual1747-6.15MicroLogix! 1000 ProgrammableControllers Installation Instructions1761-5.1.2MicroLogix! 1000 (Analog) ProgrammableControllers Installation Instructions1761-5.1.3The procedures necessary to install and connect the AIC andDNIAdvanced Interface Converter (AIC ) andDeviceNet Interface (DNI) InstallationInstructions1761-5.11A description on how to install and connect an AIC . Thismanual also contains information on network wiring.Advanced Interface Converter (AIC ) UserManual1761-6.4Information on how to install, configure, and commission a DNIDeviceNet Interface! User Manual1761-6.5In-depth information on grounding and wiring Allen-Bradleyprogrammable controllersAllen-Bradley Programmable ControllerGrounding and Wiring Guidelines1770-4.1Information on mounting and wiring the MicroLogix 1000ccontrollers,r ers iincludingc i a mountingi templatee a e fforr easeasy iinstallationsa aiHow to Get More InformationForP–4Obtain Information ByFast access torelatedpublications Visiting the MicroLogix internet site http://www.abmicrologix.com — Electronic versions of ourmanuals are available for you to search and down load. Calling local Allen-Bradley distributor.Publications inprinted orCD-ROM formatOrdering a manual or CD-ROM using one of the following methods: Fill out and return the User Manual Request Card that was shipped with the unit. Visiting the Automation Bookstore at http://www.theautomationbookstore.comMultiple copies ofa manual Visiting the Automation Bookstore at http://www.theautomationbookstore.comManuals in otherlanguagesAdding a 2-letter suffix to the end of the publication number when ordering. French – FR German – DE Italian – IT Spanish – ES Portuguese – PT (DNI only)

PrefaceRelated DocumentationThe following documents contain additional information concerningAllen-Bradley products. To obtain a copy, contact your local Allen-Bradleyoffice or distributor.ForRead This DocumentDocument NumberA description of important differencesbetween solid-state programmablecontroller products and hard-wiredelectromechanical devicesApplication Considerations forSolid-State ControlsSGI-1.1An article on wire sizes and types forgrounding electrical equipmentNational Electrical CodePublished by the National Fire ProtectionAssociation of Boston, MA.A complete listing of currentdocumentation, including orderinginstructions. Also indicates whether thedocuments are available on CD-ROM orin multi-languages.Allen-Bradley Publication IndexSD499A glossary of industrial automation termsand abbreviationsAllen-Bradley Industrial AutomationGlossaryAG-7.1Common Techniques Used inthis ManualThe following conventions are used throughout this manual: Bulleted lists such as this one provide information, not procedural steps. Numbered lists provide sequential steps or hierarchical information. Italic type is used for emphasis. Text in this font indicates words that appear on the HHP display. !"# %!&'Keypad icons, like the one at the left, match the key youshould press. For operations that require you to press a sequence of keys, the keypadicons are displayed horizontally on the page, with the resulting screenshown beneath. For example:, ("!%)P 0 0 0I / 6*" !'0 If a character is flashing on the HHP display, it is shown unbolded (suchas the P in the screen above). For operations that require you to press two keys simultaneously, thekeypad icons are displayed side-by-side as shown here:"/ 0. For operations that require you to press an arrow key, thekey you should press is shown bolded, such as the rightarrow key shown here.P–5

PrefaceAllen-Bradley SupportAllen-Bradley offers support services worldwide, with over 75 Sales/SupportOffices, 512 authorized Distributors and 260 authorized Systems Integratorslocated throughout the United States alone, plus Allen-Bradleyrepresentatives in every major country in the world.Local Product SupportContact your local Allen-Bradley representative for: sales and order support product technical training warranty support support service agreementsTechnical Product AssistanceIf you need to contact Allen-Bradley for technical assistance, please reviewthe information in the Troubleshooting chapter first. Then call your localAllen-Bradley representative.Your Questions or Comments on this ManualIf you find a problem with this manual, please notify us of it on the enclosedPublication Problem Report.If you have any suggestions for how this manual could be made more usefulto you, please contact us at the address below:Allen-Bradley Company, Inc.Control and Information GroupTechnical Communication, Dept. 602V, T122P.O. Box 2086Milwaukee, WI 53201-2086or visit our internet page at:http://www.abmicrologix.comP–6

Table of ContentsMicroLogix! 1000 with Hand–Held Programmer(HHP) User ManualPrefaceWho Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Common Techniques Used in this Manual . . . . . . . . . . . . . . . . . . . . . . . . . .Allen-Bradley Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .P–1P–1P–5P–6HardwareInstalling Your ControllerChapter 1Compliance to European Union Directives . . . . . . . . . . . . . . . . . . . . . . . . . .Hardware Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Master Control Relay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Using Surge Suppressors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Safety Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Power Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Preventing Excessive Heat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Controller Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Mounting the Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Wiring Your ControllerChapter 2Grounding Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Sinking and Sourcing Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Wiring Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Wiring Diagrams, Discrete Input and Output Voltage Ranges . . . . . . . . . . . . .Minimizing Electrical Noise on Analog Controllers . . . . . . . . . . . . . . . . . . . . .Grounding Your Analog Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Wiring Your Analog Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Analog Voltage and Current Input and Output Ranges . . . . . . . . . . . . . . . . .Wiring Your Controller for High-Speed Counter Applications . . . . . . . . . . . . .Connecting the –23Chapter 3Connecting the HHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–1Connecting to a DH-485 Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–3Connecting the AIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–6Establishing Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–12DeviceNet Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–13toc–i

Table of ContentsMicroLogix! 1000 with Hand–Held Programmer(HHP) User ManualProgrammingUsing Your Hand-HeldProgrammerChapter 4Quick Start for New UsersChapter 5About Your HHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–1Installing the Optional Memory Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–3The Keys You Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–4Identifying the Power-Up Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–6Understanding the HHPs Functional Areas . . . . . . . . . . . . . . . . . . . . . . . . . 4–7Changing the HHPs Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–17What to Do First . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–1Preparing to Enter a New Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–2Entering and Running the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–4Monitoring Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–9What to Do Next . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–12Programming OverviewChapter 6Principles of Machine Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–1Understanding File Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–3Understanding How Programs are Stored and Accessed . . . . . . . . . . . . . . . 6–5Addressing Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–7Applying Logic to Your Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–11Developing Your Logic Program – A Model . . . . . . . . . . . . . . . . . . . . . . . . . 6–17Using AnalogChapter 7I/O Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Input Filter and Update Times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Converting Analog Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Using Basic InstructionsChapter 8About Basic Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Bit Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Load (LD), And (AND), and Or (OR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Load Inverted (LDI), And Inverted (ANI), and Or Inverted (ORI) . . . . . . . . . . .Load True (LDT) and Or True (ORT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .One-Shot Rising (OSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . –68–7

Table of ContentsMicroLogix! 1000 with Hand–Held Programmer(HHP) User ManualOutput (OUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Set (SET) and Reset (RST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Branch Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Memory Push (MPS), Memory Read (MRD), and Memory Pop (MPP) . . . . . .And Block (ANB) and Or Block (ORB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Timer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Timer On-Delay (TON) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Timer Off-Delay (TOF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Retentive Timer (RTO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Counter Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Count Up (CTU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Count Down (CTD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Reset (RES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Basic Instructions in the Paper Drilling Machine Application Example . . . . . . .Using ComparisonInstructionsUsing Math 68–188–208–218–248–258–278–28Chapter 9About the Comparison Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–2Comparison Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–2Equal (EQU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–3Not Equal (NEQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–4Less Than (LES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–5Less Than or Equal (LEQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–6Greater Than (GRT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–7Greater Than or Equal (GEQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–8Masked Comparison for Equal (MEQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–9Limit Test (LIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–10Comparison Instructions in the Paper Drilling Machine Application Example . . 9–12Chapter 10About the Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Math Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Add (ADD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Subtract (SUB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32-Bit Addition and Subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Multiply (MUL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Divide (DIV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Double Divide (DDV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Clear (CLR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Square Root (SQR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Scale Data (SCL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Math Instructions in the Paper Drilling Machine Application Example . . . . . . 10–1110–1110–1210–15toc–iii

Table of ContentsMicroLogix! 1000 with Hand–Held Programmer(HHP) User ManualUsing Data HandlingInstructionsUsing Program Flow ControlInstructionsUsing Application SpecificInstructionstoc–ivChapter 11About the Data Handling Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Convert to BCD (TOD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Convert from BCD (FRD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Decode 4 to 1 of 16 (DCD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Encode 1 of 16 to 4 (ENC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Copy File (COP) and Fill File (FLL) Instructions . . . . . . . . . . . . . . . . . . . . . .Move and Logical Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . .Move (MOV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Masked Move (MVM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .And (AND) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Or (OR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Exclusive Or (XOR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Not (NOT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Negate (NEG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .FIFO and LIFO Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . .FIFO Load (FFL) and FIFO Unload (FFU) . . . . . . . . . . . . . . . . . . . . . . . . . .LIFO Load (LFL) and LIFO Unload (LFU) . . . . . . . . . . . . . . . . . . . . . . . . . . .Data Handling Instructions in the Paper Drilling MachinApplication Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311–2511–2811–31Chapter 12About the Program Flow Control Instructions . . . . . . . . . . . . . . . . . . . . . . . .Jump (JMP) and Label (LBL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Jump to Subroutine (JSR), Subroutine (SBR), and Return (RET) . . . . . . . . . .Master Control Reset (MCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Temporary End (TND) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Suspend (SUS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Immediate Input with Mask (IIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Immediate Output with Mask (IOM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Program Flow Control Instructions in the Paper Drilling MachineApplication Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–10Chapter 13About the Application Specific Instructions . . . . . . . . . . . . . . . . . . . . . . . . . .Bit Shift Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Bit Shift Left (BSL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Bit Shift Right (BSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Sequencer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Sequencer Output (SQO) and Sequencer Compare (SQC) . . . . . . . . . . . . . .Sequencer Load (SQL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Selectable Timed Interrupt (STI) Function Overview . . . . . . . . . . . . . . . . . . 5

Table of ContentsMicroLogix! 1000 with Hand–Held Programmer(HHP) User ManualSelectable Timed Disable (STD) and Enable (STE) . . . . . . . . . . . . . . . . . . .Selectable Timed Start (STS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Interrupt Subroutine (INT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Application Specific Instructions in the Paper Drilling MachineApplication Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Using High–Speed pter 14About the High-Speed Counter Instructions . . . . . . . . . . . . . . . . . . . . . . . . .High-Speed Counter Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . .High-Speed Counter (HSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .High-Speed Counter Load (HSL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .High-Speed Counter Reset (RES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .High-Speed Counter Reset Accumulator (RAC) . . . . . . . . . . . . . . . . . . . . . .High-Speed Counter Interrupt Enable (HSE) and Disable (HSD) . . . . . . . . . .Update High-Speed Counter Image Accumulator (OUT) . . . . . . . . . . . . . . . .What Happens to the HSC When Going to RRUN Mode . . . . . . . . . . . . . . . .High-Speed Counter Instructions in the Paper Drilling MachineApplication Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Using CommunicationProtocolsChapter 15Instruction List ProgrammingConceptsChapter 16Entering and Editing YourProgramChapter 17Types of Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Message Instruction (MSG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Timing Diagram for a Successful MSG Instruction . . . . . . . . . . . . . . . . . . . .MSG Instruction Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Application Examples that Use the MSG Instruction . . . . . . . . . . . . . . . . . . Programming Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16–1Programming Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16–8Entering the Program Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Editing Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Editing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Deleting Instructions and Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Searching for Specific Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17–117–317–317–617–8toc–v

Table of ContentsMicroLogix! 1000 with Hand–Held Programmer(HHP) User ManualAfter You’ve Entered YourProgramCommon ProceduresChapter 18Changing the Program Configuration Defaults . . . . . . . . . . . . . . . . . . . . . . .Accepting Your Program Edits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Changing Controller Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Monitoring Your Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Viewing Data Table Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Using the Multi-Point Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Forcing Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . hapter 19Using a Memory Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Clearing a Program from the Micro Controller . . . . .

Preface P-1 Preface Read this preface to familiarize yourself with the rest of the manual. This preface covers the following topics: who should use this manual the purpose of this manual how to use this manual conventions used in this manual Allen-Bradley support Use this manual if you are responsible for designing, installing,