1763-RM001D-EN-P Micrologix 1100 Programmable Controllers
Total Page:16
File Type:pdf, Size:1020Kb
Instruction Set Reference Manual MicroLogix 1100 Programmable Controllers Bulletin 1763 Controllers and 1762 Expansion I/O Important User Information Solid-state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales office or online at http://www.rockwellautomation.com/literature/) describes some important differences between solid-state equipment and hard-wired electromechanical devices. Because of this difference, and also because of the wide variety of uses for solid-state equipment, all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable. In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment. The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and diagrams. No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in this manual. Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is prohibited. Throughout this manual, when necessary, we use notes to make you aware of safety considerations. WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may lead to personal injury or death, property damage, or economic loss. ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present. BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous temperatures. IMPORTANT Identifies information that is critical for successful application and understanding of the product. Allen-Bradley, Rockwell Software, Rockwell Automation, MicroLogix, and TechConnect are trademarks of Rockwell Automation, Inc. Trademarks not belonging to Rockwell Automation are property of their respective companies. Summary of Changes The information below summarizes the changes to this manual since the last printing as publication 1763-RM001C-EN-P, October 2009. To help you locate new and updated information in this release of the manual, we have included change bars as shown to the right of this paragraph. Firmware Revision Features are added to the controllers through firmware upgrades. See the latest release notes, 1763-RN003, to be sure that your controller’s firmware History is at the level you need. Firmware upgrades are not required, except to allow you access to the new features. See “Firmware Upgrades” below. Firmware Upgrades Enhanced features are added to the controllers through a firmware upgrade. This firmware upgrade is not required, except to allow you access to the latest features. To use the newest features, be sure your controller’s firmware is at the following level: Programmable Firmware Revision Catalog Numbers Controller MicroLogix 1100 Series B, Revision C, FRN 9 1763-L16AWA, 1763-L16BWA, 1763-L16BBB, and 1763-L16DWD controllers To upgrade the firmware for a MicroLogix controller visit the MicroLogix web site at http://www.ab.com/micrologix. To use all of the latest features, RSLogix 500 programming software must be version 7.20.00 or higher. 3 Publication 1763-RM001D-EN-P - September 2011 4 Summary of Changes Notes: Publication 1763-RM001D-EN-P - September 2011 Table of Contents Summary of Changes Firmware Revision History . 3 Firmware Upgrades . 3 Table of Contents Preface Who Should Use this Manual. 13 Purpose of this Manual. 13 Common Techniques Used in this Manual . 13 Related Documentation . 14 Rockwell Automation Support . 14 Chapter 1 I/O Configuration Embedded I/O. 15 MicroLogix 1100 Expansion I/O . 17 MicroLogix 1100 Expansion I/O Memory Mapping. 17 I/O Addressing. 26 I/O Forcing . 27 Input Filtering. 27 Analog Inputs . 28 Latching Inputs. 30 Configuring Expansion I/O Using RSLogix 500 . 34 Chapter 2 Controller Memory and File Controller Memory. 36 Types Data Files . 40 Protecting Data Files During Download. 42 Static File Protection . 44 Password Protection. 45 Clearing the Controller Memory . 46 Allow Future Access Setting (OEM Lock) . 47 Web View Disable (OS Series B FRN 4 or later) . 47 Chapter 3 Function Files Overview. 50 Real-Time Clock Function File . 51 RTA - Real Time Clock Adjust Instruction . 53 Memory Module Information Function File. 54 Base Hardware Information Function File . 56 Communications Status File. 57 Ethernet Communications Status File. 71 Input/Output Status File . 79 Chapter 4 Programming Instructions Instruction Set. 81 Overview Using the Instruction Descriptions . 82 5 Publication 1763-RM001D-EN-P - September 2011 6 Table of Contents Chapter 5 Using the High-Speed High-Speed Counter Overview . 89 Counter and Programmable Programmable Limit Switch Overview . 89 Limit Switch High-Speed Counter (HSC) Function File . 90 High-Speed Counter Function File Sub-Elements Summary . 92 HSC Function File Sub-Elements . 93 HSL - High-Speed Counter Load . 118 RAC - Reset Accumulated Value. 119 Programmable Limit Switch (PLS) File. 120 Chapter 6 Using High-Speed Outputs PTO - Pulse Train Output. 127 Pulse Train Output Function. 128 Pulse Train Outputs (PTO) Function File . 133 Pulse Train Output Function File Sub-Elements Summary . 134 PWM - Pulse Width Modulation. 149 PWM Function. 149 Pulse Width Modulation (PWM) Function File . 150 Pulse Width Modulated Function File Elements Summary. 152 Chapter 7 Relay-Type (Bit) Instructions XIC - Examine if Closed XIO - Examine if Open. 159 OTE - Output Energize. 161 OTL - Output Latch OTU - Output Unlatch . 162 ONS - One Shot. 163 OSR - One Shot Rising OSF - One Shot Falling . 164 Chapter 8 Timer and Counter Timer Instructions Overview . 167 Instructions TON - Timer, On-Delay . 170 TOF - Timer, Off-Delay . 171 RTO - Retentive Timer, On-Delay . 172 How Counters Work . 173 CTU - Count Up CTD - Count Down. 176 RES - Reset. 177 Chapter 9 Compare Instructions Using the Compare Instructions . 180 EQU - Equal NEQ - Not Equal . 181 Publication 1763-RM001D-EN-P - September 2011 Table of Contents 7 GRT - Greater Than LES - Less Than . 181 GEQ - Greater Than or Equal To LEQ - Less Than or Equal To . 182 MEQ - Mask Compare for Equal . 182 LIM - Limit Test . 184 Chapter 10 Math Instructions Using the Math Instructions . 188 Updates to Math Status Bits. 189 Using the Floating Point (F) Data File . 190 ADD - Add SUB - Subtract . 193 MUL - Multiply DIV - Divide . 194 NEG - Negate . 194 CLR - Clear . 194 ABS - Absolute Value . ..