Allen-Bradley MicroLogix 1000 Programmable Controllers (Bulletin 1761 Controllers) User Manual
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.
Table of Contents Table of Contents Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P–1 Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P–2 Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P–2 Common Techniques Used in this Manual . . . . . . . . . . . . .
MicroLogix Preface1000 Programmable Controllers User Manual Establishing Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–17 DeviceNet Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–18 Programming 4 Programming Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–1 Principles of Machine Control . . . . . . . . . . . . . . . . .
Table of Contents Equal (EQU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Not Equal (NEQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Less Than (LES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Less Than or Equal (LEQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MicroLogix Preface1000 Programmable Controllers User Manual Data Handling Instructions in the Paper Drilling Machine Application Example . . . . . . 9–28 10 Using Program Flow Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10–1 About the Program Flow Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10–2 Jump (JMP) and Label (LBL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents 13 Using the Message Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13–1 Types of Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13–2 Message Instruction (MSG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13–3 Timing Diagram for a Successful MSG Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MicroLogix Preface1000 Programmable Controllers User Manual E Application Example Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E–1 Paper Drilling Machine Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E–2 Time Driven Sequencer Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E–17 Event Driven Sequencer Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Summary of Changes Summary of Changes The information below summarizes the changes to this manual since the last printing as Publication 1761-6.3 — December 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. New Information The table below lists sections that document new features and additional information about existing features, and shows where to find this new information.
MicroLogix Preface1000 Programmable Controllers User Manual Notes: soc–ii
Preface Preface Read this preface to familiarize yourself with the rest of the manual.
MicroLogix Preface1000 Programmable Controllers User Manual Who Should Use this Manual Use this manual if you are responsible for designing, installing, programming, or troubleshooting control systems that use MicroLogix 1000 controllers. You should have a basic understanding of electrical circuitry and familiarity with relay logic. If you do not, obtain the proper training before using this product. Purpose of this Manual This manual is a reference guide for MicroLogix 1000 controllers.
Preface Contents of this Manual Tab Hardware Programming Troubleshooting Chapter Title 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.
MicroLogix Preface1000 Programmable Controllers User Manual Tab Chapter Contents Appendix A Hardware Reference Provides physical, electrical, environmental, and functional specifications. Appendix B Programming Reference Explains the system status file and provides instruction execution times. Appendix C Valid Addressing Modes and File Types for Instruction Parameters Provides a listing of the instructions along with their parameters and valid file types.
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 A procedural manual for technical personnel who use the Allen-Bradley Hand-Held Programmer (HHP) to monitor and develop control logic programs for the MicroLogix 1000 controller. Read this Document Document Number MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual 1761-6.
MicroLogix Preface1000 Programmable Controllers User Manual Common Techniques Used in this Manual The following conventions are used throughout this manual: Bulleted lists such as this one provide information, not procedural steps. • • • Numbered lists provide sequential steps or hierarchical information. Italic type is used for emphasis.
Installing Your Controller This chapter shows you how to install your controller system. The only tools you require are a Flat head or Phillips head screwdriver and drill.
MicroLogix Preface1000 Programmable Controllers User Manual Compliance to European Union Directives If this product has the CE mark it is approved for installation within the European Union and EEA regions. It has been designed and tested to meet the following directives.
Installing Your Controller 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
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. Hardware • 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.
MicroLogix Preface1000 Programmable Controllers User Manual The following illustrations show the Master Control Relay wired in a grounded system. Note The illustrations only show output circuits with MCR protection. In most applications input circuits do not require MCR protection; however, if you need to remove power from all field devices, you must include MCR contacts in series with input power wiring.
Installing Your Controller Schematic (Using ANSI/CSA Symbols) L1 L2 230V ac 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Installing Your Controller Hardware 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–10 for recommended suppressors.
MicroLogix Preface1000 Programmable Controllers User Manual Recommended Surge Suppressors We recommend the Allen-Bradley surge suppressors shown in the following table for use with Allen-Bradley relays, contactors, and starters.
Installing Your Controller Safety considerations are an important element of proper system installation. Actively thinking about the safety of yourself and others, as well as the condition of your equipment, is of primary importance. We recommend reviewing the following safety considerations. Disconnecting Main Power Explosion Hazard — Do not replace components or disconnect equipment unless power has been switched off and the area is known to be non-hazardous.
MicroLogix Preface1000 Programmable Controllers User Manual Power Distribution There are some points about power distribution that you should know: • • The master control relay must be able to inhibit all machine motion by removing power to the machine I/O devices when the relay is de-energized. If you are using a dc power supply, interrupt the load side rather than the ac line power. This avoids the additional delay of power supply turn-off.
Installing Your Controller Power Considerations The following explains power considerations for the micro controllers. Isolation Transformers You may want to use an isolation transformer in the ac line to the controller. This type of transformer provides isolation from your power distribution system and is often used as a step down transformer to reduce line voltage. Any transformer used with the controller must have a sufficient power rating for its load.
MicroLogix Preface1000 Programmable Controllers User Manual The power supply is designed to withstand brief power losses without affecting the operation of the system. The time the system is operational during power loss is called “program scan hold-up time after loss of power.” The duration of the power supply hold-up time depends on the type and state of the I/O, but is typically between 20 milliseconds and 3 seconds.
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.
MicroLogix Preface1000 Programmable Controllers User Manual Controller Spacing The following figure shows the recommended minimum spacing for the controller. (Refer to appendix A for controller dimensions.) Explosion Hazard — For Class I, Division 2 applications, this product must be installed in an enclosure. All cables connected to the product must remain in the enclosure or be protected by conduit or other means. Top B A. Greater than or equal to 50.8 mm (2 in.). Side Side A A Bottom B.
Installing Your Controller Using a DIN Rail Use 35 mm (1.38 in.) DIN rails, such as item number 199-DR1 or 1492-DR5 from Bulletin 1492. 1. Mount your DIN rail. (Make sure that the placement of the controller on the DIN rail meets the recommended spacing requirements. Refer to controller dimensions in appendix A.) 2. Hook the top slot over the DIN rail. 3. While pressing the controller against the rail, snap the controller into position. 4.
MicroLogix Preface1000 Programmable Controllers User Manual Using Mounting Screws To install your controller using mounting screws: Note Leave the protective wrap attached until you are finished wiring the controller. Mounting Template 1. Use the mounting template from the MicroLogix 1000 Programmable Controllers Installation Instructions, publication 1761-5.1.2 or MicroLogix 1000 (Analog) Programmable Controllers Installation Instructions, publication 1761-5.1.3, that was shipped with your controller. 2.
Wiring Your Controller Hardware 2 Wiring Your Controller This chapter describes how to wire your controller.
MicroLogix Preface1000 Programmable Controllers User Manual 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.4 mm (6 in.). Run the ground connection from the ground screw of the controller (third screw from left on output terminal rung) to the ground bus.
Wiring Your Controller Sinking and Sourcing Circuits Any of the MicroLogix 1000 DC inputs can be configured as sinking or sourcing depending on how the DC COM is wired on the MicroLogix. Type Definition Sinking Input The input energizes when high-level voltage is applied to the input terminal (active high). Connect the power supply VDC (–) to the MicroLogix DC COM terminal. Sourcing Input The input energizes when low-level voltage is applied to the input terminal (active low).
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L32BWB, -L32BBB (Wiring Diagrams also apply to 1761-L20BWB-5A, -L16BWB, -L10BWB, -L16BBB.
Wiring Your Controller The diameter of the terminal screw heads is 5.5 mm (0.220 in.). The input and output terminals of the micro controller are designed for the following spade lugs: 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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. 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).
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.
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L32AWA 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 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 V
Wiring Your Controller 1761-L10BWA Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–3 for additional configuration options.
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L16BWA Wiring Diagrams (Sinking Input Configuration) Note: Refer to page 2–3 for additional configuration options.
Wiring Your Controller 1761-L32BWA Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–3 for additional configuration options.
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L10BWB Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–4 for additional configuration options.
Wiring Your Controller 1761-L16BWB Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–4 for additional configuration options.
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L32BWB Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–4 for additional configuration options.
Wiring Your Controller 1761-L32AAA 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 O/2 O/3 VAC I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 O/4 O/5 O/6 O/7 VAC O/8 O/9 O/10 O/11 CR CR CR CR CR CR I/15 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 Voltage Range 0V
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L16BBB Wiring Diagrams (Sinking Input Configuration) Note: Refer to page 2–4 for additional configuration options.
Wiring Your Controller 1761-L32BBB Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–4 for additional configuration options.
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L20AWA-5A Wiring Diagram Note: Refer to pages 2–21 through 2–23 for additional information on analog wiring.
Wiring Your Controller 1761-L20BWA-5A Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–3 for additional discrete configuration options. Refer to pages 2–21 through 2–23 for additional information on analog wiring.
MicroLogix Preface1000 Programmable Controllers User Manual 1761-L20BWB-5A Wiring Diagram (Sinking Input Configuration) Note: Refer to page 2–4 for additional discrete configuration options. Refer to pages 2–21 through 2–23 for additional information on analog wiring.
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 operating, it is impossible to ensure that all environmental noise will be removed by the input filters.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Wiring Your Controller Analog Voltage and Current Input and Output Ranges Analog Voltage Input Range –10.5V dc ÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉ –24V dc Underrange ÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉ 10.5V dc Operating Range 24V dc Overrange Analog Current Input Range ÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉ –21 mA –50 mA Underrange ÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉ 21 mA 50 mA Overrange Operating Range The analog voltage inputs are protected to withstand the application of 24V dc without damage to the controller.
MicroLogix Preface1000 Programmable Controllers User Manual To wire the controller for high-speed counter applications use input terminals I/0, I/1, I/2, and I/3. Refer to chapter 12 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 or equivalent for lengths up to 305 m (1000 ft). Shields should be grounded only at the signal source end of the cable.
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. This chapter also describes how the controller establishes communication with the appropriate network.
MicroLogix Preface1000 Programmable Controllers User Manual Connecting the DF1 Protocol There are two ways to connect the MicroLogix 1000 programmable controller to your personal computer using the DF1 protocol: using an isolated point-to-point connection, or using a modem. Descriptions of these methods follow. Chassis ground, user 24V ground, and RS-232 ground are internally connected. You must connect the chassis ground terminal screw to chassis ground prior to connecting any devices.
Connecting the System 1761-CBL-PM02 Series B Cable Hardware 5 4 3 2 1 9 8 7 6 8-pin Mini Din 9-pin D-shell 6 78 3 4 5 12 Programming Device 9-Pin RI 9 Controller 8-Pin 24V 1 8 CTS GND 2 7 RTS RTS 3 6 DSR RXD 4 5 GND DCD 5 4 DTR CTS 6 TXD TXD 7 2 RXD GND 8 1 DCD 3 20187 Using a Modem You can also use modems to connect a personal computer to one MicroLogix 1000 controller (using DF1 full-duplex protocol) or to multiple controllers (using DF1 half-duplex protocol), as
MicroLogix Preface1000 Programmable Controllers User Manual Modem Cable Personal Computer Modem DF1 full-duplex protocol (to 1 controller) DF1 half-duplex master protocol (to multiple controllers) Optical Isolator➀ (recommended) Micro Controller 1761-CBL-PM02 Modem DF1 full-duplex protocol or DF1 half-duplex slave protocol Programming Device Modem Cable Modem 1761-CBL-PM02 Cable Modem Null Modem Optical Isolator➀ 9-pin 8-pin Mini Din Controller ➀ We recommend using an AIC+, catalog number 17
Connecting the System Connecting to a DH-485 Network Note Only Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers support DH-485 network connections.
MicroLogix Preface1000 Programmable Controllers User Manual DH-485 Communication Cable The suggested DH-485 communication cable is either Belden #3106A or #9842. The cable is jacketed and shielded with one or two twisted wire pairs and a drain wire. One pair provides a balanced signal line, and one additional wire is used for a common reference line between all nodes on the network. The shield reduces the effect of electrostatic noise from the industrial environment on network communication.
Connecting the System Connecting the Communication Cable to the DH-485 Connector A daisy-chained network is recommended.
MicroLogix Preface1000 Programmable Controllers User Manual 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 The table below shows connections for Belden #9842.
Connecting the System Connecting the AIC+ Only Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers support DH-485 connections with the AIC+. You can connect an unpowered AIC+, catalog number 1761-NET-AIC, to the network without disrupting network activity. In addition, if a MicroLogix 1000 controller powers an AIC+ that is connected to the network, network activity will not be disrupted should the MicroLogix 1000 controller be removed from the AIC+.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Connecting the System DF1 Isolated Modem Connection 1761-CBL-AM00 or 1761-CBL-HM02 MicroLogix 1000 Modem 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.) User supplied modem cable For additional information on connections using the AIC+, see the Advanced Interface Converter (AIC+) and DeviceNet Interface (DNI) Installation Instructions, Publication 1761-5.11.
MicroLogix Preface1000 Programmable Controllers User Manual Cable Selection Guide 1747-CP3 Cable to AIC+ External Power Supply Required➁ 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 DTAM Plus / DTAM Micro port 1 yes external Port 1 on another AIC+ port 1 yes external to AIC+ External Power Supply Required➀ SLC 500 Fixed, SLC 5/01, SLC 5/02, and SLC 5/03 processors port 3
Connecting the System ➁ 1761-CBL-AP00 Cable 1761-CBL-AP00 76 C 00 1761-CBL-PM02➁ 1761-CBL-PM02 Length Connections from 45 cm c (17.7 7 7 in) 2 (6.
MicroLogix Preface1000 Programmable Controllers User Manual Recommended User-Supplied Components These components can be purchased from your local electronics supplier. Recommended Model power supply rated for 20.4–28.
Connecting the System Powering the AIC+ 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 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.
MicroLogix Preface1000 Programmable Controllers User Manual Power Options • • Use the 24V dc user power supply (200 mA maximum) built into the MicroLogix controller. The AIC+ is powered through a hard-wired connection using a communication cable (1761-CBL-HM02, or equivalent) connected to port 2.
Connecting the System Establishing Communication When you connect a MicroLogix 1000 controller to a network, it automatically finds which protocol is active (DF1 or DH-485), and establishes communication accordingly. Therefore, no special configuration is required to connect to either network. However, to shorten the connection time, you can specify which protocol the controller should attempt to establish communication with first. This is done using the Primary Protocol bit, S:0/10.
MicroLogix Preface1000 Programmable Controllers User Manual You can also connect a MicroLogix to a DeviceNet network using the DeviceNet Interface (DNI), catalog number 1761-NET-DNI. For additional information on connecting the DNI, see the Advanced Interface Converter (AIC+) and DeviceNet Interface (DNI) Installation Instructions, Publication 1761-5.11. For information on how to configure and commission a DNI, see the DeviceNet Interface User Manual, Publication 1761-6.5.
Programming Overview 4 Programming Overview This chapter explains how to program the MicroLogix 1000 programmable controller.
MicroLogix Preface1000 Programmable Controllers User Manual Principles of Machine Control The controller consists of a built-in power supply, central processing unit (CPU), inputs, which you wire to input devices (such as pushbuttons, proximity sensors, limit switches), and outputs, which you wire to output devices (such as motor starters, solid-state relays, and indicator lights).
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.
MicroLogix Preface1000 Programmable Controllers User Manual Understanding File Organization The processor provides control through the use of a program you create, called a processor file. This file contains other files that break your program down into more manageable parts. Processor File Overview Most of the operations you perform with the programming device involve the processor file and the two components created with it: program files and data files.
Programming Overview Program Files Program files contain controller information, the main ladder 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 processor type, I/O configuration, processor file name, and password. Reserved (file 1) – This file is reserved.
MicroLogix Preface1000 Programmable Controllers User Manual • • • Counter (file 5) – This file stores the counter accumulator and preset values and the status bits. Control (file 6) – This file stores the length, pointer position, and status bits for specific instructions such as shift registers and sequencers. Integer (file 7) – This file is used to store numeric values or bit information.
Programming Overview Download When the processor file is downloaded to the micro controller, it is first stored in the volatile RAM. It is then transferred to the non-volatile EEPROM, where it is stored as both backup data and retentive data. RAM EEPROM CPU Note Programming Device If you want to ensure that the backup data is the same for every micro controller you are using, save the program to disk before downloading it to a micro controller.
MicroLogix Preface1000 Programmable Controllers User Manual Power Down When a power down occurs, only the retentive data is transferred from the RAM to the EEPROM. (The program files do not need to be saved to the EEPROM since they cannot be modified during normal operation.) If for some reason power is lost before all of the retentive data is saved to the EEPROM, the retentive data is lost. This may occur due to an unexpected reset or a hardware problem.
Programming Overview 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. In addition, status file bit S2:5/8 (retentive data lost) is set and a recoverable major error occurs when going to run.
MicroLogix Preface1000 Programmable Controllers User Manual Addressing Data Files For the purposes of addressing, each data file type is identified by a letter (identifier) and a file number. File Type Identifier File Number Output Input Status Bit Timer Counter Control Integer O I S B T C R N 0 1 2 3 4 5 6 7 The addresses are made up of alphanumeric characters separated by delimiters. Delimiters include the colon, slash, and period.
Programming Overview 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 7 : 2 File Type File Number File Delimiter Word Number T 4 : 7 .
MicroLogix Preface1000 Programmable Controllers User Manual You can also address at the bit level using mnemonics for timer, counter, or control data types. The available mnemonics depend on the type of data. See chapters 6 through 13 for more information. Specifying Indexed Addresses The indexed address symbol is the # character. Place the # character immediately before the file-type identifier in a logical address. You can use more than one indexed address in your ladder program.
Programming Overview In this example, the processor uses the following addresses: Value: Base Address: Offset Value in S:24 Offset Address: Source N7:10 10 N7:20 Destination N7:50 10 N7:60 Addressing File Instructions – Using the File Indicator (#) COP FLL BSL BSR FFL FFU Copy File Fill File Bit Shift Left Bit Shift Right (FIFO Load) (FIFO Unload) LFL LFU SQO SQC SQL Programming The file instructions below manipulate data table files. These files are addressed with the # sign.
MicroLogix Preface1000 Programmable Controllers User Manual When entering values into an instruction or data table element, you can specify the radix of your entry using the “&” special operator. The radixes that can be used to enter data into an instruction or data table element are: • • • • • • Integer (&N) Binary (&B) ASCII (&A) Hexadecimal (&H) BCD (&D) Octal (&O) Numeric constants are used in place of data file elements. They cannot be manipulated by the user program.
Programming Overview The programming device allows you to enter a ladder logic program into the micro controller. In the following illustration, the electromechanical circuit shows PB1 and PB2, two pushbuttons, wired in series with an alarm horn. PB1 is a normally open pushbutton, 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.
MicroLogix Preface1000 Programmable Controllers User Manual Program Development Process Design Functional Specification Perform Detailed Analysis Determine if Special Programming Features are Needed Create Logic Program Confirm I/O Addresses Enter/Edit Program Check for Completeness Monitor/Troubleshoot Program Accept Program Run program. 4–16 Program Development Checklist ❏ Prepare a general description of how you want your automated process to operate. ❏ Identify the hardware requirements.
Using Analog 5 Using Analog This chapter describes the operation of the MicroLogix 1000 analog controllers.
MicroLogix Preface1000 Programmable Controllers User Manual I/O Image 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.2 I:0.3 Reserved Reserved O:0.3 I:0.4 Analog Input 0 (Voltage) Analog Output 0 (Voltage or Current) O:0.4 I:0.5 Analog Input 1 (Voltage) I:0.
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.
MicroLogix Preface1000 Programmable Controllers User Manual The total update time for each channel is a combination of the Update Time and the Settling Time. When more than one analog input channel is enabled, the maximum update for each channel is equal to one ladder scan time plus the channel’s Update Time plus Settling Time. When only one analog input channel is enabled, the maximum update for the channel is equal to the Update Time plus one ladder scan time.
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.
MicroLogix Preface1000 Programmable Controllers User Manual 10.5V 32,767 input value➀ = input voltage(V) ➀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 16,021 is in the input image, the calculated value is: 10.5V 32,767 16,201 = 5.1915(V) It should be noted that the actual value may vary within the accuracy limitations of the module.
Using Basic Instructions 6 Using Basic Instructions This chapter contains general information about the 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 Programming how to use the instruction In addition, the last section contains an application example for a paper drilling machine that shows the basic instructions in use.
MicroLogix Preface1000 Programmable Controllers User Manual Timer/Counter Instructions Instruction Mnemonic Purpose Name Page TON Timer On-Delay Counts timebase intervals when the instruction is true. 6–11 TOF Timer Off-Delay Counts timebase intervals when the instruction is false. 6–12 RTO Retentive Timer Counts timebase intervals when the instruction is true and retains the accumulated value when the instruction goes false or when power cycle occurs.
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 ladder rungs. You can address a bit as many times as your program requires. Using the same address with multiple output instructions is not recommended. Bit instructions are used with the following data files: • • • • • Output and input data files. These represent external outputs and inputs.
MicroLogix Preface1000 Programmable Controllers User Manual Examine if Closed (XIC) ] [ Execution Times (µsec) when: True Use the XIC instruction in your ladder program to determine if a bit is On. When the instruction is executed, if the bit addressed is on (1), then the instruction is evaluated as true. When the instruction is executed, if the bit addressed is off (0), then the instruction is evaluated as false. Bit Address State False 1.54 1.
Using Basic Instructions Output Energize (OTE) Use an OTE instruction in your ladder program to turn On a bit when rung conditions are evaluated as true. ( ) Execution Times (µsec) when: True False 4.43 OTE instructions are reset when: • • Note You enter or return to the REM Run or REM Test mode or power is restored. The OTE is programmed within an inactive or false Master Control Reset (MCR) zone.
MicroLogix Preface1000 Programmable Controllers User Manual Using OTL When you assign an address to the OTL 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 enabled). When rung conditions become false (after being true), the bit remains set and the corresponding output device remains energized. When enabled, the latch instruction tells the controller to turn on the addressed bit.
Using Basic Instructions One-Shot Rising (OSR) [OSR] Execution Times (µsec) when: True False 13.02 11.48 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. When the rung conditions preceding the OSR instruction go from false to true, the OSR instruction will be true for one scan.
MicroLogix Preface1000 Programmable Controllers User Manual 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 accumulated 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.
Using Basic Instructions Timer Accuracy Timer accuracy refers to the length of time between the moment a timer instruction is enabled and the moment the timed interval is complete. Note Timing could be inaccurate if Jump (JMP), Label (LBL), Jump to Subroutine (JSR), or Subroutine (SBR) instructions skip over the rung containing a timer instruction while the timer is timing. If the skip duration is within 2.5 seconds, no time will be lost; if the skip duration exceeds 2.
MicroLogix Preface1000 Programmable Controllers User Manual Addressing Examples • • • • • • • 6–10 T4:0/15 or T4:0/EN Enable bit T4:0/14 or T4:0/TT Timer timing bit T4:0/13 or T4:0/DN Done bit T4:0.1 or T4:0.PRE Preset value of the timer T4:0.2 or T4:0.ACC Accumulator value of the timer T4:0.1/0 or T4:0.PRE/0 Bit 0 of the preset value T4:0.2/0 or T4:0.
Using Basic Instructions Timer On-Delay (TON) TON TIMER ON DELAY Timer Time Base Preset Accum Execution Times (µsec) when: True False (DN) 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).
MicroLogix Preface1000 Programmable Controllers User Manual Timer Off-Delay (TOF) TOF TIMER OFF DELAY Timer Time Base Preset Accum Execution Times (µsec) when: True False 39.42 31.65 (EN) (DN) 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).
Using Basic Instructions On returning to the REM Run or REM Test mode, the following can happen: Result If the rung is true: TT bit is reset. DN bit remains set. EN bit is set. ACC value is reset. If the rung is false: TT bit is reset. DN bit is reset. EN bit is reset. ACC value is set equal to the preset value. The Reset (RES) instruction cannot be used with the TOF instruction because RES always clears the status bits as well as the accumulated value. (See page 6–20.
MicroLogix Preface1000 Programmable Controllers User Manual Retentive Timer (RTO) RTO RETENTIVE TIMER ON Timer Time Base Preset Accum Execution Times (µsec) when: True False 38.34 27.49 (EN) (DN) 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).
Using Basic Instructions On returning to the REM Run or REM Test mode or when power is restored, the following can happen: Result If the rung is true: TT bit remains set. EN bit remains set. ACC value remains the same and resumes incrementing. If the rung is false: TT bit is reset. DN bit remains in its last state. EN bit is reset. ACC value remains in its last state. Counter Instructions Overview Each Counter address is made of a 3-word data file element.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Using Basic Instructions Addressing Examples • • • • C5:0/15 or C5:0/CU Count up enable bit C5:0/14 or C5:0/CD Count down enable bit C5:0/13 or C5:0/DN Done bit C5:0/12 or C5:0/OV Overflow bit C5:0/11 or C5:0/UN Underflow bit C5:0/10 or C5:0/UA Update accumulator bit C5:0.1 or C5:0.PRE Preset value of the counter C5:0.2 or C5:0.ACC Accumulator value of the counter Programming • • • • • • C5:0.1/0 or C5:0.PRE/0 Bit 0 of the preset value C5:0.2/0 or C5:0.
MicroLogix Preface1000 Programmable Controllers User Manual Count Up (CTU) CTU COUNT UP Counter Preset Accum (CU) (DN) Execution Times (µsec) when: True False 29.84 Note 26.67 The CTU is an instruction that counts false-to-true rung transitions. Rung transitions can be caused by events occurring in the program (from internal logic or by external field devices) such as parts traveling past a detector or actuating a limit switch.
Using Basic Instructions Count Down (CTD) CTD COUNT DOWN Counter Preset Accum Execution Times (µsec) when: True False 32.19 (CD) (DN) The CTD is a retentive output instruction that counts false-to-true rung transitions. Rung transitions can be caused by events occurring in the program such as parts traveling past a detector or actuating a limit switch.
MicroLogix Preface1000 Programmable Controllers User Manual Reset (RES) (RES) Execution Times (µsec) when: True False 15.19 4.25 Note 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. Using a RES instruction for a: The controller resets the: Timer (Do not use a RES instruction with a TOF.
Using Basic Instructions Basic Instructions in the Paper Drilling Machine Application Example This section provides ladder rungs to demonstrate the use of basic instructions. The rungs are part of the paper drilling machine application example described in appendix E. You will be adding the main program in file 2 and adding a subroutine to file 6. The rungs shown on the following page are referred to as the program’s “start-up” logic.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Using Basic Instructions Adding File 6 This subroutine controls the up and down motion of the drill for the paper drilling machine. Drill Home I/5 Drill On/Off O/1 Drill Retract O/2 Drill Forward O/3 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.
MicroLogix Preface1000 Programmable Controllers User Manual Rung 6:2 When the drill is retracting (after drill actuates the DRILL HOME limit DRILL RETRACT signal is turned off, turned off to indicate the drilling conveyor is restarted. drilling a hole), the body of the switch.
Using Comparison Instructions 7 Using Comparison Instructions This chapter contains general information about comparison instructions and explains how they function in your application program.
MicroLogix Preface1000 Programmable Controllers User Manual About the Comparison Instructions Comparison instructions are used to test pairs of values to condition the logical continuity of a rung. As an example, suppose a LES instruction is presented with two values. If the first value is less than the second, then the comparison instruction is true. To learn more about the compare instructions, we suggest that you read the Compare Instructions Overview that follows.
Using Comparison Instructions Equal (EQU) EQU EQUAL Source A Use the EQU instruction to test whether two values are equal. If source A and source B are equal, the instruction is logically true. If these values are not equal, the instruction is logically false. Source B Execution Times (µsec) when: True False 6.60 Not Equal (NEQ) NEQ NOT EQUAL Source A 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.
MicroLogix Preface1000 Programmable Controllers User Manual Less Than or Equal (LEQ) LEQ LESS THAN OR EQUAL Source A Source B Execution Times (µsec) when: True False 23.60 6.60 Use the LEQ instruction to test whether one value (source A) is less than or equal to another (source B). If the value at source A is less than or equal to the value of source B, the instruction is logically true. If the value at source A is greater than the value of source B, the instruction is logically false.
Using Comparison Instructions Masked Comparison for Equal (MEQ) MEQ MASKED EQUAL Source Mask Compare 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. True False 28.39 7.69 Entering Parameters • • • Source is the address of the value you want to compare. Mask is the address of the mask through which the instruction moves data.
MicroLogix Preface1000 Programmable Controllers User Manual Limit Test (LIM) LIM LIMIT TEST Low Lim Use the LIM instruction to test for values within or outside a specified range, depending on how you set the limits. Test High Lim Execution Times (µsec) when: True False 36.93 7.
Using Comparison Instructions If the Low Limit has a value greater than the High Limit, the instruction is false when the Test value is between the limits. If the Test value is equal to either limit or outside the limits, the instruction is true, as shown below.
MicroLogix Preface1000 Programmable Controllers User Manual Comparison Instructions in the Paper Drilling Machine Application Example This section provides ladder rungs to demonstrate the use of comparison instructions. The rungs are part of the paper drilling machine application example described in appendix E. You will be adding an instruction to file 2 and beginning a subroutine in file 7. Adding to File 2 To begin you will need to return to the rungs first entered in chapter 6.
Using Comparison Instructions Beginning a Subroutine in File 7 This section of ladder keeps track of the total inches of paper the current drill bit has drilled through. As the current bit wears out, a light illuminates on the operator panel, below, to warn the operator to change the drill bit. For 32 I/O controllers: If the operator ignores this warning too long, this ladder shuts the machine down until the operator changes the bit.
MicroLogix Preface1000 Programmable Controllers User Manual | | 1/4 in. 102,000 | | | Thousands 1/4 in. | | | increments | | | have | | | occurred | | | +GEQ–––––––––––––––+ B3 | | +–+GRTR THAN OR EQUAL+–––––––––––––––––––––––––––––––––( )–––––+ | | |Source A N7:11| 17 | | | | 0| | | | |Source B 102| | | | | | | | | +––––––––––––––––––+ | | | 1/4 in.
Using Math Instructions 8 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 Programming how to use the instruction In addition, the last section contains an application example for a paper drilling machine that shows the math instructions in use.
MicroLogix Preface1000 Programmable Controllers User Manual About the Math Instructions These instructions perform the familiar four function math operations. The majority of the instructions take two input values, perform the specified arithmetic function, and output the result to an assigned memory location. For example, both the ADD and SUB instructions take a pair of input values, add or subtract them, and place the result in the specified destination.
Using Math Instructions Overflow Trap Bit, S:5/0 Minor error bit (S:5/0) is set upon detection of a mathematical overflow or division by zero. If this bit is set upon execution of an END statement or a Temporary End (TND) instruction, the recoverable major error code 0020 is declared. In applications where a math overflow or divide by zero occurs, you can avoid a controller fault by using an unlatch (OTU) instruction with address S:5/0 in your program.
MicroLogix Preface1000 Programmable Controllers User Manual Add (ADD) ADD ADD Source A Use the ADD instruction to add one value (source A) to another value (source B) and place the result in the destination. Source A and B can either be a word address or constant. Source B Dest Execution Times (µsec) when: True False 33.09 6.78 Updates to Arithmetic Status Bits With this Bit: S:0/0 8–4 Carry (C) The Controller: sets if carry is generated; otherwise resets.
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. Source A and B can either be a word address or constant. SUB SUBTRACT Source A Source B Dest Execution Times (µsec) when: True False 6.78 Updates to Arithmetic Status Bits With this Bit: S:0/0 Carry (C) The Controller: sets if borrow is generated; otherwise resets. S:0/1 Overflow (V) S:0/2 Zero (Z) sets if underflow; otherwise reset.
MicroLogix Preface1000 Programmable Controllers User Manual 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 S:2/14 (math overflow selection bit). Math Overflow Selection Bit S:2/14 Set this bit when you intend to use 32-bit addition and subtraction.
Using Math Instructions Add 16–bit value B3:1 to 32–bit value B3:3 B3:2 Add Operation Binary Hex Decimal➀ Addend B3:3 B3:2 Addend B3:1 0000 0000 0000 0011 0001 1001 0100 0000 0003 1940 55A8 0101 0101 1010 1000 203,072 21,928 Sum B3:3 B3:2 0000 0000 0000 0011 0110 1110 1110 1000 0003 6EE8 225,000 ➀ The programming device displays 16-bit decimal values only.
MicroLogix Preface1000 Programmable Controllers User Manual Multiply (MUL) MUL MULTIPLY Source A Use the MUL instruction to multiply one value (source A) by another (source B) and place the result in the destination. Source A and B can either be a word address or constant. Source B Dest Execution Times (µsec) when: True False 57.96 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. 6.
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. DIV DIVIDE Source A Source B Dest True False 147.87 6.78 Updates to Arithmetic Status Bits With this Bit: S:0/0 Carry (C) S:0/1 Overflow (V) S:0/2 Zero (Z) S:0/3 Sign (S) The Controller: always resets.
MicroLogix Preface1000 Programmable Controllers User Manual Double Divide (DDV) DDV DOUBLE DIVIDE Source 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. Dest Execution Times (µsec) when: True False 157.06 6.78 This instruction typically follows a MUL instruction that creates a 32-bit result.
Using Math Instructions Clear (CLR) CLR CLEAR Dest Use the CLR instruction to set the destination to zero. All of the bits reset. Execution Times (µsec) when: True False 20.80 4.25 Updates to Arithmetic Status Bits The Controller: Carry (C) always resets. S:0/1 Overflow (V) always resets. S:0/2 Zero (Z) always sets. S:0/3 Sign (S) always resets.
MicroLogix Preface1000 Programmable Controllers User Manual Scale Data (SCL) SCL SCALE Source 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. Rate [/10000] Offset Dest Execution Times (µsec) when: True False 169.18 Note 6.78 Anytime an underflow or overflow occurs in the destination file, minor error bit S:5/0 must be reset.
Using Math Instructions The following example takes a 0V to 10V 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.
MicroLogix Preface1000 Programmable Controllers User Manual Math Instructions in the Paper Drilling Machine Application Example This section provides ladder rungs to demonstrate the use of math instructions. 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 7. | drill change 1/4 in.
Using Math Instructions Rung 7:6 When the number of 1/4 in. increments surpasses 1000, finds out how many increments are past 1000 and stores in N7:20. Add 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.
MicroLogix Preface1000 Programmable Controllers User Manual Notes: 8–16
Using Data Handling Instructions 9 Using Data Handling Instructions This chapter contains general information about the data handling instructions and explains how they function in your application program.
MicroLogix Preface1000 Programmable Controllers User Manual Instruction Mnemonic Purpose Name Page MOV Move Moves the source value to the destination. 9–15 MVM Masked Move Moves data from a source location to a selected portion of the destination. 9–16 AND And Performs a bitwise AND operation. 9–18 OR Or Performs a bitwise inclusive OR operation. 9–19 XOR Exclusive Or Performs a bitwise Exclusive OR operation. 9–20 NOT Not Performs a NOT operation.
Using Data Handling Instructions Convert to BCD (TOD) TOD TO BCD Source Use this instruction to convert 16-bit integers into BCD values. Dest Execution Times (µsec) when: True False 49.64 6.78 The source must be a word address. The destination parameter can be a word address in a data file, or it can be the math register, S:13 and S:14. If the integer value you enter is negative, the sign is ignored and the conversion occurs as if the number was positive.
MicroLogix Preface1000 Programmable Controllers User Manual Example The integer value 9760 stored at N7:3 is converted to BCD and the BCD equivalent is stored in N7:0. The maximum BCD value is 9999. TOD TO BCD Source N7:3 9760 N7:0 9760 Dest MPS displays the destination value in BCD format.
Using Data Handling Instructions Convert from BCD (FRD) FRD FROM BCD Source Use this instruction to convert BCD values to integer values. Dest Execution Times (µsec) when: True False 56.88 The source parameter can be a word address in a data file, or it can be the math register, S:13. The destination must be a word address. 5.52 With this Bit: Note The Controller: S:0/0 Carry (C) always resets.
MicroLogix Preface1000 Programmable Controllers User Manual Note To convert numbers larger than 9999 BCD, the source must be the Math Register (S:13). You must reset the Minor Error Bit (S:5.0) to prevent an error. Example The BCD value 32,760 in the math register is converted and stored in N7:0. The maximum source value is 32767, BCD. FRD FROM BCD Source Dest S:13 00032760 N7:0 32760 S:14 MPS displays S:13 and S:14 in BCD.
Using Data Handling Instructions Clearing S:14 before executing the FRD instruction is shown below: MOV I:0 ] [ 1 MOVE Source Dest N7:2 4660 S:13 4660 0001 0010 0011 0100 CLR CLEAR Dest S:14 0 Dest S:13 00001234 N7:0 1234 MPS displays S:13 and S:14 in BCD. 0000 0100 1101 0010 When the input condition I:0/1 is set (1), a BCD value (transferred from a 4-digit thumbwheel switch for example) is moved from word N7:2 into the math register.
MicroLogix Preface1000 Programmable Controllers User Manual Decode 4 to 1 of 16 (DCD) DCD DECODE 4 to 1 of 16 Source 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. Dest Execution Times (µsec) when: True False 27.67 Use this instruction to multiplex data in applications such as rotary switches, keypads, and bank switching. 6.
Using Data Handling Instructions Encode 1 of 16 to 4 (ENC) ENC ENCODE 1 of 16 to 4 Source 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. Dest Execution Times (µsec) when: True False 6.
MicroLogix Preface1000 Programmable Controllers User Manual 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: S:0/0 Carry (C) always resets. S:0/1 Overflow (V) S:0/2 Zero (Z) sets if more than one bit in the source is set; otherwise reset. The math overflow bit (S:5/0) is not set.
Using Data Handling Instructions Using COP This instruction copies blocks of data from one location into another. It uses no status bits. If you need an enable bit, program an output instruction (OTE) in parallel using an internal bit as the output address. The following figure shows how file instruction data is manipulated. Source Destination Entering Parameters Enter the following parameters when programming this instruction: • • • Source is the address of the first word in the file to be copied.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Using Data Handling Instructions Move and Logical Instructions Overview The following general information applies to move and logical instructions. Entering Parameters • Source is the address of the value on which the logical or move operation is to be performed. It can be a word address or a constant. If the instruction has two source operands, it will not accept constants in both operands. Destination is the address where the resulting data is stored. It must be a word address.
MicroLogix Preface1000 Programmable Controllers User Manual Overflow Trap Bit, S:5/0 Minor error bit (S:5/0) is set upon detection of a mathematical overflow or division by zero. If this bit is set upon execution of an END statement, or a TND instruction, a major error occurs. In applications where a math overflow or divide by zero occurs, you can avoid a controller fault by using an unlatch (OTU) instruction with address S:5/0 in your program.
Using Data Handling Instructions Move (MOV) MOV MOVE Source 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. Dest Execution Times (µsec) when: True False 25.05 6.78 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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. MVM MASKED MOVE Source Mask Dest Execution Times (µsec) when: True False 33.28 6.
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 figure.
MicroLogix Preface1000 Programmable Controllers User Manual And (AND) The value at source A is ANDed bit by bit with the value at source B and then stored in the destination. AND BITWISE AND Source A Source B Dest Execution Times (µsec) when: True False 34.00 6.78 Truth Table Dest = A AND B A 0 1 0 1 B 0 0 1 1 Dest 0 0 0 1 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.
Using Data Handling Instructions Or (OR) OR BITWISE INCLUS OR Source A Source B The value at source A is ORed bit by bit with the value at source B and then stored in the destination. Dest 33.68 6.78 Truth Table Dest = A OR B A 0 1 0 1 B 0 0 1 1 Dest 0 1 1 1 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. Updates to Arithmetic Status Bits With this Bit: The Controller: S:0/0 Carry (C) always resets.
MicroLogix Preface1000 Programmable Controllers User Manual Exclusive Or (XOR) XOR BITWISE EXCLUS OR Source A The value at source A is Exclusive ORed bit by bit with the value at source B and then stored in the destination. Source B Dest Truth Table Execution Times (µsec) when: True False 33.64 6.92 Dest = A XOR B A 0 1 0 1 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. The destination must be a word address.
Using Data Handling Instructions Not (NOT) NOT NOT Source The source value is NOTed bit by bit and then stored in the destination (one’s complement). Execution Times (µsec) when: True False 28.21 6.92 Truth Table Dest = NOT A A 0 1 Dest 1 0 Programming Dest The source and destination must be word addresses. Updates to Arithmetic Status Bits With this Bit: The Controller: S:0/0 Carry (C) always resets. S:0/1 Overflow (V) always resets.
MicroLogix Preface1000 Programmable Controllers User Manual Negate (NEG) NEG NEGATE Source 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. Dest Execution Times (µsec) when: True False 29.48 The source and destination must be word addresses. 6.
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. Entering Parameters • • Source is a word address or constant (–32,768 to 32,767) that becomes the next value in the stack.
MicroLogix Preface1000 Programmable Controllers User Manual • Control is the address of the control structure. The control structure stores the status bits, the stack length, and the position value. Do not use the control file address for any other instruction. Status bits of the control structure are addressed by mnemonic. These include: – Empty Bit EM (bit 12) is set by the controller to indicate the stack is empty. – Done Bit DN (bit 13) is set by the controller to indicate the stack is full.
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.
MicroLogix Preface1000 Programmable Controllers User Manual FFU Instruction Execution Times (µsec) when: True False 73.78+ 4.34/word When rung conditions change from false-to-true, the controller sets the FFU enable bit (EU). This unloads the contents of the element at stack position 0 into the Destination, N7:11. All data in the stack is shifted one element toward position zero, and the highest numbered element is zeroed. The position value then decrements. 34.
Using Data Handling Instructions LFL Instruction Execution Times (µsec) when: True False When rung conditions change from false-to-true, the controller sets the LFL enable bit (EN). This loads the contents of the Source, N7:10, into the stack element indicated by the Position number, 9. The position value then increments. 61.13 33.67 The LFL instruction loads an element at each false-to-true transition of the rung, until the stack is filled (34 elements).
MicroLogix Preface1000 Programmable Controllers User Manual Data Handling Instructions in the Paper Drilling Machine Application Example This section provides ladder rungs to demonstrate the use of data handling instructions. 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 7. Rung 7:2➀ Moves the single digit BCD thumbwheel value into an internal integer register.
Using Data Handling Instructions | 1’st previous debounced | | pass scan’s BCD value | | bit BCD input | | value | | S:1 +EQU–––––––––––––––+ +FRD–––––––––––––––+ | |–+––]/[––––––+EQUAL +–+–––––––+FROM BCD +–+––+–| | | 15 |Source A N7:13| | |Source N7:14| | | | | | | 0| | | 0000| | | | | | |Source B N7:14| | |Dest N7:12| | | | | | | 0| | | 0| | | | | | +––––––––––––––––––+ | +––––––––––––––––––+ | | | | | | Math Math | | | | | | Overflow Error | | | | | | Bit Bit | | | | | | S:0 S:5 | | | | | +––––] [–––––
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Using Program Flow Control Instructions 10 Using Program Flow Control Instructions This chapter contains general information about the program flow instructions and explains how they function in your application program.
MicroLogix Preface1000 Programmable Controllers User Manual About the Program Flow Control Instructions Use these instructions to control the sequence in which your program is executed. Jump (JMP) and Label (LBL) Use these instructions in pairs to skip portions of the ladder program. (JMP) If the Rung Containing the Jump Instruction is: True ]LBL[ Execution Times (µsec) when: True False JMP LBL 9.04 1.
Using Program Flow Control Instructions Using LBL This input instruction is the target of JMP instructions having the same label number. You must program this instruction as the first instruction of a rung. This instruction has no control bits. 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. Do not jump (JMP) into an MCR zone.
MicroLogix Preface1000 Programmable Controllers User Manual Jump to Subroutine (JSR), Subroutine (SBR), and Return (RET) The JSR, SBR, and RET instructions are used to direct the controller to execute a separate subroutine file within the ladder program and return to the instruction following the JSR instruction. JSR JUMP TO SUBROUTINE SBR file number ... SBR SUBROUTINE RET RETURN Execution Times (µsec) when: True False JSR 22.24 SBR 1.45 RET 31.11 4.25 0.99 3.
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.
MicroLogix Preface1000 Programmable Controllers User Manual 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. The instruction must be programmed as the first instruction of the first rung of a subroutine. Use of this instruction is optional; however, we recommend using it for clarity.
Using Program Flow Control Instructions Master Control Reset (MCR) Execution Times (µsec) when: True False 3.98 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. 4.
MicroLogix Preface1000 Programmable Controllers User Manual Temporary End (TND) (TND) Execution Times (µsec) when: True False 7.78 3.16 Note 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.
Using Program Flow Control Instructions Immediate Input with Mask (IIM) IIM IMMEDIATE INPUT w MASK Slot Mask Execution Times (µsec) when: True False 35.72 6.78 This instruction allows you to update data prior to the normal input scan. Data from a specified input is transferred through a mask to the input data file, making the data available to instructions following the IIM instruction in the ladder program. For the mask, a 1 in an input’s bit position passes data from the source to the destination.
MicroLogix Preface1000 Programmable Controllers User Manual Program Flow Control Instructions in the Paper Drilling Machine Application Example This section provides ladder rungs to demonstrate the use of program flow control instructions. 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. The new rungs are needed to call the other subroutines containing the logic necessary to run the machine.
Using Application Specific Instructions 11 Using Application Specific Instructions This chapter contains general information about the application specific instructions and explains how they function in your application program.
MicroLogix Preface1000 Programmable Controllers User Manual Instruction Mnemonic Purpose Name Page STS Selectable Timer Interrupt Start Initiates a Selectable Timed Interrupt. 11–20 INT Interrupt Subroutine Associated with Selectable Timed Interrupts or HSC Interrupts. 11–20 About the Application Specific Instructions These instructions simplify your ladder program by allowing you to use a single instruction or pair of instructions to perform common complex operations.
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. Control is the address of the control element that stores the status byte of the instruction, the size of the array (in number of bits).
MicroLogix Preface1000 Programmable Controllers User Manual • • Bit Address is the address of the source bit. The status of this bit is inserted in either the first (lowest) bit position (BSL) or last (highest) bit position (BSR). Length (size of bit array) is the number of bits in the bit array, up to 1680 bits. A length value of 0 causes the input bit to be transferred to the UL bit. A length value that points past the end of the programmed file causes a major error to occur.
Using Application Specific Instructions Bit Shift Left (BSL) BSL BIT SHIFT LEFT File Control Bit Address Length Execution Times (µsec) when: True False 53.71+ 19.80 5.24/word (EN) (DN) When the rung goes from false-to-true, the controller sets the enable bit (EN bit 15) and the data block is shifted to the left (to a higher bit number) one bit position. The specified bit at the bit address is shifted into the first bit position.
MicroLogix Preface1000 Programmable Controllers User Manual Bit Shift Right (BSR) BSR BIT SHIFT RIGHT File Control Bit Address Length Execution Times (µsec) when: True False 53.34+ 19.80 3.98/word (EN) (DN) When the rung goes from false-to-true, the controller sets the enable bit (EN bit 15) and the data block is shifted to the right (to a lower bit number) one bit position. The specified bit at the bit address is shifted into the last bit position.
Using Application Specific Instructions Sequencer Instructions Overview The following general information applies to sequencer instructions. Effects on Index Register S:24 Sequencer Output (SQO) and Sequencer Compare (SQC) SQO SEQUENCER OUTPUT File Mask Dest Control Length Position SQC SEQUENCER COMPARE File Mask Source Control Length Position (EN) (DN) These instructions transfer 16-bit data to word addresses for the control of sequential machine operations.
MicroLogix Preface1000 Programmable Controllers User Manual Entering Parameters Enter the following parameters when programming these instructions: • File is the address of the sequencer file. You must use the file indicator (#) for this address.
Using Application Specific Instructions Status bits of the control structure include: – Found Bit FD (bit 08) – SQC only. When the status of all non-masked bits in the source address match those of the corresponding reference word, the FD bit is set. This bit is assessed each time the SQC instruction is evaluated while the rung is true. – Error Bit ER (bit 11) is set when the controller detects a negative position value, or a negative or zero length value.
MicroLogix Preface1000 Programmable Controllers User Manual Using SQO This output instruction steps through the sequencer file whose bits have been set to control various output devices. When the rung goes from false-to-true, the instruction increments to the next step (word) in the sequencer file. Data stored there is transferred through a mask to the destination address specified in the instruction. Data is written to the destination word every time the instruction is executed.
Using Application Specific Instructions The following figure indicates how the SQO instruction works. SQO SEQUENCER OUTPUT File #B3:1 Mask 0F0F Dest O:0 Control R6:05 Length 4 Position 2 (EN) (DN) Destination O:0.
MicroLogix Preface1000 Programmable Controllers User Manual Applications of the SQC instruction include machine diagnostics. The following figure explains how the SQC instruction works.
Using Application Specific Instructions Sequencer Load (SQL) SQL SEQUENCER LOAD File Source Control Length Position (EN) (DN) 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. Execution Times (µsec) when: True False 53.41 28.12 Enter the following parameters when programming this instruction: • • File is the address of the sequencer file.
MicroLogix Preface1000 Programmable Controllers User Manual Status bits of the control structure include: – Error Bit ER (bit 11) is set when the controller detects a negative position value, or a negative or zero length value. When the ER bit is set, the minor error bit (S5:2) is also set. Both bits must be cleared. – Done Bit DN (bit 13) is set after the instruction has operated on the last word in the sequencer load file. It is reset on the next false-to-true rung transition after the rung goes false.
Using Application Specific Instructions The instruction loads data into a new file element at each false-to-true transition of the rung. When step 4 is completed, the done bit (DN) is set. Operation cycles to position 1 at the next false-to-true transition of the rung after position 4. If the source were a file address such as #N7:40, files #N7:40 and #N7:30 would both have a length of 5 (0–4) and would track through the steps together per the position value.
MicroLogix Preface1000 Programmable Controllers User Manual 4. If while an STI is pending, the STI timer expires, the STI lost bit (S:5/10) is set. 5. When the STI subroutine scan is completed, scanning of the program resumes at the point where it left off, unless an STI is pending. In this case the subroutine is immediately scanned again. 6. The cycle repeats. For identification of your STI subroutine, include an INT instruction as the first instruction on the first rung of the file.
Using Application Specific Instructions Note that STI execution time adds directly to the overall scan time. During the latency period, the controller is performing operations that cannot be disturbed by the STI interrupt function. Interrupt Priorities 1. User Fault Routine 2. High-Speed Counter 3. Selectable Timed Interrupt An executing interrupt can only be interrupted by an interrupt having a higher priority.
MicroLogix Preface1000 Programmable Controllers User Manual Selectable Timed Disable (STD) and Enable (STE) STD SELECTABLE TIMED DISABLE These instructions are generally used in pairs. The purpose is to create zones in which STI interrupts cannot occur. STE SELECTABLE TIMED ENABLE Execution Times (µsec) when: True False STD 6.69 STE 10.13 3.16 3.16 Using STD When true, this instruction resets the STI enable bit and prevents the STI subroutine from executing.
Using Application Specific Instructions Program File 3 0 S:1 ] [ 15 1 ] [ STE SELECTABLE TIMED ENABLE ( ) ] [ 2 3 4 5 STD STI interrupt execution will not occur between STD and STE.
MicroLogix Preface1000 Programmable Controllers User Manual Selectable Timed Start (STS) STS SELECTABLE TIMED START File Time [x 10ms] Execution Times (µsec) when: True False 24.59 6.78 Use the STS instruction to condition the start of the STI timer upon entering the REM Run mode – rather than starting automatically. You can also use it to set up or change setpoint/frequency of the STI routine that will be executed when the STI timer expires.
Using Application Specific Instructions Application Specific Instructions in the Paper Drilling Machine Application Example This section provides ladder rungs to demonstrate the use of application specific instructions. The rungs are part of the paper drilling machine application example described in appendix E. You will begin a subroutine in file 4. Note Address I:0/10 is only valid for 32 I/O controllers. If you use a 16 I/O controller, only the 5 hole drill pattern can be used.
MicroLogix Preface1000 Programmable Controllers User Manual Rung 4: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 HSC at each entry into the REM Run mode and each time that the external reset signal is activated.
Using Application Specific Instructions | hole |hole 3 hole | | selector |selector preset | | switch |switch sequencer | | bit 0 |bit 1 | | I:0 I:0 +SQO–––––––––––––––+ | |––––]/[––––––––] [––––––––––––––––––––+–+SEQUENCER OUTPUT +–(EN)–+–| | 9 10 | |File #N7:50+–(DN) | | | | |Mask FFFF| | | | | |Dest N7:7| | | | | |Control R6:4| | | | | |Length 5| | | | | |Position 0| | | | | +––––––––––––––––––+ | | | | | | | | force the | | | | sequencer | | | | to increment | | | | on next scan | | | | R6:4 | | | +––––
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Using Application Specific Instructions Rung 4:3➀➁ Is identical to the 2 previous rungs except that it is only active when the ”hole selector switch” is in the ”7-hole” position.
MicroLogix Preface1000 Programmable Controllers User Manual Notes: 11–26
Using High-Speed Counter Instructions 12 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.
MicroLogix Preface1000 Programmable Controllers User Manual About the High-Speed Counter Instructions The high-speed counter instructions used in your ladder program configure, control, and monitor the controllers’ hardware counter. The hardware counter’s accumulator increments or decrements in response to external input signals. When the high-speed counter is enabled, data table counter C5:0 is used by the ladder program for monitoring the high-speed counter accumulator and status.
Using High-Speed Counter Instructions High-Speed Counter Instructions Overview Use the high-speed counter to detect and store narrow (fast) pulses, and its specialized instructions to initiate other control operations based on counts reaching preset values. These control operations 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.
MicroLogix Preface1000 Programmable Controllers User Manual • • • Counter Up Enable Bit CU (bit 15) is used with all of the high-speed counter types. If the HSC instruction is true, the CU bit is set to one. If the HSC instruction is false, the CU bit is set to zero. Do not write to this bit. Counter Down Enable Bit CD (bit 14) is used with the Bidirectional Counters (modes 3–8). If the HSC instruction is true, the CD bit is set to one. If the HSC instruction is false, the CD bit is set to zero.
Using High-Speed Counter Instructions • Accumulator ≤ Low Preset Bit LP (bit 8) is a reserved bit for all Up Counters. • • • • • • • Overflow Caused High-Speed Counter Interrupt Bit IV (bit 7) is set to identify an overflow as the cause for the execution of the high-speed counter interrupt routine. The IN, IH, and IL bits are reset by the controller when the IV bit is set. Examine this bit at the start of the high-speed counter interrupt routine (file 4) to determine why the interrupt occurred.
MicroLogix Preface1000 Programmable Controllers User Manual High-Speed Counter (HSC) HSC HIGH SPEED COUNTER Type Counter C5:0 High Preset 0 Accum 0 Execution Times (µsec) when: True False 21.00 21.00 (CU) (CD) (DN) Use this instruction to configure the high-speed counter. Only one HSC instruction can be used in a program. The high-speed counter is not operational until the first true execution of the HSC instruction.
Using High-Speed Counter Instructions The table below lists the function key you press to choose the type of high-speed counter you want. H g -Speed Counter High-Speed Coun er Functionality Func onal y I/0 Input Terminal Used I/1 I/2 I/3 [F1] Up Up Counter operation uses a single-ended input. Up↑ Not Used Not Used Not Used [F2] Up (with reset and hold) Up Counter operation uses a single input with external reset and hold inputs.
MicroLogix Preface1000 Programmable Controllers User Manual 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. Both types of Up Counters operate identically, except that the Up Counter with reset and hold uses external inputs 2 and 3.
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.
MicroLogix Preface1000 Programmable Controllers User Manual Up Counter with Reset and Hold Input state Input Direction (I/1) Input Count (I/O) Input Reset (I/2) Input Hold (I/3) HSC Rung High-Speed H g -Speed Counter Action Turning Off-to-On NA Off, On, or Turning Off Off True Count Up NA NA Off, On, or Turning Off On NA Hold Count NA NA Off, On, or Turning Off NA False Hold Count Off, On, or Turning Off NA Off, On, or Turning Off NA NA Hold Count NA NA Turning On NA NA R
Using High-Speed Counter Instructions Operation 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. After the first true HSC instruction execution, data can only be transferred to the hardware accumulator via an RES or RAC instruction, or to the hardware high and low presets via the HSL instruction.
MicroLogix Preface1000 Programmable Controllers User Manual When the low preset is reached, the: • • LP bit is set. High-speed counter interrupt file (program file 4) is executed if the interrupt is enabled. The IL bit is set and the IH, IV, and IN 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 (program file 4) is executed if the interrupt is enabled.
Using High-Speed Counter Instructions Bidirectional Counter with Reset and Hold (Pulse/direction) Input State Input Direction (I/1) Input Count (I/0) Input Reset (I/2) Input Hold (I/3) HSC Rung High-Speed H g -Speed Counter Action 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 Turning Off NA Off, On, or Tu
MicroLogix Preface1000 Programmable Controllers User Manual Bidirectional Counter with Reset and Hold (Up/down count) Input State Input Up Count (I/0) High-Speed H g -Speed Counter Action Input Down Count (I/1) Input Reset (I/2) Turning Off-to-On Off, On, or Turning Off Off, On, or Turning Off Off True Count Up Off, On, or Turning Off Turning Off-to-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
Using High-Speed Counter Instructions A B Quadrature Encoder Z (Reset input) Input 0 Input 1 Input 2 Forward Rotation Reverse Rotation A 1 2 3 2 Programming B 1 Count 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 INVALID PRESETs LOADED TO HIGH SPEED COUNTER (37H) occurs.
MicroLogix Preface1000 Programmable Controllers User Manual When a high preset is reached, the: • • HP bit is set. High-speed counter interrupt file (program file 4) is executed if the interrupt is enabled. The IH bit is set and the IL, IN, and IV bits are reset. Unlike the Up Counters, the accumulator value does not reset and the high preset value does not get loaded from the image to the hardware high preset register.
Using High-Speed Counter Instructions An underflow occurs when the hardware accumulator transitions from –32,768 to +32,767. When an underflow occurs, the: • • UN bit is set. High-speed counter interrupt file (program file 4) is executed if the interrupt is enabled. The IN bit is set and the IH, IL, and IV bits are reset.
MicroLogix Preface1000 Programmable Controllers User Manual High-Speed Counter Load (HSL) HSL HSC LOAD Counter Source Length C5:0 (CU) 5 (DN) Execution Times (µsec) when: True False 66.00 7.00 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.
Using High-Speed Counter Instructions Up Counter Only Bidirectional Counters Description N7:5 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 N7:6 Output Source Output High Source (Up count.) The status of bits in this word are written “through” the mask to the actual outputs. N7:7 High Preset High Preset (Up count.
MicroLogix Preface1000 Programmable Controllers User Manual The high-speed counter hardware is updated immediately when the HSL instruction is executed regardless of high-speed counter type (Up Counter or Bidirectional Counter). For the Up Counters, the last two registers are ignored since the low preset does not apply. 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.
Using High-Speed Counter Instructions High-Speed Counter Reset (RES) C5:0 RES) ) Execution Times (µsec) when: True False 51.00 The RES instruction allows you to write a zero to the hardware accumulator and image accumulator. The Counter referenced by this instruction has the same address as the HSC instruction counter and is entered as C5:0. 6.
MicroLogix Preface1000 Programmable Controllers User Manual High-Speed Counter Reset Accumulator (RAC) RAC RESET TO ACCUM VALUE Counter C5:0 Source Execution Times (µsec) when: True False 56.00 This instruction allows you to write a specific value to the hardware accumulator and image accumulator. The Counter referenced by this instruction has the same address as the HSC instruction counter and is fixed at C5:0. 6.
Using High-Speed Counter Instructions High-Speed Counter Interrupt Enable (HSE) and Disable (HSD) HSE HSC INTERRUPT ENABLE COUNTER C5:0 HSD HSC INTERRUPT DISABLE COUNTER C5:0 These instructions enable or disable a high-speed counter interrupt when a high preset, low preset, overflow, or underflow is reached. Use the HSD and HSE in pairs to provide accurate execution for your application.
MicroLogix Preface1000 Programmable Controllers User Manual If the high-speed counter interrupt routine is executing and another high-speed counter interrupt occurs, the second high-speed counter interrupt is saved but is considered pending. (The PE bit is set.) The second interrupt is executed immediately after the first one is finished executing.
Using High-Speed Counter Instructions What Happens to the HSC When Going to REM Run Mode At the first true HSL instruction execution after going-to-run, the Low Preset is initialized to –32,768 and the output mask and high and low output patterns are initialized to zero. Use the HSL instruction during the first pass to restore any values necessary for your application.
MicroLogix Preface1000 Programmable Controllers User Manual Example 1 To enter the REM Run mode and have the HSC Outputs, ACC, and Interrupt Subroutine resume their previous state, apply the following: (Rung 2:0) No action required. (Remember that all OUT instructions are zeroed when entering the REM Run mode. Use SET/RST instructions in place of OUT instructions in your conditional logic requiring retention.
Using High-Speed Counter Instructions Example 2 To enter the REM Run mode and retain the HSC ACC value while having the HSC Outputs and Interrupt Subroutine reassert themselves, apply the following: 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.
MicroLogix Preface1000 Programmable Controllers User Manual Example 3 To enter the REM Run mode and have the HSC ACC and Interrupt Subroutine resume their previous state, while externally initializing the HSC outputs, apply the following: 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.
Using High-Speed Counter Instructions High-Speed Counter Instructions in the Paper Drilling Machine Application Example The ladder rungs in this section demonstrate the use of the HSC instruction in the paper drilling machine application example started in chapter 6. Refer to appendix E for the complete paper drilling machine application example.
MicroLogix Preface1000 Programmable Controllers User Manual | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12–30 | High Output Pattern | | (turn off O:0/0) | | | | +MOV–––––––––––––––+ | +–+MOVE +–+ | |Source 0| | | | | | | |Dest N7:6| | | | 0| | | +––––––––––––––––––+ | | High Preset Value | | (counts to next hole)| | | +MOV–––––––––––––––+ | +–+MOVE +–+ | |Source 32767| | | | | | | |Dest N7:7| | | | 0| | | +––––––––––––––––––+ | | Low output patte
Using High-Speed Counter Instructions Rungs 2.0 and 2.2 are required to write several parameters to the high-speed counter data file area. These two rungs are conditioned by the first pass bit during one scan when the controller is going from REM program to REM Run mode.
MicroLogix Preface1000 Programmable Controllers User Manual The high-speed counter is used to control the conveyer position. The high-speed counter counts pulses supplied by the conveyer’s encoder via hardware inputs I:0/0 and I:0/1. Hardware inputs I:0/2 (reset) and I:0/3 (hold) are connected to a photo-switch ensuring the HSC instruction only counts encoder pulses when a manual is in front of the drill and that the high-speed counter is reset at the leading edge of each manual.
Using High-Speed Counter Instructions Rung 4:5 Interrupt occurred due to low preset reached.
MicroLogix Preface1000 Programmable Controllers User Manual Notes: 12–34
Using the Message Instruction 13 Using the Message Instruction This chapter contains information about communications and the message (MSG) instruction.
MicroLogix Preface1000 Programmable Controller User Manual Types of Communication Communication is the ability of a device to send data or status to other devices. This capability typically falls into one of two categories: initiator (master) or responder (slave). Each of these are described below: Initiator (Master) Communication Initiator products can begin communication processes, which includes requesting information from other devices (reading) or sending information to other products (writing).
Using the Message Instruction Message Instruction (MSG) (EN) (DN) (ER) 7 Execution Times (µsec) when: True False 180➀ The MSG is an output instruction that allows the controller to initiate an exchange of data with other devices. The relationship with the other devices can be either peer-to-peer communication or master-to-slave communication. The type of communication required by a particular application determines the programming configuration requirements of the MSG instruction.
MicroLogix Preface1000 Programmable Controller User Manual • • Note Control Block Address – an integer file address that you select. It consists of 7 integer words, containing the status bits, target file address, and other data associated with the MSG instruction. Control Block Length – fixed at seven elements. This field cannot be altered.
Using the Message Instruction Control Block Layout The control block layouts shown below illustrate SLC500/ML1000 type messages.
MicroLogix Preface1000 Programmable Controller User Manual 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 execution: 0 0 0 TO NR EW error: message done: message transmitting: message enabled: 0 0 0 0 ER DN ST EN control bit address: N7:0/8 ERROR CODE: 0 Error Code Desc: MSG Instruction Status Bits The right col
Using the Message Instruction • 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 MSG rung transition. • Note Enable Bit EN (bit 15) is set only if the transmit buffer is available. If the transmit buffer is not available, the EN flag remains false.
MicroLogix Preface1000 Programmable Controller User Manual Timing Diagram for a Successful MSG Instruction The following section illustrates a successful timing diagram for a Series D or later MicroLogix 1000 discrete controller, or a MicroLogix 1000 analog controller, MSG instruction. Target node Rung goes True. receives packet. Control Block Status Bits Target node processes packet Target node successfully and returns data sent reply. (read) or writes data (success).
Using the Message Instruction If the Target Node successfully receives the MSG packet, it sends back an ACK (an acknowledge). The ACK causes the processor to clear bit S:2/7. (Bit S:2/7 is valid for Series C discrete only). Note that the Target Node has not yet examined the MSG packet to see if it understands your request. It is replying to the initial connection.
MicroLogix Preface1000 Programmable Controller User Manual Following the successful receipt of the packet, the Target Node sends a reply packet. The reply packet will contain one of the following responses: • • • I have successfully performed your write request. I have successfully performed your read request, and here is your data. I have not performed your request because of an error.
Using the Message Instruction Error Code 02H Target node is busy. 03H Target node cannot respond because message is too large. 06H Target node cannot respond because requested function is not available. 07H Target node does not respond. 08H Target node cannot respond. 09H Local modem connection has been lost. 0AH Buffer unavailable to receive SRD reply. 0BH Target node does not accept this type of MSG instruction. 0CH Received a master link reset.
MicroLogix Preface1000 Programmable Controller User Manual Application Examples that Use the MSG Instruction Example 1 Application example 1 shows how you can implement continuous operation of a message instruction.
Using the Message Instruction Example 2 Application example 2 involves a MicroLogix 1000 controller transmitting its first input word to another MicroLogix 1000 controller. This is commonly referred to as “change of state” or “report on exception” messaging. Using this type of logic significantly reduces network traffic, which in turn significantly improves network throughput. This is the message control rung.
MicroLogix Preface1000 Programmable Controller User Manual Example 3 Application example 3 involves a MicroLogix 1000 controller and an SLC 5/01 processor communicating on a DH-485 network. Interlocking is provided to verify data transfer and to shut down both processors if communication fails. A temperature-sensing device, connected as an input to the MicroLogix 1000 controller, controls the on-off operation of a cooling fan, connected as an output to the SLC 5/01 processor.
Using the Message Instruction 0 I:1.0 ] [ 5 N7:0 ( ) 1 1 S:1 ] [ 15 T4:0 (RES) Temperature-sensing Input Device N7:0 (L) 0 First Pass Bit B3 (U) 0 Bit 1 of the message word. Used for fan control. Bit 0 of the message word. This is the interlock bit. TON TIMER ON DELAY Timer T4:0 Time Base 0.
MicroLogix Preface1000 Programmable Controller User Manual Program File 2 of SLC 5/01 Processor at Node 3 0 N7:0 (U) 0 S:1 ] [ 15 First Pass Bit Bit 0 of the message word. This is the interlock bit. T4:0 (RES) TON TIMER ON DELAY Timer T4:0 Time Base 0.01 Preset 400 Accum 0 1 Bit 1 of the message word. Used for fan control.
Using the Message Instruction Example 4 Application example 4 shows you how to use the timeout bit to disable an active message instruction. In this example, an output is energized after five unsuccessful attempts (two seconds duration) to transmit a message. S:0 ] [ 11 1 B3 ] [ 1 2 T4:0 ] [ DN DH-485 Active Protocol Bit B3/1 is latched (external to this example) to initiate the message instruction.
MicroLogix Preface1000 Programmable Controller User Manual Example 5 Application example 5 shows you how to link message instructions together to transmit serially, one after another. In this example a MSG Write is followed by a MSG Read which causes the serial transmission.
Using the Message Instruction This rung starts messaging each REM Run or RUN mode entry by clearing the EN bit of the first MSG instruction. 2.0 N7:0 (U) 15 S:1 ] [ 15 This rung sets the timeout value. (When using a SLC 5/03 or SLC 5/04 processor, this rung and rung 2:2 are not required because you can enter the value 6 into the Timeout value field in the MSG instruction block.) 2.1 N7:0 ] [ 15 N7:0 ]/[ 12 TON N7:0 ]/[ 13 (EN) (DN) TIMER ON DELAY Timer T4:0 Time Base 0.
MicroLogix Preface1000 Programmable Controller User Manual Notes: 13–20
Troubleshooting Your System 14 Troubleshooting Your System This chapter describes how to troubleshoot your controller.
MicroLogix Preface1000 Programmable Controllers User Manual Understanding the Controller LED Status Between the time you apply power to the controller and the time it has to establish communication with a connected programming device, the only form of communication between you and the controller is through the LEDs. When Operating Normally When power is applied, only the power LED turns on and remains on. This is part of the normal powerup sequence.
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 POWER RUN FAULT FORCE No input power or power supply error Recommended Action No Line Power Verify proper line voltage and connections to the controller.
MicroLogix Preface1000 Programmable Controllers User Manual If the LEDs indicate: ÉÉÉÉÉÉÉ The Following Error Exists Probable Cause POWER RUN ÉÉ FAULT FORCE Application fault Refer to the following key to determine the status of the LED indicators: Indicates the LED is OFF. Indicates the LED is ON. Indicates the LED is FLASHING. ÉÉ 14–4 Status of LED does not matter. Hardware/Software Major Fault Detected Recommended Action 1. Monitor Status File Word S:6 for major error code. 2.
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 S:6 of the status file on page B–14 for further help. Identify the error code and description. No Start Is the error hardware related? Yes Clear fault using either function key F9 or F10.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Troubleshooting Your System Fault Messages This section contains fault messages that can occur during operation of the MicroLogix 1000 programmable controllers. Each table lists the error code description, the probable cause, and the recommended corrective action. Advisory Message Description Recommended Action 0001 DEFAULT PROGRAM LOADED The default program is loaded to the controller memory.
MicroLogix Preface1000 Programmable Controllers User Manual Error Code (Hex) Advisory Message Description 0009 FATAL INTERNAL HARDWARE ERROR The controller software has detected an invalid condition within the hardware during power-up processing (within the first 2 seconds of operation). • Cycle power on your unit. • Download your program and re-initialize any necessary data. • Start up your system. • Contact your local Allen-Bradley representative if the error persists.
Troubleshooting Your System Advisory Message Description Recommended Action 002B TOO MANY JSRs IN HSC There are more than 3 subroutines nested in the high-speed counter routine (file 4). • Correct the user program to meet the requirements and restrictions for the JSR instruction. • Reload the program and enter the REM Run mode. 0030 SUBROUTINE NESTING EXCEEDS LIMIT OF 8 There are more than 8 subroutines nested in the main program file (file 2).
MicroLogix Preface1000 Programmable Controllers User Manual Error Code (Hex) Advisory Message Description Recommended Action 0040 OUTPUT VERIFY WRITE FAILURE When outputs were written and read back by the controller, the read failed. This may have been caused by noise. • Refer to proper grounding guidelines in chapter 2. • Start up your system. • Contact your local Allen-Bradley representative if the error persists.
Hardware Reference Hardware Reference This appendix lists the controller: • • • specifications dimensions replacement parts For AIC+ specifications, see the Advanced Interface Converter (AIC+) and DeviceNet Interface (DNI) Installation Instructions, Publication 1761-5.11.
MicroLogix Preface1000 Programmable Controllers User Manual Controller Specifications Controller Types Catalog Number 10 pt. ac input, 6 pt. relay output, ac power supply controller 1761-L32AWA 20 pt. ac input, 12 pt. relay output, ac power supply controller 1761-L10BWA 12 pt. ac input, 4 pt. analog input, 8 pt. relay output, 1 pt. analog output, ac power supply controller 6 pt. dc input, 4 pt. relay output, ac power supply controller 1761-L16BWA 10 pt. dc input, 6 pt.
Hardware Reference General Specifications Description: escr p on: Specification: 1761-L 16AWA 20AWA-5A 32AWA 10BWA 16BWA 20BWA-5A 32BWA Memory Size/Type 1 K EEPROM (approximately 737 instruction words: 437 data words) Power Supply Voltage 85–264V ac, 47-63 Hz Power Supply Usage 32AAA 16BBB 10BWB 16BWB 20BWB-5A 32BWB 32BBB 20.4–26.
MicroLogix Preface1000 Programmable Controllers User Manual Input Specifications escr p on Description ➀ 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.
Hardware Reference General Output Specifications Type Relay Voltage See Wiring Diagrams, p. 2–7. 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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 Accuracy at +25°C (+77°F) (max.
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.
MicroLogix Preface1000 Programmable Controllers User Manual Response Times for dc Inputs 4 and Above (applies to 1761-L10BWA, 1761-L16BWA, -L20BWA-5A, -L32BWA, -L10BWB, -L16BWB, -L20BWB-5A, -L32BWB, -L16BBB, and -L32BBB controllers) Nominal Filter Setting (ms) ➀ Maximum ON Delay (ms) Maximum OFF Delay (ms) 0.50 0.500 0.500 1.00 1.00 1.000 2.00 2.000 2.000 4.00 4.000 4.000 8.00➀ 8.000 8.000 16.00 16.000 16.000 This is the default setting.
Hardware Reference Controller Dimensions Refer to the following table for the controller dimensions. Controller: 1761- Length: mm (in.) L10BWA 120 (4.72) L16AWA 133 (5.24) L16BWA 120 (4.72) Depth: mm (in.)➀ Height: mm (in.) L20AWA-5A 7 (2.87) 73 2 7 L20BWA-5A L32AWA 200 (7.87) 7 7 L32BWA 800 (3.15) L32AAA L10BWB L16BBB 120 20 (4.72) 72 L16BWB 400 (1.57) 7 L20BWB-5A L32BBB 200 (7.87) 7 7 L32BWB ➀ Add approximately 13 mm (0.51 in.
MicroLogix Preface1000 Programmable Controllers User Manual Replacement Parts 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 1761-L20AWA-5A 1761-L32AWA 6 pt. dc input, 4 pt. relay output, ac power supply controller 1761-L10BWA 10 pt. dc input, 6 pt. relay output, ac power supply controller 1761-L16BWA 12 pt.
Programming Reference B Programming Reference This appendix lists the: • • controller status file 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 programming device faults and other status information. Do not write to reserved words in the status file.
MicroLogix Preface1000 Programmable Controllers User Manual The status file S: contains the following words: Word B–2 Function Page S:0 Arithmetic Flags B–3 S:1L (low byte) Controller Mode Status/Control (low) B–5 S:1H (high byte) Controller Mode Status/Control (Hi) B–5 S:2L (low byte) Controller Alternate Mode Status/Control (low) B–8 S:2H (high byte) Controller Alternate Mode Status/Control (Hi) B–8 S:3L (low byte) Current Scan Time B–11 S:3H (high byte) Watchdog Scan Time B–11 S
Programming Reference Status File Descriptions The following tables describe the status file functions, beginning at address S:0 and ending at address S:32. 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. The information is seldom written to by the user program or programming device (unless you want to reset or clear a function such as a monitor bit).
MicroLogix Preface1000 Programmable Controllers User Manual Address ➀ B–4 Bit Classification Description S:0/2 Zero Status This bit is set by the controller when the result of certain math or data handling instructions is zero. Otherwise the bit remains cleared. When a STI, high-speed counter, or Fault Routine interrupts normal execution of your program, the original value of S:0/2 is restored when execution resumes.
Programming Reference Address S:1/0 to S:1/4 Bit Controller Mode Status/ C Control Classification Status Description Bits 0–4 function as follows: 0 0000 = (0) Remote Download in progress 0 000 0001 = (1) R Remote Program mode 0 0011 = (3) Suspend Idle (operation halted by SUS instruction execution) c c 0 0 = (6) 6 Remote R R mode 0 0110 Run 0 0111 0 = (7) 7 Remote R Test continuous c mode 0 1000 = (8) Remote Test single scan mode S:1/5 Forces Enabled Forces Installed Comms Active Status This bit is
MicroLogix Preface1000 Programmable Controllers User Manual Address S:1/9 S:1/10 to S:1/11 S:1/12 Bit Startup Protection Fault Classification Static Configuration Reserved NA Run Always Static Configuration Description When this bit is set and power is cycled while the controller is in the REM Run mode, the controller executes the user-fault routine prior to the execution of the first scan of your program.
Programming Reference Bit Major Error Halted Classification Dynamic Configuration Description This bit is set by the controller any time a major error is encountered. The controller enters a fault condition. Word S:6, the Fault Code will contain a code that can be used to diagnose the fault condition.
MicroLogix Preface1000 Programmable Controllers User Manual B–8 Address S:1/14 Bit OEM Lock Classification Static Configuration C f Description S:1/15 First Pass Status S:2/0 STI Pending Status When set, this bit indicates that the STI timer has timed out and the STI routine is waiting to be executed. This bit is cleared upon starting the STI routine, ladder program, exit of the REM Run or Test mode, or execution of a true STS instruction.
Programming Reference Address Classification Description Incoming Command Pending Bit Status This bit is set when the processor determines that another node on the network has requested information or supplied a command to it. This bit can be set at any time. This bit is cleared when the processor services the request (or command).
MicroLogix Preface1000 Programmable Controllers User Manual Address S:2/14 Bit Math Overflow Selection Classification Dynamic Configuration Description Set this bit when you intend to use 32-bit addition and subtraction.
Programming Reference Address S:3L Bit Current Scan Time Classification Status Description The value of this byte tells you how much time elapses in a program cycle. A program cycle includes: • • • • scanning the ladder program, housekeeping, scanning the I/O, servicing of the communication channel. The byte value is zeroed by the controller each scan, immediately preceding the execution of rung 0 of program file 2 (main program file).
MicroLogix Preface1000 Programmable Controllers User Manual S:4 Timebase Status All 16 bits of this word are assessed by the controller. The value of this word is zeroed upon power up in the REM Run mode or entry into the REM Run or REM Test mode. It is incremented every 10 ms thereafter. Application note: You can write any value to S:4. It will begin incrementing from this value. You can use any individual bit of this word in your user program as a 50% duty cycle clock bit.
Programming Reference S:5/1 S:5/2 Reserved Control Register Error NA Dynamic Configuration NA S:5/3 Major Error Detected While Executing user-fault routine Dynamic Configuration S:5/4 to S:5/7 S:5/8 Reserved NA NA Retentive Data Lost Status This bit is set whenever retentive data is lost. This bit remains set until you clear it. While set, this bit causes the controller to fault prior to the first true scan of the program.
MicroLogix Preface1000 Programmable Controllers User Manual S:6 Major Error Code Status A hexadecimal code is entered in this word by the controller when a major error is declared. Refer to S:1/13. The code defines the type of fault, as indicated on the following pages. This word is not cleared by the controller. Error codes are presented, stored, and displayed in a hexadecimal format.
Programming Reference Fault Classification User Address Error Code (Hex) S:6 0001 The default program was loaded. X 0002 Unexpected reset occurred. X 0003 EEPROM memory is corrupt. X 0008 A fatal internal programming device error occurred. X 0009 A fatal internal hardware error occurred. X Powerup Errors Non-User NonRecoverable Recoverable Fault Classification User Error Code (Hex) S:6 0005 Retentive data is lost. 0010 The downloaded program is not a controller program.
MicroLogix Preface1000 Programmable Controllers User Manual Fault Classification User Address S:6 Error Code (Hex) Non-User 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).
Programming Reference Fault Classification User Address S:6 ➀ Error Code (Hex) Run Errors Non-User NonRecoverable 0040 An output verify write occurred. X 0041➀ Extra output bit(s) turned on. X Recoverable Valid for Series A–C discrete only. Fault Classification User S:6 0018 Download Errors Non-User The user program is incompatible with the operating system.
MicroLogix Preface1000 Programmable Controllers User Manual Address S:7 Bit Suspend Code Classification Status S:8 to S:12 S:13 and S:14 Reserved Math Register NA Status S:15L B–18 DF1 Node Address 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.
Programming Reference Bit Classification Description S:15H DF1 Baud Rate Status This byte value contains a code used to select the baud rate of the processor on the DF1 link. The controller baud rate options are: • 300 • 600 • 1200 • 2400 • 4800 • 9600 (default) • 19200 • 38400 To change the baud rate from the default value you must use a programming device. S:16L DH-485 Node Address Status This byte value contains the node address of your processor on the DH-485 link.
MicroLogix Preface1000 Programmable Controllers User Manual Address Classification S:23 S:24 Reserved Index Register R NA Status S:25 to S:29 S:30 Reserved NA STI Setpoint Dynamic Configuration S:31 to S:32 B–20 Bit Reserved NA Description NA This word indicates the element offset used in indexed addressing. When an STI, high-speed counter, or Fault Routine interrupts normal execution of your program, the original value of this register is restored when execution resumes.
Programming Reference Instruction Execution Times and Memory Usage The table below lists the execution times and memory usage for the controller instructions. Any instruction that takes longer than 15 µs (true or false execution time) to execute performs a poll for user interrupts. False Execution Time (approx. µseconds) True Execution Time (approx. µseconds) Memory Usage (user words) Name Instruction Type ADD 6.78 33.09 1.50 Add Math AND 6.78 34.00 1.50 And Data Handling BSL 19.80 53.
MicroLogix Preface1000 Programmable Controllers User Manual Mnemonic False Execution Time (approx. µseconds) True Execution Time (approx. µseconds) Memory Usage (user words) Name Instruction Type HSD 7.00 8.00 1.25 High-Speed Counter Interrupt Disable High-Speed Counter HSE 7.00 10.00 1.25 High-Speed Counter Interrupt. Enable High-Speed Counter HSL 7.00 66.00 1.50 High-Speed Counter Load High-Speed Counter IIM 6.78 35.72 1.
Programming Reference True Execution Time (approx. µseconds) Memory Usage (user words) Name Instruction Type MSG 26 180➀➁ 34.75 Message Communication MUL 6.78 57.96 1.50 Multiply Math MVM 6.78 33.28 1.50 Masked Move Data Handling NEG 6.78 29.48 1.50 Negate Data Handling NEQ 6.60 21.52 1.50 Not Equal Comparison NOT 6.78 28.21 1.00 Not Data Handling OR 6.78 33.68 1.50 Or Data Handling OSR 11.48 13.02 1.00 One-Shot Rising Basic OTE 4.43 4.43 0.
MicroLogix Preface1000 Programmable Controllers User Manual Mnemonic False Execution Time (approx. µseconds) True Execution Time (approx. µseconds) Memory Usage (user words) Name Instruction Type SQL 28.12 53.41 2.00 Sequencer Load Application Specific SQO 27.40 60.52 2.00 Sequencer Output Application Specific SQR 6.78 71.25 1.25 Square Root Math STD 3.16 6.69 0.50 Selectable Timer Interrupt Disable Application Specific STE 3.16 10.13 0.
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–21. 2. Multiply the total number of rungs by 0.75 and enter the result. Do not count the END rungs in each file. 177 3. To account for controller overhead, use 177. 110 4. To account for application data, use 110. 5.
MicroLogix Preface1000 Programmable Controllers User Manual Execution Time Worksheet Use this worksheet to calculate your execution time for ladder program. Procedure 1. Input scan time, output scan time, housekeeping time, and forcing. 2. 3. 4. 210 µs (discrete) 330 µs with forcing (analog) 250 µs without forcing (analog) _______ Estimate your program scan time: A. Count the number of program rungs in your logic program and multiply by 6. B.
Valid Addressing Modes and File Types for Instruction Parameters 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Valid Addressing Modes and File Types for Instruction Parameters Available Addressing Modes The following addressing modes are available: • • • immediate direct indirect 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.
MicroLogix Preface1000 Programmable Controllers User Manual Instruction ADD AND BSL BSR Description Add Logical AND Bit Shift Left Bit Shift Right 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 Applicabl
Valid Addressing Modes and File Types for Instruction Parameters CTD CTU DCD DDV DIV ENC EQU Description Count Down Count Up Decode 4 to 1 of 16 Double Divide Divide Encode 1 of 16 to 4 Equal Instruction Parameters Valid Addressing Mode(s) Valid File Types C (element level) Valid Value Ranges counter direct preset (contained in the counter register) –32,768–32,767 accum (contained in the counter register) –32,768–32,767 counter direct preset (contained in the counter register)
MicroLogix Preface1000 Programmable Controllers User Manual Instruction FFL FFU FLL FRD GEQ GRT Description FIFO Load FIFO Unload Fill File Convert from BCD Greater Than or Equal Greater Than Instruction Parameters Valid Addressing Mode(s) Valid File Types Valid Value Ranges source direct, indexed direct➀ O, I, S, B, T, C, R, N –32,768–32,767 FIFO array indexed direct O, I, S, B, N Not Applicable FIFO control direct R (element level) Not Applicable length (contained in the cont
Valid Addressing Modes and File Types for Instruction Parameters HSC Description High-Speed Counter Instruction Parameter Valid Addressing Mode(s) Valid File Types Valid Value Ranges type immediate 0–7, where: 0=up 1=up&reset/hold 2=pulse/direction 3=pule/direction & reset/hold 4=up/down 5=up/down & reset/hold 6=encoder 7=encoder & reset/hold counter direct preset (contained in the counter register) –32,768–32,767 accum (contained in the counter register) –32,768–32,767 C5:0.
MicroLogix Preface1000 Programmable Controllers User Manual Instruction IOM Description Immediate Output with Mask Instruction Parameter Valid Addressing Mode(s) Valid File Types Valid Value Ranges 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 number immediate 0–999 LEQ Less Than or Equal T
Valid Addressing Modes and File Types for Instruction Parameters LIM Description Limit Test MCR Master Control Reset MEQ Mask Comparison for Equal MOV MSG Move Message Instruction Parameter Valid Addressing Mode(s) Valid File Types 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 limit immediate, direct, indexed direct O, I, S,
MicroLogix Preface1000 Programmable Controllers User Manual Instruction MUL MVM NEG NEQ NOT OR Description Multiply Masked Move Negate Not Equal Logical NOT Logical OR Instruction Parameter 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
Valid Addressing Modes and File Types for Instruction Parameters Description Instruction Parameter Valid Addressing Mode(s) Valid File Types Valid Value Ranges RES Timer/Counter Reset structure direct T, C, R (element level) Not Applicable RES High-Speed Counter Reset structure direct T, C, R (element level) Not Applicable RET Return RTO Retentive Timer SBR Subroutine SCL Scale SQC Not Applicable timer direct T (element level) Not Applicable time base immediate 0.01 or 1.
MicroLogix Preface1000 Programmable Controllers User Manual Instruction SQL SQO SQR Description Sequencer Load Sequencer Output Square Root Instruction Parameter Valid Addressing Mode(s) Valid File Types Valid Value Ranges file indexed direct O, I, S, B, N Not Applicable source direct, indexed direct➀ O, I, S, B, T, C, R, N –32,768–32,767 control direct R (element level) Not Applicable length (contained in the control register) 1–255 position (contained in the control register) 0
Valid Addressing Modes and File Types for Instruction Parameters Description SUS Suspend TND Temporary End TOD Convert to BCD TOF TON Timer Off-Delay Timer On-Delay Instruction Parameter suspend ID Valid Addressing Mode(s) Valid File Types immediate, Valid Value Ranges –32,768–32,767 Not Applicable source direct, indexed direct O, I, S, B, T, C, R, N destination direct O, I. S. B. T, C, R, N Not Applicable timer direct T (element level) Not Applicable time base immediate 0.
MicroLogix Preface1000 Programmable Controllers User Manual Notes: C–14
Understanding the Communication Protocols 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.
MicroLogix Preface1000 Programmable Controllers User Manual RS-232 Communication Interface RS-232 is an Electronics Industries Association (EIA) standard that specifies the electrical, mechanical, and functional characteristics for serial binary communication. It provides you with a variety of system configuration possibilities. (RS-232 is a definition of electrical characteristics; it is not a protocol.
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 2-way simultaneous transmission with embedded responses (subcategory F1).
MicroLogix Preface1000 Programmable Controllers User Manual 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 Reference ➀ We recommend using an AIC+, catalog number 1761-NET-AIC, as your optical isolator.
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.
MicroLogix Preface1000 Programmable Controllers User Manual 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).
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.
MicroLogix Preface1000 Programmable Controllers User Manual Ownership Timeout When a program download sequence is started by a software package to download a ladder logic program to a MicroLogix controller, the software takes “file ownership” of the processor. File ownership prevents other devices from reading from or writing to the processor while the download is in process.
Understanding the Communication Protocols Using Modems with MicroLogix 1000 Programmable Controllers The types of modems that you can use with MicroLogix 1000 controllers include dial-up phone modems, leased-line modems, radio modems and line drivers. For point-to-point full-duplex modem connections that do not require any modem handshaking signals to operate, use DF1 full-duplex protocol.
MicroLogix Preface1000 Programmable Controllers User Manual Radio Modems Radio modems may be implemented in a point-to-point topology supporting either half-duplex or full-duplex communications, or in a point-to-multipoint topology supporting half-duplex communications between three or more modems.
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 will also help you plan and operate the MicroLogix 1000 on a DH-485 network. Note Only Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers support the DH-485 network.
MicroLogix Preface1000 Programmable Controllers User Manual DH-485 Token Rotation A node holding the token can send any valid packet onto the network. Each node is allowed only one transmission (plus two retries) each time it receives the token. After a node sends one message packet, it attempts to give the token to its successor by sending a “token pass” packet to its successor. If no network activity occurs, the initiator sends the token pass packet again.
Understanding the Communication Protocols DH-485 Network Initialization Network initialization begins when a period of inactivity exceeding the time of a link dead timeout is detected by an initiator on the network. When the time for a link dead timeout is exceeded, usually the initiator with the lowest address claims the token. When an initiator has the token it will begin to build the network. The network requires at least one initiator to initialize it.
MicroLogix Preface1000 Programmable Controllers User Manual Catalog Number 1747-L511, -L514, -L524, -L531, -L532 -L541, -L542, -L543 -L551, -L552 -L553 1746-BAS 1785-KA5 D–14 Description SLC 500 Processors BASIC Module DH+ /DH-485 Gateway 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.
Understanding the Communication Protocols Catalog Number Description Installation Requirement Function Publication 1747-PT1 Hand-Held Terminal NA Provides hand-held programming, monitoring, configuring, and troubleshooting capabilities for SLC 500 processors. 1747-DTAM, 2707-L8P1, -L8P2, -L40P1, -L40P2, -V40P1, -V40P2, -V40P2N, -M232P3, and -M485P3 DTAM, DTAM Plus, and DTAM Micro Operator Interfaces Panel Mount Provides electronic operator interface for SLC 500 processors.
MicroLogix Preface1000 Programmable Controllers User Manual Important DH-485 Network Planning Considerations Carefully plan your network configuration before installing any hardware.
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.
MicroLogix Preface1000 Programmable Controllers User Manual Software Considerations Software considerations include the configuration of the network and the parameters that can be set to the specific requirements of the network.
Understanding the Communication Protocols Example DH-485 Connections The following network diagrams provide examples of how to connect Series C or later MicroLogix 1000 discrete and all MicroLogix 1000 analog controllers to the DH-485 network using the AIC+. For more information on the AIC+, see the Advanced Interface Converter and DeviceNet Interface Installation Instructions, Publication 1761-5.11.
MicroLogix Preface1000 Programmable Controllers User Manual Typical 3-Node Network PanelView 550 MicroLogix 1000 (Series C or later discrete or all analog) RJ45 port 1761-CBL-AS09 or 1761-CBL-AS03 1761-CBL-AM00 or 1761-CBLHM02 AIC+ (1761-NET-AIC) PC APS Selection Switch Up 3-Node Network (not expandable) DB-9 RS-232 port mini-DIN 8 RS-232 port DH-485/DF1 port D–20 24V dc (Not needed in this configuration since the MicroLogix 1000 provides power to the AIC+ via port 2.
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) 1747-CP3 or 1761-CBL-AC00 1747-AIC DH-485 Network AIC+ (1761-NET-AIC) Selection Switch Up 1761-CBL-AM00 or 1761-CBL-HM02 24V dc (No
MicroLogix Preface1000 Programmable Controllers User Manual MicroLogix Remote Packet Support Series D MicroLogix 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.
Application Example Programs Application Example Programs This appendix is designed to illustrate various instructions described previously in this manual.
MicroLogix Preface1000 Programmable Controllers User Manual Paper Drilling Machine Application Example For a detailed explanation of: • • • • • • • E–2 XIC, XIO, OTE, RES, OTU, OTL, and OSR instructions, see chapter 6. EQU and GEQ instructions, see chapter 7. CLR, ADD, and SUB instructions, see chapter 8. MOV and FRD instructions, see chapter 9. JSR and RET instructions, see chapter 10. INT and SQO instructions, see chapter 11. HSC, HSL, and RAC instructions, see chapter 12.
Application Example Programs This machine can drill 3 different hole patterns into bound manuals. The program tracks drill wear and signals the operator that the bit needs replacement. The machine shuts down if the signal is ignored by the operator. OPERATOR PANEL Stop I/7 Thumbwheel for Thickness in 1/4 in.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
Application Example Programs Paper Drilling Machine Ladder Program | 1’st Output Mask | | Pass (only use bit 0 | | ie.
MicroLogix Preface1000 Programmable Controllers User Manual | | | | | | | | | | | | | | | | | | | | | | Low preset value | | (cause low preset | | int at reset) | | | | +MOV–––––––––––––––+ | +–+MOVE +–+ | |Source 0| | | | | | | |Dest N7:9| | | | 0| | | +––––––––––––––––––+ | | | | | | High Speed Counter | | | | +HSL–––––––––––––––+ | + –+HSC LOAD +–+ |Counter C5:0| |Source N7:5| |Length 5| +––––––––––––––––––+ | | | | | | | | | | | | | | | | | | | | | Rung 2:1 This HSC instruction is not placed in the h
Application Example Programs Rung 2:2 Forces a high-speed counter low preset interrupt to occur each REM Run 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
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.
MicroLogix Preface1000 Programmable Controllers User Manual Rung 4:3➀ Is identical to the 2 previous rungs except that it is only active when the ”hole selector switch” is in the ”7-hole” position.
Application Example Programs Rung 4:6 Signals the main program (file 2) to initiate a drilling sequence. The high-speed counter has already stopped the conveyor at the correct position using its high preset output pattern data (clear O:0/0). This occurred within microseconds of the high preset being reached (just prior to entering this high-speed counter interrupt subroutine).
MicroLogix Preface1000 Programmable Controllers User Manual Rung 6:2 When the drill is retracting (after drill actuates the DRILL HOME limit DRILL RETRACT signal is turned off, turned off to indicate the drilling conveyor is restarted. drilling a hole), the body of the switch.
Application Example Programs | | 1/4 in. 102,000 | | | Thousands 1/4 in. | | | increments | | | have | | | occurred | | | +GEQ–––––––––––––––+ B3 | | +–+GRTR THAN OR EQUAL+––––––––––––––––––––––––––––––––––( )–––––+ | | |Source A N7:11| 17 | | | | 0| | | | |Source B 102| | | | | | | | | +––––––––––––––––––+ | | | 1/4 in.
MicroLogix Preface1000 Programmable Controllers User Manual 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.
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.
MicroLogix Preface1000 Programmable Controllers User Manual Rung 7: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.
Application Example Programs | | | | | | | | | | | 1/4 in. | | increments | | | | +MOV–––––––––––––––+ | +–+MOVE +–+ |Source N7:20| | 0| |Dest N7:10| | 0| +––––––––––––––––––+ | | | | | | | | | | Rung 7:7 | | |–––––––––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––| | | 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.
MicroLogix Preface1000 Programmable Controllers User Manual Time Driven Sequencer Ladder Program Rung 2:0 The function of this rung is called a regenerative timer. Every time the timer reaches its preset, the DONE bit is set for one scan – this causes this rung to become FALSE for one scan and resets the timer. On the following scan, when this rung becomes TRUE again, the timer begins timing.
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 Address Data (Radix=Decimal) N7:0 0 2 0 0000 0100 0010 0001 Data Table 4 1 0 0 6000 1500 3000 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).
MicroLogix Preface1000 Programmable Controllers User Manual Rung 2:1 The SQC instruction and SQO instruction share the same Control Register. This is acceptable due to the careful planning of the rungstate condition. You could cascade (branch) many more SQO instructions below the SQO if you desired, all using the same Control Register (R6:0 in this case). Notice that we are only comparing Inputs 0–3 and are only asserting Outputs 0–3 (per our Mask value).
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: • • • XIC, OTL, OTU and OTE instructions, see chapter 6. GRT, LES, and GEQ instruction, see chapter 7. HSC and HSL instructions, see chapter 12.
MicroLogix Preface1000 Programmable Controllers User Manual Bottle Line Ladder Program Rung 2: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 | First Pass | | Bit | | S:1 +HSL–––––––––––––––+ | |––––] [––––––––––––
Application Example Programs Rung 2:4 Filling machine running too fast for the packing machine. Slow down the filling machine to allow the packer to catch up. | Slow Fill | | +GRT–––––––––––––––+ O:0 | |–+GREATER THAN +––––––––––––––––––––––––––––––––––––––––(L)–––––| | |Source A C5:0.
MicroLogix Preface1000 Programmable Controllers User Manual 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: • • • • XIC, XIO, OTE, RES, OTU, OTL, and TON instructions, see chapter 6. GRT and NEQ instructions, see chapter 7. MOV instruction, see chapter 9. HSC and HSL instructions, see chapter 12.
Application Example Programs Pick and Place Machine Ladder Program Rung 2:0 The following 3 rungs take information from the other programmable controller and load it into the INDEX REGISTER. This will be used to select the proper bin location from the table starting at N7:10.
MicroLogix Preface1000 Programmable Controllers User Manual Rung 2: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 | Home | | Positio
Application Example Programs Rung 2: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 will tell 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.
MicroLogix Preface1000 Programmable Controllers User Manual 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: • • • • XIC, XIO, CTU and TON instructions, see chapter 6. LES instruction, see chapter 7. CLR, MUL, DIV, DDV, ADD, and SUB instructions, see chapter 8.
Application Example Programs Once you have entered these 2 values the following information is provided: • • N7:1 – Counts per last Rate Measurement Period. This value is updated each end of Rate Measurement Period with the number of counts that have elapsed. Use this value if your application requires high-speed calculations such as velocity. N7:4 – Frequency. This value is updated once per second with the number of pulses that occurred in the last second.
MicroLogix Preface1000 Programmable Controllers User Manual RPM Calculation Ladder Program Rung 2:0 Ensures that the measurement value is initialized each REM Run mode entry. | Last timeout | | First value storage | | Pass register | | S:1 +MOV–––––––––––––––+ | |––––] [–––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–| | 15 | |Source C5:0.
Application Example Programs Rung 2:1 Sets the rate measurement period. In this case we are calculating a new rate value once every 100ms. Value N7:1 is updated once every 100ms with the number of counts that have occurred in the last 100ms period. Note that the preset value must divide evenly into 100 in order to accurately determine frequency and RPM (determined later in this program).
MicroLogix Preface1000 Programmable Controllers User Manual | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | E–32 | Last timeout value | | storage register | | +MOV–––––––––––––––+ | |–––––––––––––––––––––––––––––––––+MOVE +––––––+ | |Source C5:0.ACC| | | | 0| | | |Dest N7:0| | | | 0| | | +––––––––––––––––––+ | | Determine 1 second | | count.
Application Example Programs | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Frequency | | calculation | | register | | +CLR–––––––––––––––+ | +––+CLEAR +–+ | |Dest N7:3| | | | 0| | | +––––––––––––––––––+ | | Frequency | | determination | | counter | | C5:1 | +–––––––––(RES)–––––––––+ | Temporary reg.
MicroLogix Preface1000 Programmable Controllers User Manual 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: • • XIC, XIO, OTE, OTU, OTL, and OSR instructions, see chapter 6. JMP and LBL instructions, see chapter 10. 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.
Application Example Programs Rung 2:2 If the push button input has gone from false-to-true and the output is presently ON, turns the output OFF. |push button|Toggling | Toggling | | false-to- |Output | Output | | true | | | B3 O:0 O:0 | |––––] [––––––––] [–––––––––––––––––––––––––––––––––––––––––––(U)–––––| | 0 0 0 | Rung 2:3 Contains the label corresponding to the jump instruction in rung 1. The remainder of your actual program would be placed below this rung.
MicroLogix Preface1000 Programmable Controllers User Manual Spray Booth Application Example The following application example illustrates the use of bit shift and FIFO instructions in an automated paint spraying operation. For a detailed explanation of: • • • • XIC and OTE instructions, see chapter 6. EQU and LIM instructions, see chapter 7. FFU and FFL instructions, see chapter 9. BSL instruction, see chapter 11.
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, 2 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.
MicroLogix Preface1000 Programmable Controllers User Manual Once the presence and color data is loaded into the shift register and FIFO, they are shifted to new memory locations each time another part carrier actuates the SHIFT limit switch. After three additional shifts, the first part carrier is in front of the spray guns, ready for its part to be painted. At this point the part presence data has been shifted into B3/3 and the color data has been shifted into N7:0.
Application Example Programs Rung 2:3 When the part carrier actuates the SHIFT LIMIT SWITCH, three things happen in this rung: (1) the color of the previously painted part is unloaded from the FIFO to make room for the color of the new part, (2) the color of the new part is loaded into the FIFO, (3) the presence or absence of a part on the part carrier is shifted into the Shift Register. Rung 2:4 If there is a part on the part carrier now entering the spraying area, energize the paint sprayer.
MicroLogix Preface1000 Programmable Controllers User Manual Rung 2:5 Decodes color select word. If N7:0=1 then energize the blue paint gun. Or if N7:0= an invalid color selection, default the color of the part to blue and energize the blue paint gun.
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: • • • XIC, TON, and OSR instructions, see chapter 6. LES and GRT instructions, see chapter 7. ADD and SUB instructions, see chapter 8. Valid dwell times are 5.0 seconds to 120.0 seconds. Adjustments are made in 2.5 second intervals.
MicroLogix Preface1000 Programmable Controllers User Manual Rung 2:1 Subtracts 2.5 seconds from Timer delay each time the decrement push button is depressed. Do not go below 5.0 seconds delay. | Decrement | | Timer preset | | I:0 +GRT–––––––––––––––+ B3 +SUB–––––––––––––––+ | |––] [––––––+GREATER THAN +––––––[OSR]–––+SUBTRACT +––––| | 9 |Source A T4:0.PRE| 1 |Source A T4:0.PRE| | | | 500| | 500| | | |Source B 750| |Source B N7:0| | | | | | 0| | | +––––––––––––––––––+ |Dest T4:0.
Optional Analog Input Software Calibration 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.
MicroLogix Preface1000 Programmable Controllers User Manual Calibrating an Analog Input Channel The following procedure can be adapted to all analog inputs; current or voltage. For this example, the 1761-L20BWA-5A with a 4 mA to 20 mA input is used. The overall error for the MicroLogix 1000 is guaranteed to be not more than ± 0.525 at 25 C. The overall error of ± 0.525% at 20 mA equates to ± 164 LSB of error, or a code range of 31043 to 31371.
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.
MicroLogix Preface1000 Programmable Controllers User Manual Example Ladder Diagram The following ladder diagram uses 3 internal bits to perform the calibration procedure. CAL_LO_ENABLE causes the ladder to capture the 4 mA calibration value and CAL_HI_ENABLE causes the ladder to capture the 20 mA calibration value. CALIBRATE causes the ladder diagram to scale the hi and low values to the nominal values, which provides the slope and offset values used to calibrate the analog input channel.
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 | | B3/506 +S
MicroLogix Preface1000 Programmable Controllers User Manual | | | | | | | | | | | | | | | | | | | | | | | | | | +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| | | | 0| | | |Source B N
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, I:1/0 is the memory address for the data located in the Input file location word1, bit 0. AIC+ Advanced Interface Converter: a device that provides a communication link between various networked devices.
MicroLogix Preface1000 Programmable Controllers User Manual control profile: The means by which a controller determines which outputs turn on under what conditions. 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.
Glossary input device: A device, such as a push button or a switch, that supplies signals through input circuits to the controller. 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 processor. 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.
MicroLogix Preface1000 Programmable Controllers User Manual modem: Modulator/demodulator. Equipment that connects data terminal equipment to a communication line. modes: Selected methods of operation. Example: run, test, or program. 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).
Glossary program file: The area within a processor file that contains the ladder logic program. program mode: When the controller is not executing the processor file and all outputs are de-energized. program scan: A part of the controller’s operating cycle. During the scan the ladder program is executed and the Output data file is updated based on the program and the Input data file. programming device: Executable programming package used to develop ladder diagrams.
MicroLogix Preface1000 Programmable Controllers User Manual save: To upload (transfer) a program stored in memory from a controller to a personal computer; OR to save a program to a computer hard disk. scan time: The time required for the controller to execute the instructions in the program. The scan time may vary depending on the instructions and each instruction’s status during the scan.
Index Numbers 1761 L10BWA features, 1-3 grounding, 2-2 input voltage range, 2-9 mounting, 1-14 output voltage range, 2-9 preventing excessive heat, 1-13 spacing, 1-14 type, 1-3 wiring, 2-4 wiring diagram, 2-9 1761 L10BWB features, 1-3 grounding, 2-2 input voltage range, 2-12 mounting, 1-14 output voltage range, 2-12 preventing excessive heat, 1-13 spacing, 1-14 type, 1-3 wiring, 2-4 wiring diagram, 2-12 1761 L16AWA features, 1-3 grounding, 2-2 input voltage range, 2-7 mounting, 1-14 output voltage range, 2
MicroLogix Preface1000 Programmable Controllers User Manual wiring diagram, 2-19 1761 L20BWB 5A features, 1-3 input voltage range, 2-20 mounting, 1-14 output voltage range, 2-20 preventing excessive heat, 1-13 spacing, 1-14 type, 1-3 wiring diagram, 2-20 1761 L32AAA features, 1-3 grounding, 2-2 input voltage range, 2-15 mounting, 1-14 output voltage range, 2-15 preventing excessive heat, 1-13 spacing, 1-14 troubleshooting, 14-2 type, 1-3 wiring, 2-4 wiring diagram, 2-15 1761 L32AWA features, 1-3 grounding,
Index indexed, 4-12 logical, 4-10 using mnemonics, 4-12 addressing modes, C-3 direct addressing, C-3 immediate addressing, C-3 indexed addressing, C-3 AIC+ applying power to, 3-15 attaching to the network, 3-16 connecting, 3-9 isolated modem, 3-11 network, 3-10 point to point, 3-10 installing, 3-16 recommended user supplied components, 3-14 selecting cable, 3-12 Allen Bradley, contacting for assistance, P-6, 14-10 Allen Bradley Support, P-6 analog I/O configuration, 5-3 I/O image, 5-2 input current range,
MicroLogix Preface1000 Programmable Controllers User Manual DH-485, B-19 limitations for autoswitching, 3-17 bidirectional counter operation, 12-11 overview, 12-7 bidirectional counter with quadrature encoder operation, 12-15 overview, 12-7 bidirectional counter with reset and hold operation, 12-11 overview, 12-7 bidirectional counter with reset and hold with quadrature encoder operation, 12-15 overview, 12-7 bit file (B3:), 4-5 bit instructions Examine if Closed (XIC), 6-4 Examine if Open (XIO), 6-4 One S
Index Masked Comparison for Equal (MEQ), 7-5 Not Equal (NEQ), 7-3 overview, 7-2 indexed word addresses, 7-2 connecting the system, 3-1 AIC+, 3-9 DF1 full duplex protocol, 3-2 DH 485 network, 3-5 Convert from BCD (FRD), 9-5 example, 9-6 execution times, 9-5 instruction parameters, C-6 updates to arithmetic status bits, 9-5 valid addressing modes, C-6 valid file types, C-6 contactors (bulletin 100), surge suppressors for, 1-10 Convert to BCD (TOD), 9-3 changes to the math register, 9-3 example, 9-4 execut
MicroLogix Preface1000 Programmable Controllers User Manual overview, 6-15 addressing structure, 6-16 entering parameters, 6-16 how counters work, 6-17 Reset (RES), 6-20 CTD, Count Down, 6-19 CTU, Count Up, 6-18 D data files, 4-5 addressing, 4-10 organization, 4-5 types, 4-10 file indicator (#), 4-13 data handling instructions, 9-2 about, 9-2 Convert from BCD (FRD), 9-5 Convert to BCD (TOD), 9-3 Copy File (COP), 9-10 Decode 4 to 1 of 16 (DCD), 9-8 Encode 1 of 16 to 4 (ENC), 9-9 FIFO and LIFO instructions,
Index valid file types, C-5 E Electronics Industries Association (EIA), D-2 EMC Directive, 1-2 emergency stop switches, 1-5 ENC, Encode 1 of 16 to 4, 9-9 Encode 1 of 16 to 4 (ENC), 9-9 entering parameters, 9-9 execution times, 9-9 instruction parameters, C-5 updates to arithmetic status bits, 9-10 valid addressing modes, C-5 valid file types, C-5 entering numeric constants, 4-13 values, 4-14 EQU, Equal, 7-3 Equal (EQU), 7-3 execution times, 7-3 instruction parameters, C-5 valid addressing modes, C-5 valid
MicroLogix Preface1000 Programmable Controllers User Manual entering parameters, 9-23 valid file types, C-6 FIFO Load (FFL), 9-25 execution times, 9-25 instruction parameters, C-6 operation, 9-25 valid addressing modes, C-6 valid file types, C-6 Greater Than or Equal (GEQ), 7-4 execution times, 7-4 instruction parameters, C-6 valid addressing modes, C-6 valid file types, C-6 FIFO Unload (FFU), 9-25 execution times, 9-26 instruction parameters, C-6 operation, 9-25 valid addressing modes, C-6 valid file
Index High Speed Counter Interrupt Disable (HSD), 12-23 execution times, 12-23 instruction parameters, C-7 using HSD, 12-24 operation, 12-24 valid addressing modes, C-7 valid file types, C-7 High Speed Counter Interrupt Enable (HSE), 12-23 execution times, 12-23 instruction parameters, C-7 using HSE, 12-23 operation, 12-23 valid addressing modes, C-7 valid file types, C-7 High Speed Counter Load (HSL), 12-18 entering parameters, 12-18 execution times, 12-18 instruction parameters, C-7 operation, 12-18 vali
MicroLogix Preface1000 Programmable Controllers User Manual installing, the micro controller, 1-1 instruction execution time, worksheet, B-26 instruction execution times, listing, B-21 instruction memory usage listing, B-21 worksheet, B-25 instruction set, C-1 INT, Interrupt Subroutine, 11-20 integer file (N7:), 4-6 interrupt latency STI, 11-16 user, B-24 interrupt priorities, 11-17 Interrupt Subroutine (INT), 11-20 execution times, 11-20 instruction parameters, C-7 valid addressing modes, C-7 valid file t
Index valid file types, C-8 LIM, Limit Test, 7-6 Limit Test (LIM), 7-6 entering parameters, 7-6 execution times, 7-6 instruction parameters, C-9 valid addressing modes, C-9 valid file types, C-9 logical address, 4-10 logical addresses, specifying, using mnemonics, 4-12 M machine control, principles of, 4-2 manuals, related, P-5 Masked Comparison for Equal (MEQ), 7-5 entering parameters, 7-5 execution times, 7-5 instruction parameters, C-9 valid addressing modes, C-9 valid file types, C-9 Masked Move (MVM)
MicroLogix Preface1000 Programmable Controllers User Manual motor starters (bulletin 709), surge suppressors, 1-10 N mounting template, A-9 NEG, Negate, 9-22 mounting the controller using a DIN rail, 1-15 using mounting screws, 1-16 vertically, 1-16 Negate (NEG) instruction parameters, C-10 valid addressing modes, C-10 valid file types, C-10 MOV, Move, 9-15 Move (MOV), 9-15 entering parameters, 9-15 execution times, 9-15 instruction parameters, C-9 updates to arithmetic status bits, 9-15 valid addres
Index valid file types, C-10 operating cycle, controller's, 4-3 Or (OR), 9-19 execution times, 9-19 instruction parameters, C-10 updates to arithmetic status bits, 9-19 valid addressing modes, C-10 valid file types, C-10 OR, Or, 9-19 OSR, One Shot Rising, 6-7 OTE, Output Energize, 6-5 OTL, Output Latch, 6-5 OTU, Output Unlatch, 6-5 output contact protection, selecting, 1-8 output current range, analog, 2-23 Output Energize (OTE), 6-5 execution times, 6-5, 12-24 instruction parameters, C-10 valid addressing
MicroLogix Preface1000 Programmable Controllers User Manual storing and accessing, 4-6 download, 4-7 normal operation, 4-7 power down, 4-8 power up, 4-8 related publications, P-5 relay contact rating table, A-5 relays, surge suppressors for, 1-10 remote packet support, D-22 program constants, 4-13 replacement parts, controller, A-10 program development model, 4-15 RES, Reset, 6-20 program faults, determining, 14-2 Reset (RES), 6-20 execution times, 6-20 instruction parameters, C-11 resetting the hig
Index overview, 1-11 Periodic Tests of Master Control Relay Circuit, 1-12 Power Distribution, 1-11 Safety Circuits, 1-11 SBR, Subroutine, 10-4 Scale (SCL) instruction parameters, C-11 valid addressing modes, C-11 valid file types, C-11 Scale Data (SCL), 8-12 application example, 8-13 entering parameters, 8-12 execution times, 8-12 updates to arithmetic status bits, 8-12 SCL, Scale Data, 8-12 Selectable Timed Disable (STD), 11-18 example, 11-18 execution times, 11-18 instruction parameters, C-12 using, 11-1
MicroLogix Preface1000 Programmable Controllers User Manual analog output, A-6 general, A-3 general output, A-5 input, A-4 input filter response times, A-7 relay contact rating, A-5 instruction parameters, C-12 updates to arithmetic status bits, 8-5 valid addressing modes, C-12 valid file types, C-12 SQO, Sequencer Output, 11-7 surge suppressors, 1-8 example, 1-9 for contactor, 1-10 for motor starters, 1-10 for relays, 1-10 recommended, 1-10 SQR, Square Root, 8-11 SUS, Suspend, 10-8 Square Root (SQR)
Index Timer On Delay (TON), 6-11 execution times, 6-11 instruction parameters, C-13 using status bits, 6-11 valid addressing modes, C-13 valid file types, C-13 timing diagram, message instruction, 13-8 user interrupt latency, B-24 V valid addressing modes, C-1 TOD, Convert to BCD, 9-3 varistors example, 1-9 recommended, 1-9 TOF, Timer Off Delay, 6-12 voltage ranges, discrete, 2-7 TND, Temporary End, 10-8 TON, Timer On Delay, 6-11 troubleshooting automatically clearing faults, 14-6 contacting Allen
Allen-Bradley, a Rockwell Automation Business, has been helping its customers improve productivity and quality for more than 90 years. We design, manufacture and support a broad range of automation products worldwide. They include logic processors, power and motion control devices, operator interfaces, sensors and a variety of software. Rockwell is one of the world’s leading technology companies. Worldwide representation.