Allen-Bradley MicroLogixt 1000 with Hand-Held Programmer (HHP) (Cat. No.
Important User Information Because of the variety of uses for the products described in this publication, those responsible for the application and use of this control equipment must satisfy themselves that all necessary steps have been taken to assure that each application and use meets all performance and safety requirements, including any applicable laws, regulations, codes and standards.
Preface 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 Who Should Use this Manual Use this manual if you are responsible for designing, installing, programming, or troubleshooting control systems that use Allen-Bradley micro controllers.
Preface Contents of this Manual Tab Installing Chapter Contents Preface Describes the purpose, background, and scope of this manual. Also specifies the audience for whom this manual is intended. 1 Installing Your Controller Provides controller installation procedures and system safety considerations. 2 Wiring Your Controller Provides wiring guidelines and diagrams. 3 Connecting the System Gives information on wiring your controller system for the DF1 protocol or DH-485 network.
Preface Tab Chapter Title Contents 16 Instruction List Programming Provides examples to teach you Instruction List programming and describes programming considerations. 17 Entering and Editing Your Program Describes the various editing functions you can use with your program, including search, overwrite, and delete. 18 After You’ve Entered Your Program Describes how to configure, run, and monitor your program.
Preface Related Publications For Read this Document Document Number A description on how to install and use your MicroLogix 1000 Programmable Controllers. This manual also contains status file data and instruction set information MicroLogix 1000 Programmable Controllers User Manual 1761-6.
Preface Related Documentation The following documents contain additional information concerning Allen-Bradley products. To obtain a copy, contact your local Allen-Bradley office or distributor. For Read This Document Document Number A description of important differences between solid-state programmable controller products and hard-wired electromechanical devices Application Considerations for Solid-State Controls SGI-1.
Preface Allen-Bradley Support Allen-Bradley offers support services worldwide, with over 75 Sales/Support Offices, 512 authorized Distributors and 260 authorized Systems Integrators located throughout the United States alone, plus Allen-Bradley representatives in every major country in the world.
Table of Contents MicroLogix 1000 with Hand–Held Programmer (HHP) User Manual Preface Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Common Techniques Used in this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . Allen-Bradley Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents MicroLogix 1000 with Hand–Held Programmer (HHP) User Manual Programming Using Your Hand-Held Programmer Quick Start for New Users Chapter 4 About Your HHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–1 Installing the Optional Memory Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–3 The Keys You Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–4 Identifying the Power-Up Sequence . . .
Table of Contents MicroLogix 1000 with Hand–Held Programmer (HHP) User Manual Output (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) . . . . . . . . . . . . .
Table of Contents MicroLogix 1000 with Hand–Held Programmer (HHP) User Manual Using Data Handling Instructions Using Program Flow Control Instructions Using Application Specific Instructions toc–iv Chapter 11 About the Data Handling Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Convert to BCD (TOD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Convert from BCD (FRD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents MicroLogix 1000 with Hand–Held Programmer (HHP) User Manual Selectable Timed Disable (STD) and Enable (STE) . . . . . . . . . . . . . . . . . . . Selectable Timed Start (STS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Subroutine (INT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Application Specific Instructions in the Paper Drilling Machine Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents MicroLogix 1000 with Hand–Held Programmer (HHP) User Manual After You’ve Entered Your Program Common Procedures Chapter 18 Changing the Program Configuration Defaults . . . . . . . . . . . . . . . . . . . . . . . Accepting Your Program Edits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing Controller Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring Your Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents MicroLogix 1000 with Hand–Held Programmer (HHP) User Manual Programming Reference Appendix B Controller Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B–1 Function Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B–13 Instruction Execution Times and Memory Usage . . . . . . . . . . . . . . . . . . . . .
Summary of Changes Summary of Changes The information below summarizes the changes to this manual since the last printing as Publication 1761-6.2—October 1997. To help you find new information and updated information in this release of the manual, we have included change bars as shown to the right of this paragraph.
Chapter 1 Installing Your Controller This chapter shows you how to install your MicroLogix 1000 Programmable Controller. The only tools you require are a Flat head or Phillips head screwdriver and drill.
Chapter 1 Installing Your Controller Hardware Overview The MicroLogix 1000 programmable controller is a packaged controller containing a power supply, input circuits, output circuits, and a processor. The controller is available in 10 I/O, 16 I/O and 32 I/O configurations, as well as an analog version with 20 discrete I/O and 5 analog I/O.
Chapter 1 Installing Your Controller Master Control Relay A hard-wired master control relay (MCR) provides a reliable means for emergency controller shutdown. Since the master control relay allows the placement of several emergency-stop switches in different locations, its installation is important from a safety standpoint. Overtravel limit switches or mushroom head push buttons are wired in series so that when any of them opens, the master control relay is de-energized.
Chapter 1 Installing Your Controller Using Emergency-Stop Switches When using emergency-stop switches, adhere to the following points: • Do not program emergency-stop switches in the controller program. Any emergency-stop switch should turn off all machine power by turning off the master control relay. • Observe all applicable local codes concerning the placement and labeling of emergency-stop switches. • Install emergency-stop switches and the master control relay in your system.
Chapter 1 Installing Your Controller Schematic (Using IEC Symbols) L1 L2 230V ac Disconnect Fuse MCR 230V ac I/O Circuits Operation of either of these contacts will remove power from the adapter external I/O circuits, stopping machine motion. Isolation Transformer X1 230V ac Fuse Master Control Relay (MCR) Cat. No. 700-PK400A1 Suppressor Cat. No. 700-N24 X2 Emergency-Stop Push Button Start Overtravel Limit Switch Stop MCR Suppr. MCR MCR 230V ac I/O Circuits dc Power Supply.
Chapter 1 Installing Your Controller Schematic (Using ANSI/CSA Symbols) L1 L2 230V ac Disconnect Fuse MCR 230V ac Output Circuits Operation of either of these contacts will remove power from the adapter external I/O circuits, stopping machine motion. Isolation Transformer X1 115V ac Fuse X2 Emergency-Stop Push Button Overtravel Limit Switch Stop Start Master Control Relay (MCR) Cat. No. 700-PK400A1 Suppressor Cat. No. 700-N24 MCR Suppr. MCR MCR 115V ac Output Circuits dc Power Supply. Use N.E.C.
Chapter 1 Installing Your Controller Using Surge Suppressors Inductive load devices such as motor starters and solenoids require the use of some type of surge suppression to protect the controller output contacts. Switching inductive loads without surge suppression can significantly reduce the lifetime of relay contacts. By adding a suppression device directly across the coil of an inductive device, you will prolong the life of the switch contacts.
Chapter 1 Installing Your Controller Suitable surge suppression methods for inductive ac load devices include a varistor, an RC network, or an Allen-Bradley surge suppressor, all shown below. These components must be appropriately rated to suppress the switching transient characteristic of the particular inductive device. See the table on page 1–9 for recommended suppressors.
Chapter 1 Installing Your Controller Recommended Surge Suppressors We recommend the Allen-Bradley surge suppressors shown in the following table for use with Allen-Bradley relays, contactors, and starters.
Chapter 1 Installing Your Controller ! ATTENTION: Explosion Hazard — Do not connect or disconnect while circuit is live unless area is known to be non-hazardous. Safety Circuits Circuits installed on the machine for safety reasons, like overtravel limit switches, stop push buttons, and interlocks, should always be hard-wired directly to the master control relay.
Chapter 1 Installing Your Controller Power Supply Inrush The MicroLogix power supply does not require or need a high inrush current. However, if the power source can supply a high inrush current, the MicroLogix power supply will accept it. There is a high level of inrush current when a large capacitor on the input of the MicroLogix is charged up quickly. If the power source cannot supply high inrush current, the only effect is that the MicroLogix input capacitor charges up more slowly.
Chapter 1 Installing Your Controller Preventing Excessive Heat For most applications, normal convective cooling keeps the controller within the specified operating range. Ensure that the specified operating range is maintained. Proper spacing of components within an enclosure is usually sufficient for heat dissipation. In some applications, a substantial amount of heat is produced by other equipment inside or outside the enclosure.
Chapter 1 Installing Your Controller ! ATTENTION: Be careful of metal chips when drilling mounting holes for your controller. Drilled fragments that fall into the controller could cause damage. Do not drill holes above a mounted controller if the protective wrap is removed. Use only the following communication cables in Class I, Division 2 Hazardous Locations.
Chapter 1 Installing Your Controller To remove your controller from the DIN rail: 1. Place a screwdriver in the DIN rail latch at the bottom of the controller. 2. Holding the controller, pry downward on the latch until the controller is released from the DIN rail. Side View DIN Rail 20147 Using Mounting Screws To install your controller using mounting screws: Important: Leave the protective wrap attached until you are finished wiring the controller. 1. Use the mounting template from page A–8. 2.
Chapter 2 Wiring Your Controller This chapter explains how to wire your MicroLogix 1000 Programmable Controller. Topics include: • grounding guidelines • sinking and sourcing circuits • wiring recommendations • wiring diagrams, input voltage ranges, and output voltage ranges Grounding Guidelines In solid-state control systems, grounding helps limit the effects of noise due to electromagnetic interference (EMI). Use the heaviest wire gauge listed for wiring your controller with a maximum length of 152.
Chapter 2 Wiring Your Controller You must also provide an acceptable grounding path for each device in your application. For more information on proper grounding guidelines, see the Industrial Automation Wiring and Grounding Guidelines, publication 1770-4.1. ATTENTION: Remove the protective wrap before applying power to the controller. Failure to remove the wrap may cause the controller to overheat.
Chapter 2 Wiring Your Controller 1761-L32BWB, -L32BBB (Wiring Diagrams also apply to 1761-L20BWB-5A -L16BWB, -L10BWB, -L16BBB.
Chapter 2 Wiring Your Controller Call-out C E L W X C+X Dimension 6.35 mm (0.250 in.) 10.95 mm (0.431 in.) maximum 14.63 mm (0.576 in.) maximum 6.35 mm (0.250 in.) 3.56 mm (0.140 in.) 9.91 mm (0.390 in.) maximum We recommend using either of the following AMP spade lugs: part number 53120-1, if using 22–16 AWG, or part number 53123-1, if using 16–14 AWG. Important: If you use wires without lugs, make sure the wires are securely captured by the pressure plate.
Chapter 2 Wiring Your Controller ! ATTENTION: Calculate the maximum possible current in each power and common wire. Observe all electrical codes dictating the maximum current allowable for each wire size. Current above the maximum ratings may cause wiring to overheat, which can cause damage. ! ATTENTION: United States Only: If the controller is installed within a potentially hazardous environment, all wiring must comply with the requirements stated in the National Electrical Code 501-4 (b).
Chapter 2 Wiring Your Controller Wiring Diagrams, Discrete Input and Output Voltage Ranges The following pages show the wiring diagrams, discrete input voltage ranges and discrete output voltage ranges. Controllers with dc inputs can be wired as either sinking or sourcing configurations. (Sinking and sourcing does not apply to ac inputs.
Chapter 2 Wiring Your Controller 1761-L32AWA Wiring Diagram 79–132V ac L2/N NOT NOT AC USED USED COM 79–132V ac L1 I/0 I/1 I/2 VAC VDC O/0 VDC L2/N L1 I/3 AC COM I/4 I/5 O/1 VAC VDC O/2 O/3 VDC I/6 I/7 I/8 I/9 I/10 O/4 O/5 O/6 CR CR CR I/11 I/12 I/13 I/14 I/15 O/7 VDC O/8 O/9 O/10 O/11 CR CR CR I/16 I/17 I/18 I/19 85–264 VAC L1 L2/N VAC CR CR VAC 2 VDC 1 VAC 2 COM VAC 1 VAC VAC VDC 2 CR CR VDC 3 VDC 1 COM VDC 2 COM VDC 3 COM VAC 1 COM 1761-L32
Chapter 2 Wiring Your Controller 1761-L10BWA Wiring Diagram (Sinking Input Configuration) Hardware Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L16BWA Wiring Diagram (Sinking Input Configuration) Hardware Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L32BWA Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L10BWB Wiring Diagram (Sinking Input Configuration) Hardware Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L16BWB Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L32BWB Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L32AAA Wiring Diagram 79–132V ac 79–132V ac L2/N NOT NOT AC USED USED COM L1 I/0 I/1 I/2 VAC VDC O/0 VDC L2/N L1 I/3 AC COM I/4 I/5 O/1 VAC O/2 O/3 VAC I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 O/4 O/5 O/6 O/7 VAC O/8 O/9 O/10 O/11 CR CR CR CR CR CR I/16 I/17 I/18 I/19 85–264 VAC L1 L2/N VAC CR CR VAC 1 VAC 2 VAC 1 COM VAC 0 VAC 3 VAC 2 COM CR CR VAC 4 VAC 3 COM VAC 4 COM VAC 0 COM 1761-L32AAA Input Volt
Chapter 2 Wiring Your Controller 1761-L16BBB Wiring Diagram (Sinking Input Configuration) 14–30V dc VDC Com NOT NOT DC USED USED COM 14–30V dc VDC + I/0 Hardware Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L32BBB Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–2 for additional input configuration options.
Chapter 2 Wiring Your Controller 1761-L20AWA-5A Wiring Diagram Note: Refer to pages 2–20 through 2–22 for additional information on analog wiring.
Chapter 2 Wiring Your Controller 1761-L20BWA-5A Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–2 for additional discrete configuration options. Refer to pages 2–20 through 2–22 for additional information on analog wiring.
Chapter 2 Wiring Your Controller 1761-L20BWB-5A Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–2 for additional discrete configuration options. Refer to pages 2–20 through 2–22 for additional information on analog wiring.
Chapter 2 Wiring Your Controller Minimizing Electrical Noise on Analog Controllers Inputs on analog employ digital high frequency filters that significantly reduce the effects of electrical noise on input signals. However, because of the variety of applications and environments where analog controllers are installed and operated, it is impossible to ensure that all environmental noise will be removed by the input filters.
Chapter 2 Wiring Your Controller Wiring Your Analog Channels Analog input circuits can monitor current and voltage signals and convert them to serial digital data. The analog output can support either a voltage or a current function. Sensor 2 Sensor 3 (V) Voltage (I) Current Sensor 1 Sensor 4 (I) Current (V) Voltage Jumper unused inputs.
Chapter 2 Wiring Your Controller Analog Voltage and Current Input and Output Ranges The following drawings show the analog voltage input range, analog current input range, analog voltage output range and analog current output range. Analog Voltage Input Range ÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉ –10.5V dc –24V dc ÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉ 10.
Chapter 2 Wiring Your Controller Wiring Your Controller for High-Speed Counter Applications To wire the controller for high-speed counter applications, use input terminals I/0, I/1, I/2, and I/3. Refer to chapter 14 for information on using the high-speed counter. Shielded cable is required for high-speed input signals 0–3 when the filter setting is set to either 0.10 ms or 0.075 ms. We recommend Belden #9503 for lengths up to 305 m (1000 ft).
Chapter 3 Connecting the System This chapter describes how to wire your controller system. The method you use and cabling required to connect your controller depends on what type of system you are employing.
Chapter 3 Connecting the System The 1761-CBL-HM02 Series B or higher cable with pinouts is shown below. Use this cable to connect the MicroLogix 1000 HHP to the MicroLogix 1000 Programmable Controller.
Chapter 3 Connecting the System Connecting to a DH-485 Network Important: Only Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers support DH-485 network connections. In order to access the DH-485 functionality of the Series C or later MicroLogix 1000 discrete and MicroLogix 1000 analog controllers, you must configure your program to operate with these controllers. See page 18–18 for more information.
Chapter 3 Connecting the System The communication cable consists of a number of cable segments daisy-chained together. The total length of the cable segments cannot exceed 1219 m (4000 ft). When cutting cable segments, make them long enough to route them from one AIC+ to the next with sufficient slack to prevent strain on the connector. Allow enough extra cable to prevent chafing and kinking in the cable. Use these instructions for wiring the Belden #3106A or #9842 cable.
Chapter 3 Connecting the System The table below shows connections for Belden #3106A. For this Wire/Pair Connect this Wire To this Terminal Shield/Drain Non-jacketed Terminal 2 – Shield Blue Blue Terminal 3 – (Common) White with Orange Stripe Terminal 4 – (Data B) Orange with White Stripe Terminal 5 – (Data A) White/Orange i e ra e The table below shows connections for Belden #9842.
Chapter 3 Connecting the System Connecting the AIC+ Important: Only Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers support DH-485 network connections. You can connect an unpowered AIC+, catalog number 1761-NET-AIC, to the network without disrupting network activity.
Chapter 3 Connecting the System DF1 Isolated Point-to-Point Connection 1761-CBL-AM00 or 1761-CBL-HM02 MicroLogix 1000 PC AIC+ (1761-NET-AIC) Selection Switch Up 24V dc (Not needed in this configuration since the MicroLogix 1000 provides power to the AIC+ via port 2.
Chapter 3 Connecting the System Cable Selection Guide 1747-CP3 1761-CBL-AC00 Cable to AIC+ External Power Supply Required ➀ Power Selection Switch Setting➀ SLC 5/03 or SLC 5/04 processor, channel 0 port 1 yes external PC COM port port 1 yes external PanelView 550 through NULL modem adapter port 1 yes external Port 1 on another AIC+ port 1 yes external to AIC+ External Power Supply Required ➀ Power Selection Switch Setting➀ SLC 500 Fixed, SLC 5/01, SLC 5/02, and SLC 5/03 processors
Chapter 3 Connecting the System 1761-CBL-PM02 1761-CBL-AP00 Cable 1761-CBL-AP00 1761 L P00 1761-CBL-PM02➁ to AIC+ External Power Supply Required port 2 yes MicroLogix 1000 port 1 yes➀ external external➀ PanelView 550 through NULL modem adapter port 2 yes external PC COM port port 2 yes external to AIC+ External Power Supply Required port 1 yes➀ Length 45 ccm (17.7 17 7 iin) 2 (6.
Chapter 3 Connecting the System Recommended User-Supplied Components These components can be purchased from your local electronics supplier. Component Recommended Model external power supply and chassis ground power supply rated for 20.4–28.
Chapter 3 Connecting the System Powering the AIC+ ! ATTENTION: If you use an external power supply, it must be 24V dc. Permanent damage will result if miswired with the wrong power source. Set the DC Power Source selector switch to EXTERNAL before connecting the power supply to the AIC+. Bottom View 24VDC DC NEUT CHS GND ! ATTENTION: Always connect the CHS GND (chassis ground) terminal to the nearest earth ground. This connection must be made whether or not an external 24V dc supply is used.
Chapter 3 Connecting the System ! ATTENTION: If you use an external power supply, it must be 24V dc. Permanent damage will result if miswired with the wrong power source. Installing and Attaching the AIC+ 1. Take care when installing the AIC+ in an enclosure so that the cable connecting the MicroLogix 1000 controller to the AIC+ does not interfere with the enclosure door. 2. Carefully plug the terminal block into the DH-485 port on the AIC+ you are putting on the network.
Chapter 3 Connecting the System Automatic Protocol Switching The MicroLogix 1000 Series D or later discrete and all MicroLogix 1000 analog controllers perform automatic protocol switching between DH-485 and the configured DF1 protocol. (The controller cannot automatically switch between DF1 full-duplex and DF1 half-duplex slave.) This feature allows you to switch from active communication on a DF1 half-duplex network to the DH-485 protocol to make program changes.
Chapter 3 Connecting the System Cable Selection Guide 1761-CBL-HM02 1761-CBL-AM00 Cable 1761-CBL-AM00 1761 L M00 1761-CBL-HM02➀ Length 45 ccm (17.7 17 7 iin) 2 (6.5 2m 6 fft) Connections from port 2 MicroLogix 1000 (all series) port 2 1761-CBL-PM02 1761-CBL-AP00 Cable Length 1761-CBL-APM00 1761 L PM00 1761-CBL-PM02➀ 45 ccm (17.7 17 7 iin) 2 (6.
Chapter 4 Using Your Hand-Held Programmer This chapter describes your MicroLogix 1000 Hand-Held Programmer (HHP), its memory module, and its power-up procedure. It also walks you through the start-up displays and helps you understand some of the functionality options available to you.
Chapter 4 Using Your Hand-Held Programmer The hardware features of the HHP are: 1 1 RS-232 communication channel 2 16 character × 2 line display 3 30 key rubber/carbon keypad 2 3 Additional hardware features of the MicroLogix 1000 HHP are: 1 2 3 1 Memory module door 2 Memory module 3 Memory module socket 4–2
Chapter 4 Using Your Hand-Held Programmer Installing the Optional Memory Module Two optional memory modules are available for the MicroLogix 1000 HHP: • 8 Kbyte memory module, 1761-HHM-K08 – stores 1 program (possibly more than 1, depending on program size) • 64 Kbyte memory module, 1761-HHM-K64 – stores a minimum of 8 programs For information on loading and storing programs to your memory module, see page 19–1.
Chapter 4 Using Your Hand-Held Programmer The Keys You Use When using the MicroLogix 1000 HHP, you will be pressing individual keys and key sequences for the purposes identified in the illustration below. Details about individual key functions and key sequences are provided in this manual at their point of use. Diagnostic/troubleshooting keys. Allow you to get your system running and keep it running. Instruction keys. Allow you to enter all of your program’s instructions. General editing keys.
Chapter 4 Using Your Hand-Held Programmer Accessing Additional Characters Several characters are available that are not displayed on the keypad. These are outlined in the table below. To Access This Character: Press This Key Sequence: # FUN A FUN B F UN C FUN D FUN E FUN F FUN ANB 0 7 8 9 4 5 6 These characters are useful for entering indexed addresses, hexadecimal values, and program names.
Chapter 4 Using Your Hand-Held Programmer Identifying the Power-Up Sequence When the MicroLogix 1000 HHP is first connected to the controller, the following sequence occurs: 1. The HHP performs diagnostic self tests. While doing this it displays the following Copyright screens: M I C R O P R OGR A MME R V E R S I ON X .
Chapter 4 Using Your Hand-Held Programmer Understanding the HHPs Functional Areas There are six main functional areas of the MicroLogix 1000 HHP, each with a unique purpose. They are: Home Menu Mode Program Monitor Data Monitor Multi-Point Function Descriptions of each of these areas and the tasks you can complete follow. Home Home is the functional area you enter after the HHP powers up. It provides important program and controller information. You can access all other functional areas from home.
Chapter 4 Using Your Hand-Held Programmer How to Complete Tasks Home From Home you can access these areas: Menu Mode Program Monitor Data Monitor Multi-Point Function You complete tasks by pressing the appropriate key or key sequence from the home screen. To: Press: access the menu options MENU I change the controller’s mode (See page 18–23.) MODE O access the multi-point functional area (See page 18–31.) MT-PT B + FAULT view faults (See page 20–11.
Chapter 4 Using Your Hand-Held Programmer Screen Definition The following figure shows the menu screen and identifies its main sections. Selected Menu Option 1 . L A N GU A GE 2 . A C C E P T E D I T S Section Menu Options Description Menu Options The list of options available in the menu functional area. These options are described in the manual at their point of use. Selected Menu Option The option that the flashing arrow is pointing to.
Chapter 4 Using Your Hand-Held Programmer Access Mode by pressing this key: MODE O Mode From the mode functional area, you can change the current mode of the controller. Screen Definition The following figure shows the mode screen and identifies its main sections. Active Controller Mode A C T I V E MOD E : R P RG RP R G R R U N Controller Mode Options Section Active Controller Mode Controller Mode Options Description The current mode of the controller is displayed.
Chapter 4 Using Your Hand-Held Programmer How to Complete Tasks Mode You complete tasks by pressing the appropriate key or key sequence from the mode screen.
Chapter 4 Using Your Hand-Held Programmer Program Monitor From Program Monitor you can access these areas: Menu Mode Data Monitor Multi-Point Function How to Complete Tasks You complete tasks by pressing the appropriate key or key sequence from the program monitor screen. To: Press: access the menu options MENU I change the controller’s mode (See page 18–23.) MODE O access the multi-point functional area (See page 18–31.
Chapter 4 Using Your Hand-Held Programmer To: Press: access the data monitor functional area at the address shown in the screen MON ENT move up and down between a program’s rungs and program files move left and right through each rung of a program. (When the end of a rung is reached, the next rung automatically scrolls into view as you move the cursor right or left in the program.) ESC return to the home screen enter the # character for an indexed address (See page 6–9.
Chapter 4 Using Your Hand-Held Programmer Data Monitor From Data Monitor you can access these areas: Menu Mode Program Monitor Multi-Point Function How to Complete Tasks You complete tasks by pressing the appropriate key or key sequence from the data monitor screen. To: Press: access the menu options MENU I change the controller’s mode (See page 18–23.) MODE O access the multi-point functional area (See page 18–31.
Chapter 4 Using Your Hand-Held Programmer To: Press: scroll through the data file table scroll through the bits of individual data files ESC return to the home screen change the radix (See page 18–30.) + MT-PT B 0 E NT enter data you’ve typed Access MultiPoint Function by pressing this key: ANB FUN Multi-Point Function The multi-point function allows you to simultaneously monitor the data of up to 16 non-contiguous bit addresses.
Chapter 4 Using Your Hand-Held Programmer Multi-Point Function From Multi-Point Function you can access these areas: Menu Mode Program Monitor Data Monitor How to Complete Tasks You complete tasks by pressing the appropriate key or key sequence from the multi-point screen. To: Press: access the menu options MENU I change the controller’s mode (See page 18–23.) MODE O FAULT view faults manually (See page 20–11.) clear a fault manually (See page 20–11.
Chapter 4 Using Your Hand-Held Programmer Changing the HHPs Defaults When your MicroLogix 1000 HHP arrives, it has the following factory default settings: Feature Default Setting Language English Contrast You can use the menu options to change the default settings of these features, as described in the following sections. Any changes you make are saved when power is cycled, so you will not need to set them every time the HHP powers up.
Chapter 4 Using Your Hand-Held Programmer Using Short-Cut Keys The following table shows the short-cut keys you can press from the home screen to change the language. To change the language to: Press the following keys simultaneously and hold for 1.5 seconds: English ESC Spanish German French 1 ESC L ESC U ESC Italian ES C Japanese ESC 2 3 4 5 6 Changing the LCD Display Contrast Follow the steps below to change the contrast setting for the LCD display. 1.
Chapter 5 Quick Start for New Users This chapter can help you get started using the MicroLogix 1000 HHP with your micro controller. It provides task-oriented procedures to guide you through a hands-on practice exercise. Before you begin you should have completed the following tasks: ✔ Your controller should be installed and wired. (See chapters 1 and 2.) ✔ Your HHP should be connected and powered-up. (See chapters 3 and 5.
Chapter 5 Quick Start for New Users Preparing to Enter a New Program Before you can enter a new program, you must complete the two preliminary procedures described in this section. Placing the Controller in Program Mode If the controller is not currently in program mode, you need to change to that mode. Follow the steps below: 1. From the home screen, access the mode options. MODE O A C T I V E MOD E : R R UN RP R G R R U N 2. Select RPRG mode. (The RPRG mode box is already highlighted.
Chapter 5 Quick Start for New Users 2. Arrow down to menu option 6, or press the number 6. or 6 5 times 6 . C L E A R P R OG 7 . B A U D R A T E 3. Select menu option 6. ENT C L E AR P R OGR A M? Y E S [ E N T ] N O [ E S C ] 4. Clear the program in the controller. ENT C L E A R P R OGR AM? C L E A R I N G. . . . . 5. Return to the home screen. ESC Once the program is cleared, the home screen shows the default program name MICRO.
Chapter 5 Quick Start for New Users Reviewing What You’ve Done So Far You have completed preparing to enter a new program with your HHP. ✔ Preparing to enter a new program ✔ Placing the controller in program mode ✔ Clearing the current program Entering and running the program Entering the new program Changing to run mode Monitoring operation Monitoring the program Monitoring the data Continue on to the next section to enter and run a program.
Chapter 5 Quick Start for New Users Enter the rungs by completing the steps that follow. Important: If you make an error at any time, you can abandon the operation by pressing the ESC key. 1. From the home screen, access the program monitor display for the program MICRO. MON ENT P S T A R T F I L E : 0 2 MAI N _ P R OG The start of file screen appears. This is where you start inserting the program rungs. 2. Insert a rung in file 2, the main program file.
Chapter 5 Quick Start for New Users 4. Place a normally open instruction in parallel (OR) with the first one. OR 9 + MT-PT B ORB + - ANB / E NT 0 P 0 0 0 B / 0 0 5. Enter a normally closed instruction in series (ANI) with the first two. ANI 5 MENU I P 0 0 0 I / 7 7 E NT / 0 6. Enter the first output instruction (OUT) on the rung. OUT 1 + MT-PT B ORB + - ANB / E NT 0 P 0 0 0 B / 0 0 7. Start a new rung after the first one, and enter another LD instruction.
Chapter 5 Quick Start for New Users 9. Add the final output instruction to the rung. OUT 1 MODE O 1 P 0 0 1 O/ 1 ENT 0 10.Return to the home screen. ESC M I C R O F R E E : * * * R P R G F I L E : 0 2 The RPRG is flashing because edits exist. Also, the number of free instruction words is not known until the program is checked, so three asterisks are displayed. Changing to Run Mode Now that you have entered a program, you can run it by changing to run mode.
Chapter 5 Quick Start for New Users 2. Arrow right to RRUN. A C T I V E MOD E : R P R G R P R G R R U N 3. Select remote run mode. The program is checked and, if accepted, the home screen appears. If you get a fault code, refer to chapter 20 to clear the fault. ENT M I C R O F R E E : 7 2 9 R R U N F I L E : 0 2 RRUN now appears in the upper right-hand corner of the screen. Also, the number of free instruction words is displayed.
Chapter 5 Quick Start for New Users Monitoring Operation You can monitor the operation of your program by viewing the program files and the data files. Monitoring the Program You should now be running the program MICRO. You can test the operation of your program by monitoring the relay instruction states. Instruction state boxes appear to the right of each bit instruction. When filled, these boxes indicate that logical continuity exists in the program. 1. From the home screen, access the program monitor.
Chapter 5 Quick Start for New Users Monitoring the Data Next you will monitor the input and output data files. These files contain bits corresponding to the I/O screw terminals of the controller. 1. From the program monitor, go to rung 1. You can access this rung by entering the rung number as shown here: MON 1 ENT R 0 0 1 B / 0 0 2. Access the data monitor for the first instruction on the rung (B/0). MON E NT B / 0 B 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3. Set the cursored bit to 1.
Chapter 5 Quick Start for New Users 5. Return to the data word B/0. + MON MT-PT B ENT B / 0 B 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 6. Reset the cursored bit to 0. ANB 0 B / 0 B 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7. Return to the output data file. MON MODE O ENT O / 0 O0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Notice that bits O/1 and O/5 are set to 0. These bits turned off when you reset bit B/0 to 0. 8. Return to the home screen.
Chapter 5 Quick Start for New Users Reviewing What You’ve Done So Far Congratulations! You have finished entering, running, and monitoring a sample program using the MicroLogix 1000 HHP.
Chapter 6 Programming Overview This chapter explains how to use the MicroLogix 1000 HHP to program the micro controller.
Chapter 6 Programming Overview With the logic program entered into the controller, placing the controller in the Run mode initiates an operating cycle. The controller’s operating cycle consists of a series of operations performed sequentially and repeatedly, unless altered by your program logic. overhead input scan service comms program scan Operating Cycle output scan input scan – the time required for the controller to scan and read all input data; typically accomplished within µseconds.
Chapter 6 Programming Overview Understanding File Organization The micro controller provides control through the use of a program. Most of the operations you perform with the MicroLogix 1000 HHP involve the program and the two components created with it: program files and data files. Program Program Files Data Files (14 Maximum) (8 Maximum) Notes on terminology: The term program used in HHP displays is equivalent to the term processor file that may be used in some programming software packages.
Chapter 6 Programming Overview Program Files Program files contain controller information, the main program, interrupt subroutines, and any subroutine programs. These files are: • System Program (file 0) – This file contains various system related information and user-programmed information such as program name and password. • Reserved (file 1) – This file is reserved. • Main Program (file 2) – This file contains user-programmed instructions defining how the controller is to operate.
Chapter 6 Programming Overview Understanding How Programs are Stored and Accessed The micro controller uses two devices for storing programs: RAM and EEPROM. The RAM provides short-term storage (i.e., its data is lost on a power down), while the EEPROM provides long-term storage (i.e., its data is not lost on a power down). The diagram below shows how the memory is allocated in the micro controller’s processor.
Chapter 6 Programming Overview Normal Operation During normal operation, both the micro controller and the HHP access the program stored in the RAM. Any changes to retentive data that occur due to program execution or programming commands affect only the retentive data in the RAM. The program files are never modified during normal operation. However, both the CPU and the HHP can read the program files stored in RAM.
Chapter 6 Programming Overview Power Up During power up, the micro controller transfers the program files from the EEPROM to the RAM. The retentive data is also transferred to the RAM, provided it was not lost on power down, and normal operation begins. RAM EEPROM Backup Data Retentive Data Program Files CPU Workspace Retentive Data Program Files CPU If retentive data was lost on power down, the backup data from the EEPROM is transferred to the RAM and used as the retentive data.
Chapter 6 Programming Overview Specifying Logical Addresses You assign logical addresses to instructions from the highest level (element) to the lowest level (bit). Addressing examples are shown in the table below. To specify the address of a: Use these parameters:➀ Word within an integer file N 2 File Type Word Number Word within a structure file T 7 .
Chapter 6 Programming Overview Specifying Indexed Addresses The indexed address symbol is the # character, which is placed immediately before the file-type identifier in a logical address. You can use more than one indexed address in your ladder program. When you specify indexed addresses, follow these guidelines: • Make sure the index value (positive or negative) does not cause the indexed address to exceed the file type boundary.
Chapter 6 Programming Overview Addressing File Instructions – Using the File Indicator (#) The file instructions shown below manipulate data table files. These instructions are addressed with the # sign. They store an offset value in word S24 (index register), just as with indexed addressing discussed in the last section.
Chapter 6 Programming Overview When entering hexadecimal characters, you may need to access the following additional characters, not displayed on the keypad. To Access This Character: Press This Key Sequence: A FUN B F UN C FUN D FUN E FUN F FUN 7 8 9 4 5 6 You can change the radix for output, input, bit and integer data files. See page 18–30 for more information. Applying Logic to Your Schematics The program is made from the logic you enter into the micro controller.
Chapter 6 Programming Overview In a ladder diagram, each of the input devices are represented in series or parallel combinations across the rung of the ladder. The last element on the rung is the output that receives the action as a result of the conditional state of the inputs on the rung. Each output instruction is executed by the controller when the rung is scanned and the conditions on the rung are true.
Chapter 6 Programming Overview Input Branching Use an input branch in your application program to allow more than one combination of input conditions to form parallel branches (OR-logic conditions). If at least one of these parallel branches forms a true logic path, the rung logic is enabled. If none of the parallel branches forms a true logic path, rung logic is not enabled and the output instruction logic will not be true. The output is not energized.
Chapter 6 Programming Overview Connecting Blocks Blocks of input and output instructions can be connected in series and parallel as well. Example – Series Block Connection a c b d e In the above example, two blocks of information are connected in series. Either A or B, and C or D provides a true logical path. For instruction list programming, the ANB instruction represents this connection. (See page 8–12.
Chapter 6 Programming Overview Nested branching can be converted into non-nested branches by repeating instructions to make parallel equivalents. Example – Non-Nested Equivalent a b c f d e Nested branch a b C d c f e Non-nested equivalent parallel branch Understanding Instruction List Programs Instruction list (Boolean) programming uses mnemonics to represent all the functions and connections available in a ladder logic instruction set.
Chapter 6 Programming Overview Applying Ladder Logic and Instruction List In the following illustration, the electromechanical circuit shows PB1 and PB2, two push buttons, wired in series with an alarm horn. PB1 is a normally open push button and PB2 is normally closed. This same circuit is shown in ladder logic by two contacts wired in series with an output. Contact I/0 and I/1 are examine-if-closed instructions.➀ (For more information on this instruction, refer to page 8–3.
Chapter 6 Programming Overview Developing Your Logic Program – A Model The following diagram can help you develop your application program. Each process block represents one phase of program development. Use the checklist at the right of the process block to help you identify the tasks involved with each process.
Chapter 7 Using Analog This chapter describes the operation of the MicroLogix 1000 analog controllers. Topics include: • • • • I/O Image I/O Image I/O Configuration Input Filter and Update Times Converting Analog Data The input and output image files of the MicroLogix 1000 analog controllers have the following format: Address Input Image Output Image Address I:0.0 Discrete Input Word 0 Discrete Output Word 0 O:0.0 I:0.1 Discrete Input Word 1 Reserved O:0.1 I:0.2 Reserved Reserved O:0.
Chapter 7 Using Analog I/O Configuration The analog input channels are single-ended (unipolar) circuits and can be individually enabled or disabled. The default is all input channels enabled. The two voltage inputs accept"10.5V dc and the two current inputs accept "21 mA. The analog output channel is also a single-ended circuit. You can configure either voltage (0V dc to +10V dc) or current (+4 to +20 mA) output operation. The default is voltage output.
Chapter 7 Using Analog Update Time Examples Example 1 – All (4) channels enabled with 60 Hz filter selected (default settings). Maximum Update Time = (4) x ladder scan time + (4) x 16.67 ms + (4) x 66.67 ms = 333.36 ms + (4) x ladder scan times (Each channel is updated approximately three times per second.) Example 2 – 1 channel enabled with 250 Hz filter selected. Maximum Update Time = ladder scan time + 4 ms Input Channel Filtering The analog input channels incorporate on-board signal conditioning.
Chapter 7 Using Analog Converting Analog Data The analog input circuits are able to monitor current and voltage signals and convert them to digital data. There are six terminals assigned to the input channels that provide two voltage inputs, two current inputs, and two return signals (commons). The analog outputs can support either a current or voltage function. There are three terminals assigned to the output channels that provide one voltage output, one current output, and a common (shared) terminal.
Chapter 7 Using Analog To determine an approximate current that an input value represents, you can use the following equation: 21 mA input value➁ = input current (mA) 32,767 ➁The Input Value is the decimal value of the word in the input image for the corresponding analog input. For example, if an input value of 4096 is in the input image, the calculated value is: 21 mA 4096 = 2.625(mA) 32,767 It should be noted that the actual value may vary within the accuracy limitations of the module.
Chapter 8 Using Basic Instructions This chapter contains general information about basic instructions and explains how they function in your application program. Each of the basic instructions includes information on: • what the instruction symbol looks like • typical execution time for the instruction • how to use the instruction • how to enter the instruction In addition, the last section contains an application example for a paper drilling machine that shows the basic instructions in use.
Chapter 8 Using Basic Instructions Branch Instructions Mnemonic Function Code MPS Name Purpose Page 10 Memory Push Stores the rung state that is present immediately preceding the MPS instruction. 8–10 MRD 11 Memory Read Reads the rung state stored by the MPS instruction and resumes operation using that rung state. 8–10 MPP 12 Memory Pop Removes the rung state stored by the MPS instruction, reads it, and resumes operation using that rung state.
Chapter 8 Using Basic Instructions Bit Instructions Overview These instructions operate on a single bit of data. During operation, the controller may set or reset the bit, based on the logical continuity of the rung. You can address a bit as many times as your program requires. Important: Using the same address with multiple output instructions is not recommended. Bit instructions are used with the following data files: • Output (O) and input (I) data files. These represent external outputs and inputs.
Chapter 8 Using Basic Instructions Using AND Use the AND instruction for normally open contacts placed in series with any previous input instruction in the current rung or block. Entering the Instruction You enter the instruction from within the program monitor functional area. To access the AND instruction, press: AND 8 P 0 0 0 I / 7 0 Using OR Use the OR instruction for normally open contacts placed in parallel with any previous input instruction in the current rung or block.
Chapter 8 Using Basic Instructions Using LDI Use the LDI instruction for normally closed contacts that appears first on a rung or block. Entering the Instruction You enter the instruction from within the program monitor functional area. To access the LDI instruction, press: LDI 4 P 0 0 0 I / 6 / 0 Using ANI Use the ANI instruction for normally closed contacts placed in series with any previous input instruction in the current rung or block.
Chapter 8 Using Basic Instructions Load True (LDT) and Or True (ORT) Ladder representation: The LDT and ORT instructions are used to short circuit a block of logic. They are useful for debugging a rung when you need a condition that is always true. There are no parameters to enter for these instructions. LDT ] [ ] [ ORT Execution Times (µsec) when: True LDT 1.54 ORT 1.94 Using LDT False Use the LDT instruction to place a short in the first position of a rung or block.
Chapter 8 Using Basic Instructions One-Shot Rising (OSR) The OSR instruction is a retentive input instruction that triggers an event to occur one time. Use the OSR instruction when an event must start based on the change of state of the rung from false to true. Ladder representation: B3 [OSR] 0 True False When the rung conditions preceding the OSR instruction go from false to true, the OSR instruction becomes true for one scan.
Chapter 8 Using Basic Instructions Output (OUT) Use an OUT instruction in your ladder program to turn On a bit when rung conditions are evaluated as true. Ladder representation: An example of a device that turns on or off is an output wired to a pilot light (addressed as O/4). ( ) OUT instructions are reset when: • You enter or return to the RRUN, RCSN, or RSSN mode or power is restored. • The OUT is programmed within an inactive or false Master Control Reset (MCR) zone.
Chapter 8 Using Basic Instructions Using SET When you assign an address to the SET instruction that corresponds to the address of a physical output, the output device wired to this screw terminal is energized when the bit is set (turned on or latched). When rung conditions become false (after being true), the bit remains set and the corresponding output device remains energized. When enabled, the SET instruction tells the controller to turn on the addressed bit.
Chapter 8 Using Basic Instructions Memory Push (MPS), Memory Read (MRD), and Memory Pop (MPP) MPS, MRD, and MPP are multiple output circuit connecting instructions. These instructions work together to store, read, and clear the state of a rung prior to the execution of an output circuit. Every MPS instruction used in a program must be paired with an MPP instruction. An MRD instruction is not always required.
Chapter 8 Using Basic Instructions Using MRD The MRD instruction reads the rung state stored by the MPS instruction and resumes operation using that rung state. Each branch structure can have a maximum of 73 MRD instructions. This instruction can only be used if all of the following statements are true: • An MPS instruction was used previously on the rung. • The MRD is immediately preceded by an output instruction. • An output circuit immediately follows the MRD.
Chapter 8 Using Basic Instructions Entering the Instruction You enter the instruction from within the program monitor functional area. To enter the function code, press: P 0 0 0 FUN 1 L MP P ENT 2 The example below illustrates when you would enter the MPP instruction. b a c And Block (ANB) and Or Block (ORB) Ladder representation: ] [ ANB ] [ ] [ ] [ ] [ ] [ ] [ ] [ d e Instruction List NEW RUNG LD a OUT b MPS AND c OUT d MPP OUT e ANB and ORB are block connecting instructions.
Chapter 8 Using Basic Instructions The example below illustrates when you would enter the ANB instruction. a c b d e Instruction List NEW RUNG LD a OR b LD c OR d ANB OUT e Using ORB The ORB instruction is used to make a parallel connection of circuit blocks with two or more contacts. (A parallel connection of circuit blocks with one contact requires only an OR or ORI instruction. See page 16–2.) Entering the Instruction You enter the instruction from within the program monitor functional area.
Chapter 8 Using Basic Instructions Timer Instructions Overview Each timer address is made of a 3-word element. Word 0 is the control word, word 1 stores the preset value, and word 2 stores the accumulator value. 15 14 13 Word 0 EN TT DN Word 1 Preset Value Word 2 Accumulator Value Internal Use EN = Timer Enable Bit TT = Timer Timing Bit DN = Timer Done Bit Entering Parameters Accumulator Value (ACC) This is the time elapsed since the timer was last reset.
Chapter 8 Using Basic Instructions Entering the Instructions The following items apply when entering the instructions: • Whenever you see asterisks on the display, the HHP is waiting for data entry (i.e., a number). • If you see a down arrow on the display it means there are more options available. To scroll through the options, press this key: • You can return to previously entered operands by pressing this key: Then if you want to edit that operand, press DEL or FUN-DEL and enter new parameters.
Chapter 8 Using Basic Instructions Timer On-Delay (TON) Use the TON instruction to delay the turning on or off of an output. The TON instruction begins to count timebase intervals when rung conditions become true. As long as rung conditions remain true, the timer increments its accumulated value (ACC) each scan until it reaches the preset value (PRE). The accumulated value is reset when rung conditions go false, regardless of whether the timer has timed out.
Chapter 8 Using Basic Instructions Once instruction entry is complete, the parameters are condensed to two screens as shown here: P 0 0 0 T ON P 1 0 0 A P 0 0 0 0 . 0 1 T ON S E C T 0 0 6 6 B A S E When the controller changes from the RRUN, RCSN, or RSSN mode to the RPRG mode or user power is lost while the instruction is timing but has not reached its preset value, the following occurs: • Timer Enable (EN) bit remains set. • Timer Timing (TT) bit remains set.
Chapter 8 Using Basic Instructions Timer Off-Delay (TOF) Use the TOF instruction to delay turning on or off an output. The TOF instruction begins to count timebase intervals when the rung makes a true-to-false transition. As long as rung conditions remain false, the timer increments its accumulated value (ACC) each scan until it reaches the preset value (PRE). The controller resets the accumulated value when rung conditions go true regardless of whether the timer has timed out.
Chapter 8 Using Basic Instructions Once instruction entry is complete, the parameters are condensed to two screens as shown here: P 0 0 0 T OF P 1 2 0 A P 0 0 0 0 . 0 1 T OF S E C T 0 1 0 B A S E When the controller changes from the RRUN, RCSN, or RSSN mode to the RPRG mode, or user power is lost while a timer off-delay instruction is timing but has not reached its preset value, the following occurs: • Timer Enable (EN) bit remains set. • Timer Timing (TT) bit remains set.
Chapter 8 Using Basic Instructions Retentive Timer (RTO) Use the RTO instruction to turn an output on or off after its timer has been on for a preset time interval. The RTO instruction is a retentive instruction that lets the timer stop and start without resetting the accumulated value (ACC). Ladder representation: RTO RETENTIVE TIMER ON Timer T4:2 Time Base 0.01 Preset 120 Accum 0 (EN) (DN) Execution Times (µsec) when: True False 38.34 27.
Chapter 8 Using Basic Instructions Once instruction entry is complete, the parameters are condensed to two screens as shown here: P 0 0 0 R T O P 1 2 0 A P 0 0 0 0 . 0 1 R T O S E C T 0 2 0 B A S E When the controller changes from the RRUN, RCSN, or RSSN mode to the RPRG or FLT mode or user power is lost while the timer is timing but not yet at the preset value, the following occurs: • Timer Enable (EN) bit remains set. • Timer Timing (TT) bit remains set. • Accumulated value (ACC) remains the same.
Chapter 8 Using Basic Instructions Entering Parameters Accumulator Value (ACC) This is the number of false-to-true transitions that have occurred since the counter was last reset. Preset Value (PRE) Specifies the value which the counter must reach before the controller sets the done bit. When the accumulator value becomes equal to or greater than the preset value, the done status bit is set. You can use this bit to control an output device.
Chapter 8 Using Basic Instructions Addressing Structure Address bits and words using the format shown below. Format Ce.s/b C . /b Explanation C Counter file e Element number Ranges from 0 – 39. These are 3-word elements. See figure on page 8–21. . Subelement delimiter s Subelement / Bit delimiter b Bit number PRE or ACC Important: If assigned to a high-speed counter instruction, C0 is not available as an address for any other counter instructions.
Chapter 8 Using Basic Instructions How Counters Work The figure below demonstrates how a counter works. The count value must remain in the range of –32,768 to +32,767. If the count value goes above +32,767 or below –32,768, a counter status overflow (OV) or underflow (UN) bit is set. A counter can be reset to zero using the reset (RES) instruction. (See page 8–27.
Chapter 8 Using Basic Instructions Entering the Instruction You enter the instruction from within the program monitor functional area.
Chapter 8 Using Basic Instructions Using Status Bits This Bit Is Set When And Remains Set Until One of the Following Count Down Underflow Bit UN (bit 11) accumulated value wraps around to +32,768 (from –32,767) and continues counting down from there a RES instruction having the same address as the CTD instruction is enabled.
Chapter 8 Using Basic Instructions Reset (RES) Use a RES instruction to reset a timer or counter. When the RES instruction is executed, it resets the data having the same address as the RES instruction. Ladder representation: T4:0 (RES) Using a RES instruction for a: The controller resets the: Timer (Do not use a RES instruction with a TOF.
Chapter 8 Using Basic Instructions Basic Instructions in the Paper Drilling Machine Application Example To demonstrate the use of basic instructions, this section provides ladder rungs followed by the optimized instruction list for these rungs. The rungs are part of the paper drilling machine application example described in appendix D. You will be updating the main program in file 2 and adding a subroutine to file 6.
Chapter 8 Using Basic Instructions Ladder Rungs Rung 2:3➀ Starts the conveyor in motion when the start button is pressed. However, another condition must also be met before we start the conveyor: the drill must be in its fully retracted position (home). This rung also stops the conveyor when the stop button is pressed.
Chapter 8 Using Basic Instructions File 2, Rung 4 Applies the above start logic to the conveyor and drill motor.
Chapter 8 Using Basic Instructions Rung 6:1 When the drill has drilled through the book, the body of the drill actuates the DRILL DEPTH limit switch. When this happens, the DRILL FORWARD signal is turned off and the DRILL RETRACT signal is turned on. The drill is also retracted automatically on power up if it is not actuating the DRILL HOME limit switch.
Chapter 8 Using Basic Instructions File 6, Rung 1 When the drill has drilled through the book, the body of the drill actuates the DRILL DEPTH limit switch. When this happens, the DRILL FORWARD signal is turned off and the DRILL RETRACT signal is turned on. The drill is also retracted automatically on power up if it is not actuating the DRILL HOME limit switch.
Chapter 9 Using Comparison Instructions This chapter contains general information about comparison instructions and explains how they function in your application program.
Chapter 9 Using Comparison Instructions Comparison Instructions HHP Display Mnemonic Function Name Code MEQ LD MEQ 68 MEQ AND MEQ 69 MEQ OR MEQ 70 LIM LD LIM 71 LIM AND LIM 72 LIM OR LIM 73 About the Comparison Instructions Purpose Page Masked Mas e Comparison for Equal a Test es portions r i s off two values a es to see whether e er they e are eequal. a Compares ares 16-bit data of a source address to 16-bit data at a reference address through r a mask.
Chapter 9 Using Comparison Instructions Function Codes Each comparison instruction has three function codes associated with it. The code that you use correlates to the way the instruction is used on the rung, as described in the table below.
Chapter 9 Using Comparison Instructions To enter the function code, press: ANB F UN 5 0 E ENT NT Not Equal (NEQ) NEQ Source B E QU S R C A 0 P 0 0 0 E QU S R C B 1 0 0 Use the NEQ instruction to test whether two values are not equal. If source A and source B are not equal, the instruction is logically true. If the two values are equal, the instruction is logically false. Ladder representation: NOT EQUAL Source A P 0 0 0 N 1 1 Source A must be a word address.
Chapter 9 Using Comparison Instructions Less Than (LES) Use the LES instruction to test whether one value (source A) is less than another (source B). If the value at source A is less than the value of source B the instruction is logically true. If the value at source A is greater than or equal to the value of source B, the instruction is logically false. Ladder representation: LES LESS THAN Source A Source B N7:11 0 100 Source A must be a word address. Source B can be either a constant or word address.
Chapter 9 Using Comparison Instructions Less Than or Equal (LEQ) Ladder representation: LEQ LESS THAN OR EQUAL Source A N7:11 0 Source B 100 Source A must be a word address. Source B can be either a constant or word address. Negative integers are stored in two’s complement form. Entering the Instruction Execution Times (µsec) when: True False LD LEQ 23.60 AND LEQ 24.00 OR LEQ 24.00 6.60 7.00 7.
Chapter 9 Using Comparison Instructions Greater Than (GRT) Use the GRT instruction to test whether one value (source A) is greater than another (source B). If the value at source A is greater than the value of source B, the instruction is logically true. If the value at source A is less than or equal to the value of source B, the instruction is logically false. Ladder representation: GRT GREATER THAN Source A N7:11 0 Source B 100 Source A must be a word address.
Chapter 9 Using Comparison Instructions Greater Than or Equal (GEQ) Ladder representation: GEQ GRTR THAN OR EQUAL Source A N7:11 0 Source B 100 Source A must be a word address. Source B can be either a constant or word address. Negative integers are stored in two’s complement form. Entering the Instruction Execution Times (µsec) when: True False LD GEQ 23.60 AND GEQ 24.00 OR GEQ 24.00 6.60 7.00 7.
Chapter 9 Using Comparison Instructions Masked Comparison for Equal (MEQ) Ladder representation: Entering Parameters MEQ MASKED EQUAL Source N7:11 Mask Use the MEQ instruction to compare data of a source address with data of a reference address. Use of this instruction allows portions of the data to be masked by a separate word. • Source is the address of the value you want to compare. • Mask is the address of the mask through which the instruction moves 0000H Compare data.
Chapter 9 Using Comparison Instructions Limit Test (LIM) Use the LIM instruction to test for values within or outside a specified range, depending on how you set the limits. Ladder representation: Entering Parameters LIM LIMIT TEST Low Lim The Low Limit, Test, and High Limit values can be word addresses or constants, restricted to the following combinations: • If the Test parameter is a constant, both the Low Limit and High Limit parameters must be word addresses.
Chapter 9 Using Comparison Instructions True/False Status of the Instruction If the Low Limit has a value equal to or less than the High Limit, the instruction is true when the Test value is between the limits or is equal to either limit. If the Test value is outside the limits, the instruction is false, as shown below.
Chapter 9 Using Comparison Instructions Comparison Instructions in the Paper Drilling Machine Application Example To demonstrate the use of comparison instructions, this section provides ladder rungs followed by the optimized instruction list for these rungs. The rungs are part of the paper drilling machine application example described in appendix D. You will be adding an instruction to file 2 and beginning a subroutine in file 7.
Chapter 9 Using Comparison Instructions Instruction List File 2, Rung 3 Starts the conveyor in motion when the start button is pressed. However, another condition must also be met before we start the conveyor: the drill bit must be in its fully retracted position (home). This rung also stops the conveyor when the stop button is pressed.
Chapter 9 Using Comparison Instructions Ladder Rung Rung 7:0➀ Examines the number of 1/4 in. thousands that have accumulated over the life of the current drill bit. If the bit has drilled between 100,000–101,999 1/4 in. increments of paper, the ”change drill” light illuminates steadily. When the value is between 102,000–103,999, the ”change drill” light flashes at a 1.28 second rate. When the value reaches 105,000, the ”change drill” light flashes, and the ”change drill now” light illuminates. | 1/4 in.
Chapter 9 Using Comparison Instructions Instruction List File 7, Rung 0➀ Examines the number of 1/4 in. thousands that have accumulated over the life of the current drill bit. If the bit has drilled between 100,000–101,999 1/4 in. increments of paper, the ”change drill” light illuminates steadily. When the value is between 102,000–103,999, the ”change drill” light flashes at a 1.28 second rate.
Chapter 10 Using Math Instructions This chapter contains general information about math instructions and explains how they function in your logic program. Each of the math instructions includes information on: • what the instruction symbol looks like • typical execution time for the instruction • how to use the instruction • how to enter the instruction In addition, the last section contains an application example for a paper drilling machine that shows the math instructions in use.
Chapter 10 Using Math Instructions Math Instructions Overview The following general information applies to math instructions. Entering the Instructions The following items apply when entering the instructions: • Whenever you see asterisks on the display, the HHP is waiting for data entry (i.e., a number). • You can return to previously entered operands by pressing this key: Then if you want to edit that operand, press DEL or FUN-DEL and enter new parameters.
Chapter 10 Using Math Instructions In applications where a math overflow or divide by zero occurs, you can avoid a controller fault by using an reset (RST) instruction with address S5/0 in your program. The rung must be between the overflow point and the END or TND statement. Changes to the Math Register, S13 and S14 Status word S13 contains the least significant word of the 32-bit values of the MUL and DDV instructions. It contains the remainder for DIV and DDV instructions.
Chapter 10 Using Math Instructions Add (ADD) Use the ADD instruction to add one value (source A) to another value (source B) and place the result in the destination. Ladder representation: Source A and B can either be a word address or a constant, however both sources cannot be a constant. The destination must be a word address. ADD ADD Source A N7:12 0 N7:10 0 N7:10 0 Source B Dest Updates to Arithmetic Status Bits Execution Times (µsec) when: True False 33.09 6.
Chapter 10 Using Math Instructions Subtract (SUB) Use the SUB instruction to subtract one value (Source B) from another (source A) and place the result in the destination. Ladder representation: Source A and B can either be a word address or a constant, however both sources cannot be a constant. The destination must be a word address.
Chapter 10 Using Math Instructions 32-Bit Addition and Subtraction You have the option of performing 16-bit or 32-bit signed integer addition and subtraction. This is facilitated by status file bit S2/14 (math overflow selection bit). Math Overflow Selection Bit S2/14 Set this bit when you intend to use 32-bit addition and subtraction.
Chapter 10 Using Math Instructions Ladder Rung B3 ] [ ADD B3 [OSR] 1 0 ADD Source A B3:1 0101010110101000 Source B B3:2 0001100101000000 Dest B3:2 0001100101000000 ADD S:0 ] [ 0 ADD Source A 1 When the rung goes true for a single scan, B1 is added to B2. The result is placed in B2. If a carry is generated (S0/0 set), 1 is added to B3.
Chapter 10 Using Math Instructions Multiply (MUL) Use the MUL instruction to multiply one value (source A) by another (source B) and place the result in the destination. Ladder representation: Source A and B can either be a word address or a constant, however both sources cannot be a constant. The destination must be a word address. MUL MULTIPLY Source A N7:4 0 60 Source B Dest If the result is larger than +32,767 or smaller than –32,767 (16-bits), the 32-bit result is placed in the math register.
Chapter 10 Using Math Instructions Divide (DIV) Use the DIV instruction to divide one value (source A) by another (source B), and place the rounded quotient in the destination. If the remainder is 0.5 or greater, the destination is rounded up. Ladder representation: DIV DIVIDE Source A Source B Dest Source A and B can either be a word address or a constant; however, both sources cannot be a constant. The destination must be a word address. 100 T4:0.PRE 100 C5:1.
Chapter 10 Using Math Instructions Double Divide (DDV) The 32-bit content of the math register is divided by the 16-bit source value and the rounded quotient is placed in the destination. If the remainder is 0.5 or greater, the destination is rounded up. Ladder representation: DDV The source can either be a word address or a constant. The destination must be a word address. DOUBLE DIVIDE Source N7:2 1000 Dest N7:5 0 This instruction typically follows a MUL instruction that creates a 32-bit result.
Chapter 10 Using Math Instructions Clear (CLR) Use the CLR instruction to set the destination to zero. All of the bits reset. The destination must be a word address. Ladder representation: CLR CLEAR Dest Updates to Arithmetic Status Bits N7:11 0 Execution Times (µsec) when: True False 20.80 4.25 With this Bit: S0/0 Carry (C) The Controller: always resets. S0/1 Overflow (V) always resets. S0/2 Zero (Z) always sets. S0/3 Sign (S) always resets.
Chapter 10 Using Math Instructions Entering the Instruction You enter the instruction from within the program monitor functional area. To enter the function code, press: FUN 8 6 Scale Data (SCL) Ladder representation: E NT P 0 0 0 N 8 S QR P 0 0 0 N 1 1 S QR S R C 0 D E S T 0 When this instruction is true, the value at the source address is multiplied by the rate value. The rounded result is added to the offset value and placed in the destination.
Chapter 10 Using Math Instructions Updates to Arithmetic Status Bits With this Bit: The Controller: S0/0 is reserved. Carry (C) S0/1 Overflow (V) S0/2 S0/3 Zero (Z) Sign (S) sets if an overflow is detected; otherwise resets. On overflow, minor error bit S:5/0 is also set and the value –32,768 or 32,767 is placed in the destination. The presence of an overflow is checked before and after the offset value is applied.➀ sets when destination value is zero.
Chapter 10 Using Math Instructions The following example takes a 0V to 10.5V analog input from a MicroLogix 1000 analog controller and scales the raw input data to a value between 0 and 100%. The input value range is 0V to 10V which corresponds to 0 to 31,207 counts. The scaled value range is 0 to 100 percent. Application Example – Convert Voltage Input to Percent 100 (Scaled Max.) Scaled Value (percent) (Scaled Min.) 0 0V (Input Min.) 31,207 10V (Input Max.
Chapter 10 Using Math Instructions Math Instructions in the Paper Drilling Machine Application Example To demonstrate the use of math instructions, this section provides ladder rungs followed by the optimized instruction list for these rungs. The rungs are part of the paper drilling machine application example described in appendix D. You will be adding to the subroutine in file 7 that was started in chapter 9. Ladder Rungs Rung 7:1 Resets the number of 1/4 in. increments and the 1/4 in.
Chapter 10 Using Math Instructions Rung 7:6 When the number of 1/4 in. increments surpasses 1000, determines how many increments are past 1000 and stores in N7:20. Adds 1 to the total of 1000 1/4 in. increments and re–initializes the 1/4 in. increments accumulator to how many increments were beyond 1000. | 1/4 in.
Chapter 10 Using Math Instructions File 7, Rung 5➀ Keeps a running total of how many inches of paper have been drilled with the current drill bit. Every time a hole is drilled, adds the thickness (in 1/4 ins) to the running total (kept in 1/4 ins). The OSR is necessary because the ADD executes every time the rung is true, and the drill body would actuate the DRILL DEPTH limit switch for more than 1 program scan.
Chapter 11 Using Data Handling Instructions This chapter contains general information about the data handling instructions and explains how they function in your application program.
Chapter 11 Using Data Handling Instructions About the Data Handling Instructions Use these instructions to convert information, manipulate data in the controller, and perform logic operations. Since these are output instructions, they do not have LD, AND, and OR equivalents. In this chapter you will find a general overview preceding groups of instructions. Before you learn about the instructions in each of these groups, we suggest that you read the overview.
Chapter 11 Using Data Handling Instructions To enter the function code, press: ANB F UN ANB 0 1 0 ENT P 0 0 0 N 1 1 T OD S R C P 0 0 0 S 1 3 T OD D E S T 0 0 0 0 0 0 0 0 H 0 Changes to the Math Register Contains the 5-digit BCD result of the conversion. This result is valid at overflow. Important: To convert numbers larger than 9999 decimal, the destination must be the Math Register (S13). You must reset the Minor Error Bit (S5/0) to prevent an error.
Chapter 11 Using Data Handling Instructions To enter the function code, press: FUN ANB 1 0 1 ENT P 0 0 0 N 1 4 F R D S R C 0 0 0 0 H P 0 0 0 N 1 2 F R D D E S T 0 Important: Always provide filtering of all BCD input devices prior to performing the FRD instruction. The slightest difference in point-to-point input filter delay can cause the FRD instruction to overflow due to the conversion of a non-BCD digit.
Chapter 11 Using Data Handling Instructions Instruction List FUN CODE –––– 21 GRAPHIC SYMBOL ––––––– |–]/[– MNEMONIC –––––––– LDI 51 –EQU– AND–EQU SRCA N1 SRCB I0 0000H 0000H FRD SRC I0 DEST N2 0000H 0000H 101 FUN CODE –––– 106 GRAPHIC SYMBOL ––––––– MNEMONIC –––––––– MOV PARAMETER NAME ADDRESS –––– ––––––– S1/15 PARAMETER NAME ADDRESS –––– ––––––– SRC I0 DEST N1 VALUE ––––– 0 VALUE ––––– 0000H 0000H FORCES –––––– FORCES –––––– Example 2 The BCD value 32760 in the math register is conv
Chapter 11 Using Data Handling Instructions Ladder Rung MOV I:0 ] [ MOVE Source 1 N7:2 4660 S:13 4660 Dest 0001 0010 0011 0100 CLR CLEAR Dest S:14 0 FRD FROM BCD Source Dest S:13 00001234 N7:0 1234 The programming software displays S13 and S14 in BCD.
Chapter 11 Using Data Handling Instructions Decode 4 to 1 of 16 (DCD) When executed, this instruction sets one bit of the destination word. The particular bit that is turned On depends on the value of the first four bits of the source word. See the table below. Ladder representation: DCD Use this instruction to multiplex data in applications such as rotary switches, keypads, and bank switching.
Chapter 11 Using Data Handling Instructions To enter the function code, press: ANB FUN 1 0 L 2 Encode 1 of 16 to 4 (ENC) ENT P 0 0 0 N 1 1 D C D S R C 0 0 0 0 H P 0 0 0 N 1 2 D C D D E S T 0 0 0 0 H When the rung is true, this output instruction searches the source from the lowest to the highest bit and looks for the first set bit. The corresponding bit position is written to the destination as an integer, as shown in the table below.
Chapter 11 Using Data Handling Instructions Updates to Arithmetic Status Bits The arithmetic status bits are found in Word 0, bits 0–3 in the controller status file. After an instruction is executed, the arithmetic status bits in the status file are updated: With this Bit: The Controller: S0/0 Carry (C) always resets. S0/1 Overflow (V) S0/2 Zero (Z) sets if more than one bit in the source is set; otherwise reset. The math overflow bit (S5/0) is not set. sets if destination value is zero.
Chapter 11 Using Data Handling Instructions Copy File (COP) and Fill File (FLL) Instructions Ladder representation: COP COPY FILE Source Dest Length #C5:11 #N7:14 25 The destination file type determines the number of words that an instruction transfers. For example, if the destination file type is a counter and the source file type is an integer, three integer words are transferred for each element in the counter-type file.
Chapter 11 Using Data Handling Instructions All elements are copied from the source file into the destination file each time the instruction is executed. Elements are copied in ascending order. If your destination file type is a timer, counter, or control file, be sure that the destination words corresponding to the status elements of your source file contain zeros. Entering the Instruction You enter the instruction from within the program monitor functional area.
Chapter 11 Using Data Handling Instructions Using FLL The following figure shows how file instruction data is manipulated. The instruction fills the words of a file with a source value. It uses no status bits. If you need an enable bit, program a parallel output that uses a storage address. Destination Source Word to File Entering Parameters Enter the following parameters when programming this instruction: • Source is a constant or element address.
Chapter 11 Using Data Handling Instructions instruction’s parameters, you must go into the overwrite mode. (See page 17–4.) To enter the function code, press: FUN ANB 1 0 5 ENT P 0 0 0 N 1 1 F L L S R C P 0 0 0 # C 1 2 F L L D E S T 0 0 0 0 H P 0 0 0 F L L L E N 0 5 Move and Logical Instructions Overview The following general information applies to move and logical instructions.
Chapter 11 Using Data Handling Instructions Using Indexed Word Addresses You have the option of using indexed word addresses for instruction parameters specifying word addresses. Indexed addressing is discussed in chapter 6. Updates to Arithmetic Status Bits The arithmetic status bits are found in Word 0, bits 0–3 in the controller status file.
Chapter 11 Using Data Handling Instructions Move (MOV) This output instruction moves the source data to the destination location. As long as the rung remains true, the instruction moves the data each scan. Ladder representation: MOV MOVE Source 23 Entering Parameters Dest O:0.0 0 Enter the following parameters when programming this instruction: • Source is the address or constant of the data you want to move. • Destination is the address where the instruction moves the data.
Chapter 11 Using Data Handling Instructions Masked Move (MVM) The MVM instruction is a word instruction that moves data from a source location to a destination and allows portions of the destination data to be masked by a separate word. As long as the rung remains true, the instruction moves the data each scan.
Chapter 11 Using Data Handling Instructions Operation When the rung containing this instruction is true, data at the source address passes through the mask to the destination address. See the following HHP displays and figure.
Chapter 11 Using Data Handling Instructions And (AND) The value at source A is ANDed bit by bit with the value at source B and then stored in the destination. (This instruction differs from the AND input instruction discussed in chapter 8.) Ladder representation: AND BITWISE AND Source A Truth Table 255 Dest = A AND B Source B N7:0 100 N7:0 100 Dest A 0 1 0 1 Execution Times (µsec) when: True False 34.00 6.
Chapter 11 Using Data Handling Instructions Or (OR) The value at source A is ORed bit by bit with the value at source B and then stored in the destination. (This instruction differs from the OR input instruction discussed in chapter 8.) Ladder representation: OR Truth Table BITWISE INCLUS OR Source A 255 Dest = A OR B Source B N7:0 100 N7:0 100 Dest A 0 1 0 1 Execution Times (µsec) when: True False 33.68 6.
Chapter 11 Using Data Handling Instructions Exclusive Or (XOR) The value at source A is Exclusive ORed bit by bit with the value at source B and then stored in the destination. Ladder representation: Truth Table XOR BITWISE EXCLUS OR Source A 255 Source B Dest = A XOR B A 0 1 0 1 N7:0 100 N7:0 100 Dest Execution Times (µsec) when: True False 33.64 6.92 B 0 0 1 1 Dest 0 1 1 0 Source A and B can either be a word address or a constant; however, both sources cannot be a constant.
Chapter 11 Using Data Handling Instructions Not (NOT) The source value is NOTed bit by bit and then stored in the destination (one’s complement). Ladder representation: Truth Table NOT NOT Source Dest = NOT A N7:4 0 N7:11 0 Dest A 0 1 Execution Times (µsec) when: True False 28.21 6.78 Dest 1 0 The source and destination must be word addresses. Updates to Arithmetic Status Bits With this Bit: The Controller: S0/0 Carry (C) always resets. S0/1 Overflow (V) always resets.
Chapter 11 Using Data Handling Instructions Negate (NEG) Use the NEG instruction to change the sign of a value. If you negate a negative value, the result is a positive; if you negate a positive value, the result is a negative. The destination contains the two’s complement of the source. Ladder representation: NEG NEGATE Source The source and destination must be word addresses. N7:4 0 N7:11 0 Dest Updates to Arithmetic Status Bits Execution Times (µsec) when: True False 29.48 6.
Chapter 11 Using Data Handling Instructions FIFO and LIFO Instructions Overview FIFO instructions load words into a file and unload them in the same order as they were loaded. The first word in is the first word out. LIFO instructions load words into a file and unload them in the opposite order as they were loaded. The last word in is the first word out.
Chapter 11 Using Data Handling Instructions Entering the Instructions The following items apply when entering the instructions: • Whenever you see asterisks on the display, the HHP is waiting for data entry (i.e., a number). • You can return to previously entered operands by pressing this key: Then if you want to edit that operand, press DEL or FUN-DEL and enter new parameters. Press ENT to accept the operand and move on to the next one.
Chapter 11 Using Data Handling Instructions FIFO Load (FFL) and FIFO Unload (FFU) FFL and FFU instructions are used in pairs. The FFL instruction loads words into a user-created file called a FIFO stack. The FFU instruction unloads words from the FIFO stack in the same order as they were entered.
Chapter 11 Using Data Handling Instructions While entering the FFU instruction, you see these screens: To enter the function code, press: FUN 1 1 4 ENT P 0 0 0 # N 1 2 F F U F I F O P 0 0 0 N 1 1 F F U D E S T P 0 0 0 R 0 F F U C T R L P 0 0 0 F F U L E N * * * * 3 4 P 0 0 0 F F U P OS * * * * * 9 Operation The operation of the FFL – FFU instruction pair is shown on the following page.
Chapter 11 Using Data Handling Instructions P 0 0 0 N 1 0 P 0 0 0 # N 1 2 P 0 0 0 L P 0 0 0 # N 1 2 F F L Destination S R C 0 F F L F F L 3 4 P F F U F I F O 0 N11 FFU instruction unloads data from stack #N12 at position 0, N12. R 0 0 9 F I F O 0 F F U P 0 0 0 L F F U 3 4 P D E S T 0 N12 0 N13 1 N14 2 N15 3 N16 Source N10 P 0 0 0 N 1 1 Position 4 N17 5 N18 6 N19 7 N20 34 words are allocated for FIFO stack starting at N12, ending at N45.
Chapter 11 Using Data Handling Instructions LIFO Load (LFL) and LIFO Unload (LFU) LFL and LFU instructions are used in pairs. The LFL instruction loads words into a user-created file called a LIFO stack. The LFU instruction unloads words from the LIFO stack in the opposite order as they were entered.
Chapter 11 Using Data Handling Instructions While entering the LFU instruction, you see these screens: To enter the function code, press: FUN 1 1 6 ENT P 0 0 0 # N 1 2 L F U L I F O P 0 0 0 N 1 1 L F U D E S T P 0 0 0 R 0 L F U C T R L P 0 0 0 L F U L E N * * * * 3 4 P 0 0 0 L F U P OS * * * * * 9 Operation The operation of the LFL – LFU instruction pair is shown on the following page.
Chapter 11 Using Data Handling Instructions P 0 0 0 N 1 0 P 0 0 0 # N 1 2 P 0 0 0 L P 0 0 0 # N 1 2 L F L 0 L F L L F L 3 4 P L F U L I F O 0 N11 LFU instruction unloads data from stack #N12 at position 8. R 0 0 9 L I F O 0 L F U P 0 0 0 L L F U 3 4 P D E S T 0 R 0 0 9 N12 0 N13 1 N14 2 N15 3 N16 Source N10 P 0 0 0 N 1 1 Position Destination S R C 4 N17 5 N18 6 N19 7 N20 34 words are allocated for LIFO stack starting at N12, ending at N45.
Chapter 11 Using Data Handling Instructions Data Handling Instructions in the Paper Drilling Machine Application Example To demonstrate the use of data handling instructions, this section provides ladder rungs, followed by the optimized instruction list for these rungs. The rungs are part of the paper drilling machine application example described in appendix E. You will be adding to the subroutine in file 7 that was started in chapter 9.
Chapter 11 Using Data Handling Instructions Rung 7:4 Ensures that the operator cannot select a paper thickness of 0. If this were allowed, the drill bit life calculation could be defeated resulting in poor quality holes due to a dull drill bit. Therefore the minimum paper thickness used to calculate drill bit wear is 1/4 in.
Chapter 11 Using Data Handling Instructions File 7, Rung 3 Converts the BCD thumbwheel value from BCD to integer. This is done because the controller operates upon integer values. This rung also ”debounces” the thumbwheel to ensure that the conversion only occurs on valid BCD values. Note that invalid BCD values can occur while the operator is changing the BCD thumbwheel. This is due to input filter propagation delay differences between the four input circuits that provide the BCD input value.
Chapter 12 Using Program Flow Control Instructions This chapter contains general information about the program flow instructions and explains how they function in your application program.
Chapter 12 Using Program Flow Control Instructions Jump (JMP) and Label (LBL) Use these instructions in pairs to skip portions of the ladder program. If the Rung Containing the Jump Instruction is: True Ladder representation: 2 (JMP) False 2 ]LBL[ 9.04 1.45 Skips from the rung containing the JMP instruction to the rung containing the designated LBL instruction and then continues executing. You can jump forward or backward. Does not execute the JMP instruction.
Chapter 12 Using Program Flow Control Instructions You can program multiple jumps to the same label by assigning the same label number to multiple JMP instructions. However, label numbers must be unique. Important: Do not jump (JMP) into an MCR zone. Instructions that are programmed within the MCR zone starting at the LBL instruction and ending at the ‘END MCR’ instruction are always evaluated as though the MCR zone is true, regardless of the true state of the “Start MCR” instruction.
Chapter 12 Using Program Flow Control Instructions Nesting Subroutine Files Nesting subroutines allows you to direct program flow from the main program to a subroutine and then on to another subroutine. You can nest up to eight levels of subroutines. If you are using an STI subroutine, HSC interrupt subroutine, or user fault routine, you can nest subroutines up to three levels from each subroutine. The following figure illustrates how subroutines may be nested.
Chapter 12 Using Program Flow Control Instructions Using SBR The target subroutine is identified by the file number that you entered in the JSR instruction. This instruction serves as a label or identifier for a program file as a regular subroutine file. This instruction has no control bits. It is always evaluated as true. Use of this instruction is optional; however, we recommend using it for clarity. Important: The instruction must be programmed as the first instruction of the first rung of a subroutine.
Chapter 12 Using Program Flow Control Instructions Master Control Reset (MCR) Ladder representation: (MCR) Use MCR instructions in pairs to create program zones that turn off all the non-retentive outputs in the zone. Rungs within the MCR zone are still scanned, but scan time is reduced due to the false state of non-retentive outputs. Non-retentive outputs are reset when their rung goes false. If the MCR Rung that Starts the Zone is: Execution Times (µsec) when: True False 3.98 4.
Chapter 12 Using Program Flow Control Instructions Temporary End (TND) This instruction, when its rung is true, stops the controller from scanning the rest of the program file, updates the I/O, and resumes scanning at rung 0 of the main program (file 2). If this instruction’s rung is false, the controller continues the scan until the next TND instruction or the END statement.
Chapter 12 Using Program Flow Control Instructions Immediate Input with Mask (IIM) Ladder representation: IIM For the mask, a 1 in an input’s bit position passes data from the source to the destination. A 0 inhibits data from passing from the source to the destination. IMMEDIATE INPUT w MASK Slot I:O.O Mask 000B Execution Times (µsec) when: True False 35.72 6.78 This instruction allows you to update data prior to the normal input scan.
Chapter 12 Using Program Flow Control Instructions Immediate Output with Mask (IOM) This instruction allows you to update the outputs prior to the normal output scan. Data from the output image is transferred through a mask to the specified outputs. The program scan then resumes. Ladder representation: IOM Entering Parameters IMMEDIATE OUT w MASK Slot O:0.0 Mask 003F For all micro controllers, specify O0.
Chapter 12 Using Program Flow Control Instructions Program Flow Control Instructions in the Paper Drilling Machine Application Example To demonstrate the use of program flow control instructions, this section provides ladder rungs followed by the optimized instruction list for these rungs. The rungs are part of the paper drilling machine application example described in appendix E. You will be adding to the main program in file 2.
Chapter 13 Using Application Specific Instructions This chapter contains general information about the application specific instructions and explains how they function in your application program.
Chapter 13 Using Application Specific Instructions Bit Shift Instructions Overview The following general information applies to bit shift instructions. Entering Parameters Enter the following parameters when programming these instructions: • File is the address of the bit array you want to manipulate. You must use the file indicator (#) in the bit array address. (The HHP inserts the # character automatically.
Chapter 13 Using Application Specific Instructions • You can return to previously entered operands by pressing this key: Then if you want to edit that operand, press DEL or FUN-DEL and enter new parameters. Press ENT to accept the operand and move on to the next one. Once the entire instruction is entered, if you want to edit the instruction’s parameters, you must go into the overwrite mode. (See page 17–4.) Effects on Index Register S24 The shift operation clears the index register S24 to zero.
Chapter 13 Using Application Specific Instructions Operation The operation of the BSL instruction is shown in the figure below. The screens shown above the figure are the condensed screens that appear after instruction entry is complete. P 0 0 9 # B 1 B S L F I L E 0 0 0 0 H P 0 0 9 L B S L 5 8 P P 0 0 9 I / 5 B S L R 0 3 0 B I T 0 Source Bit I0/5 Data block is shifted one bit at a time from bit B/16 to bit B/73.
Chapter 13 Using Application Specific Instructions To enter the function code, press: FUN 1 5 1 ENT P 0 1 1 # B 2 B S R F I L E P 0 1 1 R 4 B S R C T R L P 0 1 1 B S R L E N * * * * 3 8 P 0 1 1 I / 6 B S R B I T Operation The operation of the BSR instruction is shown in the figure below. The screens shown above the figure are the condensed screens that appear after instruction entry is complete.
Chapter 13 Using Application Specific Instructions Sequencer Instructions Overview The following general information applies to sequencer instructions. Entering the Instructions The following items apply when entering the instructions: • Whenever you see asterisks on the display, the HHP is waiting for data entry (i.e., a number). • You can return to previously entered operands by pressing this key: Then if you want to edit that operand, press DEL or FUN-DEL and enter new parameters.
Chapter 13 Using Application Specific Instructions • Destination is the address of the output word or file for a SQO to which the instruction moves data from its sequencer file. Important: You can address the mask, source, or destination of a sequencer instruction as a word or file. If you address it as a file (using file indicator #), the instruction automatically steps through the source, mask, or destination file.
Chapter 13 Using Application Specific Instructions The done bit is set when the last word of the sequencer file is transferred. On the next false-to-true rung transition, the instruction resets the position to step one. If the position is equal to zero at startup, when you switch the controller from the RPRG mode to the RRUN mode, instruction operation depends on whether the rung is true or false on the first scan. • If true, the instruction transfers the value in step zero.
Chapter 13 Using Application Specific Instructions Operation The operation of the SQO instruction is shown in the figure below. The screens shown above the figure are the condensed screens that appear after instruction entry is complete.
Chapter 13 Using Application Specific Instructions Using SQC When the status of all non-masked bits in the source word match those of the corresponding reference word, the instruction sets the found bit (FD) in the control word. Otherwise, the found bit (FD) is cleared. The bits mask data when reset and pass data when set. The mask can be fixed or variable. If you enter a hexadecimal code, it is fixed. If you enter an element address or a file address for changing the mask with each step, it is variable.
Chapter 13 Using Application Specific Instructions Operation The operation of the SQC instruction is shown in the figure below. The screens shown above the figure are the condensed screens that appear after instruction entry is complete.
Chapter 13 Using Application Specific Instructions Sequencer Load (SQL) Ladder representation: The SQL instruction stores 16-bit data into a sequencer load file at each step of sequencer operation. The source of this data can be an I/O or internal word address, a file address, or a constant. SQL SEQUENCER LOAD File #B3:8 Source I:0.0 Control R6:3 Length 4 Position 2 Execution Times (µsec) when: True False 53.41 28.
Chapter 13 Using Application Specific Instructions Entering the Instruction You enter the instruction from within the program monitor functional area.
Chapter 13 Using Application Specific Instructions Operation The operation of the SQL instruction is shown in the figure below. The screens shown above the figure are the condensed screens that appear after instruction entry is complete. Input word I0 is the source. Data in this word is loaded into integer file #N30 by the sequencer load instruction.
Chapter 13 Using Application Specific Instructions Selectable Timed Interrupt (STI) Function Overview The Selectable Timed Interrupt (STI) function allows you to interrupt the scan of the application program automatically, on a periodic basis, to scan a subroutine file. Afterwards, the controller resumes executing the application program from the point where it was interrupted. Basic Programming Procedure for the STI Function To use the STI function in your application file: 1.
Chapter 13 Using Application Specific Instructions JSR stack depth is limited to three. You may call other subroutines to a level three deep from an STI subroutine. Interrupt Latency and Interrupt Occurrences Interrupt latency is the interval between the STI timeout and the start of the interrupt subroutine. STI interrupts can occur at any point in your program, but not necessarily at the same point on successive interrupts.
Chapter 13 Using Application Specific Instructions Selectable Timed Disable (STD) and Enable (STE) These instructions are generally used in pairs. The purpose is to create zones in which STI interrupts cannot occur. Ladder representation: STD SELECTABLE TIMED DISABLE Using STD STE When true, this instruction resets the STI enable bit and prevents the STI subroutine from executing. When the rung goes false, the STI enable bit remains reset until a true STS or STE instruction is executed.
Chapter 13 Using Application Specific Instructions The first pass bit S1/15 and the STE instruction in rung 0 are included to insure that the STI function is initialized following a power cycle. You should include this rung any time your program contains an STD/STE zone or an STD instruction. Program File 3 0 S:1 ] [ 15 1 ] [ STE SELECTABLE TIMED ENABLE ( ) ] [ 2 3 4 5 STD SELECTABLE TIMED DISABLE 6 STI interrupt execution will not occur between STD and STE.
Chapter 13 Using Application Specific Instructions Entering the Instruction You enter the instructions from within the program monitor functional area. The following items apply when entering the instructions: • Whenever you see asterisks on the display, the HHP is waiting for data entry (i.e., a number). • You can return to previously entered operands by pressing this key: Then if you want to edit that operand, press DEL or FUN-DEL and enter new parameters.
Chapter 13 Using Application Specific Instructions Application Specific Instructions in the Paper Drilling Machine Application Example To demonstrate the use of application specific instructions, this section provides ladder rungs followed by the optimized instruction list of these rungs. The rungs are part of the paper drilling machine application example described in appendix E. You will begin a subroutine in file 4.
Chapter 13 Using Application Specific Instructions Ladder Rungs Rung 4:0 Resets the hole count sequencers each time the low preset is reached. The low preset has been set to zero to cause an interrupt to occur each time that a reset occurs. The low preset is reached anytime that a reset C5:0 or hardware reset occurs. This ensures that the first preset value is loaded into the HSC at each entry into the RRUN mode and each time that the external reset signal is activated.
Chapter 13 Using Application Specific Instructions Rung 4:2 Is identical to the previous rung except that it is only active when the ”hole selector switch” is in the ”5–hole” position.
Chapter 13 Using Application Specific Instructions Instruction List File 4, Rung 0 Resets the hole count sequencers each time that the low preset is reached. The low preset has been set to zero to cause an interrupt to occur each time that a reset occurs. The low preset is reached anytime that a reset C5:0 or hardware reset occurs. This ensures that the first preset value is loaded into the high–speed counter at each entry into the RRUN mode and each time that the external reset signal is activated.
Chapter 13 Using Application Specific Instructions File 4, Rung 2 Is identical to the previous rung except that it is only active when the ”hole selector switch” is in the ”5–hole” position.
Chapter 14 Using High-Speed Counter Instructions This chapter contains general information about the high-speed counter instructions and explains how they function in your application program.
Chapter 14 Using High-Speed Counter Instructions High-Speed Counter Instructions Overview Use the high-speed counter instructions to perform specific actions after a preset count is reached. These actions include the automatic and immediate execution of the high-speed counter interrupt routine (file 4) and the immediate update of outputs based on a source and mask pattern you set. Counter Data File Elements The high-speed counter instructions reference counter C0. The HSC instruction is fixed at C0.
Chapter 14 Using High-Speed Counter Instructions • Overflow Occurred Bit OV (bit 12) For the Up Counters (modes 1 and 2), this bit is set by the controller when the high preset is reached if the DN bit is set. Tip For the Bidirectional Counters (modes 3–8), the OV bit is set by the controller after the hardware accumulator transitions from 32,767 to –32,768. You can reset this bit with an OTU instruction or by executing an RAC or RES instruction for both the up and bidirectional counters.
Chapter 14 Using High-Speed Counter Instructions • High Preset Reached Caused User Interrupt Bit IH (bit 5) is set to • • • • High-Speed Counter (HSC) Ladder representation: HSC HIGH SPEED COUNTER Type Up (Res,Hld) Counter C5:0 High Preset 1 Accum 1 Execution Times (µsec) when: True False 21.00 21.00 (CU) (CD) (DN) identify a high preset reached as the cause for the execution of the high-speed counter interrupt routine. The IV, IN, and IL bits are reset by the controller when the IH bit is set.
Chapter 14 Using High-Speed Counter Instructions The table that follows uses the terminology shown here to indicate the status of counting: • Up↑ – increments by 1 when the input energizes (edge). • Down↑ – decrements by 1 when the input energizes (edge). • Reset↑ – resets the accumulator to zero when the input energizes (edge). • Hold – disables the high-speed counter from counting while the input is energized (level). • Count – increments or decrements by 1 when the input energizes (edge).
Chapter 14 Using High-Speed Counter Instructions Entering the Instruction You enter the instruction from within the program monitor functional area. The following items apply when entering the instruction: • Whenever you see asterisks on the display, the HHP is waiting for data entry (i.e., a number). • If you see a down arrow on the display it means there are more options available.
Chapter 14 Using High-Speed Counter Instructions Once instruction entry is complete, the parameters are condensed to two screens as shown here: P 0 0 8 H S C U P R E S / H L D P 0 0 8 P H S C 1 A T Y P E C 0 0 – 1 Using the Up Counter and the Up Counter with Reset and Hold Up counters are used when the parameter being measured is uni-directional, such as material being fed into a machine or as a tachometer recording the number of pulses over a given time period.
Chapter 14 Using High-Speed Counter Instructions When a high preset is reached, no counts are lost. • Hardware and instruction accumulators are reset. • Instruction high preset is loaded to the hardware high preset. • If the DN bit is not set, the DN bit is set. The IH bit is also set and the IL, IV, and IN bits are reset. • If the DN bit is already set, the OV bit is set. The IV bit is also set and the IL, IV and IN bits are reset.
Chapter 14 Using High-Speed Counter Instructions Using the Bidirectional Counter and the Bidirectional Counter with Reset and Hold Bidirectional counters are used when the parameter being measured can either increment or decrement. For example, a package entering and leaving a storage bin is counted to regulate flow through the area. The Bidirectional Counters operate identically except for the operation of inputs 1 and 0.
Chapter 14 Using High-Speed Counter Instructions When a high preset is reached, the: • HP bit is set. • High-speed counter interrupt file (file 4) is executed if the interrupt is enabled. The IH bit is set and the IL, IV, and IN bits are reset. Unlike the Up Counters, the accumulator value is not reset and the high preset value is not loaded from the image to the hardware high preset register.
Chapter 14 Using High-Speed Counter Instructions Bidirectional Counter with Reset and Hold (Pulse/direction) Input State Input Count (I/0) Input Direction (I/1) Input Reset (I/2) Input Hold (I/3) HSC Rung High-Speed Count r Counter Action Turning Off-to-On Off Off, On, or Turning Off Off True Count Up Turning Off-to-On On Off, On, or Turning Off Off True Count Down NA NA Off, On, or Turning Off NA False Hold Count NA NA Off, On, or Turning Off On NA Hold Count Off, On, or Turn
Chapter 14 Using High-Speed Counter Instructions When up and down input pulses occur simultaneously, the high-speed counter counts up, then down. Using the Bidirectional Counter with Reset and Hold with a Quadrature Encoder The Quadrature Encoder is used for determining direction of rotation and position for rotating, such as a lathe. The Bidirectional Counter counts the rotation of the Quadrature Encoder.
Chapter 14 Using High-Speed Counter Instructions Operation For the Bidirectional Counters, both high and low presets are used. The low preset value must be less than the high preset value or an error (37H) occurs. When the HSC instruction is first executed true, the: • Instruction accumulator is loaded to the hardware accumulator. • Instruction high preset is loaded to the hardware high preset. Any instruction accumulator value between –32,768 and +32,767 inclusive can be loaded to the hardware.
Chapter 14 Using High-Speed Counter Instructions When a low preset is reached, the: • LP bit is set. • High-speed counter interrupt file (file 4) is executed if the interrupt is enabled. The IL bit is set and the IH, IN, and IV bits are reset. An overflow occurs when the hardware accumulator transitions from +32,767 to –32,768. When an overflow occurs, the: • OV bit is set. • High-speed counter interrupt file (file 4) is executed if the interrupt is enabled.
Chapter 14 Using High-Speed Counter Instructions High-Speed Counter Load (HSL) Ladder representation: HSL HSC LOAD Counter Source Length C5:0 N7:5 5 (CU) (DN) This instruction allows you to set the low and high presets, low and high output source, and the output mask. When either a high or low preset is reached, you can instantly update selected outputs. If you are using the HSL instruction with the Up Counter, the high preset must be ≥ 1 and ≤ +32,767 or an error (37H) occurs.
Chapter 14 Using High-Speed Counter Instructions To enter the function code, press: FUN 1 7 1 ENT P 0 0 8 C 0 0 H S L C N T R P 0 0 8 N 5 H S L S R C P 0 0 8 H S L 0 L E N 5 Operation The HSL instruction allows you to configure the high-speed counter to instantaneously and automatically update external outputs whenever a high or low preset is reached. The physical outputs are automatically updated in less than 30 µs. (The physical turn-on time of the outputs is not included in this amount.
Chapter 14 Using High-Speed Counter Instructions Parameter Image Location Up Counter Only Bidirectional Counters Description N5 Output Mask Output Mask Identifies which group of four bits in the output file (word 0) are controlled. 000F=bits 3–0 00F0=bits 7–4 0003=bits 0 and 1 00FF= bits 7–0 N6 Output Source Output High Source (Up count) The status of bits in this word are written “through” the mask to the actual outputs.
Chapter 14 Using High-Speed Counter Instructions If a fault occurs due to the HSL instruction, the HSL parameters are not loaded to the high-speed counter hardware. You can use more than one HSL instruction in your program. The HSL instructions can have different image locations for the additional parameters. ! ATTENTION: Do not change a preset value and an output mask/source with the same HSL instruction as the accumulator is approaching the old preset value.
Chapter 14 Using High-Speed Counter Instructions High-Speed Counter Reset (RES) The RES instruction allows you to write a zero to the hardware accumulator and image accumulator. Ladder representation: The Counter referenced by this instruction has the same address as the HSC instruction counter and is entered as C0. C5:0 RES) ) Execution Times (µsec) when: True False 51.00 6.00 Entering the Instruction You enter the instruction from within the program monitor functional area.
Chapter 14 Using High-Speed Counter Instructions High-Speed Counter Reset Accumulator (RAC) This instruction allows you to write a specific value to the hardware accumulator and image accumulator. Ladder representation: The Counter referenced by this instruction has the same address as the HSC instruction counter and is fixed at C0.
Chapter 14 Using High-Speed Counter Instructions Operation Execution of the RAC: • removes pending high-speed counter interrupts • resets the PE, LS, OV, UN, and DN status bits • loads a new accumulator value to the hardware and instruction image • loads the instruction high preset to the hardware high preset (if the high-speed counter is configured as an Up Counter) • resets the IL, IH, IN, or IV status bits The source can be a constant or any integer element in files 0–7.
Chapter 14 Using High-Speed Counter Instructions Operation When the high-speed counter interrupt is enabled, user subroutine (file 4) is executed when: • A high or low preset is reached. • An overflow or underflow occurs. When in RSSN mode and in an idle condition, the high-speed counter interrupt is held off until the next scan trigger is received from the programming device. The high-speed counter accumulator counts while idle.
Chapter 14 Using High-Speed Counter Instructions Update High-Speed Counter Image Accumulator (OUT) Ladder representation: C5:0 ) UA When an OUT bit instruction is addressed for the high-speed counter (C0) UA bit, the value in the hardware accumulator is written to the value in the image accumulator (C0.ACC). This provides you with real-time access to the hardware accumulator value.
Chapter 14 Using High-Speed Counter Instructions Example 1 To enter the RRUN mode and have the HSC Outputs, ACC, and Interrupt Subroutine resume their previous state, apply the following: Ladder Rungs Rung 2:0 No action required. (Remember that all OUT instructions are zeroed when entering the RRUN mode. Use SET/RST instructions in place of OUT instructions in your conditional logic requiring retention.
Chapter 14 Using High-Speed Counter Instructions Example 2 To enter the RRUN mode and retain the HSC ACC value while having the HSC Outputs and Interrupt Subroutine reassert themselves, apply the following: Ladder Rungs Rung 2:0 Unlatch the C5:0/HP and C5:0/LP bits during the first scan BEFORE the HSC instruction is executed for the first time.
Chapter 14 Using High-Speed Counter Instructions Example 3 To enter the RRUN mode and have the HSC ACC and Interrupt Subroutine resume their previous state, while externally initializing the HSC outputs, apply the following: Ladder Rungs Rung 2:0 Unlatch or latch the output bits under HSC control during the first scan after the HSC instruction is executed for the first time. (Note, you could place this rung before the HSC instruction; however, this is not recommended.
Chapter 14 Using High-Speed Counter Instructions Instruction List File 2, Rung 0 Unlatch or latch the output bits under HSC control during the first scan after the HSC instruction is executed for the first time. (Note, you could place this rung before the HSC instruction; however, this is not recommended.
Chapter 14 Using High-Speed Counter Instructions High-Speed Counter Instructions in the Paper Drilling Machine Application Example To demonstrate the use of the HSC instruction, this section provides ladder rungs followed by the optimized instruction list for these rungs. The rungs are part of the paper drilling machine application example started in chapter 5. Refer to appendix E for the complete paper drilling machine application example.
Chapter 14 Using High-Speed Counter Instructions Adding to File 2 Ladder Rungs Rung 2:0 Initializes the high–speed counter each time that the RRUN mode is entered. The high–speed counter data area (N7:5 – N7:9) was chosen to correspond with the starting address (source address) of our HSL instruction. Note that the HSC instruction is disabled each entry into the RRUN mode until the first time that it is executed as true.
Chapter 14 Using High-Speed Counter Instructions Rung 2:1 This HSC instruction is not placed in the high–speed counter interrupt subroutine. If this instruction were placed in the interrupt subroutine, the high–speed counter could never be started or initialized (because an interrupt must first occur in order to scan the high–speed counter interrupt subroutine).
Chapter 14 Using High-Speed Counter Instructions Instruction List File 2, Rung 0 Initializes the high–speed counter each time the RRUN mode is entered. The high–speed counter data area (N7:5 – N7:9) corresponds with the starting address (source address) of the HSL instruction. The HSC instruction is disabled each entry into the RRUN mode until the first time that it is executed as true.
Chapter 14 Using High-Speed Counter Instructions File 2, Rung 2 Forces a high–speed counter low preset interrupt to occur each RRUN mode entry. An interrupt can only occur on the transition of the high–speed counter accum to a preset value (accum reset to 1, then 0). This is done to allow the high–speed counter interrupt subroutine sequencers to initialize.
Chapter 14 Using High-Speed Counter Instructions All presets are entered as a relative offset to the leading edge of a manual. The presets for the hole patterns are stored in the SQO instructions. (Refer to chapter 13 for the SQO instruction.) The high-speed counter external reset input (I/2) and the external hold input (I/3) are wired in parallel to prevent the high-speed counter from counting while the reset is active.
Chapter 14 Using High-Speed Counter Instructions Instruction List File 4, Rung 5 Interrupt occurred due to low preset reached. FUN CODE –––– 20 GRAPHIC SYMBOL ––––––– |–] [– MNEMONIC –––––––– LD PARAMETER NAME ADDRESS –––– ––––––– VALUE ––––– FORCES –––––– interrupt occurred due to low preset reached C0/IL 0 134 File RET 4, Rung 6 Signals the main program (file 2) to initiate a drilling sequence.
Chapter 15 Using Communication Protocols This chapter contains information about communication and the message (MSG) instruction.
Chapter 15 Using Communication Protocols Responder (Slave) Communication Responder products can only reply to other products. These devices are not capable of initiating an exchange of data; they only reply to requests made from initiator products. The Series A and B MicroLogix 1000 controllers are in this class.
Chapter 15 Using Communication Protocols The following table illustrates combinations of message types and target devices and their valid file types.
Chapter 15 Using Communication Protocols Control Block Layout – CIF 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 EN ST DN ER EW NR TO Word Error Code 0 Node Number 1 Reserved for Length (in elements) 2 Offset Bytes 3 Not used 4 Not used 5 Not used 6 Using Status Bits Read/Write: READ Target Device: SLC500/ML1000 Control Block: N7:0 Local Destination File Address: *** Target Node: 0 Target File Address: *** Message Length in elements *** ignore if timed out: to be retried: awaiting exec
Chapter 15 Using Communication Protocols • Done Bit DN (bit 13) is set when the message is transmitted successfully. The DN bit is reset (cleared) the next time the rung goes from false to true. • Start Bit ST (bit 14) is set when the processor receives acknowledgement from the target device. This identifies that the target device has started to process the MSG request. The ST bit is reset when the DN, ER, or TO bit is set or on a false-to-true rung transition.
Chapter 15 Using Communication Protocols Controller Communication Status Bit When using the MSG instruction, you should also use the following controller communication status bit: Active Protocol Bit (S:0/11) – This is a read-only bit that indicates which communication protocol is currently enabled or functioning: where 0 = DF1 (default) and 1 = DH-485. Use this bit in your program to restrict message operation to a specific protocol.
Chapter 15 Using Communication Protocols To enter the function code, press: FUN L ANB 2 0 ANB 0 Note: When entering the target file type, the MicroLogix default file number is automatically inserted. If you want to change the file number, simply press the desired number.
Chapter 15 Using Communication Protocols Once the instruction is entered, the parameters are displayed as six screens, as shown here: P 0 0 8 M S G S L C 5 0 0 / M L T Y P E W R I T E P 0 0 8 N 0 M S G C B L K 0 0 0 0 H P 0 0 8 M S G N OD E 5 P 0 0 8 B 7 M S G L O C A L 0 0 0 0 H P 0 0 8 M S G T A R G R 9 1 : 8 2 P 0 0 8 M S G L E N 2 15–8
Chapter 15 Using Communication Protocols Timing Diagram for a Successful MSG Instruction The following section illustrates a successful timing diagram for a MSG instruction in a Series D or later MicroLogix 1000 discrete controller or a MicroLogix 1000 analog controller. Target node Rung goes True. receives packet. Control Block Status Bits Target node processes packet Target node successfully and returns data (read) or writes data (success). sent reply.
Chapter 15 Using Communication Protocols Step 4 is not shown in the timing diagram. If you do not receive an ACK, step 3 does not occur. Instead a NAK (no acknowledge) is received. When this happens, the ST bit remains clear. A NAK indicates: • • the Target Node is too busy, or it received a MSG packet with a bad checksum. No response indicates: • either the Target Node is not there, or • it does not respond because the MSG packet was corrupted in transmission.
Chapter 15 Using Communication Protocols Any MSG instruction that is in progress during a network protocol switch is not processed and is discarded. For more information on network protocol switching, see page 3–12. When an error condition occurs, the error code is stored in the lower byte of the first control word assigned to the MSG instruction. Error Code 02H Target node is busy. 03H Target node cannot respond because message is too large.
Chapter 15 Using Communication Protocols Application Examples that Use the MSG Instruction Example 1 – Continuously Writing Data from a MicroLogix Controller In this example, a communication link is created between two Series C or higher MicroLogix 1000 discrete controllers, where one controller is writing data to another. The communication link is set up for continuous operation with automatic recovery.
Chapter 15 Using Communication Protocols Rung 2:2 Write message with preceding logic. It is STRONGLY recommended that bit S2:0/11 (active protocol bit) be used to condition all message instructions. This bit only allows the message instruction to operate when the correct protocol is active. NOTE: If DF1 was the protocol used by the message instruction, use –]/[– S2:0/11 for the preceding logic. | DH-485 Active Write Message Ins.
Chapter 15 Using Communication Protocols Example 2 – Continuously Reading Data from a MicroLogix Controller In this example, a communication link is created between two Series C or higher MicroLogix 1000 discrete controllers, where one controller is reading data from another. The communication link is set-up for continuous operation with automatic recovery.
Chapter 15 Using Communication Protocols Rung 2:2 Read message with preceding logic. It is STRONGLY recommended that bit S2:0/11 (active protocol bit) be used to condition all message instructions. This bit only allows the message instruction to operate when the correct protocol is active. NOTE: If DF1 was the protocol used by the message instruction, use –]/[– S2:0/11 for the preceding logic. | DH-485 Active Read Message Ins.
Chapter 15 Using Communication Protocols Example 3 – Report on Exception/Change of State, Write Data from a MicroLogix Controller In this example, a communication link is created between two Series C or higher MicroLogix 1000 discrete controllers, where one controller is writing data to another. The communication link is set-up for continuous operation with automatic recovery.
Chapter 15 Using Communication Protocols Rung 2:2 Write message with report by exception (RE) or change of state (COS) logic. COS is used to only transmit data/information when some type of change has occurred (time, data, etc.). This type of communications is extremely beneficial on networks because any time you can limit unnecessary traffic on a network, your ability to send information without delays is improved.
Chapter 15 Using Communication Protocols Example 4 – Continuously Reading and Writing Data with a MicroLogix Controller In this example, a communication link is created between two Series C or higher MicroLogix 1000 discrete controllers. This example creates a master/slave communication link between two controllers (one controller reading and writing data to another controller) with a MicroLogix 1000 as the master. The communication link is set-up for continuous operation with automatic recovery.
Chapter 15 Using Communication Protocols Rung 2:1 The Time Out bit (TO) associated with each message instruction is used to clear the controllers communication buffer and message instruction. Setting these bits, basically places the controllers communication section in the same condition as when the controller power up. These bits allow control program to reset or recover from unexpected events (e.g., errors, power problems, media problems).
Chapter 15 Using Communication Protocols Rung 2:3 This rung monitors the message instruction for “Done” conditions. When both messages are done, both messages are reset, allowing the sequence to be restarted in the next scan. The error retry bit is also used to reset both messages if an error or lockup condition is encountered.
Chapter 16 Instruction List Programming This chapter uses programming examples to teach you instruction list programming. The chapter also lists programming considerations. Programming Examples In the section Applying Logic to Your Schematics, page 6–11, you learned the concepts behind ladder logic. You were also shown the instruction list (Boolean) equivalent of a simple rung of logic. This section builds on that by showing you some more rung examples and their equivalent instruction list(s).
Chapter 16 Instruction List Programming Parallel Inputs When the inputs are in parallel, the instruction list representation is as follows: c a b Optimized NEW RUNG LD a OR b OUT c Option 1 NEW RUNG LD a LD b ORB OUT c Parallel Input Branching An input branch can be used to allow more than one combination of input conditions on parallel branches. An example of this type of rung is shown below.
Chapter 16 Instruction List Programming Parallel Block Connection If two blocks of instructions are connected in parallel, an ORB instruction is used. An example of this type of block connection is provided below. a b c d e Optimized NEW RUNG LD a AND b LD c AND d ORB OUT e Option 1 NEW RUNG LD a LD b ANB LD c AND d ORB OUT e Option 2 NEW RUNG LD a LD b ANB LD c LD d ANB ORB OUT e (See page 8–12 for more information regarding the use of the ORB instruction.
Chapter 16 Instruction List Programming Output Rung Examples This section shows you examples of output rungs and their optimized instruction list representation. Like the input rungs, many output rungs have more than one possible instruction list representation. Therefore, where applicable an optional representation is shown to the right of the optimized list. Single Output It is possible to have a rung made up of just an output. An example of such a rung is shown below.
Chapter 16 Instruction List Programming Example 1 – Multiple output circuit that does not require connecting instructions. b a c d Optimized Option 1 NEW RUNG LD a OUT b AND c OUT d NEW RUNG LD a OUT b LD c ANB OUT d Example 2 – This example requires MPS and MPP connecting instructions. Optimized b a c d NEW RUNG LD a MPS AND b OUT c MPP OUT d Option 1 NEW RUNG LD a MPS LD b ANB OUT c MPP OUT d Example 3 – This example also requires MPS and MPP instructions.
Chapter 16 Instruction List Programming Output Branching with Block Connections The example below shows how you use ANB and ORB instructions in a rung’s output circuit. (See page 8–12 for more information regarding the use of these instructions.
Chapter 16 Instruction List Programming Putting it All Together The example that follows combines all of the input and output concepts that have been presented to you. The optimized instruction list is shown beneath the rung.
Chapter 16 Instruction List Programming Programming Considerations 16–8 Since more than one instruction list representation may be possible for a single rung, you should be aware of the following programming issues if you are using programming software with your MicroLogix 1000 HHP: • Any rung created in the HHP and saved to the controller, uploaded to programming software and edited, downloaded to the controller, and then monitored by the HHP will have the optimized instruction list representation.
Chapter 17 Entering and Editing Your Program Read this chapter to enter and edit program files using your MicroLogix 1000 HHP. This chapter describes: • entering the program monitor • editing considerations • editing in append and overwrite modes • deleting instructions and rungs • searching for specific addresses Entering the Program Monitor Once you understand the structure of instruction lists, you can begin entering the instructions into the program files.
Chapter 17 Entering and Editing Your Program File names appear in the lower left-hand corner of only two of the Start of File screens. Program file 2 has the default name MAIN_PROG since it is the main program file, and file 3 has the default name USER_FAULT since this program file is only executed when a fault occurs. (The program file names can be changed using the programming software.) End of File Screen P 0 0 0 E N D F I L E : 0 2 As the name implies, this screen signifies the end of a program file.
Chapter 17 Entering and Editing Your Program Editing Considerations Before you begin to edit an existing program, you should store the program on a memory module (or save it on a personal computer with programming software). That way, if you edit a program and then decide that you don’t want to accept the edits you have made (i.e., you want the original program back), you can reload the original unedited program to the controller.
Chapter 17 Entering and Editing Your Program Important: You cannot add an instruction when the current display is the End of File screen. To add an instruction to the end of a rung, you must be on the rung’s last instruction. 3. Press the instruction key or enter the function code corresponding to the instruction you want to enter. Adding a Rung Follow these steps to add a rung: 1. Make sure that the edit mode is set to append (P). Toggle the edit mode key if necessary. OV R 2.
Chapter 17 Entering and Editing Your Program 3. Press the key sequence shown below. FUN E NT ENT 4. You are now able to change any or all of the current parameters for this instruction. The table below describes your options. If you want to: Then you should: accept the current parameters press ENT. change the current parameters use DEL as a destructive backspace, or FUN-DEL to delete the entire displayed address. Then key in the desired address and press ENT.
Chapter 17 Entering and Editing Your Program Deleting Instructions and Rungs While in either append or overwrite edit mode, you can delete individual instructions and rungs. You can also delete a range of rungs within a single program file. Important: If you delete an instruction or rung(s), you cannot undo the deletion. Deleting an Instruction You can delete a single instruction while viewing any parameter of that instruction by pressing the key shown below.
Chapter 17 Entering and Editing Your Program 2. If this is the rung you want to delete, press ENT. If you do not want to delete this rung, press ESC. Important: If you delete a rung, you cannot undo the deletion. Once the rung is deleted, the rung that immediately followed it in the program file is displayed. Deleting a Range of Rungs Deleting a range of rungs uses the same key sequence required to delete a single rung. Follow these steps to delete multiple rungs: 1.
Chapter 17 Entering and Editing Your Program Searching for Specific Addresses The search option allows you to quickly locate addresses in program files. You can search for either an address that you enter or an address that is displayed.
Chapter 17 Entering and Editing Your Program Searching for Bit Addresses Versus Word Addresses The following table outlines whether a search finds a bit address or a word address when searching from the home screen, program monitor, or multi-point functional areas. If the address entered or displayed is a: bit address word address Then the search finds: only bit instructions referencing that bit. only word instructions referencing that word.
Chapter 18 After You’ve Entered Your Program This chapter shows you the procedures for: • changing the program configuration defaults • accepting your program edits • changing processor modes • monitoring your controller • viewing data table files • using the multi-point function • forcing inputs and outputs Changing the Program Configuration Defaults Every default MICRO program is configured with the settings shown in the table below.
Chapter 18 After You’ve Entered Your Program You can change these default settings by accessing the program configuration menu: MENU I U 3 N A ME U S E R E NT P R OG P A S S WR D Naming the Program You can enter a new name for your program using any combination of the letters or numbers available on the MicroLogix 1000 HHP keypad (i.e., A–F,I,N,O,R,S,T, and 0–9). The maximum length is eight characters. Follow the steps below to change the program name. 1. Access the program configuration menu. 2.
Chapter 18 After You’ve Entered Your Program Only User Password Designated Only Master Password Designated User Password and Master Password Designated You must enter the user password to gain access to the program. You do not have to enter the master password to gain access to the program. A master password is used by itself to allow access if a user password has been entered. You must enter either the user password or the master password to gain access to the program.
Chapter 18 After You’ve Entered Your Program 3. Type in a new password using any combination of the numbers available on the MicroLogix 1000 HHP keypad (i.e., 0–9). You can only use numeric-based passwords. The maximum length for a password is ten characters. 4. Enter the new password. E NT R E E N T E R P A S S W R D: Another screen appears so you can verify the new password. 5. Retype the new password, enter it, and return to the home screen.
Chapter 18 After You’ve Entered Your Program Setting the Run Always Bit This selection determines what mode the controller will enter at power up following a power down or an unexpected reset. When this bit is set to NO, the controller powers up in the mode it was in prior to losing power, with one exception: If the controller was in one of the test modes (RCSN or RSSN) when power was removed, the controller enters RPRG when power is applied.
Chapter 18 After You’ve Entered Your Program Setting the Start-Up Protection Bit This selection allows you to check for, and attempt to recover from, major errors before starting the first scan of your program. When this bit is set to NO, the controller will fault if a major error occurs while in RRUN, RCSN, or RSSN mode. When this bit is set to YES and power is cycled when the controller starts in RRUN mode, the controller executes the user-fault routine prior to the execution of the first program scan.
Chapter 18 After You’ve Entered Your Program Setting the Fault Override Bit If the controller is faulted while in RRUN mode, this selection determines whether or not the controller attempts to clear the errors at power up. When this bit is set to NO, after power is cycled in the controller, you must manually clear the faults that occurred while in RRUN mode.
Chapter 18 After You’ve Entered Your Program Setting the Extended I/O Configuration Bit When this bit is set to NO and unused outputs are written to, the controller will fault. Therefore, this bit must be set to YES if writing to unused outputs. (For a 16 I/O controller, O/6–O/15 are unused outputs. For a 32 I/O controller, O/12–O/15 are unused outputs.) Note: This selection is valid for Series A–C discrete only. To change the bit setting: 1.
Chapter 18 After You’ve Entered Your Program Setting the STI Setpoint The STI setpoint is the time between successive executions of the STI subroutine. The allowable range is from 10 ms to 2550 ms (entered in 10 ms increments). A setpoint of zero disables the setpoint function. Important: The setpoint value must be a longer time than the execution time of the STI subroutine file, or a minor error bit is set. To change the setting: 1. Access the program configuration menu. 2.
Chapter 18 After You’ve Entered Your Program Setting the STI Enabled Bit This selection determines if execution of the STI is allowed. When this bit is set to NO, execution of the STI is not allowed. When this bit is set to YES, execution of the STI is allowed (provided the STI setpoint is non-zero). If reset when an interrupt occurs, the STI subroutine does not execute and the STI Pending bit is set. The STI Timer continues to run when this bit is disabled. The STE instruction sets this bit.
Chapter 18 After You’ve Entered Your Program Selecting the Watchdog Scan This byte value contains the number of 10 ms ticks allowed during a program cycle. The default value is 10 (100 ms), but you can increase this to 255 (2.55 seconds) or decrease it to 1, as your application requires. Important: If the watchdog value equals the current scan time value, a watchdog major error will be declared (code 0022). To change the setting: 1. Access the program configuration menu. 2.
Chapter 18 After You’ve Entered Your Program Setting the Input Filters This option allows you to select input filter response times for the 1761-L16BWA and 1761-L32BWA micro controllers. The input filter response time is the time from when the external input voltage reaches an on or off state to when the micro controller recognizes that change of state. The higher you set the response time, the longer it takes for the input state change to reach the micro controller.
Chapter 18 After You’ve Entered Your Program 4. Scroll up or down to the input group you want to change and select it. The following display appears: 8 . 0 0 1 6 . 0 0 MS E C MS E C 5. Scroll to the response time you want and select it. 6. Repeat steps 3 and 4 as needed, then return to the home screen. ES C ES C ES C 7. You must accept your program edits for this change to take affect. For information on accepting edits, see page 18–21.
Chapter 18 After You’ve Entered Your Program Selecting the Filter Setting for Analog Input Channels This option allows you to select the filter setting for the analog input channels. The same setting is used for all four channels. To change the filter setting for analog input channels: 1. Put the controller in RPRG mode (if it is not already in that mode). 2. Access the program configuration menu. 6 times E NT 3. Arrow up to the option ANALOG CONFIG and select it.
Chapter 18 After You’ve Entered Your Program Selecting Channel Enable for the Analog Input Channels This option allows you to enable/disable input channels 0–3 of the analog controller. To enable/disable the analog input channels: 1. Put the controller in RPRG mode (if it is not already in that mode). 2. Access the program configuration menu. 6 times ENT 3. Arrow up to the option ANALOG CONFIG and select it.
Chapter 18 After You’ve Entered Your Program Configuring the Analog Output The analog controller’s output channel can be configured to support either current or voltage operation. To configure the analog output: 1. Put the controller in RPRG mode (if it is not already in that mode). 2. Access the program configuration menu. 6 times E NT 3. Arrow up to the option ANALOG CONFIG and select it. 2 times E NT Note: The function is only available when the Micro Term is attached to an analog controller.
Chapter 18 After You’ve Entered Your Program Setting the Lock Program Function This option allows you to prevent proprietary algorithms from being viewed on the display or from being stored in a memory module. When this function is set to NO, access to a controller program is unrestricted. This is the default. When this function is set to YES, access to a controller program is only permitted when a matching program exists in the memory module.
Chapter 18 After You’ve Entered Your Program To change the function setting: 1. Put the controller in RPRG mode (if it is not already in that mode). 2. Access the program configuration menu. 3. Arrow up to the option LOCK PROG and select it. 2 times E NT L OC K Y E S P R OG N O 4. Select the option YES and return to the home screen. E NT ESC ES C 5. You must accept your program edits for this change to take affect. For information on accepting edits, see the section that follows.
Chapter 18 After You’ve Entered Your Program 3. Arrow up to the option CONTROL VERSION and select it. 1 time ENT S E T T Y P E Y E S [ E N T ] M L - C/D N O[ E S C ] 4. Press ENT to select support of Series C/D discrete controllers. (Press ESC to continue support of Series A and B discrete controllers.) Important: You cannot revert a program back to Series A or B discrete controller support once you’ve configured it for Series C/D discrete controller support. 5. Return to the home screen. ES C ESC 6.
Chapter 18 After You’ve Entered Your Program Accepting Your Program Edits There are two ways you can accept the edits made to your program. Both of these methods initiate the verification and save of the program. These methods are: • using the ACCEPT EDITS option from the menu while in RPRG mode. • changing from RPRG mode to any run or test mode (RRUN, RCSN, or RSSN) Using the ACCEPT EDITS Menu Option To use this method, select ACCEPT EDITS from the menu as shown below.
Chapter 18 After You’ve Entered Your Program Modes of Operation All controller modes are considered to be remote, which indicates that the modes can be changed via the communication channels. The current mode of the controller is shown in the upper right-hand corner of the MicroLogix 1000 HHPs home screen. The table below shows the possible display entries and the corresponding micro controller mode.
Chapter 18 After You’ve Entered Your Program Changing Remote Modes The following steps show how to change from RPRG mode to RRUN mode. Important: When changing from RPRG mode to any other mode of operation (RRUN, RCSN, or RSSN), any edits that exist in the current program are accepted automatically. (Edits exist whenever the mode is flashing on the HHP display.) 1. Enter the mode options. MODE O A C T I V E MOD E : R P RG RP R G R R U N The current mode, RPRG, is shown on the top line.
Chapter 18 After You’ve Entered Your Program Tasks You Can Perform This table shows you what tasks you are allowed to perform in each of the possible modes. Activity cti it Remote Controller Mode Program Test Run Fault Suspend Change the language. X X X X X Accept program edits.
Chapter 18 After You’ve Entered Your Program Monitoring Your Controller This section shows you how to monitor the program files and data table files. If a fault occurs while monitoring your controller, follow the procedure on page 20–11 to clear the fault. Monitoring Program Files Program files contain controller information, the main instruction list program, and any subroutine programs.
Chapter 18 After You’ve Entered Your Program Using Short Cut Keys The following table shows the short cut keys you can press to go directly to the file and rung you want to monitor. To go to: Press the following key sequence: a designated file and rung (e.g., 5/3) rung 0 of a designated file (e.g., 10/0) MON file number MON a designated rung in the current file (e.g.
Chapter 18 After You’ve Entered Your Program 3. Scroll through the bits of individual data files or through the data file table using the keys described in the table below. To: Press: scroll through the bits of individual data files scroll through the data file table Using Short Cut Keys The following table shows the short cut keys you can press to go directly to the particular data file type, word address, and bit address you want to monitor. To go to: a designated data file type, word, and bit (e.g.
Chapter 18 After You’ve Entered Your Program Viewing Data Table Files This section shows you how to access each type of data table file. It also describes how to change the radix display for output, input, bit, and integer data files. Accessing Data Table Files An example of how to access each type of data table file is shown below. The sample screen is provided to show you how each data table file looks. Output Data Files To access the output data file for O/5, press the key sequence shown below.
Chapter 18 After You’ve Entered Your Program Bit Data File Access the bit data file for B/8 as follows: + MON MT-PT B ORB + - / ENT 8 B / 8 B0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 Timer Data File To view the Timer Enable Bit (EN) for T0: MON NEW RUNG T ANB 0 ORB E NT / + - 1 time T 00 E N 1 P 1 0 0 0 0 A T T 1 8 9 4 6 Counter Data File To access the Accumulator Value (ACC) for C5: - MON FAULT FON C C 05 P 5 1 CD 0 A ENT PRE/LEN D N 0 – 1 Control Data File Access the Enable Bit (EN) f
Chapter 18 After You’ve Entered Your Program Integer Data File To access integer data file N3: SEARCH N MON U 3 ENT N3 1 0 0 Changing the Radix Radix refers to the way numeric-based information is displayed. You can change the radix for output, input, bit, and integer data files. Since the displays for timer, counter, control, and status data files are pre-formatted, the option of changing the radix is not available for those data files.
Chapter 18 After You’ve Entered Your Program 3. Change the display to a decimal radix. FUN ANB 0 O0 3 8 5 1 4. Return to the binary radix display. FUN ANB 0 O / 0 O0 F ON 0 0 0 0 1 1 1 1 0 0 0 0 1 0 1 1 Important: Notice that the forces only appear in the binary radix. Using the Multi-Point Function The function allows you to monitor up to 16 non-contiguous bits of data at a time.
Chapter 18 After You’ve Entered Your Program 2. Arrow to the position you want to enter an address. This can be any open point on the list. 3. Bring up a prompt to enter the address. + FUN MT-PT B * * * * * A D D R : MP 4. Enter the address of the bit you want to monitor. I/3 is shown here as an example: MENU I U 3 ENT I / 3 I 0 MP – – – – – – – – – – – – – – – 0 The address is added to the multi-point list at the location you selected in step 2.
Chapter 18 After You’ve Entered Your Program Changing Multi-Point Addresses You can change an entry in the multi-point list by writing over the current address. Follow the steps below. 1. Access the multi-point functional area. + MT-PT B I / 3 I 0 MP – – – – – – – 0 0 1 0 0 0 1 0 0 2. Arrow to the address you want to write over. 3. Bring up a prompt to enter the address. + FUN MT-PT B I / 3 A D D R : I 0 MP 4. Enter the address of the new bit you want to monitor.
Chapter 18 After You’ve Entered Your Program Removing Multi-Point Addresses You can remove individual addresses from the multi-point list or you can delete the entire list. Deleting Individual Addresses Follow these steps to delete a single bit address from the multi-point list: 1. Access the multi-point functional area. + MT-PT B I / 3 I 0 MP – – – – – – – 0 0 1 0 0 0 1 0 0 2. Arrow to the address you want to delete. 3. Remove the address from the list.
Chapter 18 After You’ve Entered Your Program 3. Confirm the deletion to remove the addresses. E NT Press ESC if you do not want to clear the list. Forcing Inputs and Outputs The Force function allows you to override the actual status of external input circuits by forcing external input data file bits On or Off. You can also override the controller logic and status of output data file bits by forcing output circuits On or Off. Important: Forces are always enabled but must be set to be active.
Chapter 18 After You’ve Entered Your Program To force On the external input file address, follow the steps below. 1. Press the force On key. A confirmation screen appears. - FON C F OR CE B I T ON ? Y E S [ E N T ] N O [ E S C ] 2. Accept the confirmation to force the bit On. ENT R 0 0 0 I / 6 F ON 1 This simulates the closing of the external input circuit. However, the actual open/closed status of the external input circuit no longer affects the program logic.
Chapter 18 After You’ve Entered Your Program Guide to Forcing External Input Data File Bits The following occurs in the Run or Test mode: • Forcing of input data file bits and resultant data changes appear in the data file displays. • The ladder program is scanned and ladder logic is applied. • Instruction state boxes are filled for true bit instructions. The table below shows the keys and key sequences involved with setting and clearing forces. A confirmation screen appears following each of these.
Chapter 18 After You’ve Entered Your Program Forcing an External Output Circuit A forced external output circuit is independent of the internal logic of the program and the output data file. Setting forces on output circuits affects only the output circuit. Set forces do not affect the output data file or the program logic. The effects of set forces can be seen from the program monitor and the data monitor functional areas only while in RRUN. (RCSN and RSSN do not energize output circuits.
Chapter 18 After You’ve Entered Your Program Guide to Forcing External Output Circuits The following occurs in the Run mode: • The program is scanned and control logic is applied. • Instruction state boxes are filled for true bit instructions. • Controller output LEDs go on and are maintained for all forced external output circuits. The table below shows the keys and key sequences involved with setting and clearing forces. A confirmation screen appears following each of these.
Chapter 19 Common Procedures Several of the menu items may be required after the control program has been running. This chapter gives you details about these procedures and other commonly performed tasks. The common procedures included here are: • using a memory module • clearing a program from the micro controller • changing the micro controller’s baud rate • changing the micro controller’s communication defaults Using a Memory Module You can use a memory module to store and retrieve programs.
Chapter 19 Common Procedures Retrieving a Program from a Memory Module You can retrieve a program from a memory module using the LOAD PROGRAM option. Follow the steps below. 1. Put the controller in RPRG mode (if it is not already in that mode). 2. Go to the menu and choose the option MEM MODULE. 3. Select LOAD PROGRAM. L OA D : P R OGR A M1 P R OGR A M2 A sub-menu appears listing the names of the programs contained on the memory module.
Chapter 19 Common Procedures Storing a Program to a Memory Module You can store the program you currently have loaded in the controller to a memory module. Follow the steps below. 1. Put the controller in RPRG mode (if it is not already in that mode). 2. Go to the menu and choose the option MEM MODULE. 3. Select STORE PROGRAM. S T OR E : ME MMOD P R OGR A M1 F R E E : 0 0 8 K The name of the program and the amount of memory remaining in the module is shown. 4. Begin the storing process.
Chapter 19 Common Procedures If you do not want to write over the existing program, press ESC to exit the sub-menu. Then if you still want to store the program that is currently loaded in the controller to a memory module, do one of the following: • Go to the program configuration menu and rename the current program (see page 18–2). Then store the program to the memory module under its new name.
Chapter 19 Common Procedures Clearing a Program from a Memory Module You can clear a program currently stored on a memory module by following the steps below: 1. Go to the menu and choose the option MEM MODULE. 2. Select CLEAR PROGRAM. C L E A R : P R OGR A M1 P R OGR A M2 A sub-menu appears listing the names of the programs contained on the memory module. If there are no programs, dashed lines appear in place of program names.
Chapter 19 Common Procedures Clearing a Program from the Micro Controller If you want to create a new program, you need to first clear the current program from the controller. Follow the steps below. 1. Enter the menu and choose the option CLEAR PROG. MENU I 6 E NT C L E AR P R OGR A M? Y E S [ E N T ] N O [ E S C ] 2. Clear the program from the controller. ENT C L E A R P R OGR AM? C L E A R I N G. . . . . Once the program is cleared, the menu options are displayed.
Chapter 19 Common Procedures 2. Arrow down to the desired baud rate and select it. ENT n times The MicroLogix 1000 HHP resets itself to the new baud rate and runs through the power-up sequence. Changing the Micro Controller’s Communication Defaults If you configure your program to be compatible with Series C or later MicroLogix 1000 discrete controllers or MicroLogix 1000 analog controllers, option number 7 in the menu functional area is COMMS (instead of BAUD RATE).
Chapter 19 Common Procedures 2. The default setting for the main protocol is DF1. – To accept the default setting (DF1) , press ENT. – To change the default setting, arrow right to select DH-485 and then press ENT. The arrow points to the controller’s current DF1 baud rate. 9 6 0 0 2 4 0 0 D F 1 D F 1 3. Arrow down to the desired DF1 baud rate and select it. E NT n times 4. The DF1 node address sub-menu appears next. D F 1 N OD E A D D R : 1 0 – 2 5 4 – To accept the default setting (1), press ENT.
Chapter 19 Common Procedures 6. The DH-485 node address sub-menu appears next. D H 4 8 5 N OD E A D D R : 1 1 – 3 1 – To accept the default setting (1), press ENT. – To change the default setting, delete the 1 by pressing DEL, type in the new number, and then press ENT. A P P L Y COMMS Y E S [ E N T ] N O [ E S C ] 7. Accept the communication settings.
Chapter 20 Troubleshooting Your System This chapter describes how to troubleshoot your controller.
Chapter 20 Troubleshooting Your System When an Error Exists If an error exists within the controller, the controller LEDs operate as described in the following tables. If the LEDs indicate: The Following Error Exists Probable Cause Recommended Action POWER RUN FAULT FORCE No input power er orr power supply error No Line Power Verify proper line voltage and connections to the controller.
Chapter 20 Troubleshooting Your System Identifying HHP Errors When an error occurs while accepting edits, the MicroLogix 1000 HHP displays an error message screen as shown here: Label Error Code (Hex) Program Verification Error Location (file and rung numbers) E R R : x x x x H f f / r r r < me s s a g e > Advisory Message Use the tables in this section to find the error code and the associated recommended action(s) you should take to clear the error.
Chapter 20 Troubleshooting Your System Communication Error Messages Error Code (Hex) 20–4 Advisory Message Description Recommended Action 1000 ILLEGAL COMMAND A communication error has occurred between the HHP and the micro controller. Disconnect the HHP from the micro controller, then reconnect it. If the error persists, record the error code and contact your local Allen-Bradley representative.
Chapter 20 Troubleshooting Your System Miscellaneous Error Messages Error Code (Hex) Advisory Message Description Recommended Action 2000 NO RESPONSE A communication error occurred between the HHP and the micro controller. Disconnect the HHP from the micro controller, then reconnect it. If the error persists, record the error code and contact your local Allen-Bradley representative. 2001 INVALID DEVICE The device that the HHP is attached to is telling the HHP that it is not a micro controller.
Chapter 20 Troubleshooting Your System Error Code (Hex) 20–6 Advisory Message Description Recommended Action 3008 INVALID MRD, MPP MRD and/or MPP instructions are not preceded by an output instruction. Ensure that each MRD and MPP instruction is preceded by an output instruction or remove them if the application does not require them. 3009 INVALID MRD, MPS An MRD instruction is used illegally.
Chapter 20 Troubleshooting Your System Error Code (Hex) Advisory Message Description Recommended Action 3013 INVALID ADDRESS An instruction is referencing a status file address outside of the data table space. Ensure that the status file operands for each instruction are within the micro controller’s data file space. 3014 BRANCH NEST ERR The program’s structure exceeds the allowable number of nested branches (4).
Chapter 20 Troubleshooting Your System Error Code (Hex) Using the Trace Feature Advisory Message Description Recommended Action 301E INVALID JMP A JMP instruction specifies a label number for which no corresponding LBL instruction exists. Ensure that a valid LBL instruction and label number exist in the program or remove the instruction if the application does not require it. 301F INVALID ADDRESS A file instruction exceeds the allowable data file size.
Chapter 20 Troubleshooting Your System Tracing an Address You Enter To enter an address and trace it, press the key sequence shown here: MON address TRACE S This type of tracing method can be invoked from any of the four functional areas: • home screen • program monitor • data monitor • multi-point Tracing an Address That is Displayed You can trace the address that is currently displayed on the MicroLogix 1000 HHP by pressing the key shown here: TRACE S You can invoke trace using this method from the
Chapter 20 Troubleshooting Your System Controller Error Recovery Model Use the following error recovery model to help you diagnose software and hardware problems in the micro controller. The model provides common questions you might ask to help troubleshoot your system. Refer to the recommended pages within the model and to S6 of the status file on page B–8 for further help. Start Identify the error code and description.
Chapter 20 Troubleshooting Your System Identifying Controller Faults While a program is executing, a fault may occur within the operating system or your program. When a fault occurs, you have various options to determine what the fault is and how to correct it. This section describes how to clear faults and provides a list of possible advisory messages with recommended corrective actions.
Chapter 20 Troubleshooting Your System 2. Clear the fault. ALL D EL F L T : 0 0 2 0 H C L E A R I N G. . . . . After the fault is cleared, the HHP returns to the screen that was displayed prior to accessing the fault display.
Chapter 20 Troubleshooting Your System Controller Fault Messages This section contains controller fault messages that the MicroLogix 1000 HHP may display during operation. Refer to page B–9 for a listing of recoverable and non-recoverable faults. Fault Code (Hex) Advisory Message Description Recommended Action 0001 DEFAULT LOADED The default program is loaded to the controller memory.
Chapter 20 Troubleshooting Your System Fault Code (Hex) 20–14 Advisory Message Description Recommended Action 0008 INTERNAL ERROR The controller software has detected an invalid condition within the hardware or software after completing power up processing (after the first 2 seconds of operation). 1. Cycle power on your unit. 2. Re-save or re-load your program and re-initialize any necessary data. 3. Start up your system. 4. Contact your local Allen-Bradley representative if the error persists.
Chapter 20 Troubleshooting Your System Fault Code (Hex) Advisory Message Description Recommended Action 0027 TOO MANY JSR’S There are more than three subroutines nested in the fault routine (file 3). Correct the user program to meet the requirements and restrictions for the JSR instruction, then re-enter RRUN, RCSN, or RSSN mode. 002A INDEX TOO LARGE The program is referencing through indexed addressing an element beyond a file boundary.
Chapter 20 Troubleshooting Your System Fault Code (Hex) Advisory Message Description Recommended Action 0038 RET IN FILE 2 A RET instruction is in the main program file (file 2). Remove the RET instruction and re-enter RRUN, RCSN, or RSSN mode. 0040 OUTPUT VERIFY WR When outputs were written and read back by the controller, the read failed. This may have been caused by noise. 1. Refer to proper grounding guidelines in chapter 2. 2. Start up your system. 3.
Appendix A Hardware Reference This appendix lists the MicroLogix 1000 Programmable Controller and MicroLogix 1000 HHP: • specifications • dimensions • accessories and replacement parts For AIC+ specifications, see the Advanced Interface Converter User Manual, Publication 1761-6.4. For DNI specifications, see the DeviceNet Interface User Manual, Publication 1761-6.5. Controller Specifications Controller Types Catalog Number Description 1761-L16AWA 10 pt. ac input, 6 pt.
Appendix A Hardware Reference General Specifications Description: cription: Specification: 1761-L 16AWA 20AWA-5A 32AWA 10BWA 16BWA 20BWA-5A Memory Size and Type 1 K EEPROM (approximately 737 instruction words: 437 data words) Power Supply Voltage 85–264V ac, 47-63 Hz Power Supply Usage 32BWA 32AAA 16BBB 10BWB 16BWB 20BWB-5A 32BWB 7W 32BBB 20.4–26.
Appendix A Hardware Reference Input Specifications Description cription Specification 100-120V ac Controllers 24V dc Controllers Voltage Range 79 to132V ac 47 to 63 Hz 14 to 30V dc On Voltage 79V ac min. 132V ac max. 14V dc min. 24V dc nominal 26.4V dc max. @ 55°C (131°F) 30.0V dc max. @ 30°C (86°F) Off Voltage 20V ac 5V dc On Current 5.0 mA min. @ 79V ac 47 Hz 12.0 mA nominal @ 120V ac 60 Hz 16.0 mA max. @ 132V ac 63 Hz 2.5 mA min. @ 14V dc 8.0 mA nominal @ 24V dc 12.0 mA max.
Appendix A Hardware Reference General Output Specifications Type Relay Voltage See Wiring Diagrams, p. 2–6. Maximum Load Current Refer to the Relay Contact Rating Table. 1.0A per point @ 55°C (131°F) 1.5A per point @ 30°C (86°F) 0.5A per point @ 55°C (131°F) 1.0A per point @ 30°C (86°F) Minimum Load Current 10.0 mA 1 mA 10.0 mA Current per Controller 1440 VA 3A for L16BBB 6A for L32BBB 1440 VA Current per Common 8.
Appendix A Hardware Reference Analog Input Specifications Description Specification Voltage Input Range –10.5 to +10.5V dc – 1LSB Current Input Range –21 to +21 mA – 1LSB Type of Data 16-bit signed integer Input Coding –21 to +21 mA – 1LSB, –10.5 to +10.5V dc – 1LSB –32,768 to +32,767 Voltage Input Impedance 210K W Current Input Impedance 160W Input Resolution➀ 16 bit Non-linearity t0.002% Overall Accuracy 0°C to +55°C Overall Error at +25°C (+77°F) (max.) ±0.7% of full scale ±0.
Appendix A Hardware Reference Input Filter Response Times (Discrete) The input filter response time is the time from when the external input voltage reaches an on or off state to when the micro controller recognizes that change of state. The higher you set the response time, the longer it takes for the input state change to reach the micro controller. However, setting higher response times also provides better filtering of high frequency noise.
Appendix A Hardware Reference Response Times for ac Inputs (applies to 1761-L16AWA, -L20AWA-5A, -L32AWA, and -L32AAA controllers) Nominal Filter Setting (ms)➀ 8.0 ➀ Controller Dimensions Maximum ON Delay (ms) 20.0 Maximum OFF Delay (ms) 20.0 There is only one filter setting available for the ac inputs. If you make another selection, the controller changes it to the ac setting and sets the input filter modified bit (S:5/13). Refer to the following table for the controller dimensions.
Appendix A Hardware Reference 80 mm (3.15 in.) 1761–L16BWA 1761–L16BBB 102mm (4.01 in.) 125 mm (4.92 in.) 1761–L16BWB 1761–L10BWA 1761–L10BWB 120 mm (4.72 in.) 1761–L16AWA 133 mm (5.24 in.) 192 mm (7.55 in.) 1761–L20AWA-5A 1761–L20BWA-5A 1761–L20BWB-5A 1761–L32AAA 1761–L32AWA 1761–L32BBB 1761–L32BWA 1761–L32BWB 200 mm (7.87 in.) 72 mm (2.83 in.
Appendix A Hardware Reference Hand-Held Programmer Specifications The following tables summarize the specifications and dimensions for the MicroLogix 1000 HHP. General Specifications Description Specification: 1761-HHP-B30 Operating Power 2.0W Operating Temperature 0°C to +50°C (+32°F to +122°F) Storage Temperature –20°C to +60°C (–4°F to +140°F) Operating Humidity 5 to 95% noncondensing Vibration (Operating and Non-operating) 10 to 500 Hz 0.762 mm (0.030 in.) peak to peak 1.
Appendix A Hardware Reference 94.48 mm (3.72 in.) 172.21 mm (6.78 in.) 76.45 mm (3.01 in.
Appendix A Hardware Reference Controller and Hand-Held Programmer Accessories and Replacement Parts This table provides a list of accessories and replacement parts and their catalog numbers. Description Catalog Number 10 pt. ac input, 6 pt. relay output, ac power supply controller 12 pt. ac and 4 pt. analog inputs, 8 pt. relay and 1 pt. analog outputs, ac power supply controller 20 pt. ac input, 12 pt. relay output, ac power supply controller 1761-L16AWA 6 pt. dc input, 4 pt.
Appendix B Programming Reference This appendix lists the: • controller status file • function codes • instruction execution times and instruction memory usage Controller Status File The status file lets you monitor how your operating system works and lets you direct how you want it to work. This is done by using the status file to set up control bits and monitor both hardware and software faults and other status information. Important: Do not write to reserved words in the status file.
Appendix B Programming Reference Word Function Page S:23 Reserved B–12 S:24 Index Register B–12 S:25 to S:29 Reserved S:30 STI Setpoint B–12 S:31 and S:32 Reserved B–12 B–12 Status File Descriptions The following tables describe the status file functions, beginning at address S0 and ending at address S32. Each status bit is classified as one of the following: • Status — Use these words, bytes, or bits to monitor controller operation or controller status information.
Address Classification Description S0/8➀ Extend I/O Configuration Bit Static Configuration This bit must be set by the user when unused outputs are written to. If reset and unused outputs are turned on the controller will fault (41H).
Appendix B Programming Reference Address S1/9➀ Bit Startup Protection Fault Classification Static Configuration Description When this bit is set and power is cycled when the controller powers up in Run mode, the controller executes the user-fault routine prior to the execution of the first scan of your program. You have the option of clearing the Major Error Halted bit S:1/13 to resume operation in the REM Run mode. If the user-fault routine does not reset bit S:1/13, the fault mode results.
Appendix B Programming Reference Address S1/13 Bit Major Error Halted Classification Dynamic Configuration S1/13 Major Error Halted Dynamic Configuration S1/14 11 OEM M LLock c Static a ic Configuration fi ra i Using this bit you can control access to a controller file. To program this feature, select “Future Access Disallow” when saving your program.
Appendix B Programming Reference S2/6➀ Message Reply Pending Bit Status S2/7➀ Outgoing Message Command Pending Bit Status S2/8 to S2/13 S2/14 Reserved Math Overflow Selection NA Dynamic Configuration This bit is set when another node on the network has supplied the information you requested in the MSG instruction of your processor. This bit is cleared when the processor stores the information and updates your MSG instruction.
Appendix B Programming Reference Bit Classification Description Watchdog Scan Time Dynamic Configuration This byte value contains the number of 10 ms ticks allowed to occur during a program cycle. The default value is 10 (100 ms), but you can increase this to 255 (2.55 seconds) or decrease it to 1, as your application requires. If the program scan S:3L value equals the watchdog value, a watchdog major error is declared (code 0022).
Appendix B Programming Reference Address Bit Classification Description S5/2 Control Register Error Dynamic Configuration If this bit is ever set upon execution of the END or TND instruction, major error (0020) is declared. To avoid this type of major error from occurring, examine the state of this bit following a control register instruction, take appropriate action, and then clear bit S:5/2 using an OTU instruction with S:5/2.
Appendix B Programming Reference Each fault is classified as one of the following: • Non-User — A fault caused by various conditions that cease logic program execution. The user-fault routine is not run when this fault occurs. • Non-Recoverable — A fault caused by the user that cannot be recovered from. The user-fault routine is run when this fault occurs. However, the fault cannot be cleared.
Appendix B Programming Reference Fault Classification User Address Error Code (Hex) Run Errors Non-User S6 0004 A runtime memory integrity error occurred. X 0020 A minor error at the end of the scan. Refer to S:5. 0022 The watchdog timer expired. Refer to S:3H. X 0024 Invalid STI interrupt setpoint. Refer to S:30. X 0025 There are excessive JSRs in the STI subroutine (file 5). X 0027 There are excessive JSRs in the fault subroutine (file 3).
Appendix B Programming Reference Address S7 Bit Suspend Code Classification Status S8 to S12 S13 and S14 Reserved Math Register NA Status Description When a non-zero value appears in S:7, it indicates that the SUS instruction identified by this value has been evaluated as true and the Suspend Idle mode is in effect. This pinpoints the conditions in the application that caused the Suspend Idle mode. This value is not cleared by the controller.
Appendix B Programming Reference Classification Status S17 to S21 S22 Reserved Maximum Observed bser e Scan ca Time i e NA Dynamic Configuration fi ra i Description This byte value contains the baud rate of the processor on the DH-485 link. The controller baud rate options are: • 9600 • 19200 (default) To change the baud rate from the default value, you must use a programming device. NA This word indicates the maximum observed interval between consecutive program cycles.
Appendix B Programming Reference Function Codes The table below provides the function codes for each instruction. The instructions are listed in alphabetical order.
Appendix B Programming Reference HHP Display Function Code HSL ➀ 171 High-Speed Counter Load High-Speed Counter IIM ➀ 138 Immediate Input with Mask Program Flow Control INT 158 Interrupt Subroutine Application Specific IOM ➀ 139 Immediate Output with Mask Program Flow Control JMP ➀ 130 Jump to Label Program Flow Control JSR ➀ 132 Jump to Subroutine Program Flow Control LBL 131 Label Program Flow Control LD 20 Load Basic LDI 21 Load Inverted Basic LDT 26 Load Tru
Appendix B Programming Reference HHP Display Function Code ➀ 112 AND NEQ NEQ 54 LD NEQ NEQ 53 OR NEQ NEQ 55 ➀ Mnemonic NEG NEQ NOT OR (bit input) Name Instruction Type Negate Data Handling Not Equal Comparison 111 Not Data Handling 24 Or Basic OR (word output) ➀ 109 Or Data Handling ORB ➀ 14 Or Block Basic 25 Or Inverted Basic ORT 27 Or True Basic AND OSR OSR 29 One-Shot e Rising Risi Basic asic LD OSR OSR 28 ( ) 40 Output Basic OUT (high-speed cou
Appendix B Programming Reference HHP Display Function Code SUB ➀ 81 Subtract Math SUS ➀ 137 Suspend Program Flow Control TND ➀ 136 Temporary End Program Flow Control TOD ➀ 100 Convert to BCD Data Handling TOF ➀ 1 Timer Off-Delay Basic TON ➀ 0 Timer On-Delay Basic XOR ➀ 110 Exclusive Or Data Handling Mnemonic Name Instruction Type ➀ Multiple displays.
Appendix B Programming Reference False Execution Time (approx. µseconds) True Execution Time (approx. µseconds) Memory Usage (user words) FFL 33.67 61.13 1.50 FIFO Load Data Handling FFU 34.90 73.78 + 4.34 x position value 1.50 FIFO Unload Data Handling FLL 6.60 26.86 + 3.62/word 1.50 Fill File Data Handling FRD 5.52 56.88 1.00 Convert from BCD Data Handling AND GEQ 7.00 24.00 1.75 LD GEQ 6.60 23.60 1.50 Greater Than or Equal Comparison OR GEQ 7.00 24.00 1.
Appendix B Programming Reference False Execution Time (approx. µseconds) True Execution Time (approx. µseconds) Memory Usage (user words) AND LIM 8.09 37.33 1.75 LD LIM 7.69 36.93 1.50 OR LIM 8.09 37.33 1.75 4.07 3.98 0.50 AND MEQ 8.09 28.79 1.75 LD MEQ 7.69 28.39 1.50 OR MEQ 8.09 28.79 1.75 6.78 25.
Appendix B Programming Reference False Execution Time (approx. µseconds) True Execution Time (approx. µseconds) Memory Usage (user words) RET 3.16 31.11 0.50 Return from Subroutine Program Flow Control RST 3.16 4.97 0.75 Reset Basic RTO 27.49 38.34 1.00 Retentive Timer Basic 0.99 1.45 0.50 Subroutine Program Flow Control SCL 6.78 169.18 1.75 Scale Data Math SET 3.16 4.97 0.75 Set Basic SQC 27.40 60.52 2.00 Sequencer Compare Application Specific SQL 28.12 53.
Appendix B Programming Reference User Interrupt Latency The user interrupt latency is the maximum time from when an interrupt condition occurs (e.g., STI expires or HSC preset is reached) to when the user interrupt subroutine begins executing (assumes that there are no other interrupt conditions present).
Appendix B Programming Reference Estimating Memory Usage for Your Control System Use the following to calculate memory usage for your control system. 1. Determine the total instruction words used by the instructions in your program and enter the result. Refer to the table on page B–16. 2. Multiply the total number of rungs by 0.75 and enter the result. Do not count the Start of File or End of File screens in each file. 177 3. To account for controller overhead, use 177. 110 4.
Appendix C Valid Addressing Modes and File Types for Instruction Parameters This appendix lists all of the available programming instructions along with their parameters, valid addressing modes, and file types. Available File Types The following file types are available: • O Output • I Input • S Status • B Binary • T Timer • C Counter • R Control • N Integer All file types are word addresses, unless otherwise specified.
Appendix C Valid Addresssing Modes and File Types for Instruction Parameters Available Addressing Modes The following addressing modes are available: • immediate • direct • indexed direct Immediate Addressing Indicates that a constant is a valid file type. Direct Addressing The data stored in the specified address is used in the instruction. For example: N7:0 ST20:5 T4:8.ACC Indexed Direct Addressing You may specify an address as being indexed by placing the “#” character in front of the address.
Appendix C Valid Addressing Modes and File Types for Instruction Parameters Description Instruction ADD Add Instruction Parameters Valid Addressing Mode(s) Valid File Types Valid Value Ranges source A immediate, direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 f-min–f-max source B immediate, direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 f-min–f-max destination direct, indexed direct O, I, S, B, T, C, R, N Not Applicable AND And (bit input) source bit direct
Appendix C Valid Addresssing Modes and File Types for Instruction Parameters Instruction CTU DCD DDV DIV ENC EQU FFL FFU Description Count Up Decode 4 to 1 of 16 Double Divide Divide Encode 1 of 16 to 4 Equal FIFO Load FIFO Unload Instruction Parameters Valid Addressing Mode(s) Valid File Types C (element level) counter direct preset (contained in the counter register) –32,768–32,767 accum (contained in the counter register) –32,768–32,767 source direct, indexed direct O, I, S,
Appendix C Valid Addressing Modes and File Types for Instruction Parameters Instruction FLL FRD GEQ GRT HSC Description Fill File Convert from BCD Greater Than or Equal Greater Than High-Speed Counter Instruction Parameters Valid Addressing Mode(s) Valid File Types Valid Value Ranges source direct O, I, S, B, T, C, R, N –32,768–32,767 f-min–f-max destination indexed direct O, I, S, B, T, C, R, N (element level) Not Applicable length immediate source direct, indexed direct O, I, S,
Appendix C Valid Addresssing Modes and File Types for Instruction Parameters Instruction Description INT Interrupt Subroutine IOM Immediate Output with Mas Mask Instruction Parameters Valid Addressing Mode(s) Valid File Types Not Applicable slot direct O Not Applicable mask direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 length immediate 1–32 JMP Jump label number immediate 0–999 JSR Jump to Subroutine subroutine file number immediate 3–255 LBL Label label numbe
Appendix C Valid Addressing Modes and File Types for Instruction Parameters Description Instruction LIM Limit Test MCR Master Control Reset MEQ Mask Comparison for Equal a MOV MSG Move Message Instruction Parameter Valid Addressing Mode(s) MVM NEG Multiply Masked Move Negate Valid Value Ranges low limit immediate, direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 f-min–f-max test immediate, direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 f-min–f-max high l
Appendix C Valid Addresssing Modes and File Types for Instruction Parameters Instruction NEQ NOT Not Equal Logical NOT Instruction Parameter Valid Addressing Mode(s) Valid File Types Valid Value Ranges source A direct, indexed direct O, I, S, B, T, C, R, N Not Applicable source B immediate, direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 f-min–f-max source direct, indexed direct O, I, S, B, T, C, R, N Not Applicable destination direct, indexed direct O, I, S, B, T, C, R,
Appendix C Valid Addressing Modes and File Types for Instruction Parameters Instruction SCL Description Scale Data Instruction Parameter Valid Addressing Mode(s) Valid File Types Valid Value Ranges source direct, indexed direct O, I, S, B, T, C, R, N Not Applicable rate immediate, direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 offset immediate, direct, indexed direct O, I, S, B, T, C, R, N –32,768–32,767 destination direct, indexed direct O, I, S, B, T, C, R, N Not Applic
Appendix C Valid Addresssing Modes and File Types for Instruction Parameters Instruction STS SUB Selectable Timed Start Subtract SUS Suspend TND Temporary End TOD Convert to BCD TOF TON XOR C–10 Description Timer Off-Delay Timer On-Delay Exclusive OR Instruction Parameter Valid Addressing Mode(s) Valid File Types Valid Value Ranges file immediate, direct, indexed direct O, I, S, B, T, C, R, N always equal 5 time immediate, direct, indexed direct O, I, S, B, T, C, R, N 0–255 so
Appendix D Understanding the Communication Protocols Use the information in this appendix to understand the differences in communication protocols. The following protocols are supported from the RS-232 communication channel: • DF1 Full-Duplex and DF1 Half-Duplex Slave All MicroLogix 1000 controllers support the DF1 full-duplex protocol. Series D or later discrete and all MicroLogix 1000 analog controllers also support DF1 half-duplex slave protocol.
Appendix D Understanding the Communication Protocols DF1 Full-Duplex Protocol DF1 Full-Duplex communication protocol combines data transparency (ANSI — American National Standards Institute — specification subcategory D1) and two-way simultaneous transmission with embedded responses (subcategory F1).
Appendix D Understanding the Communication Protocols Example: DF1 Full-Duplex Connections For information about required network connecting equipment, see chapter 3, Connecting the System. Micro Controller Optical Isolator➀ (recommended) 1761-CBL-PM02 Personal Computer Modem Cable Personal Computer Modem Optical Isolator➀ (recommended) Modem Micro Controller 1761-CBL-PM02 ➀ We recommend using an AIC+, catalog number 1761-NET-AIC, as your optical isolator.
Appendix D Understanding the Communication Protocols DF1 Half-Duplex Slave Protocol DF1 half-duplex slave protocol provides a multi-drop single master/multiple slave network. In contrast to DF1 full-duplex, communication takes place in one direction at a time. You can use the RS-232 port on the MicroLogix as both a half-duplex programming port, as well as a half-duplex peer-to-peer messaging port. The master device initiates all communication by “polling” each slave device.
Appendix D Understanding the Communication Protocols DF1 Half-Duplex Slave Configuration Parameters When the system mode driver is DF1 half-duplex slave the following parameters can be viewed and changed only when the programming software is online with the processor. The DF1 half-duplex slave parameters are not stored as part of the controller downloadable image (with the exception of the baud rate and node address).
Appendix D Understanding the Communication Protocols RS-232 (DF1 Protocol) Modem Modem MicroLogix 1000 Programmable Controller (Series D) SLC 5/03 Processor Modular Controller Rockwell Software WINtelligent LINX, RSLinx 2.
Appendix D Understanding the Communication Protocols With the addition of DF1 half-duplex slave protocol, the controller clears the file ownership if no supported commands are received from the owner within the timeout period. If the file ownership were not cleared after a download sequence interruption, the processor would not accept commands from any other devices because it would assume another device still had file ownership.
Appendix D Understanding the Communication Protocols Leased-Line Modems Leased-line modems are used with dedicated phone lines that are typically leased from the local phone company. The dedicated lines may be in a point-to-point topology supporting full-duplex communications between two modems or in a point-to-multipoint topology supporting half-duplex communications between three or more modems.
Appendix D Understanding the Communication Protocols DH-485 Communication Protocol The information in this section describes the DH-485 network functions, network architecture, and performance characteristics. It also helps you plan and operate the MicroLogix 1000 on a DH-485 network. Important: Only Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers support the DH-485 network.
Appendix D Understanding the Communication Protocols DH-485 Configuration Parameters When the system mode driver is DH-485 Master, the following parameters can be changed: Parameter Baud Rate Node Address Max Node Address Token Hold Factor Description Toggles between the communication rate of 9600 and 19200. This is the node address of the processor on the DH-485 network. The valid range is 1–31. This is the maximum node address of an active processor.
Appendix D Understanding the Communication Protocols Description 1747-L511, -L514, -L524, -L531, -L532 -L541, -L542, -L543 -L551, -L552 -L553 SLC 500 Processors BASIC Module 1746-BAS DH+ /DH-485 Gateway 1785-KA5 Installation Requirement Function Publication SLC Chassis These processors support a variety of I/O requirements and functionality. 1747-6.2 SLC Chassis Provides an interface for SLC 500 devices to foreign devices.
Appendix D Understanding the Communication Protocols Important DH-485 Network Planning Considerations Carefully plan your network configuration before installing any hardware.
Appendix D Understanding the Communication Protocols Planning Cable Routes Follow these guidelines to help protect the communication cable from electrical interference: • Keep the communication cable at least 1.52 m (5 ft) from any electric motors, transformers, rectifiers, generators, arc welders, induction furnaces, or sources of microwave radiation. • If you must run the cable across power feed lines, run the cable at right angles to the lines.
Appendix D Understanding the Communication Protocols Number of Nodes The number of nodes on the network directly affects the data transfer time between nodes. Unnecessary nodes (such as a second programming terminal that is not being used) slow the data transfer rate. The maximum number of nodes on the network is 32. Setting Node Addresses The best network performance occurs when node addresses are assigned in sequential order.
Appendix D Understanding the Communication Protocols DH-485 Network with a MicroLogix 1000 Controller PC MicroLogix 1000 (Series C or later discrete or all analog) APS 1761-CBL-AM00 or 1761-CBLHM02 PC to port 1 or port 2 connection from port 1 or port 2 to MicroLogix AIC+ (1761-NET-AIC) 1761-CBL-AP00 or 1761-CBL-PM02 1761-CBL-AP00 or 1761-CBL-PM02 AIC+ (1761-NET-AIC) 24V dc (user supply needed if not connected to a MicroLogix 1000 controller) 24V dc (user supplied) MicroLogix DH-485
Appendix D Understanding the Communication Protocols Networked Operator Interface Device and MicroLogix Controller PanelView 550 PC APS PC to port 1 or port 2 RS-232 port NULL modem adapter connection from NULL modem adapter to port 1 or port 2 1761-CBL-AP00 or 1761-CBL-PM02 AIC+ (1761-NET-AIC) AIC+ (1761-NET-AIC) 24V dc (user supplied) 24V dc (user supplied) DH-485 Network 1747-CP3 or 1761-CBL-AC00 1747-AIC AIC+ (1761-NET-AIC) Selection Switch Up 1761-CBL-AM00 or 1761-CBL-HM02
Appendix D Understanding the Communication Protocols MicroLogix Remote Packet Support Series D MicroLogix discrete controllers and all MicroLogix analog controllers can respond to communication packets (or commands) that do not originate on the local DH-485 network. This is useful in installations where communication is needed between the DH-485 and DH+ networks. The example below shows how to send messages from a PLC device or a PC on the DH+ network to a MicroLogix 1000 controller on the DH-485 network.
Appendix E Application Example Programs This appendix is designed to illustrate various instructions described previously in this manual.
Appendix E Application Example Programs Paper Drilling Machine Application Example For a detailed explanation of: • LD, LDI, OUT, RES, SET, RST, and OSR instructions, see chapter 8. • EQU and GEQ instructions, see chapter 9. • CLR, ADD, and SUB instructions, see chapter 10. • MOV and FRD instructions, see chapter 11. • JSR and RET instructions, see chapter 12. • INT and SQO instructions, see chapter 13. • HSC, HSL, and RAC instructions, see chapter 14.
Appendix E Application Example Programs Drill Mechanism Operation When the operator presses the start button, the drill motor turns on. After the book is in the first drilling position, the conveyor subroutine sets a drill sequence start bit and the drill moves toward the book. When the drill has drilled through the book, the drill body hits a limit switch and causes the drill to retract up out of the book.
Appendix E Application Example Programs Paper Drilling Machine Ladder Program Rung 2:0 Initializes the high-speed counter each time the RRUN mode is entered. The high-speed counter data area (N7:5 – N7:9) corresponds with the starting address (source address) of the HSL instruction. The HSC instruction is disabled each entry into the RRUN mode until the first time that it is executed as true.
Appendix E Application Example Programs Rung 2:1 This HSC instruction is not placed in the high-speed counter interrupt subroutine. If this instruction were placed in the interrupt subroutine, the high-speed counter could never be started or initialized (because an interrupt must first occur in order to scan the high-speed counter interrupt subroutine).
Appendix E Application Example Programs Rung 2:5 Calls the drill sequence subroutine. This subroutine manages the operation of a drilling sequence and restarts the conveyor upon completion of the drilling sequence. | +JSR–––––––––––––––+ | |––––––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE+–| | |SBR file number 6| | | +––––––––––––––––––+ | Rung 2:6 Calls the subroutine that tracks the amount of wear on the current drill bit.
Appendix E Application Example Programs Rung 4:1➀ Keeps track of the hole number that is being drilled and loads the correct high-speed counter preset based on the hole count. This rung is only active when the ”hole selector switch” is in the ”3-hole” position. The sequencer uses step 0 as a null step upon reset. It uses the last step as a ”go forever” in anticipation of the ”end-of-manual” hard-wired external reset.
Appendix E Application Example Programs Rung 4:3➀ Is identical to the two previous rungs except that it is only active when the ”hole selector switch” is in the ”7-hole” position.
Appendix E Application Example Programs Rung 6:0 This section of ladder logic controls the up/down motion of the drill for the book drilling machine. When the conveyor positions the book under the drill, the DRILL SEQUENCE START bit is set. This rung uses that bit to begin the drilling operation. Because the bit is set for the entire drilling operation, the OSR is required to be able to turn off the forward signal so the drill can retract.
Appendix E Application Example Programs Rung 7:0 Examines the number of 1/4 in. thousands that have accumulated over the life of the current drill bit. If the bit has drilled between 100,000–101,999 1/4 in. increments of paper, the ”change drill” light illuminates steadily. When the value is between 102,000–103,999, the ”change drill” light flashes at a 1.28 second rate. When the value reaches 105,000, the ”change drill” light flashes and the ”change drill now” light illuminates. | 1/4 in.
Appendix E Application Example Programs Rung 7:1 Resets the number of 1/4 in. increments and the 1/4 in. thousands when the ”drill change reset” keyswitch is energized. This should occur following each drill bit change. | drill change 1/4 in. | | reset keyswitch Thousands | | I:0 +CLR–––––––––––––––+ | |––––] [–––––––––––––––––––––––––––––––––––––+–+CLEAR +–+–| | 8 | |Dest N7:11| | | | | | 0| | | | | +––––––––––––––––––+ | | | | 1/4 in.
Appendix E Application Example Programs Rung 7:3 Converts the BCD thumbwheel value from BCD to integer. This is done because the controller operates upon integer values. This rung also ”debounces” the thumbwheel to ensure that the conversion only occurs on valid BCD values. Note that invalid BCD values can occur while the operator is changing the BCD thumbwheel. This is due to input filter propagation delay differences between the 4 input circuits that provide the BCD input value.
Appendix E Application Example Programs Rung 7:6 When the number of 1/4 in. increments surpasses 1000, finds out now many increments are past 1000 and stores in N7:20. Adds 1 to the total of ’1000 1/4 in.’ increments and re-initializes the 1/4 in. increments accumulator to how many increments were beyond 1000. | 1/4 in.
Appendix E Application Example Programs Paper Drilling Machine Instruction List Program File 2, Rung 0 Initializes the high-speed counter each time the RRUN mode is entered. The high-speed counter data area (N7:5 – N7:9) corresponds with the starting address (source address) of the HSL instruction. The HSC instruction is disabled each entry into the RRUN mode until the first time that it is executed as true.
Appendix E Application Example Programs File 2, Rung 2 Forces a high-speed counter low preset interrupt to occur each RRUN mode entry. An interrupt can only occur on the transition of the high-speed counter accum to a preset value (accum reset to 1, then 0). This is done to allow the high-speed counter interrupt subroutine sequencers to initialize.
Appendix E Application Example Programs File 2, Rung 4 Applies the above start logic to the conveyor and drill motor. FUN CODE –––– 20 GRAPHIC SYMBOL ––––––– |–] [– 10 22 40 File PARAMETER NAME ADDRESS –––– ––––––– VALUE ––––– Machine RUN Latch B/0 0 Drill Home LS I/5 0 Conveyor Enable O/5 0 Drill Motor ON O/1 0 FORCES –––––– MPS –] [– –( )– 12 40 MNEMONIC –––––––– LD AND OUT MPP –( )– 2, OUT Rung 5 Calls the drill sequence subroutine.
Appendix E Application Example Programs File 4, Rung 0 Resets the hole count sequencers each time that the low preset is reached. The low preset has been set to zero to cause an interrupt to occur each time that a reset occurs. The low preset is reached anytime that a reset C5:0 or hardware reset occurs. This ensures that the first preset value is loaded into the high-speed counter at each entry into the RRUN mode and each time that the external reset signal is activated.
Appendix E Application Example Programs File 4, Rung 2 Is identical to the previous rung except that it is only active when the ”hole selector switch” is in the ”5-hole” position.
Appendix E Application Example Programs File 4, Rung 4 Ensures that the high-speed counter preset value (N7:7) is immediately applied to the HSC instruction. FUN CODE –––– 171 GRAPHIC SYMBOL ––––––– MNEMONIC –––––––– HSL PARAMETER NAME ADDRESS –––– ––––––– VALUE ––––– FORCES –––––– High Speed Counter CNTR C0 Output Mask (only use bit 0 ie. O:0/0) SRC N5 LEN 5 File 4, Rung 5 Interrupt occurred due to low preset reached.
Appendix E Application Example Programs File 6, Rung 1 When the drill has drilled through the book, the body of the drill actuates the DRILL DEPTH limit switch. When this happens, the DRILL FORWARD signal is turned off and the DRILL RETRACT signal is turned on. The drill is also retracted automatically on power up if it is not actuating the DRILL HOME limit switch.
Appendix E Application Example Programs File 7, Rung 0 Examines the number of 1/4 in. thousands that have accumulated over the life of the current drill bit. If the bit has drilled between 100,000–101,999 1/4 in. increments of paper, the ”change drill” light illuminates steadily. When the value is between 102,000–103,999, the ”change drill” light flashes at a 1.28 second rate. When the value reaches 105,000, the ”change drill” light flashes and the ”change drill now” light illuminates.
Appendix E Application Example Programs File 7, Rung 1 Resets the number of 1/4 in. increments and the 1/4 in. thousands when the ”drill change reset” keyswitch is energized. This should occur following each drill bit change. FUN CODE –––– 20 GRAPHIC SYMBOL ––––––– |–] [– MNEMONIC –––––––– LD PARAMETER NAME ADDRESS –––– ––––––– VALUE ––––– FORCES –––––– drill change reset keyswitch I/8 0 85 CLR 1/4 in. Thousands DEST N11 85 0000H CLR 1/4 in.
Appendix E Application Example Programs File 7, Rung 3 Converts the BCD thumbwheel value from BCD to integer. This is done because the controller operates upon integer values. This rung also ”debounces” the thumbwheel to ensure that the conversion only occurs on valid BCD values. Note that invalid BCD values can occur while the operator is changing the BCD thumbwheel. This is due to input filter propagation delay differences between the 4 input circuits that provide the BCD input value.
Appendix E Application Example Programs File 7, Rung 5 Keeps a running total of how many inches of paper have been drilled with the current drill bit. Every time a hole is drilled, adds the thickness (in 1/4 ins) to the running total (kept in 1/4 ins). The OSR is necessary because the ADD executes every time the rung is true, and the drill body would actuate the DRILL DEPTH limit switch for more than 1 program scan.
Appendix E Application Example Programs Time-Driven Sequencer Application Example The following application example illustrates the use of the TON and SQO instructions in a traffic signal at an intersection. The timing requirements are: • Red light – 30 seconds • Yellow light – 15 seconds • Green light – 60 seconds The timer, when it reaches its preset, steps the sequencer that in turn controls which traffic signal is illuminated.
Appendix E Application Example Programs Data Files Address N7:0 N7:1 N7:2 N7:3 15 0000 0000 0000 0000 Data 0000 0000 0000 0000 0000 0000 0000 0000 0 0000 0100 0010 0001 Address Data (Radix=Decimal) N7:0 0 2 Data Table 4 1 0 0 6000 1500 3000 Time Driven Sequencer Instruction List Program File 2, Rung 0 The function of this rung timer reaches its preset, this rung to become FALSE following scan, when this timing.
Appendix E Application Example Programs Event-Driven Sequencer Application Example The following application example illustrates how the FD (found) bit on an SQC instruction can be used to advance an SQO to the next step (position). This application program is used when a specific order of events is required to occur repeatedly. By using this combination, you can eliminate using the XIO, XIC, and other instructions. For a detailed explanation of: • LD, LDI, and RES instructions, see chapter 8.
Appendix E Application Example Programs Event Driven Sequencer Instruction List Program File 2, Rung 0 Ensures that the SQO always resets to step (position) 1 each RRUN mode entry. (This rung actually resets the control register’s position and EN enable bit to 0. Due to this the following rung sees a false to true transition and asserts step (position) 1 on the first scan.) Eliminate this rung for retentive operation.
Appendix E Application Example Programs Bottle Line Example The following application example illustrates how the controller high-speed counter is configured for an up/down counter. For a detailed explanation of: • LD, SET, RST, and OUT instructions, see chapter 8. • GRT, LES, and GEQ instruction, see chapter 9. • HSC and HSL instructions, see chapter 14.
Appendix E Application Example Programs Rung 2:1 Starts up the high-speed counter with the above parameters. Each time the rung is evaluated, the hardware accumulator is written to C5:0.ACC. | +HSC–––––––––––––––+ | |–––––––––––––––––––––––––––––––––––––––––––+HIGH SPEED COUNTER+–(CU)–| | |Type Up/Down+–(CD) | | |Counter C5:0+–(DN) | | |Preset 350| | | |Accum 0| | | +––––––––––––––––––+ | Rung 2:2 Packing machine running too fast for the filling machine.
Appendix E Application Example Programs Rung 2:6 If the high-speed counter reached its high preset of 350 (indicates that the holding area reached maximum capacity), it would energize O:0/0, shutting down the filling operation. Before re-starting the filler, allow the packer to empty the holding area until it is about 1/3 full. | HSC Interr Fill Stop | | due to | | High Preset | | | | C5:0 +LES–––––––––––––––+ O:0 | |––––] [–––––+LESS THAN +––––––––––––––––––––––+––––(U)–––––+–| | IH |Source A C5:0.
Appendix E Application Example Programs Bottle Line Instruction List Program File 2, Rung 0 Loads the high-speed counter with the following parameters: N7:0 – 0001h Output Mask – Effect only O:0/0 N7:1 – 0001h Output Pattern for High Preset – Energize O:0/0 upon high preset N7:2 – 350d High Preset – Maximum numbers of bottles for the holding area N7:3 – 0000h Output Pattern for Low Preset – not used N7:4 – 0d Low Preset – not used FUN CODE –––– 20 GRAPHIC SYMBOL ––––––– |–] [– 171 File MNEMONIC ––––
Appendix E Application Example Programs File 2, Rung 4 Filling machine running too fast for the packing machine. filling machine to allow the packer to catch up. FUN CODE –––– 62 GRAPHIC SYMBOL ––––––– |–GRT– MNEMONIC –––––––– LD–GRT 41 –(L)– SET File 2, PARAMETER NAME ADDRESS –––– ––––––– SRCA C0.
Appendix E Application Example Programs Pick and Place Machine Example The following application example illustrates how the controller high-speed counter is configured for the up and down counter using an encoder with reset and hold. For a detailed explanation of: • LD, LDI, OUT, RES, SET, RST, and TON instructions, see chapter 8. • GRT and NEQ instructions, see chapter 9. • MOV instruction, see chapter 11. • HSC and HSL instructions, see chapter 14.
Appendix E Application Example Programs Pick and Place Machine Ladder Program Rung 2:0 The following three rungs take information from the other programmable controller and load it into the INDEX REGISTER. This is used to select the proper bin location from the table starting at N7:10.
Appendix E Application Example Programs Rung 2:6 When the pick-and-place head reaches either its home position to pick up a part or its destination bin to drop off a part, start up a dwell timer. The purpose of this is to keep the head stationary long enough for the gripper to either grab or release the part. | Bin | | Location Dwell Timer | | Reached | | C5:0 +TON–––––––––––––––+ | |–+––––] [–––––+––––––––––––––––––––––––––––+TIMER ON DELAY +–(EN)–| | | HP | |Timer T4:0+–(DN) | | | | |Time Base 0.
Appendix E Application Example Programs Pick and Place Machine Instruction List Program File 2, Rung 0 The following three rungs take information from the other programmable controller and load it into the INDEX REGISTER. This is used to select the proper bin location from the table starting at N7:10.
Appendix E Application Example Programs File 2, Rung 4 Loads the high-speed counter with the following parameters: N7:0 – 0001h – Output Mask – high-speed counter control only O:0/0 (gripper) N7:1 – 0000h – Output Pattern for High Preset – turn OFF gripper (release part) N7:2 – 100d – High Preset – loaded from table in the rung above N7:3 – 0001h – Output Pattern for Low Preset – turn ON gripper (grab part) N7:4 – 0d – Low Preset – home position when encoder triggers Z-reset FUN CODE –––– 20 GRAPHIC SY
Appendix E Application Example Programs File 2, Rung 7 When the pick-and-place head is positioned over the proper bin, turn off the forward motor. At the same time, the high-speed counter tells the gripper to release the part and start the dwell timer. After the dwell time has expired, start up the reverse motor to send the head back to its home position to pick up another part.
Appendix E Application Example Programs RPM Calculation Application Example The following application example illustrates how to calculate the frequency and RPM of a device (such as an encoder) connected to a high-speed counter. The calculated values are only valid when counting up. For a detailed explanation of: • LD, LDI, CTU and TON instructions, see chapter 8. • LES instruction, see chapter 9. • CLR, MUL, DIV, DDV, ADD, and SUB instructions, see chapter 10. • MOV instruction, see chapter 11.
Appendix E Application Example Programs To maintain validity, you must ensure that you cannot accumulate more pulses per rate period than counts per revolution. For example, if you have selected a 1000 pulse encoder, you cannot have more than 999 counts occur in any 1 rate measurement period. If you determine that you exceed this rule, simply lower your Rate Measurement Period T0.PRE. RPM Calculation Ladder Program Rung 2:0 Ensures that the measurement value is initialized each RRUN mode entry.
Appendix E Application Example Programs Rung 2:2 Calculates and stores the number of counts that have occurred since the last time that it was executed as true in N7:1 (last time=last rate measurement timer (T4:0) expiration). The LES instruction allows for 10 counts of backlash to occur (you can adjust as needed). The add instruction is configured for a 1000 count encoder using N7:2. (Change this register to match the number of counts generated each Z reset.
Appendix E Application Example Programs | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1 second Frequency | | has now in Hertz | | elapsed | | C5:1 +MOV–––––––––––––––+ | +–––] [–––+––+MOVE +–+–––––––––––––––––––––––––+ DN | |Source N7:3| | | | 0| | | |Dest N7:4| | | | 0| | | +––––––––––––––––––+ | | Frequency | | calculation | | register | | +CLR–––––––––––––––+ | +––+CLEAR +–+ | |Dest N7:3| | | | 0| | | +––––––––––––––––––+ | | Frequency | | determi
Appendix E Application Example Programs RPM Calculation Instruction List Program File 2, Rung 0 Ensures that the measurement value is initialized each RRUN mode entry. FUN CODE –––– 20 GRAPHIC SYMBOL ––––––– |–] [– MNEMONIC –––––––– LD 106 MOV 7 RES 85 CLR PARAMETER NAME ADDRESS –––– ––––––– VALUE ––––– 1’st pass S1/15 0 FORCES –––––– SRC C0.
Appendix E Application Example Programs File 2, Rung 2 Calculates and stores the number of counts that have occurred since the last time that it was executed as true in N7:1 (last time=last rate measurement timer (T4:0) expiration). The LES instruction allows for 10 counts of backlash to occur (you can adjust as needed). The add instruction is configured for a 1000 count encoder using N7:2. (Change this register to match the number of counts generated each Z reset.
Appendix E Application Example Programs FUN CODE –––– 106 GRAPHIC SYMBOL ––––––– MNEMONIC –––––––– MOV PARAMETER NAME ADDRESS –––– ––––––– VALUE ––––– FORCES –––––– Frequency calculation register SRC N3 0000H Frequency in Hertz DEST N4 0000H 85 CLR Frequency calculation register DEST N3 0000H 7 RES Frequency determination counter C1 82 MUL Frequency in Hertz SRCA N4 0000H SRCB 60 Temporary reg.
Appendix E Application Example Programs On/Off Circuit Application Example The following application example illustrates how to use an input to toggle an output either on or off. For a detailed explanation of: • LD, LDI, OUT, SET, RST, and OSR instructions, see chapter 8. • JMP and LBL instructions, see chapter 12. If the output is off when the input is energized, the output is turned on. If the output is on when the input is energized, the output is turned off.
Appendix E Application Example Programs On/Off Circuit Instruction List Program File 2, Rung 0 Does a one-shot from the input push button to an internal bit – the internal bit is true for only one scan. This prevent toggling of the physical output in case the push button is held ”ON” for more than one scan (always the case).
Appendix E Application Example Programs File 2, Rung 3 Contains the label corresponding to the jump instruction in rung 1. remainder of your actual program is placed below this rung.
Appendix E Application Example Programs Spray Booth Operation Overview An overhead conveyor with part carriers (hooks) carries parts from a previous operation to the spray booth. Before the part enters the spray booth, two items are checked on the conveyor. The first check is for part presence and the second check is for the needed color. This information is stored and accessed later when the part carrier is in the paint spraying area.
Appendix E Application Example Programs Spray Booth Ladder Program Rung 2:0 These three rungs read the color information coming from the barcode decoder outputs and load this into integer N7:4. This color is loaded into the FIFO when the part carrier actuates the SHIFT LIMIT SWITCH.
Appendix E Application Example Programs Rung 2:4 If there is a part on the part carrier now entering the spraying area, energize the paint sprayer. If there is not a part on the part carrier, do not energize the sprayer. | BSL Spray | | position 4 Enable | | | | B3 O:0 | |–––[ ]–––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––––| | 3 3 | Rung 2:5 Decodes color select word. If N7:0=1, then energize the blue paint gun.
Appendix E Application Example Programs Spray Booth Instruction List Program File 2, Rung 0 These three rungs read the color information coming from the barcode decoder outputs and load this into integer N7:4. This color is loaded into the FIFO when the part carrier actuates the SHIFT LIMIT SWITCH.
Appendix E Application Example Programs FUN CODE –––– 150 GRAPHIC SYMBOL ––––––– MNEMONIC –––––––– BSL PARAMETER NAME ADDRESS VALUE –––– ––––––– ––––– Load the presence of the new part FILE #B0 CTRL R1 BIT I/1 LEN File 2, FORCES –––––– 4 Rung 4 If there is a part on the part carrier now entering the spraying area, energize the paint sprayer. If there is not a part on the part carrier, do not energize the sprayer.
Appendix E Application Example Programs Adjustable Timer Application Example The following application example illustrates the use of timers to adjust the drill dwell time at the end of the machines downstroke. For a detailed explanation of: • LD, TON, and OSR instructions, see chapter 8. • LES and GRT instructions, see chapter 9. • ADD and SUB instructions, see chapter 10. Valid dwell times are 5.0 seconds to 120.0 seconds. Adjustments are made in 2.5 second intervals.
Appendix E Application Example Programs Adjustable Timer Instruction List Program File 2, Rung 0 Adds 2.5 to Timer delay each time the increment push button is depressed. Do not exceed 120.0 seconds delay. Note that N7:0=250. FUN CODE –––– 20 GRAPHIC SYMBOL ––––––– |–] [– MNEMONIC –––––––– LD PARAMETER NAME ADDRESS VALUE –––– ––––––– ––––– Increment Timer preset I/8 57 –LES– AND–LES 29 –OSR– AND–OSR 80 File ADD 2, SRCA T0.PRE SRCB B/0 SRCA T0.PRE SRCB N0 DEST T0.
Appendix F Optional Analog Input Software Calibration This appendix helps you calibrate an analog input channel using software offsets to increase the expected accuracy of an analog input circuit. Examples of equations and a ladder diagram are provided for your reference. Software calibration reduces the error at a given temperature by scaling the values read at calibration time. Calibrating an Analog Input Channel The following procedure can be adapted to all analog inputs; current or voltage.
Appendix F Optional Analog Input Software Calibration Calculating the Software Calibration Use the following equation to perform the software calibration: Scaled Value = (input value x slope) + offset Slope = (scaled max. – scaled min.) / (input max. – input min.) Offset = Scaled min. – (input min. x slope) Calibration Procedure 1. Heat up / cool down your MicroLogix 1000 system to the temperature in which it will normally be operating. 2.
Appendix F Optional Analog Input Software Calibration Once the calibration procedure is complete, set the CONVERSION ENABLE bit to 1. The calibration numbers are then used to scale the raw analog data. The corrected analog input data is placed in memory location ANALOG_SCALED. The following symbols are used in this example: CAL_LO_ENABLE = B3/500 CAL_HI_ENABLE = B3/501 CALIBRATE = B3/502 CONVERSION ENABLE = B3/503 ANALOG_IN = I:0.
Appendix F Optional Analog Input Software Calibration Rung 2:0 | CAL_LO_ENABLE | | B3/504 +MOV–––––––––––––––+ | |––––] [––––––[OSR]–––––––––––––––––––––––––––––––––––––––+MOVE +–| | |Source ANALOG_IN| | | | ?| | | |Dest LO_CAL_VALUE| | | | ?| | | +––––––––––––––––––+ | Rung 2:1 | CAL_HI_ENABLE | | B3/505 +MOV–––––––––––––––+ | |––––] [––––––[OSR]–––––––––––––––––––––––––––––––––––––––+MOVE +–| | |Source ANALOG_IN| | | | ?| | | |Dest HI_CAL_VALUE| | | | ?| | | +––––––––––––––––––+ | Rung 2:2 | CALIBRATE |
Appendix F Optional Analog Input Software Calibration | | +MUL––––––––––––––––––––+ | | | +–+MULTIPLY +–+ | | | |Source A LO_CAL_VALUE| | | | | | 0| | | | | |Source B SLOPE_X10K| | | | | | 0| | | | | |Dest N7:98| | | | | | 0| | | | | +–––––––––––––––––––––––+ | | | | +DDV–––––––––––––––+ | | | +–+DOUBLE DIVIDE +––––––+ | | | |Source 10000| | | | | | 10000| | | | | |Dest N7:99| | | | | | 0| | | | | +––––––––––––––––––+ | | | | +SUB–––––––––––––––+ | | | +–+SUBTRACT +––––––+ | | | |Source A SCALE_LOW| | | |
Glossary Glossary The following terms are used throughout this manual. Refer to the Allen–Bradley Industrial Automation Glossary, Publication Number AG–7.1, for a complete guide to Allen–Bradley technical terms. address: A character string that uniquely identifies a memory location. For example, I1/0 is the memory address for the data located in the Input file location word1, bit 0. application: 1) A machine or process monitored and controlled by a controller.
Glossary counter: 1) An electro–mechanical relay–type device that counts the occurrence of some event. May be pulses developed from operations such as switch closures, interruptions of light beams, or other discrete events. 2) In controllers a software counter eliminates the need for hardware counters. The software counter can be given a preset count value to count up or down whenever the counted event occurs.
Glossary inrush current: The temporary surge current produced when a device or circuit is initially energized. instruction: A mnemonic and data address defining an operation to be performed by the controller. A rung in a program consists of a set of input and output instructions. The input instructions are evaluated by the controller as being true or false. In turn, the controller sets the output instructions to true or false. Instruction List program: A program written in a list format using mnemonics.
Glossary negative logic: The use of binary logic in such a way that “0” represents the voltage level normally associated with logic 1 (for example, 0 = +5V, 1 = 0V). Positive is more conventional (for example, 1 = +5V, 0 = 0V). network: A series of stations (nodes) connected by some type of communication medium. A network may be made up of a single link or multiple links. nominal input current: The current at nominal input voltage.
Glossary protocol: The packaging of information that is transmitted across a network. read: To acquire data from a storage place. For example, the controller READs information from the input data file to solve the program. relay: An electrically operated device that mechanically switches electrical circuits. relay logic: A representation of the program or other logic in a form normally used for relays. restore: To download (transfer) a program from a personal computer to a controller.
Glossary terminal: A point on an I/O module that external I/O devices, such as a push button or pilot light, are wired to. throughput: The time between when an input turns on and the corresponding output turns on. true: The status of an instruction that provides a continuous logical path on a ladder rung. upload: Data is transferred to a programming or storage device from another device.
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual Numbers 1761-HHP-B30, features, 4–2 1761-L10BWA features, 1–2 grounding, 2–1 input voltage range, 2–8 mounting, 1–12 output voltage range, 2–8 preventing excessive heat, 1–12 spacing, 1–12 troubleshooting, 20–1 type, 1–2 wiring, 2–3 wiring diagram, 2–8 1761-L10BWB features, 1–2 grounding, 2–1 input voltage range, 2–11 mounting, 1–12 output voltage range, 2–11 preventing excessive heat, 1–12 spacing, 1–12 troubleshooting, 20–1 type, 1–2 wirin
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual spacing, 1–12 troubleshooting, 20–1 type, 1–2 wiring, 2–3 wiring diagram, 2–19 1761-L32AAA features, 1–2 grounding, 2–1 input voltage range, 2–14 mounting, 1–12 output voltage range, 2–14 preventing excessive heat, 1–12 spacing, 1–12 troubleshooting, 20–1 type, 1–2 wiring, 2–3 wiring diagram, 2–14 1761-L32AWA features, 1–2 grounding, 2–1 input voltage range, 2–7 mounting, 1–12 output voltage range, 2–7 preventing excessive heat, 1–12 spacing
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual AIC+ applying power to, 3–11 attaching to the network, 3–12 connecting, 3–6 modem, 3–7 network, 3–7 point-to-point, 3–7 installing, 3–12 recommended user supplied components, 3–10 selecting cable, 3–8 And Inverted (ANI), 8–4 entering the instruction, 8–5 execution times, 8–4 instruction parameters, C–3 ladder representation, 8–4 using, 8–5 valid addressing modes, C–3 valid file types, C–3 Allen-Bradley, contacting for assistance, P–6, 20–1
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual using the MSG instruction, 15–12 application specific instructions about, 13–1 bit shift instructions, overview, 13–2 Bit Shift Left (BSL), 13–3 Bit Shift Right (BSR), 13–4 in the paper drilling machine application example, 13–20 Selectable Timed Interrupt (STI) function, overview, 13–15 sequencer instructions, overview, 13–6 applying logic to your schematics, 6–11 B basic instructions about, 8–2 bit instructions, overview, 8–3 branch instr
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual changing editing modes, 17–3 radix, 18–30 remote controller modes, 18–21, 18–23 the baud rate, 19–6, 19–7 the HHP’s defaults, 4–17 the language, 4–17 the LCD display contrast, 4–18 the program defaults, 18–1 controller version, 18–18 extended I/O configuration bit, 18–8 fault override bit, 18–7 input filters, 18–12, 18–14, 18–15, 18–16 lock program function, 18–17 program name, 18–2 run always bit, 18–5 start-up protection bit, 18–6 STI enab
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual mounting template, A–7 operating cycle, 6–2 spacing, 1–12 specifications, A–1 status file, B–1 troubleshooting, 20–1 types, 1–2, A–1 16 I/O, 1–2 20 discrete I/O and 5 analog I/O, 1–2 32 I/O, 1–2 wiring for high-speed counter applications, 2–23 recommendations, 2–3 wire type, 2–3 controller faults, 20–1 controller modes changing remote modes, 18–23 modes of operation, 18–22 tasks you can perform, 18–24 types of modes, 18–22 remote program mod
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual data handling instructions about, 11–2 Convert from BCD (FRD), 11–3 Convert to BCD (TOD), 11–2 Copy File (COP), 11–10 Decode 4 to 1 of 16 (DCD), 11–7 Encode 1 of 16 to 4 (ENC), 11–8 FIFO and LIFO instructions, overview, 11–23 Fill File (FLL), 11–10 in the paper drilling machine application example, 11–31 move and logical instructions, overview, 11–13 data monitor description, 4–13 entering, 18–26 how to complete tasks, 4–14 screen definition
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual valid addressing modes, C–4 valid file types, C–4 E editing accepting edits, 18–21 modes, 17–3 append, 17–3 overwrite, 17–4 searching for specific addresses, 17–8 your program, 17–1 editing considerations, 17–3 Electronics Industries Association (EIA), D–1 EMC Directive, 1–1 emergency-stop switches, 1–4 ENC, Encode 1 of 16 to 4, 11–8 Encode 1 of 16 to 4 (ENC), 11–8 entering parameters, 11–8 entering the instruction, 11–9 execution times, 11
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual worksheet, B–21 extended I/O configuration bit, setting, 18–8 F fault messages, 20–13 fault override bit, setting, 18–7 fault recovery procedure, 20–11, 20–12 fault routine, 20–12 FFL, FIFO Load, 11–25 FFU, FIFO Unload, 11–25 FIFO and LIFO instructions FIFO Load (FFL), 11–25 FIFO Unload (FFU), 11–25 LIFO Load (LFL), 11–28 LIFO Unload (LFU), 11–28 overview, 11–23 effects on index register S24, 11–24 entering parameters, 11–23 entering the in
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual valid file types, C–5 OR GRT entering the instruction, 9–7 execution times, 9–7 function code, 9–7 instruction parameters, C–5 ladder representation, 9–7 valid addressing modes, C–5 valid file types, C–5 Greater Than or Equal (GEQ), 9–8 AND GEQ entering the instruction, 9–8 execution times, 9–8 function code, 9–8 instruction parameters, C–5 ladder representation, 9–8 valid addressing modes, C–5 valid file types, C–5 LD GEQ entering the instr
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual using HSD, 14–22 entering the instruction, 14–22 operation, 14–22 valid addressing modes, C–5 valid file types, C–5 High-Speed Counter Interrupt Enable (HSE), 14–21 execution times, 14–21 function code, 14–21 instruction parameters, C–5 ladder representation, 14–21 using HSE, 14–21 entering the instruction, 14–21 operation, 14–22 valid addressing modes, C–5 valid file types, C–5 High-Speed Counter Load (HSL), 14–15 entering parameters, 14–15
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual 1761-L20BWA-5A, 2–18 1761-L20BWB-5A, 2–19 1761-L32AAA, 2–14 1761-L32AWA, 2–7 1761-L32BBB, 2–16 1761-L32BWA, 2–10 1761-L32BWB, 2–13 analog controllers, 2–22 entering the instruction, 12–2 execution times, 12–2 function code, 12–2 instruction parameters, C–6 ladder representation, 12–2 using, 12–2 valid addressing modes, C–6 valid file types, C–6 installing the memory module, 4–3 the micro controller, 1–1 Jump to Subroutine (JSR), 12–3 ente
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual LEDs, 20–1 error with controller, 20–2 normal controller operation, 20–1 LFL, LIFO Load, 11–28 LEQ, Less Than or Equal, 9–6 LFU, LIFO Unload, 11–28 LES, Less Than, 9–5 LIFO Load (LFL), 11–28 entering the instruction, 11–28 execution times, 11–28 function code, 11–28 instruction parameters, C–6 ladder representation, 11–29 operation, 11–29 valid addressing modes, C–6 valid file types, C–6 Less Than (LES), 9–5 AND LES entering the instru
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual Load (LD), 8–3 entering the instruction, 8–3 execution times, 8–3 instruction parameters, C–6 ladder representation, 8–3 using, 8–3 valid addressing modes, C–6 valid file types, C–6 Load Inverted (LDI), 8–4 entering the instruction, 8–5 execution times, 8–4 instruction parameters, C–6 ladder representation, 8–4 using, 8–5 valid addressing modes, C–6 valid file types, C–6 Load True (LDT), 8–6 entering the instruction, 8–6 execution times, 8–6
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual MCR, Master Control Reset, 12–6 memory module clearing programs, 19–5 installation, 4–3 loading programs, 19–2 storing programs, 19–3 using, 19–1 Memory Pop (MPP), 8–10 entering the instruction, 8–12 execution times, 8–10 function code, 8–12 ladder representation, 8–10 using, 8–11 Memory Push (MPS), 8–10 entering the instruction, 8–10 execution times, 8–10 function code, 8–10 ladder representation, 8–10 using, 8–10 Memory Read (MRD), 8–10 en
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual entering parameters, 11–13 entering the instructions, 11–13 overflow trap bit, S5/0, 11–14 updates to arithmetic status bits, 11–14 using indexed word addresses, 11–14 MPP, Memory Pop, 8–10 MPS, Memory Push, 8–10 MRD, Memory Read, 8–10 MSG, Message, 15–1 MUL, Multiply, 10–8 multi-point function description, 4–15 how to complete tasks, 4–16 screen definition, 4–15 using, 18–31 automatically entering addresses, 18–32 changing multi-point addre
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual execution times, 8–7 function code, 8–7 instruction parameters, C–8 ladder representation, 8–7 valid addressing modes, C–8 valid file types, C–8 operating cycle, controller’s, 6–2 Or (OR) bit input instruction, 8–3 entering the instruction, 8–4 execution times, 8–3 instruction parameters, C–8 ladder representation, 8–3 using, 8–4 valid addressing modes, C–8 valid file types, C–8 word output instruction, 11–19 entering the instruction, 11–19
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual overwriting an instruction’s parameters, 17–4 ownership timeout, D–6 P parallel logic (OR), 6–12 parts, replacement, A–11 password master password, 18–2 password override, 18–3 user password, 18–2 placing the controller in program mode, 5–2 planning considerations for a network, D–12 Power Considerations Input States on Power Down, 1–11 Isolation Transformers, 1–10 Loss of Power Source, 1–11 other line conditions, 1–11 overview, 1–10 Power
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual R RAC, High-Speed Counter Reset Accumulator, 14–20 radix, changing, 18–30 RC network, example, 1–8 recovering your work, 20–16 related publications, P–5 relay contact rating table, A–4 relays, surge suppressors for, 1–9 Retentive Timer (RTO), 8–20 entering the instruction, 8–20 execution times, 8–20 function code, 8–20 instruction parameters, C–8 ladder representation, 8–20 using status bits, 8–20 valid addressing modes, C–8 valid file type
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual First Instruction on Rung, 17–2 home, 4–7 menu, 4–9 mode, 4–10 multi-point function, 4–15 program monitor, 4–11 Start of File, 17–1 Start of Rung, 17–2 searching for specific addresses, 17–8 addresses that are displayed, 17–8 addresses you enter, 17–8 bit versus word addresses, 17–9 Selectable Timed Disable (STD), 13–17 entering the instruction, 13–17 example, 13–17 execution times, 13–17 function code, 13–17 instruction parameters, C–9 ladd
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual valid file types, C–9 to a memory module, 19–3 SET, Set, 8–8 STS, Selectable Timed Start, 13–18 short-cut keys for monitoring data table files, 18–27 for monitoring program files, 18–26 for selecting the language, 4–18 SUB, Subtract, 10–5 single scan (SSN) mode, 18–22 sinking and sourcing circuits, overview, 2–2 slave/receiver communication, 15–2 spacing the controller, 1–12 specifications general, A–2 controller, A–2 HHP, A–9 input co
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual valid addressing modes, C–10 valid file types, C–10 test modes, 18–22 continuous scan (CSN), 18–22 single scan (SSN), 18–22 power failure, 20–16 recovering your work, 20–16 understanding the controller LED status, 20–1 using the fault routine, 20–12 timer file (T), 6–4 timer instructions overview addressing structure, 8–15 entering parameters, 8–14 entering the instructions, 8–15 Retentive Timer (RTO), 8–20 Timer Off-Delay (TOF), 8–18 Time
Index MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual wiring analog channels, 2–21 wiring diagrams 1761-L10BWA, 2–8 1761-L10BWB, 2–11 1761-L16AWA, 2–6 1761-L16BBB, 2–15 1761-L16BWA, 2–9 1761-L16BWB, 2–12 1761-L20AWA-5A, 2–17 1761-L20BWA-5A, 2–18 1761-L20BWB-5A, 2–19 1761-L32AAA, 2–14 1761-L32AWA, 2–7 1761-L32BBB, 2–16 1761-L32BWA, 2–10 1761-L32BWB, 2–13 wiring recommendations, 2–3 X XOR, Exclusive Or, 11–20 I–29
Publication 1761-6.2 - May 1998 Supersedes Publication 1761-6.2 - October 1997 PN40072-003-01(E) Copyright 2007 Rockwell Automation, Inc. All rights reserved. Printed in Singapore.