Original Instructions. MicroLogix Controllers to Micro800 Controllers Migration Guide. Catalog Numbers Bulletin 1761, Bulletin 1762, Bulletin 1763, and Bulletin 2080.
Reference Manual Original Instructions MicroLogix Controllers to Micro800 Controllers Migration Guide Catalog Numbers Bulletin 1761, Bulletin 1762, Bulletin 1763, and Bulletin 2080 Important User Information Read this document and the documents listed in the additional resources section about installation, configuration, and operation of this equipment before you install, configure, operate, or maintain this product. Users are required to familiarize themselves with installation and wiring instructions in addition to requirements of all applicable codes, laws, and standards. Activities including installation, adjustments, putting into service, use, assembly, disassembly, and maintenance are required to be carried out by suitably trained personnel in accordance with applicable code of practice. If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be impaired. 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. IMPORTANT Identifies information that is critical for successful application and understanding of the product. Labels may also be on or inside the equipment to provide specific precautions. 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. ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to potential Arc Flash. Arc Flash will cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL Regulatory requirements for safe work practices and for Personal Protective Equipment (PPE). Table of Contents About This Publication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Required Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Summary of Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Micro800 Controller Overview Chapter 1 Controller Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Feature and Specification Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Chapter 2 Plan Hardware Migration with Generate Hardware Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Integrated Architecture Builder Migration Considerations Chapter 3 Migrate From a MicroLogix 1000 Controller . . . . . . . . . . . . . . . . . . . . 25 Migrate From a MicroLogix 1100 Controller . . . . . . . . . . . . . . . . . . . . 27 Migrate From a MicroLogix 1200 Controller . . . . . . . . . . . . . . . . . . . . 29 Wiring Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Convert a MicroLogix Project to a Micro800 Project Chapter 4 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Before You Begin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 What You Need . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Convert Your Project with the Converter Tool . . . . . . . . . . . . . . . . . . 65 Convert Your Project Manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Generate an Existing RSLogix 500/RSLogix Micro Project Report 79 Create Equivalent Program Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Create Representative Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Create Equivalent Logic in Program File . . . . . . . . . . . . . . . . . . . . . . . . 83 Logix Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Build and Test Your Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 RLL Instruction Mapping Chapter 5 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Definitions, Acronyms, and Abbreviations . . . . . . . . . . . . . . . . . . . . . . 99 Bit Shift . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 I/O Related Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Selectable Timed Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 File Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Move and Logical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 3 Table of Contents Additional Examples Original and Converted Pickand-Place Ladder Diagrams Relay Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 Timer and Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 Appendix A Configure Interrupts on a Micro800 Controller . . . . . . . . . . . . . . . . 179 Set Up High-Speed Counter (HSC) Instruction Variables. . . . . . . 181 Appendix B Original RSLogix 500/RSLogix Micro Ladder Diagram . . . . . . . . . 183 Connected Components Workbench Ladder Diagram (Converter Tool) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Connected Components Workbench Ladder Diagram (Manual Conversion). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 4 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Preface About This Publication This document serves as a guide for replacing your existing MicroLogixTM 1000, MicroLogix 1100, or MicroLogix 1200 controller with a Micro800TM family of controllers. The Micro800 family of controllers includes the Micro810®, Micro820®, Micro830®, Micro850®, and Micro870® controllers. Descriptions, wiring diagrams, dimensions, features, and specifications of the controllers are provided to help you select the appropriate Micro800 controller to replace your MicroLogix controller. This document shows you how to use the software tools to select a suitable Micro800 controller, and also how to convert your MicroLogix programs to work with the Micro800 controller. Audience The intended audience of this document is owners of MicroLogix 1000, MicroLogix 1100, and MicroLogix 1200 controllers who are migrating to the Micro800 family of controllers, and who are familiar with the RSLogix 500®/ RSLogixTM Micro programming software. Knowledge of programming in ladder language is expected to be able to program Micro800 systems effectively. Required Software To complete the steps in this document, Connected Components WorkbenchTM software version 12 or later is required. As the main programming software for Micro800 systems. Connected Components Workbench software provides a choice of IEC 61131-3 programming languages (ladder diagram, function block diagram, structured text) with user-defined function block support that optimizes machine control. You need Connected Components Workbench software to write your ladder diagram, function block diagram, or structured text programs, to execute the programs, and to see the results. This document uses two features that are available in Connected Components Workbench software version 12 or later. · MicroLogix to Micro800 Converter tool The MicroLogix to Micro800 Converter tool converts an RSLogix 500/ RSLogix Micro project into a Connected Components Workbench project. It provides conversion for ladder diagram (LD) programming languages in the MicroLogix processor. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 5 Preface Summary of Changes Additional Resources The onverter tool can convert most RSLogix 500/RSLogix Micro instruction blocks. However, you may need to modify the converted function blocks to confirm that they work properly. All information that requires additional modifications are logged in a conversion report, and this document shows you how to make the changes. · Micro800 Simulator The Micro800 Simulator can be used to perform testing and troubleshooting of a Connected Components Workbench project, without a physical Micro800 controller. Topic Page Updated Preface. 5 Combined dimensions for various Micro830 controllers. Added dimensions for MicroLogix 1100, 11, 12,14, 15, 16 MicroLogix 1200, Micro 850, and Micro870 controllers. Updated feature and specification comparison table for MicroLogix 1000 controllers. Added tables 17, 18, 19 for MicroLogix 1100 and MicroLogix 1200 controllers. Added chapter "Plan Hardware Migration with Integrated Architecture Builder". 21 Renamed chapter"Select a Suitable Micro800 Controller"to"Migration Considerations". Added information for migrating from a MicroLogix 1100 or MicroLogix 1200 controller. 25, 27, 29 Added wiring diagrams for MicroLogix 1100, MicroLogix 1200, Micro850, and Micro870 controllers. 39, 42, 54, 56 Renamed chapter"Convert an RSLogix 500 Project to a Connected Components Project"to 59, 65, 79, 84, 91 "Convert a MicroLogix Project to a Micro800 Project". Revised chapter with new information on the conversion process and the use of the MicroLogix to Micro800 Converter tool and Micro800 Simulator. Updated High-Speed Counter instruction description with information of new HSC instruction set 173 in Connected Components Workbench software. Moved some examples from chapter"Convert a MicroLogix Project to a Micro800 Project"into a 179 new appendix. These documents contain additional information concerning related products from Rockwell Automation. Resource Description Micro800 Programmable Controllers General Instructions, Provides reference information about the instruction set publication 2080-RM001 available for developing programs for use in Micro800 control systems. Micro820 Programmable Controllers User Manual, publication 2080-UM005 A more detailed description of how to install and use your Micro820 programmable controllers. Micro830, Micro850, and Micro870 Programmable Controllers User Manual, publication 2080-UM002 A more detailed description of how to install and use your Micro830, Micro850, and Micro870 programmable controllers. Micro800 Expansion Modules User Manual, publication 2080-UM003 Description of features, installation, wiring, and specifications for the Micro800 expansion modules. Micro800 Plug-in Modules User Manual, publication 2080-UM004 Description of features, installation, wiring, and specifications for the Micro800 plug-in modules. 6 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Preface Resource Description Getting Started with Motion Control Using a Simulated Axis Quick Start, publication 2080-QS001 Provides instructions to implement a motion control project using Connected Components Workbench software. Micro800 Controllers: Getting Started with CIP Client Messaging Quick Start, publication 2080-QS002 Provides instructions on how to use CIP Generic and CIP Symbolic messaging with Micro800 controllers. Micro800 Programmable Controllers: Getting Started with Provides instructions on how to use global variables with PanelView Plus Quick Start, publication 2080-QS003 Micro800 controllers together with PanelViewTM Plus HMI terminals. Setup Micro800 Controllers on FactoryTalk Gateway Quick Provides instructions on how to configure a Micro800 Start, publication 2080-QS005 controller on FactoryTalk® Gateway. Industrial Automation Wiring and Grounding Guidelines, Provides general guidelines for installing a Rockwell publication 1770-4.1 Automation industrial system. Product Certifications website, https:// www.rockwellautomation.com/global/certification/ overview.page Provides declarations of conformity, certificates, and other certification details. You can view or download publications at https://www.rockwellautomation.com/global/literature-library/overview.page. To order paper copies of technical documentation, contact your local Allen-Bradley distributor or Rockwell Automation sales representative. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 7 Preface Notes: 8 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Micro800 Controller Overview 1 Chapter Micro800 controllers are designed for low-cost, standalone machines. These economical small-size programmable logic controllers (PLCs) are available in different form factors based on the number of I/O points that are embedded in the base, with a range of features that are intended to address different requirements. The Micro800 family shares programming environment, accessories, and plug-ins that allow machine builders to personalize the controller for specific capabilities. Micro810 controllers function as a smart relay with high current relay outputs, but with the programming capabilities of a micro PLC. The Micro810 controllers come in a 12-point form factor. Micro820 controllers are designed for smaller standalone machines and remote automation projects. They have embedded Ethernet and serial ports and a microSDTM slot for data logging and recipe management. These controllers come as 20-point form factors that can accommodate up to two plug-in modules. They also support the Micro800 Remote LCD (2080-REMLCD) module for easier configuration of settings such as IP address. The Remote LCD module can also function as a simple IP65 text display. Micro830 controllers are designed for standalone machine control applications. They have flexible communications and I/O capabilities with up to five plug-ins. They come in 10-, 16-, 24-, or 48-point form factors. Micro850 expandable controllers are designed for applications that require more digital and analog I/O or higher performance analog I/O. They can support up to four expansion I/O. Micro850 controllers include additional communication connection options through an embedded 10/100 Base-T Ethernet port. Micro870 controllers offer machine builders and end users a higher level of scalability, flexibility, and customization. Designed for large standalone machine applications, the Micro870 controller comes with great memory capacity to enable more modular program and use of user-defined function blocks. They can support up to eight expansion I/O. Several Micro830, Micro850, and Micro870 controllers support basic positioning through embedded pulse train outputs (PTO). These controllers also allow you to configure up to six high-speed counters (HSC), and choose from nine HSC operation modes. HSC is supported on all Micro830, Micro850, and Micro870 controller catalogs, except on 2080-LCxx-xxAWB. PTO is only supported on Micro830, Micro850, and Micro870 controller catalog numbers that end in BB or VB. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 9 Chapter 1 Micro800 Controller Overview Controller Dimensions The following tables describe the dimensions for the MicroLogix controllers and the Micro800 controllers. MicroLogix 1000 Controller Dimensions C C Catalog Number 1761-L10BWA 1761-L16AWA 1761-L16BWA 1761-L16NWA 1761-L20AWA-5A 1761-L20BWA-5A 1761-L32AWA 1761-L32BWA 1761-L32AAA 1761-L10BWB 1761-L10BXB 1761-L16BBB 1761-L16BWB 1761-L16NWB 1761-L20BWB-5A 1761-L32BBB 1761-L32BWB A A 120 mm (4.72 in.) 133 mm (5.24 in.) 120 mm (4.72 in.) 200 mm (7.87 in.) 120 mm (4.72 in.) 200 mm (7.87 in.) B 73 mm (2.87 in.) 40 mm (1.57 in.) B C 80 mm (3.15 in.) 10 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Micro800 Controller Overview Chapter 1 MicroLogix 1100 Controller Dimensions C C ESC OK Catalog Number 1763-L16AWA 1763-L16BWA 1763-L16BBB 1763-L16DWD A A 110 mm (4.33 in.) B 87 mm (3.43 in.) B C 90 mm (3.54 in.) Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 11 Chapter 1 Micro800 Controller Overview MicroLogix 1200 Controller Dimensions 0 C C 1 COM Catalog Number 1762-L24AWA 1762-L24AWAR 1762-L24BWA 1762-L24BWAR 1762-L24BXB 1762-L24BXBR 1762-L40AWA 1762-L40AWAR 1762-L40BWA 1762-L40BWAR 1762-L40BXB 1762-L40BXBR A A 110 mm (4.33 in.) 160 mm (6.30 in.) B 87 mm (3.43 in.) B C 90 mm (3.54 in.) 12 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Micro820 Controller Dimensions A B Micro800 Controller Overview Chapter 1 C Catalog Number 2080-LC20-20AWB 2080-LC20-20AWBR 2080-LC20-20QWB 2080-LC20-20QWBR 2080-LC20-20QBB 2080-LC20-20QBBR A 104 mm (4.09 in.) B 75 mm (2.95 in.) C 90 mm (3.54 in.) Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 13 Chapter 1 Micro800 Controller Overview Micro830 Controller Dimensions A B A B C C A B C Catalog Number 2080-LC30-10QWB 2080-LC30-10QVB 2080-LC30-16AWB 2080-LC30-16QWB 2080-LC30-16QVB 2080-LC30-24QWB 2080-LC30-24QVB 2080-LC30-24QBB 2080-LC30-48AWB 2080-LC30-48QWB 2080-LC30-48QVB 2080-LC30-48QBB A 100 mm (3.94 in.) 150 mm (5.91 in.) 210 mm (8.27 in.) B 80 mm (3.15 in.) C 90 mm (3.54 in.) 14 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Micro850 Controller Dimensions A B C Micro800 Controller Overview Chapter 1 A B C Catalog Number 2080-LC50-24AWB 2080-LC50-24QWB 2080-LC50-24QVB 2080-LC50-24QBB 2080-LC50-48AWB 2080-LC50-48QWB 2080-LC50-48QVB 2080-LC50-48QBB A 158 mm (6.22 in.) 283 mm (9.37 in.) B 80 mm (3.15 in.) C 90 mm (3.54 in.) Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 15 Chapter 1 Micro800 Controller Overview Micro870 Controller Dimensions A B C A B C Catalog Number 2080-LC70-24AWB 2080-LC70-24QWB 2080-LC70-24QWBK 2080-LC70-24QBB 2080-LC70-24QBBK A 157 mm (6.22 in.) B 80 mm (3.15 in.) C 90 mm (3.54 in.) 16 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Micro800 Controller Overview Chapter 1 Feature and Specification Comparison The following tables describe the differences in features and specifications between MicroLogix controllers and Micro800 controllers. For more details on the specifications, see the respective controller user manual. Features Memory Memory (in user words) User program/User data Memory module (for program backup and transport) Online editing/Run Mode Change Inputs / Outputs Embedded digital I/O, max Embedded analog I/O Expansion I/O supported Thermocouple/RTD Network expansion I/O Added Functionality Trim potentiometer PID High-speed counters (embedded) Motion: PTO/PWM support Real-time clock Recipe storage Data logging Floating point math Operating Power 120/240V AC 24V DC Communication RS-232 port MicroLogix 1000 Controllers and Micro800 Controllers Comparison MicroLogix 1000 Controller Micro820 Controller Micro830 Controller 1 KB combined (preconfigured) Handheld programmer None 10/20 KB MicroSD card(1) Yes(2) 4/8 KB 10/16-point controllers 10/20 KB 24/48-point controllers Plug-in module 2080-MEMBAK-RTC or 2080-MEMBAK-RTC2 21 19 48 Two current and two voltage inputs with one current or voltage output on 20 point controllers One 0...10V analog output, four 24V DC digital inputs that can be configured as 0...10V analog inputs (DC input controllers only), and plug-in module 2080-IF2, 2080-IF4 Plug-in module 2080-IF2, 2080-IF4 None None Plug-in module 2080-RTD2, 2080-TC2 None Plug-in module 2080-DNET20 (up to 20 nodes for I/O operation) None None 1 @ 6.6 kHz (not supported on AC input controllers) Plug-in module 2080-TRIMPOT6 Yes (limited only by memory and I/O) Plug-in module 2080-MOT-HSC None PWM only 1 @ 5.5 kHz (not supported on relay output controllers) None Embedded None MicroSD card(1) None MicroSD card(1) None 32-bit and 64-bit 2 @100 kHz 10/16-point controllers 4 @100 kHz 24-point controllers 6 @100 kHz 48-point controllers (not supported on AC input controllers) 1 @ 100 kHz 10/16-point controllers 2 @ 100 kHz 24-point controllers 3 @ 100 kHz 48-point controllers (not supported on relay output controllers) Plug-in module 2080-MEMBAK-RTC, 2080-MEMBAK-RTC2 Plug-in module 2080-SDMEMRTC-SC and microSD card(1) Plug-in module 2080-SDMEMRTC-SC and microSD card(1) Yes Power supply module 2080-PSAC-12W Power supply module 2080-PS120-240VAC Yes 8-pin mini DIN Embedded RS-232/RS-485 serial port combo 8-pin min DIN RS-232/RS-485 serial port combo Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 17 Chapter 1 Micro800 Controller Overview Features MicroLogix 1000 Controller Micro820 Controller Micro830 Controller DeviceNet Peer-to-Peer Messaging, None Slave I/O Plug-in module 2080-DNET20 (up to 20 nodes for I/O operation) EtherNet/IP With 1761-NET-ENI or 1761-NET-ENIW Yes None DH-485 With 1761-NET-AIC None SCADA RTU DF1 Half-duplex Slave Yes None SCADA RTU DF1 Radio Modem None SCADA RTU Modbus RTU Slave None Yes SCADA RTU Modbus RTU Master None Yes Modbus TCP None Yes None ASCII Read/Write None Yes CIP Serial None Yes (1) We recommend using the Allen-Bradley 2080-SD-2GB microSD card. The 2080-SDMEMRTC-SC plug-in module is an EncompassTM partner product. (2) Requires Connected Components Workbench Developer Edition software version 12 or later, and Micro800 controller firmware revision 12 or later. Features Memory Memory (in user words) User program/User data Memory module (for program backup and transport) Online editing/Run Mode Change Inputs / Outputs Embedded digital I/O, max Embedded analog I/O Expansion modules supported Thermocouple/RTD Network expansion I/O Added Functionality Trim potentiometer PID High-speed counters (embedded) Motion: PTO/PWM support Real-time clock MicroLogix 1100 Controllers and Micro800 Controllers Comparison MicroLogix 1100 Controller Micro820 Controller Micro850 Controller 4 KB user program with 4 KB user data 1763-MM1 memory module Yes 120 KB user program with 20 KB user data(1) MicroSD card(2) Yes(3) Plug-in module 2080-MEMBAK-RTC, 2080-MEMBAK-RTC2 16 Two 0...10V analog inputs Up to four expansion modules Expansion module 1762-IT4, 1762-IR4 None 19 48 One 0...10V analog output, four 24V DC digital inputs that can be configured as 0...10V analog inputs (DC input controllers only), and plug-in module 2080-IF2, 2080-IF4 Plug-in module 2080-IF2, 2080-IF4 None Up to four expansion modules None Expansion module 2085-IRT4 Plug-in module 2080-DNET20 (up to 20 nodes for I/O operation) LCD and keypad Yes (limited only by memory and I/O) 1 @ 40 kHz Plug-in module 2080-TRIMPOT6 Plug-in module 2080-MOT-HSC 1763-L16BBB only 2 @ 40 kHz Embedded PWM only 1 @ 5.5 kHz (not supported on relay output controllers) Embedded 4 @ 100 kHz 24-point controllers 6 @ 100 kHz 48-point controllers (not supported on AC input controllers) PTO only 2 @ 100 kHz 24-point controllers 3 @ 100 kHz 48-point controllers (not supported on relay output controllers) Plug-in module 2080-MEMBAK-RTC, 2080-MEMBAK-RTC2 18 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Micro800 Controller Overview Chapter 1 Features Recipe storage Data logging MicroLogix 1100 Controller Yes Yes Micro820 Controller MicroSD card(2) MicroSD card(2) Micro850 Controller Plug-in module 2080-SDMEMRTC-SC and microSD card(2) Plug-in module 2080-SDMEMRTC-SC and microSD card(2) Floating point math 32-bit 32-bit and 64-bit Operating Power 120/240V AC Yes Power supply module 2080-PSAC-12W Power supply module 2080-PS120-240VAC 24V DC Yes 12V DC Yes None Communication RS-232/485 port 8-pin mini DIN (isolated) Plug-in module 2080-SERIALISOL (isolated) or 6-pin terminal block (non-isolated) Plug-in module 2080-SERIALISOL (isolated) or 8-pin min DIN (non-isolated) DeviceNet Peer-to-Peer Messaging, None Slave I/O Plug-in module 2080-DNET20 (up to 20 nodes for I/O operation) EtherNet/IP Yes DH-485 Yes None SCADA RTU DF1 Half-duplex Slave Yes None SCADA RTU DF1 Radio Modem Yes None SCADA RTU Modbus RTU Slave Yes SCADA RTU Modbus RTU Master Yes Modbus TCP None Yes ASCII Read/Write Yes CIP Serial None Yes (1) For a similar program, a Micro800 program appears to be about five times larger than a MicroLogix program. However Micro820, Micro850, and Micro870 controllers have over 160 KB of memory. Based on an allocation of 120 KB for user programs, their effective memory is about four times larger than a MicroLogix controller. (2) We recommend using the Allen-Bradley 2080-SD-2GB microSD card. The 2080-SDMEMRTC-SC plug-in module is an Encompass partner product. (3) Requires Connected Components Workbench Developer Edition software version 12 or later, and Micro800 controller firmware revision 12 or later. Features Memory Memory (in user words) User program/User data Memory module (for program backup and transport) Run Mode Change Inputs / Outputs Embedded digital I/O, max Embedded analog I/O Expansion modules supported Thermocouple/RTD MicroLogix 1200 Controllers and Micro800 Controllers Comparison MicroLogix 1200 Controller Micro850 Controller Micro870 Controller 6 KB (3 KB user program with 3 KB user data Yes, 1762-MM1 or 1762-MM1RTC None 120 KB user program with 20 KB user data(1) 240 KB user program with 40 KB user data(1) Plug-in module 2080-MEMBAK-RTC, 2080-MEMBAK-RTC2 Yes(2) 40 None Up to six expansion modules Expansion module 1762-IT4, 1762-IR4 48 Up to four expansion modules Expansion module 2085-IRT4 24 Up to eight expansion modules Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 19 Chapter 1 Micro800 Controller Overview Features MicroLogix 1200 Controller Micro850 Controller Micro870 Controller Network expansion I/O None Plug-in module 2080-DNET20 (up to 20 nodes for I/O operation) Added Functionality Trim potentiometer Two built-in digital trim potentiometers Plug-in module 2080-TRIMPOT6 PID Yes (limited only by memory and I/O) High-speed counters (embedded) Up to four high-speed DC inputs 4 @ 100 kHz 24-point controllers 6 @ 100 kHz 48-point controllers (not supported on AC input controllers) 4 @ 100 kHz (not supported on AC input controllers) Motion: PTO/PWM support 1 @ 20 kHz (supported by 1762-LxxBXB and 1762-LxxBXBR controllers only) PTO only 2 @ 100 kHz 24-point controllers 3 @ 100 kHz 48-point controllers (not supported on relay output controllers) PTO only 2 @ 100 kHz (not supported on relay output controllers) Real-time clock Recipe storage Data logging Yes, 1762-RTC or 1762-MM1RTC None None Plug-in module 2080-MEMBAK-RTC, Plug-in module 2080-MEMBAK-RTC2 2080-MEMBAK-RTC2 Plug-in module 2080-SDMEMRTC-SC and microSD card(3) Plug-in module 2080-SDMEMRTC-SC and microSD card(3) Floating point math 32-bit 32-bit and 64-bit Operating Power 120/240V AC Yes Power supply module 2080-PS120-240VAC 24V DC Yes Communication RS-232/485 port 8-pin mini DIN (isolated) Plug-in module 2080-SERIALISOL (isolated) or 8-pin mini DIN (non-isolated) DeviceNet Peer-to-Peer Messaging, None Slave I/O Plug-in module 2080-DNET20 (up to 20 nodes for I/O operation) EtherNet/IP None Yes DH-485 Yes None SCADA RTU DF1 Half-duplex Slave Yes None SCADA RTU DF1 Radio Modem Yes None SCADA RTU Modbus RTU Slave Yes SCADA RTU Modbus RTU Master Yes Modbus TCP None Yes ASCII Read/Write Yes CIP Serial None Yes (1) For a similar program, a Micro800 program appears to be about five times larger than a MicroLogix program. However Micro820, Micro850, and Micro870 controllers have over 160 KB of memory. Based on an allocation of 120 KB for user programs, their effective memory is about four times larger than a MicroLogix controller. (2) Requires Connected Components Workbench Developer Edition software version 12 or later, and Micro800 controller firmware revision 12 or later. (3) We recommend using the Allen-Bradley 2080-SD-2GB microSD card. The 2080-SDMEMRTC-SC plug-in module is an Encompass partner product. 20 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 2 Chapter Plan Hardware Migration with Integrated Architecture Builder Generate Hardware Configuration This chapter describes how to use the MicroLogix Migration Wizard within Integrated Architecture® Builder (IAB) software to assist with converting your MicroLogix controller to a compatible controller. At the base level, MicroLogix 1000, MicroLogix 1100, and MicroLogix 1200 controllers migrate to Micro800 controllers. MicroLogix 1500 controllers migrate to MicroLogix 1400 controllers or CompactLogixTM (L1/L2) controllers. To convert your MicroLogix system to a compatible controller system, do the following : 1. Launch Integrated Architecture Builder software from Start -> Programs -> Rockwell Automation -> Integrated Architecture Builder -> Integrated Architecture Builder. Alternatively, you can double-click the IAB icon on your computer. 2. Under Create, click New Project. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 21 Chapter 2 Plan Hardware Migration with Integrated Architecture Builder 3. Enter a name into the Workspace Name field, such as `MicroLogix Migration Wizard', and click OK. 4. Click Add Chassis to add your MicroLogix configuration. 5. Select the Migration Type based on your MicroLogix controller series. 6. Select your MicroLogix controller catalog number. 22 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Plan Hardware Migration with Integrated Architecture Builder Chapter 2 7. Add expansion modules, if any, to match your configuration. If the configuration exceeds the limit of the target controller, the wizard prompts you to change the target controller. 8. Select the options that apply to your MicroLogix application. 9. When the configuration is complete, click OK. 10. Click Generate Hardware. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 23 Chapter 2 Plan Hardware Migration with Integrated Architecture Builder 11. Once the hardware is generated, you can view your configuration in the Hardware tab. 12. Click the Save icon to save your project. 24 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Migration Considerations 3 Chapter This chapter describes how to optimize the configuration that you generated in the previous chapter. Use the wiring diagrams provided for reference. Migrate From a This section helps you determine how to select and wire a suitable Micro800 MicroLogix 1000 Controller controller (either a Micro820 or a Micro830 controller) for your existing MicroLogix 1000 controller wiring configuration. Any MicroLogix 1000 DC input can be configured as sinking or sourcing depending on how the DC COM terminal is wired. IMPORTANT For applications that require High Speed Counter (HSC) function, migrate to a Micro830 controller. See Convert to a Micro830 Controller on page 26 for more information. Convert to a Micro820 Controller Check the following table to see which Micro820 controller is suitable to replace your MicroLogix 1000 controller. Click the catalog number link to see the applicable wiring configuration. MicroLogix 1000 Controller 1761-L10BWB 1761-L16BWB 1761-L16NWB 1761-L32BWB 1761-L10BWA 1761-L16BWA 1761-L16NWA 1761-L16AWA 1761-L32AAA 1761-L32AWA 1761-L32BWA 1761-L10BXB 1761-L16BBB 1761-L20BWA-5A 1761-L20AWA-5A 1761-L20BWB-5A 1761-L32BBB Micro820 Controller 2080-LC20-20QWB, 2080-LC20-20QWBR -- 2080-LC20-20QWB, 2080-LC20-20QWBR -- 2080-LC20-20QWB, 2080-LC20-20QWBR -- Plug-in Modules / Accessories -- -- 2080-PSAC-12W x 1 -- 2080-OB4 x 1 -- Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 25 Chapter 3 Migration Considerations IMPORTANT An external power supply is required when migrating from any 1761-L*A controller to a Micro820 controller. · For more information on the 2080-PSAC-12W power supply, see publication 2080-IN011. · For more information on the 2080-OB4 digital output, see publication 2080-WD011. Convert to a Micro830 Controller Check the following table to see which Micro830 controller is suitable to replace your MicroLogix 1000 controller. Click the catalog number link to see the applicable wiring configuration. MicroLogix 1000 Controller 1761-L10BWB 1761-L16BWB 1761-L16NWB 1761-L32BWB 1761-L10BWA 1761-L16BWA 1761-L16NWA 1761-L16AWA 1761-L32AAA 1761-L32AWA 1761-L32BWA 1761-L10BXB 1761-L16BBB 1761-L20BWA-5A 1761-L20AWA-5A 1761-L20BWB-5A 1761-L32BBB Micro830 Controller 2080-LC30-10QWB 2080-LC30-16QWB 2080-LC30-16QWB 2080-LC30-48QWB 2080-LC30-10QWB 2080-LC30-16QWB 2080-LC30-16QWB 2080-LC30-16AWB 2080-LC30-48AWB 2080-LC30-48AWB 2080-LC30-48QWB 2080-LC30-10QWB 2080-LC30-16QWB 2080-LC30-24QWB 2080-LC30-48AWB 2080-LC30-24QWB 2080-LC30-48QBB Plug-in Modules / Accessories -- -- -- -- 2080-PS120-240VAC x 1 2080-OB4 x 1 2080-PS120-240VAC x 1 2080-IF4 x 1 2080-OF2 x 1 2080-IF4 x 1 2080-OF2 x 1 2080-OW4I x 1 26 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Migration Considerations Chapter 3 IMPORTANT An external power supply is required when migrating from any 1761-L*A controller to a Micro830 controller. · For more information on the 2080-PS120-240VAC power supply, see publication 2080-IN001. · For more information on the 2080-IF4 analog input, see publication 2080-WD003. · For more information on the 2080-OF2 analog output, see publication 2080-WD004. · For more information on the 2080-OW4I relay output, see publication 2080-WD010. · For more information on the 2080-OB4 digital output, see publication 2080-WD011. Migrate From a This section helps you determine how to select and wire a suitable Micro800 MicroLogix 1100 Controller controller (either a Micro820 or a Micro850 controller) for your existing MicroLogix 1100 controller wiring configuration. Any MicroLogix 1100 DC input can be configured as sinking or sourcing depending on how the DC COM terminal is wired. IMPORTANT For applications that require High Speed Counter (HSC) function, migrate to a Micro850 controller. See Convert to a Micro850 Controller (if there are expansion modules) on page 28 for more information. Convert to a Micro820 Controller (if there is no expansion module) You can consider migrating to a Micro820 controller if there is no expansion module in your MicroLogix configuration. Check the following table to see which Micro820 controller is suitable to replace your MicroLogix 1100 controller. Click the catalog number link to see the applicable wiring configuration. MicroLogix 1100 Controller 1763-L16AWA Micro820 Controller 2080-LC20-20AWB 2080-LC20-20AWBR Plug-in Modules / Accessories · Use 2080-PSAC-12W · Input 00...03 can be used as analog or digital input simultaneously · Use 2080-IF2 if you require more than eight digital inputs Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 27 Chapter 3 Migration Considerations MicroLogix 1100 Controller 1763-L16BWA Micro820 Controller 2080-LC20-20QWB 2080-LC20-20QWBR 1763-L16BBB 2080-LC20-20QBB 2080-LC20-20QBBR 1763-L16DWD Does not support 12V DC Plug-in Modules / Accessories · Use 2080-PSAC-12W · Input 00...03 can be used as analog or digital input simultaneously · Use 2080-IF2 if you require more than eight digital inputs · Outputs are not individually isolated, use 2080-OW4I if you require isolation · Embedded high-speed input is not available, use 2080-MOT-HSC if you require high-speed input · If you require more than two plugins, upgrade to a Micro850 controller · Use2080-IF2 if you require more than eight digital inputs · Outputs are not individually isolated, use 2080-OW4I if you require isolation · Embedded high-speed input is not available, use 2080-MOT-HSC if you require high-speed input · If you require more than two plugins, upgrade to a Micro850 controller -- Convert to a Micro850 Controller (if there are expansion modules) You have to migrate to a Micro850 controller if there are expansion modules in your MicroLogix configuration. Check the following table to see which Micro850 controller is suitable to replace your MicroLogix 1100 controller. Click the catalog number link to see the applicable wiring configuration. MicroLogix 1100 Controller 1763-L16AWA Micro850 Controller 2080-LC50-24AWB 1763-L16BWA 2080-LC50-24QWB Plug-in Modules / Accessories · Use 2080-PS120-240VAC · No embedded analog input, use 2080-IF2 or 2085-IF4 if you require analog input · No RTC, use 2080-MEMBAK-RTC if you require RTC · No datalog, use 2080-SDMEM-RTCSC if you require data logging (thirdparty plug-in module from Encompass Partner) · Requires 2085-ECR end cap at the end of expansion modules · Use 2080-PS120-240VAC · No embedded analog input, use 2080-IF2 or 2085-IF4 if you require analog input · Embedded outputs are not individually isolated, use 2080-OW4I if you require isolation · No RTC, use 2080-MEMBAK-RTC if you require RTC · No datalog, use 2080-SDMEM-RTCSC if you require data logging (thirdparty plug-in module from Encompass Partner) · Requires 2085-ECR end cap at the end of expansion modules 28 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 MicroLogix 1100 Controller 1763-L16BBB Micro850 Controller 2080-LC50-24QBB 1763-L16DWD Does not support 12V DC Migration Considerations Chapter 3 Plug-in Modules / Accessories · No embedded analog input, use 2080-IF2 or 2085-IF4 if you require analog input · No embedded relay outputs, use 2080-OW4I if you require relay output · No RTC, use 2080-MEMBAK-RTC if you require RTC · No datalog, use 2080-SDMEM-RTCSC if you require data logging (thirdparty plug-in module from Encompass Partner) · Requires 2085-ECR end cap at the end of expansion modules -- Migrate From a This section helps you determine how to select and wire a suitable Micro800 MicroLogix 1200 Controller controller (either a Micro850 or a Micro870 controller) for your existing MicroLogix 1200 controller wiring configuration. Any MicroLogix 1200 DC input can be configured as sinking or sourcing depending on how the DC COM terminal is wired. Convert to a Micro850 Controller (up to four expansion modules) You can consider migrating to a Micro850 controller if there are up to four expansion modules in your MicroLogix configuration. Check the following table to see which Micro850 controller is suitable to replace your MicroLogix 1200 controller. Click the catalog number link to see the applicable wiring configuration. MicroLogix 1200 Controller 1762-L24AWA 1762-L24AWAR 1762-L40AWA 1762-L40AWAR 1762-L24BWA 1762-L24BWAR 1762-L40BWA 1762-L40BWAR 1762-L24BXB 1762-L24BXBR 1762-L40BXB 1762-L40BXBR Micro850 Controller 2080-LC50-24AWB 2080-LC50-48AWB 2080-LC50-24QWB 2080-LC50-48QWB 2080-LC50-24QBB 2080-LC50-48QBB Plug-in Modules / Accessories · Use 2080-PS120-240VAC for AC option · No RTC, use 2080-MEMBAK-RTC if you require RTC · Requires 2085-ECR end cap at the end of expansion modules · There is no combination output, use 2080-OW4I or 2085-OW8 if your require relay output · No RTC, use 2080-MEMBAK-RTC if you require RTC · Requires 2085-ECR end cap at the end of expansion modules Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 29 Chapter 3 Migration Considerations Convert to a Micro870 Controller (more than four expansion modules) You have to migrate to a Micro870 controller if there are more than four expansion modules in your MicroLogix configuration. Check the following table to see which Micro870 controller is suitable to replace your MicroLogix 1200 controller. Click the catalog number link to see the applicable wiring configuration. MicroLogix 1200 Controller 1762-L24AWA 1762-L24AWAR 1762-L40AWA 1762-L40AWAR Micro870 Controller 2080-LC70-24AWB 1762-L24BWA 1762-L24BWAR 1762-L40BWA 1762-L40BWAR 2080-LC70-24QWB 2080-LC70-24QWBK 1762-L24BXB 1762-L24BXBR 1762-L40BXB 1762-L40BXBR 2080-LC70-24QBB 2080-LC70-24QBBK Plug-in Modules / Accessories · Requires 2085-EP24VDC power supply module when expanding beyond four expansion modules · Use 2080-PS120-240VAC for AC option · No RTC, use 2080-MEMBAK-RTC2 if you require RTC · Requires 2085-ECR end cap at the end of expansion modules · If migrating from 1762-L40AWA or 1762-L40AWAR, add 2085-IA8 and 2085-OW8 to fill I/O gap · Requires 2085-EP24VDC power supply module when expanding beyond four expansion modules · Use 2080-PS120-240VAC for AC option · No RTC, use 2080-MEMBAK-RTC2 if you require RTC · Requires 2085-ECR end cap at the end of expansion modules · If migrating from 1762-L40BWA or 1762-L40BWAR, add 2085-IQ16 and 2085-OW8 to fill I/O gap · Requires 2085-EP24VDC power supply module when expanding beyond four expansion modules · Use 2080-PS120-240VAC for AC option · There is no combination output, use 2080-OW4I or 2085-OW8 if you require relay output · No RTC, use 2080-MEMBAK-RTC2 if you require RTC · Requires 2085-ECR end cap at the end of expansion modules · If migrating from 1762-L40BXB or 1762-L40BXBR, add 2085-IQ16 and 2085-OW8 to fill I/O gap Wiring Configuration This section contains the following wiring diagrams: · MicroLogix 1000 Controller Wiring · MicroLogix 1100 Controller Wiring · MicroLogix 1200 Controller Wiring · Micro820 Controller Wiring · Micro830 Controller Wiring · Micro850 Controller Wiring · Micro870 Controller Wiring 30 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Migration Considerations Chapter 3 MicroLogix 1000 Controller Wiring 1761-L10BWB 14...30V DC VDC VDC (+) COM 14...30V DC VDC VDC + COM NOT NOT DC I/0 USED USED COM I/1 I/2 I/3 DC I/4 I/5 NOT NOT NOT NOT COM USED USED USED USED DC IN + 24V - VAC VAC VAC VAC NOT NOT NOT VDC O/0 VDC O/1 VDC O/2 VDC O/3 USED USED USED VDC 1 VDC 1 COM 1761-L16BWB CR CR VAC 1 VDC 2 VDC 3 VAC 1 COM VDC 2 COM VDC 3 COM 14...30V DC VDC VDC (+) VDC COM COM 14...30V DC VDC + NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 USED USED COM COM DC IN + 24V - VAC VDC O/0 VAC VAC VDC O/1 VDC O/2 VAC VDC O/3 VAC VDC O/4 O/5 VDC 1 VDC 1 COM CR CR CR CR VAC 1 VDC 2 VDC 3 VDC 4 VAC 1 COM VDC 2 COM VDC 3 COM VDC 4 COM Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 31 Chapter 3 Migration Considerations 1761-L16NWA and 1761-L16NWB The 1761-L16NWA and 1761-L16NWB controllers are equipped with input circuits capable of 24V AC or 24V DC operation. Specifications for operation of the input circuits are given in the following table. Except for the input circuits, the 1761-L16NWA and1761-L16NWB controllers are identical in operation to the 1761-L16BWA and 1761-L16BWB, respectively. For more information, see the MicroLogix 1000 Programmable Controllers Document Update, publication 1761-DU001. 24V AC / 24V DC Input Specifications for 1761-L16NWA and 1761-L16NWB Specification(1) AC Excitation(3) DC Excitation On State Voltage Minimum 18V AC 14V DC Nominal 24V AC 24V DC Maximum 26.4V AC @ 55 °C (131 °F) 30V AC @ 30 °C (86 °F) 26.4V DC @ 55 °C (131 °F) 30V DC @ 30 °C (86 °F) On State Current Minimum 3.0 mA @ 18V AC 2.5 mA @ 14V DC Nominal 8.0 mA @ 24V AC 8.0 mA @ 24V DC Maximum 12 mA @ 30V AC 12 mA @ 30V DC Off State Voltage Minimum 0.0V AC 0.0V DC Maximum 3.0V AC 5.0V DC Off State Current Minimum 1.0 mA 1.5 mA Frequency Nominal 50/60 Hz See Turn On Time/Turn Off Time Range 47...63 Hz Turn On Time(2) Minimum 2 ms 2 ms Maximum 20 ms 20 ms Turn Off Time(2) Minimum 10 ms 10 ms Maximum 20 ms 20 ms (1) Input circuits may be operated AC or DC on a group basis only. (2) Turn On and Turn Off Times are not adjustable. (3) All AC specifications are sinusoidal RMS values. 32 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 1761-L32BWB Sinking Inputs 14...30V DC VDC () for Sinking VDC (+) for Sinking VDC (+) for Sourcing Migration Considerations Chapter 3 Sourcing Inputs 14...30V DC VDC () for Sourcing NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19 USED USED COM COM Sourcing Inputs 14...30V DC VDC (+) for Sourcing VDC () for Sourcing VDC () for Sinking Sinking Inputs 14...30V DC VDC (+) for Sinking NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19 USED USED COM COM 1761-L10BWA VDC COM VDC (+) 14...30V DC VDC VDC + COM + 24V - DC OUT DC I/0 I/1 I/2 I/3 DC I/4 I/5 COM COM NOT NOT NOT USED USED USED 85...264 VAC L1 L2/N VAC VAC VAC VAC NOT NOT NOT VDC O/0 VDC O/1 VDC O/2 VDC O/3 USED USED USED VAC 1 VAC 1 COM CR CR CR CR VAC 2 VDC 1 VDC 2 VDC 3 VAC 2 COM VDC 1 COM VDC 2 COM VDC 3 COM Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 33 Chapter 3 Migration Considerations 1761-L16BWA VDC COM VDC + VDC COM 14...30V DC VDC + + 24V - DC OUT DC I/0 COM I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 COM 85...264 VAC L1 L2/N VAC VAC VAC VAC VAC VDC O/0 VDC O/1 VDC O/2 VDC O/3 VDC O/4 O/5 VAC 1 VAC 1 COM 1761-L16AWA CR CR CR CR VAC 2 VDC 1 VDC 2 VDC 3 VAC 2 COM VDC 1 COM VDC 2 COM VDC 3 COM 79...132V AC L2/N L1 L2/N 79...132V AC L1 NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 USED USED COM COM 85...264 VAC L1 L2/N VAC VAC VAC VAC VAC VDC O/0 VDC O/1 VDC O/2 VDC O/3 VDC O/4 O/5 VAC 1 VAC 1 COM CR CR CR CR VAC 2 VDC 1 VDC 2 VDC 3 VAC 2 VDC 1 VDC 2 COM COM COM VDC 3 COM 34 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 79...132V AC L2/N L1 1761-L32AAA L2/N Migration Considerations Chapter 3 79...132V AC L1 NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19 USED USED COM COM 85...264V AC L1 L2/N VAC VAC VDC O/0 VDC O/1 VAC O/2 O/3 VAC O/4 O/5 O/6 O/7 VAC O/8 O/9 O/10 O/11 CR CR CR CR CR CR CR CR CR CR VAC 0 VAC 0 COM VAC 1 VAC 2 VAC 1 COM VAC 3 VAC 2 COM VAC 4 VAC 3 COM VAC 4 COM 1761-L32AWA 79...132V AC L2/N L1 L2/N 79...132V AC L1 NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19 USED USED COM COM 85...264V AC L1 L2/N VAC VAC VAC VAC VAC VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 VDC O/8 O/9 O/10 O/11 VAC 1 VAC 1 COM CR CR CR CR CR CR CR CR CR CR VAC 2 VDC 1 VAC 2 COM VDC 2 VDC 1 COM VDC 3 VDC 2 COM VDC 3 COM Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 35 Chapter 3 Migration Considerations 1761-L32BWA VDC + VDC Com VDC Com 14...30 V DC VDC + + 24V DC OUT DC I/0 COM I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19 COM 85...264 VAC L1 L2/N VAC VAC VAC VAC VAC VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 VDC O/8 O/9 O/10 O/11 VAC 1 VAC 1 COM CR CR CR CR CR CR CR CR CR CR VAC 2 VDC 1 VAC 2 COM VDC 2 VDC 1 COM VDC 3 VDC 2 COM VDC 3 COM 1761-L10BXB 14...30V DC 14...30V DC VDC VDC VDC VDC COM COM NOT NOT DC I/0 USED USED COM I/1 I/2 I/3 DC I/4 I/5 NOT NOT NOT NOT COM USED USED USED USED DC IN + 24V VAC VAC DC NOT NOT DC NOT VDC O/0 VDC O/1 24V+ O/2 O/3 USED USED 24V USED SUPR SUPR SUPR SUPR CR CR VDC VDC COM 36 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 1761-L16BBB Migration Considerations Chapter 3 14...30V DC VDC VDC (+) VDC COM COM 14...30V DC VDC + VDC () NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 USED USED COM COM DC IN + 24V - VAC VAC DC DC NOT VDC O/0 VDC O/1 24V+ O/2 O/3 O/4 O/5 24V - USED VDC 1 VDC 1 COM CR VAC 1 VAC 2 VDC 2 VAC 1 COM VAC 2 COM VDC 2 COM 1761-L20BWA-5A VDC (+) VDC () 14...30V DC VDC (+) Analog Channels + 24V DC OUT DC I/0 COM I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 IA IA/0 IA/1 IA IA IA/2 IA/3 IA COM SHD V (+) V (+) () SHD I (+) I (+) () 85...264V AC L1 L2/N VAC VAC VAC VAC NOT OA OA/0 OA/0 OA VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 USED SHD V (+) I (+) () VAC 1 VAC 1 COM CR CR CR CR CR CR VAC 2 VDC 1 VAC 2 COM VDC 2 VDC 1 COM VDC 2 COM Analog Channels Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 37 Chapter 3 Migration Considerations 1761-L20AWA-5A 79...132V AC 79...132V AC L2/N L1 L2/N L1 Analog Channels NOT NOT AC I/0 USED USED COM I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 IA IA/0 IA/1 IA IA IA/2 IA/3 IA COM SHD V (+) V (+) () SHD I (+) I (+) () 85...264V AC L1 L2/N VAC VAC VAC VAC NOT OA OA/0 OA/0 OA VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 USED SHD V (+) I (+) () VAC 1 VAC 1 COM CR CR CR CR CR CR VAC 2 VDC 1 VAC 2 COM VDC 2 VDC 1 COM VDC 2 COM 1761-L20BWB-5A 79...132V AC 79...132V AC L2/N L1 L2/N L1 Analog Channels Analog Channels NOT NOT AC I/0 USED USED COM I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 IA IA/0 IA/1 IA IA IA/2 IA/3 IA COM SHD V (+) V (+) () SHD I (+) I (+) () 85...264V AC L1 L2/N VAC VAC VAC VAC NOT OA OA/0 OA/0 OA VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 USED SHD V (+) I (+) () VAC 1 VAC 1 COM CR CR CR CR CR CR VAC 2 VDC 1 VAC 2 COM VDC 2 VDC 1 COM VDC 2 COM Analog Channels 38 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 1761-L32BBB Sinking Configuration 14...30V DC VDC VDC + Com VDC + Migration Considerations Chapter 3 Sourcing Configuration 14...30V DC VDC Com NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19 USED USED COM COM DC IN + 24V Sourcing Outputs VAC VAC DC DC NOT VDC O/0 VDC O/1 24V+ O/2 O/3 O/4 O/5 O/6 O/7 O/8 O/9 O/10 O/11 24V USED CR VDC 1 VDC 1 COM VAC 1 VAC 2 VDC 2 VAC 1 VAC 2 VDC 2 COM COM COM Inputs Outputs MicroLogix 1100 Controller Wiring 1763-L16AWA L1a L1b L1c L2a L2b L2c NOT NOT AC AC IA USED USED COM I/0 I/1 I/2 I/3 COM I/4 I/5 I/6 I/7 I/8 I/9 COM IV1(+) IV2(+) "NOT USED"terminals are not intended for use as connection points. L2 L1 +DCa -DCa L1a L2a L1b L2b L1c L2c L1d L2d L1e L2e CR CR L1 L2/N 100-240 VAC NOT VAC O/0 USED VDC VAC O/1 VDC VAC O/2 VDC VAC O/3 VDC VAC O/4 VDC VAC O/5 NOT VDC USED Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 39 Chapter 3 Migration Considerations Sinking Inputs 1763-L16BWA +DCa +DCb L1c +DC -DC -DCa -DCb L2c DC OUT DC DC IA + 24V - COM I/0 I/1 I/2 I/3 COM I/4 I/5 I/6 I/7 I/8 I/9 COM IV1(+) IV2(+) Sourcing Inputs -DCa -DCb L1c +DC -DC +DCa +DCb L2c DC OUT DC DC IA + 24V - COM I/0 I/1 I/2 I/3 COM I/4 I/5 I/6 I/7 I/8 I/9 COM IV1(+) IV2(+) Outputs Sinking Inputs L2 L1 +DCa -DCa L1a L2a L1b L2b L1c L2c L1d L2d L1e L2e CR CR L1 L2/N 100-240 VAC NOT VAC O/0 USED VDC VAC O/1 VDC VAC O/2 VDC VAC O/3 VDC VAC O/4 VDC VAC O/5 NOT VDC USED 1763-L16BBB +DCa +DCb L1c -DCa -DCb L2c NOT NOT DC DC IA USED USED COM I/0 I/1 I/2 I/3 COM I/4 I/5 I/6 I/7 I/8 I/9 COM IV1(+) IV2(+) Sourcing Inputs -DCa -DCb L1c +DCa +DCb L2c NOT NOT DC DC IA USED USED COM I/0 I/1 I/2 I/3 COM I/4 I/5 I/6 I/7 I/8 I/9 COM IV1(+) IV2(+) Outputs -DC +DC +DCa -DCa +DCb -DCb CR +DCc CR -DCc CR + 24V DC IN NOT VAC O/0 USED VDC VAC O/1 NOT NOT DC O/2 VDC USED USED 24V+ O/3 O/4 O/5 DC NOT 24V- USED 40 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Sinking Inputs Migration Considerations Chapter 3 1763-L16DWD +DCa +DCb L1c -DCa -DCb L2c NOT NOT DC DC IA USED USED COM I/0 I/1 I/2 I/3 COM I/4 I/5 I/6 I/7 I/8 I/9 COM IV1(+) IV2(+) Sourcing Inputs -DCa -DCb L1c +DCa +DCb L2c NOT NOT DC DC IA USED USED COM I/0 I/1 I/2 I/3 COM I/4 I/5 I/6 I/7 I/8 I/9 COM IV1(+) IV2(+) Outputs -DC +DC +DCa -DCa L1a L2a L1b L2b L1c L2c L1d L2d L1e L2e CR CR + 12/24V DC IN NOT VAC O/0 USED VDC VAC O/1 VDC VAC O/2 VDC VAC O/3 VDC VAC O/4 VDC VAC O/5 NOT VDC USED Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 41 Chapter 3 Migration Considerations MicroLogix 1200 Controller Wiring 1762-L24AWA, 1762-L24AWAR L1a L1b L2b Inputs NC IN 0 IN 2 COM 1 IN 5 IN 7 IN 9 IN 11 IN 13 NC COM 0 IN 1 IN 3 IN 4 IN 6 IN 8 IN 10 IN 12 L2a L1a L2 L1 Outputs L1b -DCa L2a L2b L1c L2c L2d CR CR VAC VAC OUT 0 OUT 1 OUT 2 VAC OUT 5 OUT 6 OUT 8 L1 NEUT DC 3 VAC VAC VAC OUT 3 OUT 4 VAC OUT 7 OUT 9 DC 0 DC 1 DC 2 DC 4 CR CR L2d +DCa L1a L1b L2b L2c L1d 42 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Inputs L2a L1a Migration Considerations Chapter 3 1762-L40AWA, 1762-L40AWAR L1a L1b L1c L2b NC IN 0 IN 2 COM 1 IN 5 IN 7 IN 8 IN 10 IN 12 IN 14 IN 16 IN 18 IN 20 IN 22 NC COM 0 IN 1 IN 3 IN 4 IN 6 COM 2 IN 9 IN 11 IN 13 IN 15 IN 17 IN 19 IN 21 IN 23 L2c L1b L1c L2 L1 Outputs L2a L2b L2c L1d L2d L1f L2e L2f CR CR CR CR VAC VAC OUT OUT OUT VAC OUT OUT OUT OUT VAC OUT OUT L1 NEUT 0 1 2 DC 3 5 7 8 10 DC 5 13 15 VAC VAC VAC OUT OUT OUT VAC OUT OUT OUT OUT DC 0 DC 1 DC 2 3 4 6 DC 4 9 11 12 14 CR CR CR CR L2c L2d L2e L2f L1a L1b L1c L1e Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 43 Chapter 3 Migration Considerations 1762-L24BWA, 1762-L24BWAR -DCb +DC +DCa +DCb Sinking Inputs +24 VDC IN 0 IN 2 COM 1 IN 5 IN 7 IN 9 IN 11 IN 13 24 COM COM 0 IN 1 IN 3 IN 4 IN 6 IN 8 IN 10 IN 12 Sourcing Inputs +DCb -DC -DCa +DCa +DCb -DCa -DCb +DC +24 VDC IN 0 IN 2 COM 1 IN 5 IN 7 IN 9 IN 11 IN 13 24 COM COM 0 IN 1 IN 3 IN 4 IN 6 IN 8 IN 10 IN 12 L2 L1 Outputs -DCb -DC +DCa -DCa -DCa L2a L2b L1c L2c L2d CR CR VAC VAC OUT 0 OUT 1 OUT 2 VAC OUT 5 OUT 6 OUT 8 L1 NEUT DC 3 VAC VAC VAC OUT 3 OUT 4 VAC OUT 7 OUT 9 DC 0 DC 1 DC 2 DC 4 CR CR L2d +DCa L1a L1b L2b L2c L1d 44 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 1762-L40BWA, 1762-L40BWAR -DCb +DCb +DC +DCa Migration Considerations Chapter 3 +DCc Sinking Inputs +24 VDC IN 0 IN 2 COM 1 IN 5 IN 7 IN 8 IN 10 IN 12 IN 14 IN 16 IN 18 IN 20 IN 22 24 COM COM 0 IN 1 IN 3 IN 4 IN 6 COM 2 IN 9 IN 11 IN 13 IN 15 IN 17 IN 19 IN 21 IN 23 -DC -DCa -DCc +DCc +DCa +DCb +DCb -DCb -DCa -DCc +DC Sourcing Inputs +24 VDC IN 0 IN 2 COM 1 IN 5 IN 7 IN 8 IN 10 IN 12 IN 14 IN 16 IN 18 IN 20 IN 22 24 COM COM 0 IN 1 IN 3 IN 4 IN 6 COM 2 IN 9 IN 11 IN 13 IN 15 IN 17 IN 19 IN 21 IN 23 Outputs -DC -DCa +DCa -DCb -DCc +DCc L2a L2b L2c L1d L2d L1f L2e L2f L2 L1 CR CR CR CR VAC VAC OUT OUT OUT VAC OUT OUT OUT OUT VAC OUT OUT L1 NEUT 0 1 2 DC 3 5 7 8 10 DC 5 13 15 VAC VAC VAC OUT OUT OUT VAC OUT OUT OUT OUT DC 0 DC 1 DC 2 3 4 6 DC 4 9 11 12 14 CR CR CR CR L2c L2d L2e L2f L1a L1b L1c L1e Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 45 Chapter 3 Migration Considerations 1762-L24BXB, 1762-L24BXBR +DCa -DCb +DCb Sinking Inputs NOT USED IN 0 IN 2 COM 1 IN 5 IN 7 IN 9 IN 11 IN 13 NOT USED COM 0 IN 1 IN 3 IN 4 IN 6 IN 8 IN 10 IN 12 +DCb -DCa +DCa -DCa +DCb -DCb Sourcing Inputs NOT USED 0 IN 2 COM1 IN 5 IN 7 IN 9 IN 11 IN 13 NOT USED COM0 IN 1 IN 3 IN 4 IN 6 IN 8 IN 10 IN 12 -DCb +DCa -DCa Outputs -DCa -DCb -DCc +DC -DC CR CR L1d L2d +24 VDC OUT OUT OUT OUT OUT VAC OUT VDC NEUT 0 1 2 4 6 DC 3 8 VAC VAC VDC OUT OUT COM OUT OUT DC 0 DC 1 2 3 5 2 7 9 CR +DCa +DCb +DCc -DCc CR L2d 46 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 1762-L40BXB, 1762-L40BXBR +DCa -DCb +DCb Migration Considerations Chapter 3 +DCc Sinking Inputs NOT USED IN 0 IN 2 COM 1 IN 5 IN 7 IN 8 IN 10 IN 12 IN 14 IN 16 IN 18 IN 20 IN 22 NOT COM USED 0 IN 1 IN 3 IN 4 IN 6 COM 2 IN 9 IN 11 IN 13 IN 15 IN 17 IN 19 IN 21 IN 23 +DCa -DCa +DCb -DCc +DCb -DCa -DCb +DCc -DCc Sourcing Inputs NOT USED IN 0 IN 2 COM 1 IN 5 IN 7 IN 8 IN 10 IN 12 IN 14 IN 16 IN 18 IN 20 IN 22 NOT COM USED 0 IN 1 IN 3 IN 4 IN 6 COM 2 IN 9 IN 11 IN 13 IN 15 IN 17 IN 19 IN 21 IN 23 -DCc -DCa +DCa -DCb +DCc -DC +DC Outputs -DCa -DCb -DCc -DCd +DCe -DCe CR CR CR CR +24 VDC OUT OUT OUT OUT OUT OUT COM OUT VAC OUT OUT VDC NEUT 0 1 2 4 6 8 10 DC 4 13 15 VAC VAC VDC OUT OUT OUT OUT VAC OUT OUT OUT DC 0 DC 1 2 3 5 7 9 DC3 11 12 14 CR +DCa +DCb +DCc CR CR CR -DCc -DCd +DCd CR -DCe Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 47 Chapter 3 Migration Considerations L1 L2 2080-PSAC-12W L N +24 VDC -24 VDC Micro820 Controller Wiring 2080-LC20-20AWB, 2080-LC20-20AWBR Sinking Inputs +DC a L2 a L1 a -DC a +DC10 I-00 I-02 COM0 I-05 I-07 I-09 I-11 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 I-01 I-03 I-04 I-06 I-08 I-10 NU +DC24 -DC24 NU O-00 O-01 O-02 CM3 O-05 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 VO-0 CM0 CM1 CM2 O-03 O-04 O-06 CR +DC b -DC b L1 b L1 c L2 b CR CR CR +DC c L2 c -DC c 48 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 L1 L2 2080-PSAC-12W L N +24 VDC -24 VDC L1 L2 2080-PSAC-12W L N +24 VDC -24 VDC Migration Considerations Chapter 3 2080-LC20-20QWB, 2080-LC20-20QWBR DC Sinking Input Configuration Inputs Inputs 00...11 +DC a -DC b +DC b -DC a +DC10 I-00 I-02 COM0 I-05 I-07 I-09 I-11 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 I-01 I-03 I-04 I-06 I-08 I-10 NU +DC24 -DC24 NU O-00 O-01 O-02 CM3 O-05 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 VO-0 CM0 CM1 CM2 O-03 O-04 O-06 CR +DC c -DC c L1 a +DC d L2 a CR CR CR -DC d +DC e -DC e DC Sourcing Input Configuration Inputs Inputs 4...11 only +DC a +DC b -DC b -DC a +DC10 I-00 I-02 COM0 I-05 I-07 I-09 I-11 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 I-01 I-03 I-04 I-06 I-08 I-10 NU +DC24 -DC24 NU O-00 O-01 O-02 CM3 O-05 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 VO-0 CM0 CM1 CM2 O-03 O-04 O-06 CR +DC c -DC c L1 a +DC d L2 a CR CR CR -DC d +DC e -DC e Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 49 Chapter 3 Migration Considerations L1 L2 2080-PSAC-12W L N +24 VDC -24 VDC L1 L2 2080-PSAC-12W L N +24 VDC -24 VDC 2080-LC20-20QBB, 2080-LC20-20QBBR DC Sinking Input Configuration Inputs Inputs 00...11 +DC a -DC b +DC b -DC a +DC10 I-00 I-02 COM0 I-05 I-07 I-09 I-11 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 I-01 I-03 I-04 I-06 I-08 I-10 NU +DC24 -DC24 NU O-00 O-02 -CM0 O-04 O-06 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 VO-0 +CM0 O-01 O-03 +CM1 O-05 -CM1 +DC c CR CR CR +DC d -DC c -DC d DC Sourcing Input Configuration Inputs Inputs 4...11 only +DC a +DC b -DC b -DC a +DC10 I-00 I-02 COM0 I-05 I-07 I-09 I-11 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 I-01 I-03 I-04 I-06 I-08 I-10 NU +DC24 -DC24 NU O-00 O-02 -CM0 O-04 O-06 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 VO-0 +CM0 O-01 O-03 +CM1 O-05 -CM1 +DC c CR CR CR +DC d -DC c -DC d 50 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Migration Considerations Chapter 3 Micro830 Controller Wiring 2080-LC30-10QWB -DC a +DC a -DC b +DC b DC Sinking Input Configuration Inputs Inputs 00...05 COM0 I-01 I-03 I-04 1234 5678 I-00 I-02 COM1 I-05 NC NC 9 10 11 12 NC NC +DC24 CM0 CM1 CM2 CM3 NC 1 2 3 4 5 6 7 8 9 10 11 12 -DC24 O-00 O-01 O-02 O-03 NC indicates high-speed inputs and outputs +DC c -DC c CR CR L1 a L1 b +DC d L2 a L2 b -DC d IMPORTANT Do not connect DC24 m(Output terminal 2) to Earth/Chassis Ground. 2080-LC30-16QWB -DC a +DC a -DC b +DC b DC Sinking Input Configuration Inputs Inputs 00...09 indicates high-speed inputs and outputs +DC c -DC c COM0 I-01 I-03 I-04 I-06 I-08 1 2 3 4 5 6 7 8 9 10 11 12 I-00 I-02 COM1 I-05 I-07 I-09 +DC24 CM0 CM1 CM2 CM3 O-04 1 2 3 4 5 6 7 8 9 10 11 12 -DC24 O-00 O-01 O-02 O-03 O-05 CR CR CR CR L1 a L1 b +DC d L2 a L2 b -DC d IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 51 Chapter 3 Migration Considerations L1 L2 2080-PS120-240VAC L N +24 VDC -24 VDC indicates high-speed inputs and outputs 2080-LC30-24QWB DC Sinking Inputs Inputs 00...13 Sourcing:+DC a Sinking: -DC a Sourcing:-DC a Sourcing:+DC b Sinking: +DC a Sinking: -DC b Sourcing:-DC b Sinking: +DC b COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13 +DC24 CM0 CM1 CM2 O-03 O-05 O-06 O-08 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 O-00 O-01 O-02 O-04 CM3 O-07 O-09 CR +DC c L1 b L1 c -DC c L2 b CR CR CR CR +DC c L2 c -DC c IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. 2080-LC30-48QWB DC Sinking Inputs Inputs 00...27 -DC a +DC a -DC b +DC b -DC c +DC c -DC d +DC d COM0 I-01 I-03 I-05 I-06 I-08 I-10 COM2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12 I-13 I-15 I-17 I-19 I-20 I-22 I-24 I-26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27 +DC24 CM0 1 23 4 -DC24 O-00 CM1 56 O-01 CM2 CM3 7 8 9 10 O-02 O-03 CM4 CM5 11 12 13 14 O-04 O-05 CM6 15 16 O-06 CM7 O-08 O-10 CM8 O-13 O-15 O-16 O-18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 O-07 O-09 O-11 O-12 O-14 CM9 O-17 O-19 +DC e -DC e CR CR CR CR L1 a L1 b L1 c +DC f +DC g +DC h L2 a L2 b L2 c -DC f -DC g -DC h +DC i CR CR CR CR CR CR CR CR +DC j +DC k -DC i -DC j -DC k IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. 52 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 2080-LC30-16AWB L2 a Migration Considerations Chapter 3 L1 a L2 b L1 b COM0 I-01 1 23 I-00 I-03 I-04 4 5678 I-02 COM1 I-05 I-06 9 10 I-07 I-08 11 12 I-09 +DC24 CM0 CM1 CM2 CM3 O-04 1 2 3 4 5 6 7 8 9 10 11 12 -DC24 O-00 O-01 O-02 O-03 O-05 CR +DC a CR CR CR -DC a L1 c L1 d +DC b L2 c L2 d -DC b 2080-LC30-16AWB has no high-speed inputs. IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. 2080-LC30-48AWB L2 a L1 a L2 b L1 b L2 c L1 c L2 d L1 d COM0 I-01 I-03 I-05 I-06 I-08 I-10 COM2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12 I-13 I-15 I-17 I-19 I-20 I-22 I-24 I-26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27 +DC24 CM0 1 23 4 -DC24 O-00 CM1 56 O-01 CM2 CM3 7 8 9 10 O-02 O-03 CM4 CM5 11 12 13 14 O-04 O-05 CM6 15 16 O-06 CM7 O-08 O-10 CM8 O-13 O-15 O-16 O-18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 O-07 O-09 O-11 O-12 O-14 CM9 O-17 O-19 +DC a CR CR CR CR CR CR CR CR CR CR -DC a L1 e L1 f +DC b +DC c +DC d +DC e +DC g L1 g L2 e L2 f -DC b -DC c -DC d -DC e +DC f -DC f -DC g L2 g 2080-LC30-48AWB has no high-speed inputs. IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 53 Chapter 3 Migration Considerations 2080-LC30-48QBB DC Sinking Inputs Inputs 00...27 -DC a +DC a -DC b +DC b -DC c +DC c -DC d +DC d COM0 I-01 I-03 I-05 I-06 I-08 I-10 COM2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12 I-13 I-15 I-17 I-19 I-20 I-22 I-24 I-26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27 +DC24 +CM0 O-01 O-03 +CM1 1 2 3 4 5 6 7 8 9 10 -DC24 O-00 O-02 -CM0 O-04 O-05 O-07 O-09 11 12 13 14 15 16 O-06 O-08 -CM1 +CM2 O-11 O-13 O-15 +CM3 O-17 O-19 NC 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 O-10 O-12 O-14 -CM2 O-16 O-18 -CM3 NC +DC e +DC f -DC e +DC g -DC f -DC g +DC h indicates high-speed inputs and outputs +DC i -DC h -DC i IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. L1 L2 2080-PS120-240VAC L N +24 VDC -24 VDC Micro850 Controller Wiring 2080-LC50-24AWB Inputs L2 a L1 a L2 b L1 b COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13 +DC24 CM0 CM1 CM2 O-03 O-05 O-06 O-08 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 O-00 O-01 O-02 O-04 CM3 O-07 O-09 CR +DC c L1 b L1 c -DC c L2 b CR CR CR CR +DC c L2 c -DC c IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. 54 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 L1 L2 2080-PS120-240VAC L N +24 VDC -24 VDC L1 L2 2080-PS120-240VAC L N +24 VDC -24 VDC 2080-LC50-24QWB Inputs Sourcing:+DC a Sinking: -DC a Migration Considerations Chapter 3 Sourcing:-DC a Sourcing:+DC b Sinking: +DC a Sinking: -DC b Sourcing:-DC b Sinking: +DC b COM0 I-01 1 23 4 I-00 I-02 I-03 56 I-04 I-05 78 I-06 I-07 I-08 9 10 11 12 COM1 I-09 I-10 13 14 I-11 I-12 15 16 I-13 +DC24 CM0 CM1 CM2 O-03 O-05 O-06 O-08 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 O-00 O-01 O-02 O-04 CM3 O-07 O-09 CR +DC c L1 b L1 c -DC c L2 b CR CR CR CR +DC c L2 c -DC c IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. 2080-LC50-24QBB Inputs Sourcing:+DC a Sinking: -DC a Sourcing:-DC a Sourcing:+DC b Sinking: +DC a Sinking: -DC b Sourcing:-DC b Sinking: +DC b COM0 I-01 1 23 4 I-00 I-02 I-03 56 I-04 I-05 78 I-06 I-07 I-08 9 10 11 12 COM1 I-09 I-10 13 14 I-11 I-12 15 16 I-13 +DC24 +CM0 O-01 +CM1 O-03 O-05 O-07 O-09 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 O-00 -CM0 O-02 O-04 O-06 O-08 -CM1 CR CR +DC d +DC e -DC d -DC e IMPORTANT Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 55 Chapter 3 Migration Considerations L1 L2 2080-PS120-240VAC L N +24 VDC -24 VDC Micro870 Controller Wiring 2080-LC70-24AWB Inputs L2 a L1 a L2 b L1 b COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13 +DC24 CM0 CM1 CM2 O-03 O-05 O-06 O-08 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 O-00 O-01 O-02 O-04 CM3 O-07 O-09 CR +DC c L1 b L1 c -DC c L2 b CR CR CR CR +DC c L2 c -DC c IMPORTANT · Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. · In Micro870 systems that use more than four Micro800 Expansion I/O modules, we recommend using a 1601-XLP60EQ power supply instead of a 2080-PS120-240VAC power supply. Make sure to wire both the Micro870 controller and 2085-EP24VDC expansion power supply to the same 1601-XLP60EQ power supply. 56 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 L1 L2 2080-PS120-240VAC L N +24 VDC -24 VDC Migration Considerations Chapter 3 2080-LC70-24QWB, 2080-LC7024QWBK Inputs Sourcing:+DC a Sinking: -DC a Sourcing:-DC a Sourcing:+DC b Sinking: +DC a Sinking: -DC b Sourcing:-DC b Sinking: +DC b COM0 I-01 I-03 I-05 I-07 I-08 I-10 I-12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I-00 I-02 I-04 I-06 COM1 I-09 I-11 I-13 +DC24 CM0 CM1 CM2 O-03 O-05 O-06 O-08 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 O-00 O-01 O-02 O-04 CM3 O-07 O-09 CR +DC c L1 b L1 c -DC c L2 b CR CR CR CR +DC c L2 c -DC c IMPORTANT · Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. · In Micro870 systems that use more than four Micro800 Expansion I/O modules, we recommend using a 1601-XLP60EQ power supply instead of a 2080-PS120-240VAC power supply. Make sure to wire both the Micro870 controller and 2085-EP24VDC expansion power supply to the same 1601-XLP60EQ power supply. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 57 Chapter 3 Migration Considerations L1 L2 2080-PS120-240VAC L N +24 VDC -24 VDC 2080-LC70-24QBB, 2080-LC70-QBBK Inputs Sourcing:+DC a Sinking: -DC a Sourcing:-DC a Sourcing:+DC b Sinking: +DC a Sinking: -DC b Sourcing:-DC b Sinking: +DC b COM0 I-01 1 23 4 I-00 I-02 I-03 56 I-04 I-05 78 I-06 I-07 I-08 9 10 11 12 COM1 I-09 I-10 13 14 I-11 I-12 15 16 I-13 +DC24 +CM0 O-01 +CM1 O-03 O-05 O-07 O-09 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 -DC24 O-00 -CM0 O-02 O-04 O-06 O-08 -CM1 CR CR +DC d +DC e -DC d -DC e IMPORTANT · Do not connect DC24 (Output terminal 2) to Earth/Chassis Ground. · In Micro870 systems that use more than four Micro800 Expansion I/O modules, we recommend using a 1601-XLP60EQ power supply instead of a 2080-PS120-240VAC power supply. Make sure to wire both the Micro870 controller and 2085-EP24VDC expansion power supply to the same 1601-XLP60EQ power supply. 58 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 4 Chapter Convert a MicroLogix Project to a Micro800 Project Overview Before You Begin This chapter describes two ways that you can convert your existing MicroLogix project to a Micro800 project convert the project manually, or use the MicroLogix to Micro800 Converter tool. There is a new feature in Connected Components Workbench software version 12 or later that changes the instructions to be more similar to RSLogix 500/ RSLogix Micro. This feature is called the Logix theme and the purpose is to switch Connected Components Workbench software instructions into RSLogix 500/RSLogix Micro instructions. If you use Connected Components Workbench software version 11, you can get this feature by downloading the feature pack software update. Overview of Program Execution A Micro800 cycle or scan consists of reading inputs, executing programs in sequential order, updating outputs, and performing housekeeping (datalog, recipe, communications). Program names must begin with a letter or underscore, followed by up to 127 letters, digits, or single underscores. Use programming languages such as ladder logic, function block diagrams, and structured text. Up to 256 programs can be included in a project, depending on available controller memory. By default, the programs are cyclic (executed once per cycle or scan). As each new program is added to a project, it is assigned the next consecutive order number. When you start up the Project Organizer in Connected Components Workbench software, it displays the program icons based on this order. You can view and modify an order number for a program from the program properties. However, the Project Organizer does not show the new order until the next time the project is opened. The Micro800 controller supports jumps within a program. Call a subroutine of code within a program by encapsulating that code as a User Defined Function (UDF) or User Defined Function Block (UDFB). A UDF is similar to a traditional subroutine and uses less memory than a UDFB, while a UDFB can have multiple instances. Although a UDFB can be executed within another Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 59 Chapter 4 Convert a MicroLogix Project to a Micro800 Project UDFB, a maximum nesting depth of five is supported. A compilation error occurs if this limit is exceeded. This limit also applies to UDFs. Alternatively, you can assign a program to an available interrupt and have it executed only when the interrupt is triggered. A program assigned to the User Fault Routine runs once before the controller goes into Fault mode. Besides the User Fault Routine, Micro800 controllers also support two Selectable Timed Interrupts (STI). STIs execute assigned programs once every setpoint interval (1...65535 ms). The Global System Variables that are associated with cycles/scans are: · __SYSVA_CYCLECNT Cycle counter · __SYSVA_TCYCURRENT Current cycle time · __SYSVA_TCYMAXIMUM Maximum cycle time since last start. Execution Rules This section illustrates the execution of a program. The execution follows four main steps within a loop. The loop duration is a cycle time for a program. 1. Read inputs 1 2. Execute POUs(1)/programs 2 3. Write outputs 3 4. Housekeeping (datalog, 4 recipe, communications) 1 2 (1) Program Organizational Unit. 3 When a cycle time is specified, a resource waits until this time has elapsed before starting the execution of a new cycle. The POUs execution time varies depending on the number of active instructions. When a cycle exceeds the specified time, the loop continues to execute the cycle but sets an overrun flag. In such a case, the application no longer runs in real time. When a cycle time is not specified, a resource performs all steps in the loop then restarts a new cycle without waiting. For more information, see the chapter, "Program Execution in Micro800 Controllers" in the Micro830, Micro850, and Micro870 Programmable Controllers User Manual, publication 2080-UM002. 60 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 High-Speed Counter High-Speed Counter (HSC) is available in Micro800 controllers, however configuration and operation is done through Connected Components Workbench software instructions. The more common HSC configuration can be done from the software interface, however doing it through instructions gives you access to all configuration options. See the HSC example under the Logix examples section later in this chapter. RSLogix Emulate 500 to Micro800 Simulator While you can emulate your MicroLogix program in RSLogix Emulate 500, you can also do the same now for a Micro800 program with the new Micro800 Simulator feature in Connected Components Workbench software version 12 or later. The new Micro800 Simulator feature allows you to do more than emulate running your program you can create your own virtual wiring, manipulate input signals in the simulator interface, and interact with the simulator with a customized simulator program. Logix Theme The Logix theme can be selected from the navigation bar. When you change to the Logix theme, all your ladder diagram instructions names are updated to how they were named in the RSLogix 500/RSLogix Micro software. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 61 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Instruction in Default Theme The following example shows the difference in instruction names between the two themes. Instruction in Logix Theme Interrupt There are a few types of interrupts in the Micro800 controller The User Fault Routine, Event Input Interrupt (EII), Selectable Timed Interrupt (STI), and High-Speed Counter (HSC) (applicable to embedded HSC only). These interrupts are configurable under the controller branch. For more information on interrupts, see the Connected Components Workbench software help. It is important to understand how to configure your own interrupt because the MicroLogix to Micro800 Converter tool does not handle it. You have to identify and configure interrupts manually. For an example of how to configure an interrupt, see Configure Interrupts on a Micro800 Controller on page 179. 62 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 Copy and Paste Code Between Software In Connected Components Workbench software version 12 or later, the copy and paste function is greatly enhanced. You can copy code (ladder rungs) from RSLogix 500/RSLogix Micro software and paste it directly into Connected Components Workbench software. For example, when you are migrating from MicroLogix controllers to Micro800 controllers, besides using the MicroLogix to Micro800 Converter tool, you can also copy the entire ladder diagram from your RSLogix 500/RSLogix Micro project and paste it into your Connected Components Workbench project. This enhancement makes reusing code easy. After you paste the code into your Connected Components Workbench project, there are cases where you are required to make some changes manually. These cases are categorized as supported instruction, semi-supported instruction, and unknown instructions. The following sections briefly explain what to expect when you copy and paste a program. Supported Instruction This group of instructions have identical functions to their respective instruction in RSLogix 500/RSLogix Micro software. Generally, you do not have to make any changes when you copy and paste such code. Most of the operator type instructions work like this, such as ADD, SUB, EQU. Semi-supported Instructions This category applies to slightly more advanced instructions. Timer and counter are two such instructions because when you copy and paste them into Connected Components Workbench software, some feature or parameter does not match. You must verify the logic and make necessary changes. For example, when you paste a PID instruction from RSLogix 500/RSLogix Micro software to Connected Components Workbench software, the instruction is not identical. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 63 Chapter 4 Convert a MicroLogix Project to a Micro800 Project You have to convert the parameters and its associated output in the program manually. PID instruction in RSLogix 500/ RSLogix Micro software PID instruction in Connected Components Workbench software Unsupported Instruction When you see `UNK:xxx' in the Ladder Text Input box, it means that the `xxx' instruction is not supported in Connected Components Workbench software. For example, program control instructions such as JSR, SBR, and MCR are treated as unknown instructions (UNK) as they are not required in Connected Components Workbench software. Sometimes an unknown instruction can result from converting a semi-supported instruction. When an RSLogix 500/RSLogix Micro instruction is converted to a Connected Components Workbench instruction that has fewer parameters, the excess parameters are dropped and considered as UNK. To determine how to configure the instruction, see the Connected Components Workbench software help. TOF instruction in RSLogix 500/ RSLogix Micro software The instruction is configured with a two second delay. TOF instruction in Connected Components Workbench software The unknown instruction`0'is dropped out of the TOP instruction. 64 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 What You Need Convert a MicroLogix Project to a Micro800 Project Chapter 4 You need the following software to perform the conversion. · Connected Components Workbench software version 12 or later. · RSLogix 500/RSLogix Micro software. Convert Your Project with the Converter Tool The general steps to convert your project with the MicroLogix to Micro800 Converter tool can be summarized as follows: 1. Save the RSLogix 500/RSLogix Micro Project as an SLC File 2. Run the MicroLogix to Micro800 Converter Tool 3. Convert the SLC File to a Connected Components Workbench Project 4. Understand the Conversion Process 5. Resolve Compilation Errors Save the RSLogix 500/RSLogix Micro Project as an SLC File 1. Open the RSLogix 500/RSLogix Micro project file (.RSS) that you want to convert. 2. Save the opened project file as a .SLC file with the following settings: · Save as type = Library Files (*.SLC) · Export database = Selected · Export File types = Logix Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 65 Chapter 4 Convert a MicroLogix Project to a Micro800 Project 3. Click Save. The Export SLC Format dialog box displays. 4. Click OK. The Export Results dialog box displays. 5. Click OK to close the dialog box. MicroLogix to Micro800 Converter Tool The benefits of using the MicroLogix to Micro800 Converter tool would be faster conversion time and that the instructions have similar input/output parameters to MicroLogix instructions. However, there is larger memory consumption by the User-Defined Function Block (UDFB) programs. IMPORTANT The converter tool only supports MicroLogix controllers. The tool does not work with other controllers even if you convert their project files to .SLC files. For general information about the converter tool, see the MicroLogix to Micro800 Converter tool help. 66 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 Download and Install Connected Components Workbench Software 1. Open the following link on your browser: https://www.rockwellautomation.com/rockwellautomation/support/ pcdc.page 2. Click Find Downloads. The Find Downloads page displays. 3. Enter the keyword `CCW' in the search bar. 4. Select Connected Components Workbench Standard Edition (select Developer Edition if you have a valid activation key), then select version 12.00.00. 5. Click Downloads. The Downloads page displays. 6. Click the Show Downloads icon. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 67 Chapter 4 Convert a MicroLogix Project to a Micro800 Project The Available Downloads dialog displays. 7. Select the Connected Components Workbench software, then click Downloads. The Download Cart dialog displays. 68 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 8. Click Download Now. If you are not signed-in to the website, you are prompted to do so. 9. Download and install the application. Run the MicroLogix to Micro800 Converter Tool There are two ways to run the MicroLogix to Micro800 Converter tool: · From the Connected Components Workbench menu, Select Tools -> MicroLogix Library Converter. The MicroLogix to Micro800 Converter tool dialog displays. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 69 Chapter 4 Convert a MicroLogix Project to a Micro800 Project · By command-line execution The command must be executed in the Connected Components Workbench installation directory with the following syntax: CCW.Shell.exe/MicroLogixConv SourceSlcFilePath TargetCatalogID [optionConcatenateComment] Argument SourceSlcFilePath TargetCatalogID optionConcatenateComment Description Provides the path to the .slc file to be converted. Specifies the Catalog ID for the target controller. Has a value of either True or False. Determines whether the instruction description is shortened to just the comment. In the following example, the SLC file that is named `Pick and Place' is converted for use with a Micro830 controller (catalog number 2080-LC30-16QWB) and to not concatenate the instruction descriptions. Convert the SLC File to a Connected Components Workbench Project 1. Run the MicroLogix to Micro800 Converter tool. From the Connected Components Workbench menu, select Tools -> MicroLogix Library Converter. 2. Under MicroLogix Source, do the following: a. In Source Project (*.SLC), locate your saved SLC file. Verify that the documentation files are in the same directory. b. Select one or more documentation files with the same name checkbox. 3. Under Micro800 Target, a compatible Micro800 catalog number automatically populates the catalog ID field. If you want, you can select another catalog number. TIP The MicroLogix to Micro800 Converter tool help lists the recommendations for which MicroLogix controller is converted to which Micro800 controller. 4. Under Option, select the checkbox if you want to concatenate the instruction description to variable comment. 5. Click OK to generate the Connected Components Workbench project. Once the project is converted, you must make additional changes before it can be used. If you build the project immediately after conversion, there are many errors 70 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 and warning messages. Follow the rest of this guide to understand what the errors mean and how to resolve them. MicroLogix embedded I/O terminals Understand the Conversion Process The MicroLogix to Micro800 Converter tool helps to convert your program, I/O table, and user documentation at a basic level. As a result, if you compile your project immediately after conversion, there are many errors and warnings. This section describes what the converter tool does and explains why those errors and warnings appear. Automatically Rename Embedded I/O When you convert a project, all embedded I/O are renamed automatically. For example, I:0/0 is renamed to _IO_EM_DI_00. If all embedded points are converted properly, you do not need to reassign any I/O. Micro800 embedded I/O terminals When the target controller does not have enough embedded I/O, the converted variable name is marked with a warning sign. However, there are some situations where you must reassign I/O. For example, when you migrate from a 40-point MicroLogix controller with five or six expansion I/O modules, to a 24-point Micro870 controller. Since only Micro870 controllers support more than four expansion I/O modules, you must assign the remaining MicroLogix embedded I/O points to the Micro870 expansion I/O modules. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 71 Chapter 4 Convert a MicroLogix Project to a Micro800 Project The converter tool version 5.0 does not reassign terminals on the expansion I/O modules automatically. This behavior can cause confusion as the converter tool renames the terminals on the modules to the Micro800 embedded I/O terminals, and results in duplicate outputs. To resolve this error, you have to rename all expansion I/O addresses. A recommended method is to create a Long data file (For example, L9) and rename all expansion I/O addresses to the bit address of the data file. For example, rename the address I:6/31 to L9:6/31, retaining the slot and channel number for reference. With this method, when you migrate into Connected Components Workbench software, L9:6/31 is renamed to L9[6].31. Since the slot and channel number information is converted into the new array data format, it is easy to reassign them manually to the respective I/O terminal on the Micro800 expansion module. This address, L9[6].31 can be denoted as channel 31 of the sixth expansion module on the MicroLogix controller. This method makes it easy to map the I/O onto a Micro800 expansion module. Program and Subroutine If the project is converted successfully, there is only one ladder diagram in your program file and the rest of the ladder programs are located under the UserDefined Functions (UDFs) branch. The converter tool converts subroutines into UDFs and your program calls these functions in the main routine. However, if any of the subroutines is initiated by an interrupt, you must convert the interrupt routine manually. See the Connected Components Workbench software help on 72 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 how to create an interrupt program. You can also see Configure Interrupts on a Micro800 Controller on page 179 for more information. RSLogix 500/RSLogix Micro Connected Components Workbench MicroLogix Instructions Most of the compilation errors are generated due to instructions. Not all MicroLogix instructions have their equivalent in Micro800 instructions. Some instructions are similar but have differences that require minor changes to make the Micro800 instructions behave the same as the MicroLogix instruction. The help file for the converter tool contains a list of the supported and unsupported MicroLogix instructions. Unsupported instructions are probably not needed anymore due to the difference in design between MicroLogix controllers and Micro800 controllers. For supported instructions, there are a few categories as described here. · Direct Replacement MicroLogix instructions that fall under this category are basic instructions such as coil, contact, and basic math instructions such as ADD, SUB, MUL. · Similar Replacement MicroLogix instructions that fall under this category means that the same instruction is available in Micro800 controllers, but the instruction has less or more parameters. The Micro800 instructions function slightly differently, but they can easily be configured to achieve the same result as the MicroLogix instructions. Examples of similar instructions are ONS, OSF, OSR, counter, and timer. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 73 Chapter 4 Convert a MicroLogix Project to a Micro800 Project · UDFB Placeholder MicroLogix instructions that fall under this category require more effort to resolve. For example, the MicroLogix PWM instruction. A UDFB placeholder is a function block without code, or empty function block. Since a Micro800 controller has its own timer, you are expected to use this timer to develop your own PWM function within the block. Alternatively, an example of the Micro800 PWM UDFB code is available on the Rockwell Automation Sample Code Library at https:// www.rockwellautomation.com/global/sample-code/overview.page. This code is not identical to the MicroLogix PWM instruction, but you can use it as a guide to configure the UDFB to suit your application. · UDFB Replacement MicroLogix instructions that fall under this category are replaced automatically by the converter tool. UDFBs that replace supported MicroLogix instructions are developed to behave as close as possible to the original instruction. Examples of UDFBs are RA_TON_MICROLOGIX, RA_CTD_MICROLOGIX, and RA_CTU_MICROLOGIX. Data Table Addresses The MicroLogix processors store all data in global data tables. You can access this data by specifying the address of the data you want. A Micro800 controller supports data that is local to a program, and data that is global to all tasks within the controller. A Micro800 controller can also share data with other controllers, and instead of addresses, you use tags to access the data you want. Each MicroLogix data table file can store several words of related data. A Micro800 controller uses arrays to store related data. The converter tool converts the MicroLogix data table files to Micro800 arrays. 74 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 With a Micro800 controller, you use a tag (alphanumeric name) to address data (variables). The controller uses the tag name internally and does not need to cross-reference a physical address. The following are some examples of how a MicroLogix data table is mapped to Micro800 variables. MicroLogix Address N7:500 N17:25 R6:100 C5:0 T4:6 I:0/5 O:0/4 Map to Micro800 Address N7[500] N17[25] R6[100] C5[0] T4[6] _IO_EM_DI_05 _IO_EM_DO_04 For an extended list of examples, see the MicroLogix to Micro800 Converter tool help. User Documentation If the Logix database was exported when your RSLogix project as a .SLC file, the symbols, address comments, instruction comments, and rung comments in the program are preserved. There are some limitations on the number of characters and descriptions for the comments. For example, certain strings become concatenated. To understand more about this limitation, see the help file for the converter tool for details. Unconverted Project Components The following is a list of components that are not converted. Project Component Status data file features Data file properties Index and indirect addressing for Status, Input, and Output data files Controller configuration I/O data tables I/O configuration Interrupts Passwords Indirect addressing Function files Corrective Action Although the status file is not supported, certain status file functions are available in Micro800 controllers. For example, `First Scan' is available as a system variable in Micro800 controllers. Addressing in Micro800 controllers is based on tags. These tags can be manipulated manually. Handle this component programmatically. Configure the controller manuall.y Add the I/O manually. Configure the I/O manually. Configure the interrupts manually. Configure the controller password manually. Implement indirect addressing manually. The design of Micro800 controllers eliminates the use of function files, but configuration of functions is done through instructions or I/O configuration. Instructional behavior differences are described in RLL Instruction Mapping on page 99. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 75 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Resolve Compilation Errors This section describes how to handle the various errors that were described in the previous section. Application-related issues due to behavior differences between MicroLogix instructions and Micro800 instructions are not covered. The focus is on to solve error messages that are generated from the conversion. Expecting an Output or Memory BOOL Variable UDFBs Most of the time this error message appears due to the UDFB placeholders. Since most instructions are converted into UDFBs, there may be many empty blocks that require your attention. Developing the application code for these UDFBs helps to resolve a significant number of errors because a particular UDFB function may be used multiple times within a project. Expecting a REAL Type Variable or Constant Data Type Instruction parameter data type is difference between MicroLogix controllers and Micro800 controllers. Many of the INT arrays that are created by the converter tool are used in Micro800 instructions that require a REAL data type. Resolving data type errors typically reduces the number of errors significantly. 76 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 Undeclared Identifier Variable not Declared This variable arises from a converted project and is an indication that the MicroLogix address format is not supported. The converter tool automatically renames the address to something that is supported. You must resolve this error programmatically. The following is an example of the indirect addressing error. MicroLogix Address Format Converted Micro800 Variable Notes on a Converted Pick and Place Application The converted SLC file appears similar to the following: · By default, the Interrupt3_USER_FAULT POU program is created. From the RSLogix 500/RSLogix Micro project, the MAIN_PROG (Lad 2) program is converted to "MAIN_PROG" in Connected Components Workbench, while USER_FAULT (Lad 3), HSC_INT (Lad 4), STI_INT (Lad 5), and Lad 6 to Lad 16 from the RSLogix 500/RSLogix Micro project are converted to a User Defined Function Block (UDFB). · The converter tool adds other Interrupts (for example, Interrupt4_HSC_INT) if any HSC-related instructions are present in the project. You can configure it to an interrupt from the controller configuration section or delete the interrupt program if the interrupt is not needed in the program. · For this project, the Interrupt3_USER_FAULT can be deleted when not in use. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 77 Chapter 4 Convert a MicroLogix Project to a Micro800 Project · For Jump to Subroutine ( JSR), the converter tool creates a call to the UDFB (subroutine that is called in JSR) in the program. · The following data types are converted into an array (under Global Variables). · The partially supported MicroLogix 1000 instructions are converted into a user-defined function block (UDFB) that contains logic to perform the function of the MicroLogix instruction. Refer to the converter tool help for more information about the fully supported, partially supported, and unsupported MicroLogix 1000 instructions. · Results are displayed in the Output and Error List windows at the end of the conversion process, and stored in the conversion log file. The Error List window provides information about the items in that did not fully convert from your source project to your new project. The Output window displays the location of the Conversion Report in CSV format, where you can find all information from the Error list. Once no errors are encountered and all warnings have been addressed, save the project and test to see if it has the desired behavior. 78 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 See Appendix B to view the Pick and Place project in RSLogix 500/RSLogix Micro and in Connected Components Workbench after you have used the converter tool. Convert Your Project Manually To migrate all your existing RSLogix 500/RSLogix Micro project code, you have to create a Connected Component Workbench project with a similar structure. This section describes how to create your original program structure in the Connected Components Workbench software environment and how to handle I/O addressing differences. The general steps for manual conversion can be summarized as follows: · Generate an Existing RSLogix 500/RSLogix Micro Project Report · Create Equivalent Program Files · Create Representative Data Files · Create Equivalent Logic in Program File Generate an Existing RSLogix 500/RSLogix Micro Project Report The RSLogix 500/RSLogix Micro report for your application contains information such as a program file list, a data file list, and ladder diagrams. This information is used as reference when creating a program in Connected Components Workbench software. 1. Open the existing RSLogix 500/RSLogix Micro project. 2. Go to File -> Report Options. 3. Modify the report options as necessary. 4. Click Print. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 79 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Create Equivalent Program The program execution between MicroLogix controllers and Micro800 Files controllers is different. To understand more about Micro800 controller execution order, review the earlier section Overview of Program Execution on page 59. To create the equivalent program files for your RSLogix 500/RSLogix Micro project in Connected Components Workbench software, do the following. 1. Launch the Connected Components Workbench software. 2. Click New. 3. Enter a project name and click Create. Verify that add device on create checkbox is selected, otherwise the add device menu does not appear. 4. From the device catalog, expand `Controllers' and select your target controller. You can see the earlier section to determine a suitable target controller. 5. Select the latest firmware revision and click Add to Project. 6. In the Project Organizer, right-click Program to add a ladder diagram as your main routine. Take note that subsequent programs are not subroutine. All programs under project organizer are executed in sequential order, unless they are configured for STI or interrupt. You can incorporate all subroutine logic into one ladder diagram or create a UDF or UDFB to replace the subroutine. Create UDF or UDFB to Replace Subroutine 1. Right-click UDFB or UDF under project organizer and add a ladder diagram. 2. Rename the ladder diagram according to your subroutine. 80 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 3. Repeat these steps until a UDF or UDFB has been created for each subroutine. 4. Save your project. Create Representative Data Files Use the report that is generated for your project as a reference to create representative data files in Connected Components Workbench software by configuring the variables for the project. If your configuration requires expansion I/O modules, do it here. This section provides some guidance for configuring embedded I/O, binary file, and integer file. If your project requires you to configure more data files for expansion I/O or other data types, use this section as a guide to continue configuring the other data files. The following data files are used in the examples in this section: · Output (O0) · Input (I1) · Binary (B3) · Integer (N7) Set Up Embedded I/O Variables 1. On the Project Organizer panel, double-click Global Variables. 2. Create an alias for the embedded I/O following the comments in RSLogix 500 software. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 81 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Follow this Connected Components Workbench I/O addressing: · OUTPUT (O0) = _IO_EM_DO_XX (For example, O:0/0 = _IO_EM_DO_00) · INPUT (I1) = _IO_EM_DI_XX (For example, I:1/0 = _IO_EM_DI_00) Embedded I/O Address in RSLogix Connected Components 500/RSLogix Micro Software Workbench Global Variable Name O:0/1 _IO_EM_DO_01 O:0/2 _IO_EM_DO_02 Alias in Connected Components Workbench Software Motor Forward Motor Reverse Substitute Binary (B3) and Integer (N7) Data Files Create arrays to substitute the data files BINARY (B3) and INTEGER (N7) in Connected Components Workbench software. You need Connected Components Workbench software version 8 or later to support array of integer bit addressing. 1. On the Project Organizer panel, double-click Global Variables. 2. Enter the N7 and B3 variables as shown in the following example: 82 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 Set Up Variables for Index Addressing In this example, Index Addressing is used to store the encoder counts of the bin locations (total eight bins). The section shows the steps for configuring the variables that are needed for programming Index Addressing in Connected Components Workbench software. Programming steps are shown in Program Index Addressing on page 84. 1. On the Project Organizer panel, under MAIN_PROG, double-click Local Variables. 2. Add the following variables: Name Offset_Value Base_Address Offset_Address Data Type DINT DINT DINT · Offset_Value is the equivalent of the Index Register (S:24 in RSLogix 500) · The sum of the Offset_Value and Base_Address is the Offset_Address. · The data stored at N7[Offset_Address] is then passed to N7[2]. Create Equivalent Logic in Program File This section describes how to transfer the logic from an RSLogix 500/RSLogix Micro program. In Connected Components Workbench software version 12 or later, copy and paste between the RSLogix 500/RSLogix Micro and Connected Components Workbench software environment is supported. You can select all logic in an RSLogix 500/RSLogix Micro program, copy, and paste it into a Connected Components Workbench program. However not all instructions are supported. Therefore, some rungs do not appear as expected. You must fix the unsupported instructions and syntax-related errors manually. 1. To paste code from an RSLogix 500/RSLogix Micro program, you must change Connected Components Workbench software to the Logix theme. This theme allows the ladder editor to understand the code that is being pasted. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 83 Chapter 4 Convert a MicroLogix Project to a Micro800 Project 2. Copy your main program (LAD 2) from the RSLogix project and paste it in your main ladder diagram of your Connected Components Workbench project. 3. Since Connected Components Workbench software does not support the JSR instruction, you must replace all JSRx instructions with their respective UDFB or UDF that were created previously. a. Double-click the JSRx instruction to bring up the Instruction Block Selector. b. Search for the respective UDF or UDFB. c. Select it and click OK to insert. d. Repeat step 3 until all JSRx instructions have been replaced with their respective UDF or UDFB. 4. Copy the logic from the subroutine and paste them into their respective UDFB or UDF that were created for them. Logix Examples Here are some program examples to show how things are done in the Connected Components Workbench software environment. For more information, see the Connected Components Workbench software help. Program Index Addressing In the RSLogix 500/RSLogix Micro project, Index Register is used to select the proper bin location from the table starting at N7:10. In Connected Components Workbench software, we replace it with N7[10], which was created earlier. The following ladder program enables indexed addressing to be used in Connected Components Workbench software. 84 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 1. Add a rung. On the Toolbox panel, double-click Rung. A new rung displays. 2. Add a + (Addition) instruction block to rung 4. On the Toolbox panel, drag Instruction Block into the blank rung and select MOV from the Instruction Block Selector window. Enter the following parameters: · i1 = Output_Value · i2 = Base_Address · o1= Offset_Address Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 85 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Add a branch to the + instruction block. On the Toolbox panel, drag Branch and place it above the + (Addition) instruction block. 86 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 3. On the Branch, place a MOV instruction block with the following parameters: · i1 = N7[Offset_Value] · o1 = N7[2] This instruction block allows the program to move the data selected based on the Offset_Address to N7[2]. Program Timer On Delay (TON) Instruction The RSLogix 500/RSLogix Micro project also uses an on-delay timer. This section shows you how to configure the TON instruction in Connected Components Workbench software. 1. Add a rung. This rung is used to add the TON instruction block. On the blank rung, add the TON instruction block with the following parameters: Parameter PT ET Value (Example) T#1s (blank) Description Preset time. The time expression must begin with T# or TIME# prefix. The letter `s' must follow to indicate number of seconds. In this case, it is a 1 second on delay timer. Elapsed time. This parameter shows the current elapsed time. Assign a variable if you want to monitor the elapsed time. The rungs displays as follows: 2. Add a rung. This rung is used to add the Timer Done bit. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 87 Chapter 4 Convert a MicroLogix Project to a Micro800 Project 3. On the blank rung, add the following elements and their respective variables: · Reset Coil = _IO_EM_DO_02 · Set Coil = _IO_EM_DO_01 · Direct Contact = TON_1.Q The following graphic shows the converted rung that uses the TON instruction in Connected Components Workbench software: Program Pulse Train Output (PTO) Motion The PTO design for Micro800 controllers is the same as MicroLogix controllers, however the configuration, and programming is different. You can see article number 602158 on the Rockwell Automation Knowledgebase for guidance on how to setup and program PTO for your application. Program High Speed Counter (HSC) Instruction Programming the HSC instruction consists of two parts: · Loading the HSC parameters · Starting the HSC Loading the HSC parameters In RSLogix 500/RSLogix Micro software, the HSL instruction is required to configure the low and high presets, the output patterns, and mask bit patterns. In Connected Components Workbench software, only the HSC instruction is required. It can be used to start/stop HSC counter, to refresh HSC status, to reload HSC setting, and to reset HSC accumulator. 88 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 For more information, See the chapter "Use the High-Speed Counter and Programmable Limit Switch" in the Micro830, Micro850, and Micro870 Programmable Controllers User Manual, publication 2080-UM002. 1. Add a rung. This rung is used to add the HSC instruction block. 2. On the blank rung, add the HSC instruction block with the following parameters: Parameter HscCmd HscApp... HscStsln... PlsData Sts Value (Example) hs_0 hsapp_0 hsstats_0 hsp_0 (blank) Description HSC Commands HSC Configuration data HSC Status information Programmable Limit Switch Data The following rung shows the HSC instruction that is created in Connected Components Workbench software: 3. Add a rung. This rung is used to add the ANY_TO_UDINT and MOV instruction blocks. 4. On the blank rung, add the HSC and MOV instruction blocks with the following parameters: Instruction ANY_TO_UDINT ANY_TO_UDINT ANY_TO_DINT ANY_TO_UDINT ANY_TO_DINT Parameter i1 o1 i1 o1 i1 o1 i1 o1 i1 o1 Values N7[0] hsapp_0.OutputMask N7[1] hsapp_0.HPOutput N7[2] hsapp_0.HPSetting N7[3] hsapp_0.LPOutput N7[4] hsapp_0.LPSetting Details Output Mask High Preset Output High Preset Setting Low Preset Output Low Preset Setting Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 89 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Instruction MOV MOV MOV Parameter i1 o1 i1 o1 i1 o1 Values -1 hsapp_0.UFSetting 801 hsapp_0.OFSetting 7 hsapp_0.HscMode Details Underflow setting Overflow setting Quadrature Counter with external Reset and Hold Verify that proper values for the variables OFSetting, HPSetting, and UFSetting are set before triggering Start/Run for the HSC. Otherwise, the controller is faulted. It is optional to set a value for LPSetting for certain counting modes. The following rung shows the data assignment to the required HSC parameters. 90 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Build and Test Your Project Convert a MicroLogix Project to a Micro800 Project Chapter 4 Starting the HSC Before you enable the HSC function block, verify that HscCmd has been set to a valid value from 1...4. Otherwise, the controller is faulted. After you have created the equivalent RSLogix 500/RSLogix Micro program in Connected Components Workbench software, you must build and verify your project. Use an actual controller, or the Micro800 Simulator feature that is available in Connected Components Workbench software version 12 or later to perform the test. Depending on the method that you select, see the corresponding section for instructions on how to perform the test. · Test Project With the Micro800 Simulator · Test Project With a Physical Controller Test Project With the Micro800 Simulator The Micro800 Simulator is a unique type of controller in the Connected Components Workbench environment. You must change the existing controller in your project to use the simulation function. Connected Components Workbench software allows you to switch to the simulator controller seamlessly to test your code in the simulation environment. 1. Change controller to the simulator controller. a. Right-click the controller and select 'Change Controller...' b. Select the Micro850 simulator controller 2080-LC50-48QWB-SIM and click OK. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 91 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Another project is created for the simulator controller. Only selected I/O modules (plug-in and expansion) are supported in the simulator. Unsupported modules are removed from the simulator controller. If your original project uses any unsupported I/O module (for example, 2085-OW16), you must convert them to a supported I/O module before changing your controller. 2. Start and power on the simulator. a. Click the 'Start Micro800 Simulator' icon from the toolbar to launch the Micro800 Simulator. b. Click the `Synchronize' icon from the toolbar to sync your I/O configuration with the simulator. 92 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 c. Select the IP address of the simulator from the pull-down menu. d. Click the 'Power' icon to power on your simulator. 3. When the Micro800 Simulator is powered on, it appears in the FTLinx and RSLinx® software. You can download a project to the simulator as though it is a physical Micro800 controller. a. Right-click the controller and select Download. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 93 Chapter 4 Convert a MicroLogix Project to a Micro800 Project b. Select the Micro800 simulator in the RSLinx Connection Browser and click OK. 4. Test your application with Micro800 Simulator. a. Click an input terminal to turn on the corresponding digital input. 94 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 b. Enter a value in the input fields on the analog plug-in module. You cannot manipulate digital and analog outputs in the simulation environment because they are controlled by the program. 5. Click Device -> Exit to close the simulator. Test Project With a Physical Controller 1. Build the project by selecting Device -> Build from the menu. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 95 Chapter 4 Convert a MicroLogix Project to a Micro800 Project The Output window displays. The build result should show zero errors. 2. Download the project to the controller by selecting Device -> Download from the menu bar. The Connection Browser window displays. 3. Select the controller and click OK. 96 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Convert a MicroLogix Project to a Micro800 Project Chapter 4 The Download Confirmation dialog displays. 4. Select Download to download the project to the controller. Once the download is completed, the Download Confirmation dialog displays. 5. Click Yes to put the controller into RUN mode to test the program. 6. On the Project Organizer panel, double-click Main_PROG to show the ladder program. Active rungs are displayed in red and inactive rungs in blue. You can monitor the live values in the program. The program goes into Debug mode for Connected Components Workbench software version 8 or later. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 97 Chapter 4 Convert a MicroLogix Project to a Micro800 Project Notes: 98 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping 5 Chapter Overview The purpose of this chapter is to identify the functional difference between the Relay Ladder Logic (RLL) instructions of the RSLogix 500/RSLogix Micro and Connected Components Workbench software. The RSLogix 500/RSLogix Micro software are ladder logic programming packages for the MicroLogix processors. Connected Components Workbench software is used to develop programs for Micro800 controllers. The comparison only identifies the logic and behavioral differences and does not explain each instruction in detail. See the reference manual for more details. Definitions, Acronyms, and Abbreviations See the following table for definitions of terms used in this chapter. Term Definition RLL Relay Ladder Logic CCW Connected Components Workbench software MSB Most Significant Bit Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 99 Chapter 5 RLL Instruction Mapping Bit Shift BSL Description Shift bits to the left. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input F > T T > F F > F T > T Input Input Input Input Output Output Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input EN Level Triggered Input When rung goes from false to true, the data provided shifts to the left by one bit provided there are no errors When EN is TRUE, for 32-bit integers only, it performs a shift by NbS bits and places 0 in the LSB location. On a false rung, the EN, DN, and ER bits are reset. Do Nothing On a false rung, the EN, DN, and ER bits are reset. Do Nothing Do Nothing When EN is TRUE, for 32-bit integers only, it performs a shift by NbS bits and places 0 in the LSB location. File Immediate value or files that contain value IN 32-bit variable to be shifted. NbS Number of bits to be shifted. Bit Address Holds the bit value to be copied to the lowest bit position when the shift is made Not supported Length Provides the length of the bits file in the File that must be shifted. Minimum value is 16 bits. If less than that is provided, then also 16-bit shift is made. Not supported Control Contains the destination address of the control flags DN (done), UL (unloaded), and ER (error) flags are NOT supported File The output is in the same file as input SHL Provides the shifted output DN Indicates that the operation is over Not Supported EN Rung enable output ENO Rung enable output 100 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 Connected Components Workbench Software Limitations 1. The SHL instruction only provides a 32-bit data right shift. 2. There is NO indication of the last unloaded bit (UL) when a left shift is made. 3. It does not indicate that the operation is overusing a DN bit. 4. Does NOT have the provision to insert a bit at the lowest bit position of the input. In order words, Bit Address feature is not present. Behavioral Differences 1. The Connected Components Workbench SHL instruction shifts one 32bit data field. But the RSLogix BSL instruction can shift any size of bits; (for example, 34-bit or 48-bit field sizes) by 1. Example: With the following ladder example, the program shifts a 34-bit data field from the B3 data file: 2. Bits continue to shift until the MSB reaches the 15th bit position in the Binary Data File 3. The shift operation clears the index register S:24 to zero. Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for BSL is as follows: Table 1 - BSL Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files Address Mode(2) Address Level File Control ·· · · (1) Length Source ·· ··· (1) Control file only. Not valid for Timers and Counters. (2) See Important note about indirect addressing. · · · ·· ·· · · · · ··· O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 101 Chapter 5 RLL Instruction Mapping Parameter Data Type EN · IN NbS ENO SHL · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Supported Data Types in Micro800 Controllers · · · BSR Description Shift bits to the right. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input F > T T > F F > F T > T Input Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input EN Level Triggered Input When rung goes from false to true, the data provided shifts to the right by one bit provided there is no error When EN is TRUE, for 32-bit integers only, it performs a shift by NbS bits and places 0 in the MSB location. On a false rung, the EN, DN, and ER bits are reset. Do Nothing On a false rung, the EN, DN, and ER bits are reset. Do Nothing Do Nothing When EN is TRUE, for 32-bit integers only, it performs a shift by NbS bits and places 0 in the MSB location. File Immediate value or files that contain value IN 32-bit variable to be shifted. 102 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 IO Type Input Input Input Output Output Output Output RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters NbS Number of bits to be shifted. Bit Address Holds the bit value to be copied to the highest bit position when the shift is made Not supported Length Provides the length of the bits file in the File that must be shifted. Minimum value is 16 bits. If less than that is provided, then also 16-bit shift is made. Not supported Control Contains the destination address of the control flags DN (done), UL (unloaded), and ER (error) flags are NOT supported File The output is in the same file as input SHL Provides the shifted output DN Indicates that the operation is over Not Supported EN Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations 1. The SHR instruction only provides a 32-bit data right shift. 2. There is NO indication of the last unloaded bit (UL) when a right shift is made. 3. It does not indicate that the operation is overusing a DN bit. 4. Does NOT have the provision to insert a bit at the highest bit position of the input. In order words, Bit Address feature is not present. Behavioral Differences 1. The Connected Components Workbench SHR instruction shifts one 32bit data field. But the RSLogix BSR instruction can shift any size of bits (for example, 34-bit or 48-bit field sizes) by 1. Example: With the following ladder example, the program shifts a 34-bit data field from the B3 data file: 2. 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. 3. The shift operation clears the index register S:24 to zero. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 103 Chapter 5 RLL Instruction Mapping Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for BSR are as follows: Table 2 - BSR Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files Address Mode(2) Address Level O I S B T, C, R N F L ST MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element File ·· · · · · Control (1) Length Source ·· ··· · (1) Control file only. Not valid for Timers and Counters. (2) See Important note about indirect addressing. ·· ·· · · · · · ·· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Parameter Data Type Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · IN · NbS · ENO SHL · · 104 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 Communication MSG The MSG instruction 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 that a particular application requires determine the programming configuration requirements of the MSG instruction. Communication Considerations See the following chart for serial port and EtherNet/IPTM communications from MicroLogix 1000 controllers to Micro820/Micro830 controllers: RS-232 Communication (MicroLogix 1000) DF1 full-duplex (all 1761) Description Point-to-point DF1 half-duplex (1761 series D and later, 1761 analog controllers) DH-485 half-duplex (series C and later, 1761 analog controllers), requires 1761NET-AIC Ethernet Communication (MicroLogix 1000) Requires 1761-NET-ENI Single master, multiple slaves up to 255 devices Baud (300 to 38.4 kbps) slave to slave messaging RS-485, up to 32 devices Baud (9600/19200) Description -- Micro820 CIP Serial (embedded serial port/ 2080-SERIALISOL plug-in) Modbus RTU (embedded serial port/ 2080-SERIALISOL plug-in) Modbus RTU (embedded serial port/ 2080-SERIALISOL plug-in) Micro820 Embedded Ethernet Micro830 CIP Serial (embedded serial port/ 2080-SERIALISOL plug-in) Modbus RTU (embedded serial port/ 2080-SERIALISOL plug-in) Modbus RTU (embedded serial port/ 2080-SERIALISOL plug-in) Micro830 No embedded Ethernet, propose Micro850 Note: In some applications where DH485/ DF1 is required and Modbus RTU does not fit, you have the choice to migrate MicroLogix 1000 to MicroLogix 1100 or MicroLogix 1200 controller. For MicroLogix 1000 controllers, the MSG instruction is an output instruction that transfers data from one node to another on the DH-485 communication network. The instruction can be programmed as a write or read message. The target device can be another SLC 500 processor on the network, or a non-SLC 500 device, using the common interface file (485CIF file 9 in SLC 500 processors). The 485CIF protocol is also used for PLC2 type messages. For Micro800 controllers, refer to the following table for supported communication instructions. Function block MSG_CIPGENERIC MSG_CIPSYMBOLIC MSG_MODBUS MSG_MODBUS2 Description Send a CIP generic explicit message. Send a CIP symbolic explicit message. Send a Modbus message. Send a MODBUS/TCP message over an Ethernet Channel. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 105 Chapter 5 RLL Instruction Mapping The following table lists the communication protocols that the Modbus and CIPTM message function blocks support. Messaging Protocol Modbus/RTU client and server Modbus/TCP client and server Ethernet IP client and server CIP Serial client and server ASCII Communication media Use this function block Through a Serial port that is configured as Modbus RTU MSG_MODBUS Over the Ethernet instead of through MSG_MODBUS2 a serial port Through an embedded Ethernet channel MSG_CIPSYMBOLIC MSG_CIPGENERIC Ethernet cable or Serial cable MSG_CIPSYMBOLIC Through an RS-232 port configured See ASCII serial port instructions with an ASCII driver Comparison The MicroLogix supported data types for EQU, NEQ, GRT, LES, GEQ, and LEQ are as follows: Table 3 - EQU, NEQ, GRT, LES, GEQ, and LEQ Instructions Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(3) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC(2) PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Source A ······· ··· ··········· ·· Source B ······· ··· · ············ (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) Only use the High-Speed Counter Accumulator (HSC.ACC) for Source A in GRT, LES, GEQ, and LEQ instructions. (3) See Important note about indirect addressing. ·· ·· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. 106 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 EQU Description Compare two data types. Functional Block Diagram RSLogix 500/RSLogix Micro RLL Instruction Mapping Chapter 5 Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, this output instruction performs equality comparison operation. No operation Source A Files that contain value Source B Immediate value or files that contain value When the values are equal, the rung goes true and the output is energized (provided no other forces affect the status of the rung). Rung enable output Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, then comparison is computed. s No operation i1 Source variable i2 Source variable o1 TRUE if Source A and Source B are equal ENO Rung enable output Connected Components Workbench Software Limitations Both the inputs must be of the same data type. Behavioral Differences None Supported Data Types in MicroLogix Controllers See Comparison on page 106. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 107 Chapter 5 RLL Instruction Mapping Parameter Data Type Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ············· i2 ············· ENO · o1 · (1) The Time input applies to the ST, LD, and FBD languages. · ·(1) · · · ·(1) · · NEQ Description Compare two data types for inequality. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, this output instruction performs inequality comparison operation. No operation Source A Files that contain value Source B Immediate value or files that contain value When the values are not equal, the rung goes true and the output is energized. Rung enable output Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, then comparison is computed. If EN is FALSE, there is no computation. No operation i1 Source variable i2 Source variable o1 TRUE if Source A and Source B are unequal ENO Rung enable output 108 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type RLL Instruction Mapping Chapter 5 Connected Components Workbench Software Limitations Both the inputs must be of the same data type. Behavioral Differences None Supported Data Types in MicroLogix Controllers See Comparison on page 106. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ············· ···· i2 ············· ···· ENO · o1 · LES Description This instruction checks whether one value is less than another value. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 109 Chapter 5 RLL Instruction Mapping Parameter IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction performs comparison operation. When EN is TRUE, then comparison is computed. If EN is FALSE, there is no computation No operation No operation Source A Files that contain value i1 Source variable Source B Immediate value or files that contain value i2 Source variable When the value of Source A is less than the value o1 in Source B, the rung goes true and the output is energized (provided no other forces affect the status of the rung). TRUE if Source A is less than Source B Rung enable output ENO Rung enable output Data Type Connected Components Workbench Software Limitations Both the inputs must be of the same data type. Behavioral Differences None Supported Data Types in MicroLogix Controllers See Comparison on page 106. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ············ ···· i2 ············ ···· ENO · o1 · 110 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 LEQ Description This instruction checks whether one value is less than or equal to another value. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction performs comparison operation. When EN is TRUE, then comparison is computed. If EN is FALSE, there is no computation No operation No operation Source A Files that contain value i1 Source variable Source B Immediate value or files that contain value i2 Source variable When the value of Source A is less than or equal o1 to the value in Source B, the rung goes true and the output is energized (provided no other forces affect the status of the rung). TRUE if Source A is less than or equal to Source B Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations Both the inputs must be of the same data type. Behavioral Differences None Supported Data Types in MicroLogix Controllers See Comparison on page 106. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 111 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Immediate Direct Chapter 5 RLL Instruction Mapping Parameter Data Types Supported Data Types in Micro800 Controllers EN · i1 · · · · · · · · · · · · · · ·(1) · · i2 · · · · · · · · · · · · · · ·(1) · · ENO · o1 · (1) The Time input applies to the ST, LD, and FBD languages. GRT Description This instruction checks whether one value is greater than another value. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, this output instruction performs comparison operation. No operation Source A Files that contain value Source B Immediate value or files that contain value When the value of Source A is greater than the value in Source B, the rung goes true and the output is energized (provided no other forces affect the status of the rung). Rung enable output Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, then equality comparison is computed. If EN is FALSE, there is no computation No operation i1 Source variable i2 Source variable o1 TRUE if Source A is greater than Source B ENO Rung enable output 112 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type RLL Instruction Mapping Chapter 5 Connected Components Workbench Software Limitations Both the inputs must be of the same data type. Behavioral Differences None Supported Data Types in MicroLogix Controllers See Comparison on page 106. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ················· i2 ················· ENO · o1 · GEQ Description This instruction checks whether one value is greater than or equal to another value. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 113 Chapter 5 RLL Instruction Mapping Parameter IO Type Input T F Input Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction performs comparison operation. When EN is TRUE, then comparison is computed. If EN is FALSE, there is no computation No operation No operation Source A Files that contain value i1 Source variable Source B Immediate value or files that contain value i2 Source variable When the value of Source A is greater than or o1 equal to the value in Source B, the rung goes true and the output is energized (provided no other forces affect the status of the rung). TRUE if Source A is greater than Source B Rung enable output ENO Rung enable output Data Type Connected Components Workbench Software Limitations Both the inputs must be of the same data type. Behavioral Differences None Supported Data Types in MicroLogix Controllers See Comparison on page 106. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ················· i2 ················· ENO · o1 · 114 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 LIM Description This instruction is used to compare a value with defined lower and upper limits. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Input Input Output Output Output Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, this LIM instruction performs comparison operation. No operation Test Files that contain value High Limit Immediate value or files that contain value Low Limit Immediate value or files that contain value TRUE when the Test value is within or equal to limits Rung enable output Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, then LIM comparison is computed. If EN is FALSE, there is no computation No operation X Source variable H Source variable L Source variable EPS Hysteresis Value (cannot be 0) QH TRUE if X is above High limit Q TRUE if X is out of limits QL TRUE if X is below Low limit ENO Rung enable output Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 115 Chapter 5 RLL Instruction Mapping Connected Components Workbench Software Limitations Only allows Floating Point values. Behavioral Differences The behavioral differences between MicroLogix controllers and Micro800 controllers are as follows: Case 1: Low Limit <= High Limit LIM Results The output is TRUE when the Test value is within or equal to the Lower and Upper limit, that is LIM_ALRM Results The behavior of the output Q is shown according to the following graph: Lower Limit <= Test Value <= Upper Limit. Otherwise the output is FALSE. Case 2: Low Limit > High Limit LIM Results The output is FALSE when the Test value is within the Upper and Lower limit, that is LIM_ALRM Results The behavior of the output Q is shown according to the following graph: Upper Limit < Test value < Lower Limit. Otherwise the output is TRUE. 116 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for LIM is as follows: Table 4 - LIM Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(2) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Low Limit ······ ··· Test ······ ··· High Limit ······ ··· (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) See Important note about indirect addressing. ·············· ·············· ·············· ·· ·· ·· Parameter Data Type IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · H · X · L · EPS · QH · · Q · QL · Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 117 Chapter 5 RLL Instruction Mapping Control JMP Description Jump to label. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input Level Triggered Input When the rung condition for this output instruction is true, the processor jumps forward or backward to the corresponding label instruction (LBL) and resumes program execution at the label. Multiple JMP instructions can jump to the same label. Jumping forward to a label saves program scan time by omitting a program segment until needed. Jumping backward lets the controller execute program segments repeatedly. When the connection on the left of the Jump is TRUE, the diagram at the label is executed. When the rung state is false, execution proceeds to the instruction When the connection on the left of the Jump is FALSE, the next immediately following the JMP instruction. instruction after the jump is executed. Connected Components Workbench Software Limitations None Behavioral Differences None Supported Data Types in MicroLogix Controllers Not applicable 118 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 LBL Description Labels are used as a target for jump instructions or to control the execution of the diagram. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input Instruction Parameters RSLogix 500/RSLogix Micro Parameters This input instruction is the target of the JMP instruction having the same label number. It is always evaluated as true or logic 1. Connected Components Workbench Parameters Provide the label on the rung for the jump instruction to move the execution to this rung. Connected Components Workbench Software Limitations None Behavioral Differences None Supported Data Types in MicroLogix Controllers Not applicable Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 119 Chapter 5 RLL Instruction Mapping RET Description This output instruction marks the end of subroutine execution or the end of the subroutine file. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input Level Triggered Input When the rung state is true, execution reverts to the next instruction in the program, either following the calling JSR instruction (subroutine call) or to the point where a user or user fault routine started executing. When the left connection of the rung is in TRUE state, the diagram ends without executing the instructions that follow it. When the rung state is false, execution proceeds to the instruction When the left side of the rung is FALSE, the instructions below it immediately following the RET instruction. continue to get executed. Connected Components Workbench Software Limitations None Behavioral Differences None Supported Data Types in MicroLogix Controllers Not applicable 120 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 SUS Description This instruction places the controller in the Suspend Idle mode. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input On a true rung, this instruction causes the processor to enter the Suspend Idle mode and causes all outputs to be de-energized. No operation Suspend ID Suspend ID value Rung enable output Connected Components Workbench Parameters EN/Enable Level Triggered Input When the rung is TRUE, the controller is suspended and it remains in RUN mode. No operation Sus ID Suspend ID value ENO Rung enable output Connected Components Workbench Software Limitations Can only support positive Suspend IDs. Behavioral Differences For MicroLogix controllers: 1. The range of suspend IDs are from -32768 to 32767. 2. The suspend ID is placed in word 7 (S:7) of the status file. 3. The suspend file (program or subroutine number that identifies where the executed SUS instruction resides) is placed in word 8 (S:8) of the status file. Supported Data Types in MicroLogix Controllers Not applicable Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 121 Chapter 5 RLL Instruction Mapping Parameter Data Type EN/ENABLE · SusID ENO · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Supported Data Types for Micro800 · TND Description This instruction is used to debug a program progressively, or conditionally omit the balance of your current program file or subroutines. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Inputs EN/Enable Level Triggered Input When the rung that contains this instruction is Same true, it 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. No operation No operation If TRUE, the function is performed TND/ENO Same as TND Connected Components Workbench Software Limitations None 122 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type EN · TND · ENO · I/O Related Interrupt BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING RLL Instruction Mapping Chapter 5 Behavioral Differences For MicroLogix controllers: When using a MicroLogix controller, do not execute this instruction from the user error fault routine (file 3), high-speed counter routine (file 4), or selectable timed routine (file 5), otherwise a fault (major fault 0035) occurs. Supported Data Types in MicroLogix Controllers Not applicable Supported Data Types for Micro800 IIM Description This instruction is used to update the input data without waiting for the next input scan to begin. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 123 Chapter 5 RLL Instruction Mapping IO Type Input T F Input Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN/Enable Level Triggered Input When the rung that contains this instruction is true, the program scan cycle is interrupted. Each word of data that starts at the specified Input has Mask applied to it. The masked data is then transferred to the input file, making the masked data available to instructions following this instruction in the ladder program. The program scan then resumes. When the rung condition is TRUE, it updates the input data without waiting for the next input scan No operation No operation Slot Indicates the slot or a particular word in a slot. InputSlot Slot number Mask Immediate value or files that contain value Not supported InputType 0: Embedded, 1: Plug-in input Sts Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations 1. Does not allow masking of the data bits that are read from the input slot. 2. Cannot specify individual words in a particular slot. Behavioral Differences For MicroLogix controllers: 1. IIM instruction cannot be used with expansion I/O slots. 2. Mask Value Can specify with a constant or register address. The constant can be binary, decimal, or hexadecimal. For the mask, a (1) in the bit position of an input passes data from the source to the destination. A (0) inhibits data from passing from the source to the destination. Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for IIM is as follows: Table 5 - IIM Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files Address Mode Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Slot · · Mask ·· ··· Length · · ··· · · 124 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type Supported Data Types for Micro800 RLL Instruction Mapping Chapter 5 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN/ENABLE · InputType · InputSlot · Sts · ENO · IOM Description This instruction is used to update the outputs without waiting for the next output scan. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN/Enable Level Triggered Input When the rung that contains this instruction is true, the program scan cycle is ed. Each word of data from the specified output file has Mask applied to it. The masked data is then transferred to the specified Output. The program scan then resumes. When the rung condition is TRUE, it updates the output without waiting for the next input scan No operation No operation Slot Indicates the slot or a particular word in a slot. Output Slot Slot number Mask Immediate value or files that contain value i2 Not supported Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 125 Chapter 5 RLL Instruction Mapping IO Type Input Output Output RSLogix 500/RSLogix Micro Parameters Rung enable output Connected Components Workbench Parameters OutputType 0: Embedded, 1: Plug-in input Sts ENO Rung enable output Connected Components Workbench Software Limitations 1. Does not allow masking of the data bits that are written to the output slot. 2. Cannot specify individual words in a particular slot. Behavioral Differences For MicroLogix controllers: 1. IOM instruction cannot be used with expansion I/O slots. 2. Mask Value - Can specify with a constant or register address. The constant can be binary, decimal, or hexadecimal. For the mask, a (1) in the bit position of an input passes data from the source to the destination. A (0) inhibits data from passing from the source to the destination. Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for IOM is as follows: Table 6 - IOM Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files Address Mode Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Slot Mask Length Parameter · · ·· ··· Data Type Supported Data Types for Micro800 EN/ENABLE · OutputType · OutputSlot · Sts · ENO · 126 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 · · ··· · · Selectable Timed Interrupts STD Description Disable timer. Functional Block Diagram RSLogix 500/RSLogix Micro RLL Instruction Mapping Chapter 5 Connected Components Workbench IO Type Input T F Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN/Enable Level Triggered Input When true, this instruction resets the STI enable bit and prevents the STI subroutine from executing. Disables the When the rung goes false, the STI enable bit remains reset until a true STS or STE instruction is executed. The STI timer continues to operate while the enable bit is reset. No operation IRQ Type Select the type Rung enable output UID/ENO Rung enable output IRQ Type Select the type Connected Components Workbench Software Limitations None Behavioral Differences None Supported Data Types in MicroLogix Controllers Not applicable Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 127 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Chapter 5 RLL Instruction Mapping Parameter Data Type EN · IRQType UID · Supported Data Types for Micro800 · STE Description Enable timer. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN/Enable Level Triggered Input When true, this instruction sets the STI enable bit and allows execution of the STI subroutine. Enable the When the rung goes false, the STI enable bit remains set until a true STD instruction is executed. This instruction has no effect on the operation of the STI timer or setpoint. No operation Rung enable output UIE/ENO Rung enable output IRQ Type Select the type Connected Components Workbench Software Limitations None 128 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type EN · IRQType UID · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Behavioral Differences None Supported Data Types in MicroLogix Controllers Not applicable Supported Data Types for Micro800 RLL Instruction Mapping Chapter 5 · STS Description Configure timer Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 129 Chapter 5 RLL Instruction Mapping Parameter IO Type Input T F Input Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN/Enable Level Triggered Input Upon a true execution of the rung, this instruction enters the file number and setpoint in the status file (S:31 and S:30), and overwrites the existing data. Simultaneously, the STI timer is reset and begins timing: at timeout, the STI subroutine executes. When the enable is TRUE, then it updates the new setpoint with the value that is provided for a particular IRQ Type. No operation No operation IRQ Type Supports up to 4 timer s File STI File Number Time Specify time period in "ms". A value of zero Setpoint Specify time period in "ms". A value of zero disables disables this function. this function. Rung enable output STIS/ENO Rung enable output Data Type Connected Components Workbench Software Limitations None Behavioral Differences For MicroLogix controllers: The file number and setpoint is entered into the status file (S:31 and S:30). Supported Data Types in MicroLogix Controllers Not applicable Supported Data Types for Micro800 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN/ENABLE · IRQType SetPoint STIS · · · 130 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 File Manipulation RLL Instruction Mapping Chapter 5 COP Description Copy a block of data from source to destination. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Instruction Parameters IO Type Input Input Input Input Input Input Input Output Output RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters When the rung condition is true, the instruction gets executed. EN/Enable When the rung condition is TRUE, then the instruction is executed. Source File address from where the data has to be Src copied Source array data Not supported SrcOffset Source offset value Destination File address to which the data has to be copied Dest Destination array data Not supported DestOffset Destination offset value Length Number of words to be copied from source to Length destination Number of elements to copy. Swap Swap the bytes STS Status Values Rung enable output ENO Rung enable output Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 131 Chapter 5 RLL Instruction Mapping Connected Components Workbench Software Limitations If the source or destination is a String data type, the other party must also be a String data type, or a USINT (UCHAR and BYTE) data type. If it is not, a data type mismatch is reported. Behavioral Differences For MicroLogix controllers: The maximum length that can be copied depending on data type is as follows: Table 7 - Maximum Lengths for the COP Instruction Source/Destination Data Type 1 word elements (for example, word) 2 word elements (for example, long word) 3 word elements (for example, counter) 42 word elements (for example, string) Range of Length Operand 1...128 1...64 1...42 1...3 Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for COP is as follows: Table 8 - COP Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files Address Mode(1) Address Level O I S B T, C, R N F ST A L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Source ·· ······· · Destination · · ······· · Length (1) See Important note about indirect addressing. ·· · ·· · · IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. 132 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type Supported Data Types in Micro800 Controllers RLL Instruction Mapping Chapter 5 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN/ENABLE Src SrcOffst Dest DestOffset Length Swap STS ENO · ·················· · ·············· ··· · · · · · Math The MicroLogix supported data types for ADD, SUB, MUL, DIV, NEG, and CLR are as follows: Table 9 - Math Instructions (ADD, SUB, MUL, DIV, NEG, CLR) Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(3) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log(2) Immediate Direct Indirect Bit Word Long Word Element Source A ······· ··· ·············· Source B ······· ··· ·············· Destination ······· ··· ····· · ·· (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) The Data Log Status file can only be used for the following math instructions: ADD, SUB, MUL, DIV, NEG, and SCP. (3) See Important note about indirect addressing. ·· ·· ·· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 133 Chapter 5 RLL Instruction Mapping ADD Description Add two values. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction adds Source A to Source B and stores the result at the destination address. If the rung is false, then there is no computation. When EN is TRUE, then addition is computed. If EN is FALSE, there is no computation No operation No operation Source A Immediate value or files that contain value i1 Source variable Source B Immediate value or files that contain value i2 Source variable Dest Contains the destination address o1 Destination variable Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations Only supports same data types for both input and output. Behavioral Differences For MicroLogix controllers: 1. If the destination bit receives a value less than -32,768 or greater than +32,767 (a number that requires more than 16 bits to represent), the processor sets S:0/1 (overflow bit) and S:5/0 (overflow trap bit, major error 0020). Bit S:5/0 in the program can be monitored. 134 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type RLL Instruction Mapping Chapter 5 If a MicroLogix processor (capable of 32-bit addition) is used, the math overflow bit (S:2/14) in the status file should be set. This causes the unsigned, truncated, least significant 16 bits to remain in the destination. If this bit is not set and an underflow or overflow conditions occurs, the destination address contains a 32767 (if the result is positive) or -32768 (if the result is negative). 2. This instruction impacts the status flags in the following way: 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: Sets if carry is generated; otherwise resets Sets if overflow is detected at destination; otherwise resets. On overflow, the minor error flag is also set. The value -32,768 or 32,767 is placed in the destination. If S:2/14 (math overflow selection bit) is set, then the unsigned, truncated overflow remains in the destination. Sets if result is zero, otherwise resets Sets if result is negative, otherwise resets Supported Data Types in MicroLogix Controllers See Math on page 133. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ··············· · i2 ··············· · o1 ··············· · ENO · Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 135 Chapter 5 RLL Instruction Mapping SUB Description Subtract two values. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction subtracts Source A to Source B and stores the result at the destination address. If the rung is false, then there is no computation. When EN is TRUE, then subtraction is computed. If EN is FALSE, there is no computation No operation No operation Source A Immediate value or files that contain value i1 Source variable Source B Immediate value or files that contain value i2 Source variable Dest Contains the destination address o1 Destination variable Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations Only supports same data types for both input and output. Behavioral Differences For MicroLogix controllers: 1. If the destination bit receives a value less than -32,768 or greater than +32,767 (a number that requires more than 16 bits to represent), the processor sets S:0/1 (overflow bit) and S:5/0 (overflow trap bit, major error 0020). Bit S:5/0 in the program can be monitored. 136 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type RLL Instruction Mapping Chapter 5 If a MicroLogix processor (capable of 32-bit addition) is used, the math overflow bit (S:2/14) in the status file should be set. This causes the unsigned, truncated, least significant 16 bits to remain in the destination. If this bit is not set and an underflow or overflow conditions occurs, the destination address contains a 32767 (if the result is positive) or -32768 (if the result is negative). 2. This instruction impacts the status flags in the following way: 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: Sets if borrow is generated; otherwise resets Sets if underflow; otherwise reset. On underflow, the minor error flag is also set. The value -32,768 or 32,767 is placed in the destination. If S:2/14 (math overflow selection bit) is set, then the unsigned, truncated overflow remains in the destination. Sets if result is zero, otherwise resets Sets if result is negative, otherwise resets Supported Data Types in MicroLogix Controllers See Math on page 133. For this instruction, the source has to be a word (16 bits), so all relevant data types with word sizes are supported. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ··············· i2 ··············· o1 ··············· ENO · Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 137 Chapter 5 RLL Instruction Mapping MUL Description Perform multiplication on two numbers. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, this instruction multiplies Source A by Source B and stores the result in the destination. No operation Source A Immediate value or files that contain value Source B Immediate value or files that contain value Dest Contains the destination address Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, then multiplication between the two inputs is computed. If EN is FALSE, there is no computation. No operation i1 Source variable i2 Source variable o1 Destination variable Connected Components Workbench Software Limitations Only supports same data types for both input and output. Behavioral Differences For MicroLogix controllers: 1. If a value greater than +32,767 is returned, a minor error flag is set, and the value 32,767 is placed in the destination. For MicroLogix processor if the S:2/14 (math overflow selection bit) set, then the unsigned, truncated, least significant 16 bits of the overflow value remains in the destination. The math register contains the 32-bit signed integer result of the multiply operation. This result is valid at overflow. 138 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type RLL Instruction Mapping Chapter 5 2. This instruction impacts the status flags in the following way: 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 Sets if overflow is detected at destination; otherwise resets. On overflow, the minor error flag is also set. The value -32,768 or 32,767 is placed in the destination. If S:2/14 (math overflow selection bit) is set, then the unsigned, truncated overflow remains in the destination. Sets if result is zero, otherwise resets Sets if result is negative, otherwise resets Supported Data Types in MicroLogix Controllers See Math on page 133. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ·············· i2 ·············· o1 ·············· ENO · DIV Description Perform division on two numbers. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 139 Chapter 5 RLL Instruction Mapping IO Type Input T F Input Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this instruction divides Source A by Source B and stores the result in the destination and the math register When EN is TRUE, then division between the two inputs is computed. If EN is FALSE, there is no computation No operation No operation Source A Immediate value or files that contain value i1 Source variable Source B Immediate value or files that contain value i2 Source variable Dest Contains the destination address o1 Destination variable Connected Components Workbench Software Limitations 1. Only supports same data types for both input and output. 2. The value that is stored in the destination is NOT rounded. Behavioral Differences For MicroLogix controllers: 1. If a value greater than +32,767 is returned, a minor error flag is set, and the value 32,767 is placed in the destination. However, if you are using a Series C or later MicroLogix processor and have S:2/14 (math overflow selection bit) set, then the unsigned, truncated least significant 16 bits of the overflow remains in the destination. 2. If the remainder is 0.5 or greater, the destination is rounded up. The unrounded quotient is placed in the most significant word of the math register; the remainder is placed in the least significant word. 3. This instruction impacts the status flags in the following way: 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 Sets if division by zero or overflow is detected; otherwise resets. On overflow, the minor error flag is also set. The value 32,767 is placed in the destination. If S:2/14 (math overflow selection bit) is set, then the unsigned, truncated overflow remains in the destination. Sets if result is zero, otherwise resets; undefined if overflow is set. Sets if result is negative, otherwise resets; undefined if overflow is set. Supported Data Types in MicroLogix Controllers See Math on page 133. 140 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type Supported Data Types in Micro800 Controllers RLL Instruction Mapping Chapter 5 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ·············· i2 ·············· o1 ·············· ENO · DDV Description Perform division on two numbers. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, this instruction divides the 32-bit math register by Source B and stores the result in the destination and the math register No operation Source A 32-bit math register Source (or Immediate value or files that contain value (16 divisor) bits) Dest (or quotient) Contains the destination address Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, then division between the two inputs is computed. If EN is FALSE, there is no computation No operation i1 Source variable i2 Source variable o1 Destination variable Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 141 Chapter 5 RLL Instruction Mapping Parameter Data Type Connected Components Workbench Software Limitations 1. Only supports same data types for both input and output. 2. The value that is stored in the destination is NOT rounded. Behavioral Differences For MicroLogix controllers: 1. If the value of the quotient is greater than 32767, then the overflow flag is set and the value 32767 is placed in the destination. In normal cases, the quotient is rounded. 2. The math register initially contains the dividend of the DDV operation. Upon execution, the unrounded quotient is placed in the most significant word of the math register. The remainder is placed in the least significant word of the math register. 3. This instruction impacts the status flags in the following way: 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 Sets if division by zero or if result is greater than 32,767 or less than -32,768; otherwise resets. On overflow, the minor error flag is also set. The value 32,767 is placed in the destination. Sets if result is zero, otherwise resets. Sets if result is negative, otherwise resets; undefined if overflow is set. Supported Data Types in MicroLogix Controllers See Math on page 133. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ·············· i2 ·············· o1 ·············· ENO · 142 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 NEG Description Changes the sign on the value. Functional Block Diagram RSLogix 500/RSLogix Micro RLL Instruction Mapping Chapter 5 Connected Components Workbench IO Type Input T F Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, the NEG instruction changes the sign of the Source and places the result in the Destination. No operation Source Files that contain value Dest Contains the destination address Rung enable output Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, it converts the sign on the input No operation i1 Source variable o1 Destination variable ENO Rung enable output Connected Components Workbench Software Limitations Both the input and the output must be of the same data type. Behavioral Differences For MicroLogix controllers: This instruction impacts the status flags in the following way: 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: Clears if 0 or overflow; otherwise sets. Sets if overflow; otherwise resets. Overflow occurs only if -32,768 is the source. The value 32,767 is placed in the destination. If S:2/14 (math overflow selection bit) is set, then the unsigned, truncated overflow remains in the destination. Sets if result is zero, otherwise resets. Sets if result is negative, otherwise resets. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 143 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Chapter 5 RLL Instruction Mapping Parameter Data Type EN · i1 · o1 · ENO · Supported Data Types in MicroLogix Controllers See Math on page 133. Supported Data Types in Micro800 Controllers · · · ·· · · · ·· SQR Description Find the square root of a number Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Level Triggered Input When rung conditions are true, the SQR instruction calculates the square root and places the rounded result in the Destination. No operation Source Files that contain value or immediate value Dest Contains the destination address Rung enable output Connected Components Workbench Parameters EN Level Triggered Input When EN is TRUE, it calculates the square root of the input No operation i1 Source variable. Must be greater than equal to zero SQRT Destination variable. The result is zero for negative input ENO Rung enable output 144 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 Connected Components Workbench Software Limitations 1. Does not allow negative numbers as input. 2. Both the input and the output must be of the same data type. Behavioral Differences For MicroLogix controllers: 1. For MicroLogix processors, constants are invalid for the source parameter. 2. This instruction calculates the square root of a negative number without overflow or faults. In applications where the source value may be negative, use a comparison instruction to evaluate the source value to determine if the destination is invalid. 3. This instruction impacts the status flags in the following way: 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: Sets if the source is negative; otherwise cleared. Always resets. Sets if destination value is zero. Always resets. Supported Data Types in MicroLogix Controllers The MicroLogix supported data types SQR is as follows: Table 10 - SQR Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files Address Mode(1) Address Level O I S B T, C, R N ST F L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Source ·· ··· Destination ·· ··· (1) See Important note about indirect addressing. ·· · ·· · ··· ·· ·· ·· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 145 BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Chapter 5 RLL Instruction Mapping Parameter Data Type Supported Data Types in Micro800 Controllers EN · IN · SQRT · ENO · Move and Logical The MicroLogix supported data types for AND, OR, XOR and NOT are as follows: Table 11 - Logical Instructions Valid Addressing Modes and File Types Parameter Data Files Function Files(2) Address Mode(3) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS- Data Log Immediate Direct Indirect Bit Word Long Word Element Source A Source B(1) ······ ······ ··· ··· ·············· ·············· Destination · · · · · · ··· · ··· · ·· (1) Source B does not apply to the NOT instruction. The NOT instruction only has one source value. (2) PTOX and PWMX files are valid for MicroLogix 1400 BXB or BXBA unit. (3) See Important note about indirect addressing. ·· ·· ·· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Parameter Data Type Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ·················· o1 ·················· ENO · 146 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 MOV Description Move data from source to destination. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions that precede this instruction are true, the MOV instruction moves a copy of the source to the destination each scan. The original value remains intact and unchanged in its source location. When EN is TRUE, copy the value of i1 to o1. No operation No operation Source Immediate value or files that contain value i1 Source variable Dest Contains the destination address o1 Destination variable Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations Only supports same data types for both input and output. Behavioral Differences For MicroLogix controllers: 1. The bit field variable can also be moved to an integer file. For example, B3:0 can be added to N7:0 where all 16 bits in the B3:0 fields are used for moving. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 147 Chapter 5 RLL Instruction Mapping 2. This instruction impacts the status flags in the following way: 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. Always resets. Sets if result is zero; otherwise resets. Sets if result is negative (most significant bit is set); otherwise resets. Supported Data Types in MicroLogix Controllers Table 12 - Logical Instructions Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(3) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS- Data Log Immediate Direct Indirect Bit Word Long Word Element Source ··········· Destination · · · · · · · · · · · (1) PTOX and PWMX files are valid for MicroLogix 1400 BXB or BXBA unit. (2) Some elements can be written to. Consult the function file for details. (3) See Important note about indirect addressing. ·············· (2) (3) (3) (3) ·· ·· ·· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Parameter Data Type Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 ·················· o1 ·················· ENO · 148 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 AND Description Perform logical AND operation on two values bit by bit. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction performs logical AND operation, bit by bit on Source A and Source B and stores the result at the destination address. If the rung is false, then there is no computation. When rung conditions are true, this instruction is executed. No operation No operation Source A Immediate value or files that contain value i1 Source variable (BOOL only) Source B Immediate value or files that contain value i2 Source variable (BOOL only) Dest Contains the destination address o1 Destination variable (BOOL only) Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations The Connected Components Workbench AND operator only supports BOOL values. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 149 Chapter 5 RLL Instruction Mapping Parameter Data Type EN · i1 · o1 · ENO · Behavioral Differences For MicroLogix controllers: This instruction impacts the status flags in the following way: 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. Always resets. Sets if result is zero; otherwise resets. Sets if most significant bit is set; otherwise resets. Supported Data Types in MicroLogix Controllers See Move and Logical on page 146. Supported Data Types in Micro800 Controllers XOR Description Perform logical XOR operation on two values bit by bit. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING 150 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 Parameter IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction performs logical XOR operation, bit by bit on Source A and Source B and stores the result at the destination address. If the rung is false, then there is no computation. When EN is TRUE, then logical XOR between the two inputs is computed. If EN is FALSE, there is no computation No operation No operation Source A Immediate value or files that contain value i1 Source variable (BOOL only) Source B Immediate value or files that contain value i2 Source variable (BOOL only) Dest Contains the destination address o1 Destination variable (BOOL only) Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations The Connected Components Workbench XOR operator only supports BOOL values. Behavioral Differences For MicroLogix controllers: This instruction impacts the status flags in the following way: 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. Always resets. Sets if result is zero; otherwise resets. Sets if result is negative (most significant bit is set); otherwise resets. Data Type Supported Data Types in MicroLogix Controllers See Move and Logical on page 146. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 · i2 · o1 · ENO · Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 151 Chapter 5 RLL Instruction Mapping OR Description Perform logical OR operation on two values bit by bit. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input T F Input Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction performs logical OR operation, bit by bit on Source A and Source B and stores the result at the destination address. If the rung is false, then there is no computation. When EN is TRUE, then logical OR between the two inputs is computed. If EN is FALSE, there is no computation No operation No operation Source A Immediate value or files that contain value i1 Source variable (BOOL only) Source B Immediate value or files that contain value i2 Source variable (BOOL only) Dest Contains the destination address o1 Destination variable (BOOL only) Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations The Connected Components Workbench OR operator only supports BOOL values. 152 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type EN · i1 · i2 · o1 · ENO · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING RLL Instruction Mapping Chapter 5 Behavioral Differences For MicroLogix controllers: This instruction impacts the status flags in the following way: 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. Always resets. Sets if result is zero; otherwise resets. Sets if result is negative (most significant bit is set); otherwise resets. Supported Data Types in MicroLogix Controllers See Move and Logical on page 146. Supported Data Types in Micro800 Controllers NOT Description Perform logical NOT operation on two values bit by bit. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 153 Chapter 5 RLL Instruction Mapping Parameter IO Type Input T F Input Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input EN Level Triggered Input When rung conditions are true, this output instruction performs logical NOT operation, bit by bit on Source A and stores the result at the destination address. If the rung is false, then there is no computation. When EN is TRUE, then logical NOT of the input is computed. If EN is FALSE, there is no computation No operation No operation Source A Immediate value or files that contain value i1 Source variable (BOOL only) Dest Contains the destination address o1 Destination variable (BOOL only) Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations The Connected Components Workbench NOT operator only supports BOOL values. Behavioral Differences For MicroLogix controllers: This instruction impacts the status flags in the following way: 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. Always resets. Sets if result is zero; otherwise resets. Sets if result is negative (most significant bit is set); otherwise resets. Data Type Supported Data Types in MicroLogix Controllers See Move and Logical on page 146. Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · i1 · o1 · ENO · 154 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Relay Type RLL Instruction Mapping Chapter 5 XIC Descriptions Examine whether the bit field is ON based on the rung state. Functional Block Diagram RSLogix 500/RSLogix Micro Examine if Closed Connected Components Workbench Direct Contact IO Type Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Rung state is TRUE If the address bit is TRUE, then outputs on the rung are energized. Connected Components Workbench Parameters Rung state is TRUE If the address bit is TRUE, then outputs on the rung are energized. Connected Components Workbench Software Limitations None Behavioral Differences None Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for XIC is as follows: Table 13 - XIC and XIO Instructions Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(2) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Operand Bit · · · · · · ·· (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) See Important note about indirect addressing. ··········· ··· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 155 Chapter 5 RLL Instruction Mapping XIO Description Examine whether the bit field is OFF based on the rung state. Functional Block Diagram RSLogix 500/RSLogix Micro Examine if Open Connected Components Workbench Reverse Contact IO Type Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Rung state is TRUE If the address bit is TRUE, then outputs on the rung are de-energized. Connected Components Workbench Parameters Rung state is TRUE If the address bit is TRUE, then outputs on the rung are de-energized. Connected Components Workbench Software Limitations None Behavioral Differences None Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for XIO is as follows: Table 14 - XIC and XIO Instructions Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(2) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Operand Bit · · · · · · ·· (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) See Important note about indirect addressing. ··········· ··· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. 156 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 OTE Description Energize the bit field based on the rung state. Functional Block Diagram RSLogix 500/RSLogix Micro Output Energize Connected Components Workbench Direct Coil IO Type Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Rung state This instruction is used to turn on a bit location when rung conditions are evaluated as true and off when the rung is evaluated as false. Connected Components Workbench Parameters Rung state Same Connected Components Workbench Software Limitations None Behavioral Differences For MicroLogix controllers: The OTE is reset when programmed within an inactive or false Master Control Reset (MCR) zone. Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for OTE is as follows: Table 15 - OTE Instruction Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(2) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Destination Bit · · · · · · ·· (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) See Important note about indirect addressing. ····· · ··· Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 157 Chapter 5 RLL Instruction Mapping IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. OTL Description Latch (Set) the bit field. Functional Block Diagram RSLogix 500/RSLogix Micro Output Latch Connected Components Workbench Set Coil IO Type Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Rung state Rung state When the rung conditions are TRUE, this bit is set or "latched" on. Once a bit has been set "on" (1 in the memory), it remains"on"even if the rung condition goes false. The bit must be reset with an OTU instruction. When the rung conditions are TRUE, this bit is set or "latched" on. Once a bit has been set "on" (1 in the memory), it remains"on"even if the rung condition goes false. The bit must be reset with a Reset Coil instruction. Connected Components Workbench Software Limitations None Behavioral Differences For MicroLogix controllers: 1. If there is a power loss, any OTL-controlled output device energizes with the return of power if the OTL bit was set when power was lost. 2. If an error condition occurs that halts processing, the physical output is turned off. But once the error condition is cleared the controller resumes operation with the OTL in the state that is determined by its data table value. 158 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for OTL is as follows: Table 16 - OTL and OTU Instructions Valid Addressing Modes and File Types Parameter Data Files Function Files(1) Address Mode(2) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Operand Bit ······ ·· (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) See Important note about indirect addressing. ····· · ··· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. OTU Description Unlatch (Reset) the bit field. Functional Block Diagram RSLogix 500/RSLogix Micro Output Unlatch Connected Components Workbench Reset Coil IO Type Input Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Rung state Rung state When the rung conditions are TRUE, this bit is reset or "unlatched" on. Once a bit has been reset "off"(0 in the memory), it remains"off"even if the rung condition goes false. The bit must be set with an OTL instruction. When the rung conditions are TRUE, this bit is reset or"unlatched"on. Once a bit has been reset"off"(0 in the memory), it remains"off"even if the rung condition goes false. The bit must be set with a Set Coil instruction. Connected Components Workbench Software Limitations None Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 159 Chapter 5 RLL Instruction Mapping Behavioral Differences For MicroLogix controllers: 1. If there is a power loss, any OTL-controlled output device energizes with the return of power if the OTL bit was set when power was lost. 2. If an error condition that halts processing occurs, the physical output is turned off. But once the error condition is cleared the controller resumes operation with the OTU in the state that is determined by its data table value. Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for OTU is as follows: Table 17 - OTL and OTU Instructions Valid Addressing Modes and File Types. Parameter Data Files Function Files(1) Address Mode(2) Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Operand Bit ······ ·· (1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit. (2) See Important note about indirect addressing. ····· · ··· IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX, PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files. OSR Description Trigger an event one at a time. Functional Block Diagram RSLogix 500/RSLogix Micro One Shot Rising Connected Components Workbench R_TRIG 160 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 IO Type Input F > T T > F F > F T > T Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input Edge Triggered Input On a false to true rung state transition, this instruction sets the Output bit and the Storage bit. Note: When the rung conditions that precede the OSR instruction go from false-to-true, the OSR instruction is true for one scan. After one scan is complete, the OSR instruction becomes false, even if the rung conditions that precede it remain true. The OSR instruction becomes true again if the rung conditions that precede it transition from false-to-true. The output sQ is set when the input transitions from false to true. In the next scan cycle, the output is false if the clock remains true. The Storage bit and the Output bit are reset when the rung state is false. Output Q is false The Storage bit and the Output bit are reset when the rung state is false. Output Q is false While the rung remains true, the Output bit is reset and the Storage bit remains set Output Q is false Connected Components Workbench Software Limitations None Behavioral Differences None Supported Data Types in MicroLogix Controllers The MicroLogix supported data types for OSR is as follows: Table 18 - OSR and OSF Instructions Valid Addressing Modes and File Types Parameter Data Files Function Files Address Mode Address Level O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Storage Bit · · Output Bit ·· ··· · · · · · Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 161 O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element Chapter 5 RLL Instruction Mapping Parameter Data Type Supported Data Types in Micro800 Controllers BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING EN · CLK · Q · ENO · Timer and Counter The MicroLogix supported data types for TON, TOF, and RTO are as follows: Table 19 - Timer Instructions Valid Addressing Modes and File Types Parameter Data Files(1) Function Files Address Mode Address Level Timer · Time Base Preset Accumulator (1) Valid for Timer Files only. · · · · · · · · The MicroLogix supported data types for CTD and CTU are as follows: Table 20 - CTD and CTU Instructions Valid Addressing Modes and File Types Parameter Data Files(1) Function Files Address Mode Address Level Counter · Preset Accumulator (1) Valid for Counter Files only. · · · · · · O I S B T, C, R N F ST L MG, PD RI/RIX PLS RTC HSC PTOX, PWMX STI EII BHI MMI LCD CS - Comms IOS - I/O DLS - Data Log Immediate Direct Indirect Bit Word Long Word Element 162 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 CTD Description Count down from a certain value one by one. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input F > T T > F F > F T > T Input Input Output Output Output Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input CD Edge Triggered Input This instruction counts down on false to true rung transition Down counts when CD is a rising edges Whenever the rung state is false, the counter shall not count and CD is reset. If either of the OV or UN bit is set, the DN bit remains in its last state. If the OV and UN bits are clear, the DN bit is reset if Accumulator < Preset, otherwise it is set. Updates the underflow flag (Q) Same as T > F state Updates the underflow flag (Q) Whenever the rung state is true, the counter shall not count and CU remains set. Updates the underflow flag (Q) Preset Programmed initial Value (16-bit signed integer) PV Programmed initial value (32 bit signed integer) LOAD CV = PV when LOAD is TRUE. Counter CD (Enable) This bit is set to TRUE when the rung is TRUE. It is cleared when rung is false or RES instruction is used. Not supported Counter UV When an underflow occurs from -32768 to 32767, Q (Underflow) this bit is set to TRUE. The counter continues to count down from 32767. It is set to TRUE when the count value reaches zero. The down counter freezes at zero. Counter DN This bit is set when the Accum value is greater (Done) than or equal to the Preset value. Not supported Accum Count down value CV Count down value Rung enable output ENO Rung enable output Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 163 Chapter 5 RLL Instruction Mapping Parameter Data Type EN · LOAD · PV Q · CV ENO · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Connected Components Workbench Software Limitations 1. Does NOT allow counting down below the value of zero. 2. Does NOT support the counter enable (EN) and counter done (DN) bit. Behavioral Differences 1. On the low to high transition of the rung, the counter counts down by 1. The done bit (DN) is set as along as the Accum value is greater than or equal to the Preset value. It is cleared when its value is less than the Preset value. 2. The counter in MicroLogix continues to count down even after reaching zero. This behavior is NOT the same with Connected Components Workbench instruction. The underflow in MicroLogix is SET only when the Accum value crosses over from -32768 to 32767 whereas in Connected Components Workbench, the underflow bit is SET when the CV value reaches zero. Supported Data Types in MicroLogix Controllers See Timer and Counter on page 162. Supported Data Types in Micro800 Controllers · · 164 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 CTU Description This instruction counts up from a certain value one by one. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input F > T T > F F > F T > T Input Input Output Output Output Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input CU Edge Triggered Input This instruction counts up on false to true rung transition It counts up when CU is a rising edge Whenever the rung state is false, the counter shall not count and the CU bit is reset. If either of the OV or UN bits is set, the DN bit remains in its last state. If the OV and UN bits are clear, the DN bit is reset if Accumulator < Preset, otherwise it is set. Updates the overflow flag (Q) Same as T > F state Updates the overflow flag (Q) Whenever the rung state is true, the counter shall not count and CU remains set. Updates the overflow flag (Q) Preset Programmed initial value (16-bit signed integer) PV Programmed initial value (32 bit signed integer) RESET When RESET is TRUE, it initializes the CV value to zero. Counter CU (Enable) This bit is set to TRUE when the rung is TRUE. It is cleared when rung is false or RES instruction is used. Not supported Counter DN It is set to TRUE when the Accum value is greater Q (Done) than or equal to Preset value. It is set to TRUE when the count value is greater than or equal to the value of PV. The counter stops counting up when it reaches the value of PV. Counter OV When an overflow occurs from 32767 to -32768, (Overflow) this bit is set to TRUE. The counter continues to up from -32768. Not supported Accum 16-bit accumulated count. It can be reset to zero CV by using the RES instruction. 32-bit accumulated value. It is reset by setting the RESET to TRUE. Rung enable output ENO Rung enable output Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 165 Chapter 5 RLL Instruction Mapping Parameter Data Type EN · CU · RESET · PV Q · CV ENO · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Connected Components Workbench Software Limitations None Behavioral Differences In Connected Components Workbench, the counter counts upwards until it reaches the limit of CV whereas in RSLogix, the counter continues to count upwards. Supported Data Types in MicroLogix Controllers See Timer and Counter on page 162. Supported Data Types in Micro800 Controllers · · TON Description This instruction is used to turn an output on or off after the timer has been on for a preset time interval. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench 166 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 IO Type Input F > T T > F F > F T > T Input Input Output Output Output Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input IN Edge Triggered Input When the rung transitions from false to true, the error checks specified under Faults Generated are performed. If there are no errors, the timer is updated as follows. - If the DN bit is set, the EN bit is set and the TT bit is reset. Nothing else is updated. - If the DN bit is reset, the timer is initialized to begin counting Timebase intervals starting from the time the rung state transition is detected. The EN and TT bits are set. Starts increasing the internal timer on the rising edge under the following conditions: - If the IN is TRUE and the Q flag is FALSE Whenever the rung state is false, the Accumulator is set to zero and the EN, TT, and DN bits are reset. Stops and resets the internal timer on the falling edge. Same as T > F Same as T > F While the rung state remains true, the error checks specified under Faults Generated are performed. If there are no errors, the timer is updated as follows. - If the DN bit is set, the TT bit is reset. Nothing else is updated. - If the DN bit is reset, the Accumulator is updated according to the number of Timebase intervals that have passed since the last time the timer was updated. - If Accumulator < Preset, the TT bit is set. - If Accumulator > Preset, the DN bit is set and the TT bit is reset. Same as F > T case. Preset Programmed initial value (16-bit unsigned PT integer) Programmed initial value (Time data type) Time Base 1 ms, 10 ms, or 1 s Supported Timer EN (Enable) This bit is set to TRUE when the rung is TRUE. It is cleared when rung is false. Not supported Timer DN (Done) It is set to TRUE when the Accum value is greater Q than or equal to Preset value. It is set to TRUE when the count value is equal to the value of PT. The counter stops counting up when it reaches the value of PT. Timer TT (Timing) It is set when rung conditions are TRUE and the accumulated value is less than the preset value. It is cleared when the rung state is FALSE or when done bit is set. Not supported Accum 16-bit accumulated count. It can be reset to zero ET when the rung conditions are FALSE. In Time data type format Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations None Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 167 Chapter 5 RLL Instruction Mapping Parameter Data Type EN · IN · PT Q · ET ENO · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Behavioral Differences For MicroLogix controllers: 1. If power is lost while a TON is timing but has not reached its preset value, the EN and TT bits remain set, and the accumulated value (ACCUM) remains the same. This is also true if the processor changes from the REM Run or REM Test mode to the REM Program mode. 2. If either the Accumulator or the Preset is negative when the TON instruction is executed on a true rung, a Major Fault (0034) is generated. Status Bits This Bit Timer Done Bit DN (bit 13) Timer Enable Bit EN (bit 14) Timer Timing Bit TT (bit 15) Is Set When Accumulated value is equal to or greater than the preset value Rung conditions are true Rung conditions are true and the accumulated value is less than the preset value And Remains Set Until One of the Following Rung conditions go false Rung conditions go false Rung conditions go false or when the done bit is set On returning to the REM Run or REM Test mode, the following can happen: Condition If the rung is true: If the rung is false: Result EN bit remains set. TT bit remains set. ACC value is reset. EN bit is reset. TT bit is reset. ACC value is reset. Supported Data Types in MicroLogix Controllers See Timer and Counter on page 162. Supported Data Types in Micro800 Controllers · · 168 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 TOF Description This instruction is used to turn an output on or off after its rung has been off for a preset time interval. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input F > T T > F F > F T > T Input Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input IN Edge Triggered Input Whenever the rung state is true, the Accumulator is set to zero, the EN and DN bits are set, the TT bit is reset. Stops and resets the internal timer on the rising edge. When the rung transitions from true to false, the error checks specified under Faults Generated are performed. If there are no errors, the timer is updated as follows. -If the DN bit is reset, the EN and TT bits are reset. Nothing else is updated. -If the DN bit is set, the timer is initialized to begin counting Timebase intervals starting from the time the rung state transition is detected. The EN bit is reset and TT bit is set. Starts increasing the internal timer on the falling edge under the following conditions: -If the IN is FALSE and the Q flag is TRUE While the rung state remains false, the error checks specified under Faults Generated are performed. If there are no errors, the timer is updated as follows. -If the DN bit is reset, the TT bit is reset. Nothing else is updated. -If the DN bit is set, the Accumulator is updated according to the number of Timebase intervals that have passed since the last time the timer was updated. -If Accumulator < Preset, the TT bit is set. -If Accumulator > Preset, the DN and TT bits are reset. Same as T > F. case. Whenever the rung state is true, the Accumulator is set to zero, the EN and DN bits are set, the TT bit is reset. Sets the overflow flag (Q). Preset Programmed initial value (16-bit unsigned PT integer) Programmed initial value (Time data type) Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 169 Chapter 5 RLL Instruction Mapping IO Type Input Output Output Output Output Output RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Time Base 1 ms, 10 ms, or 1 s Supported Timer EN (Enable) This bit is set to TRUE when the rung is TRUE. It is cleared when rung is false. Not supported Timer DN (Done) It is set to FALSE when the Accum value is greater Q than or equal to Preset value. It is set to FALSE when the ET value is equal to the value of PT. The internal timer stops when it reaches the value of PT. Timer TT (Timing) It is set when rung conditions are FALSE or the accumulated value is less than the Preset value. It is cleared once the rung is TRUE or done bit is reset. Not supported Accum 16-bit accumulated count. It can be reset to zero ET when the rung conditions are TRUE. In Time data type format Rung enable output ENO Rung enable output Connected Components Workbench Software Limitations None Behavioral Differences For MicroLogix controllers: When controller operation changes from REM Run or REM Test mode to REM Program mode or if user power is lost while a TOF is timing but has not reached its preset value, the EN, TT, and DN bits remain set, and the accumulated value (ACCUM) remains the same. On returning to the REM Run or REM Test mode, the following can happen: Condition If the rung is true: If the rung is false: Result TT bit is reset DN bit remains set EN bit is set ACC value is reset. TT bit is reset DN bit is reset EN bit is reset ACC value is set equal to the preset value Supported Data Types in MicroLogix Controllers See Timer and Counter on page 162. 170 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type EN · IN · PT Q · ET ENO · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Supported Data Types in Micro800 Controllers RLL Instruction Mapping Chapter 5 · · RTO Description This retentive instruction lets the timer stop and start without resetting the accumulated value. Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench IO Type Input F > T T > F F > F T > T Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Edge Triggered Input IN Edge Triggered Input Whenever the rung state is true, the Accumulator remains the same and resumes incrementing, the EN and the TT bits are set. If rising edge, starts increasing internal timer. When the rung transitions from true to false, the TT and EN bits are reset. The Accumulator value and DN bit remain in its last state. If falling edge, stops and does not reset the internal timer. The TT and EN bits are reset. The Accumulator value and the DN bit remain in its last state. No operation Whenever the rung state is true, the Accumulator value remains the same and resumes incrementing. The EN and the TT bits are set. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 171 Chapter 5 RLL Instruction Mapping IO Type Input Input Output Output Output Output RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Preset Programmed initial value (16-bit unsigned PT integer) Programmed initial value (Time data type) Time Base 1 ms, 10 ms, or 1 s Supported RST If rising edge, resets the internal timer. Timer EN (Enable) This bit is set to TRUE when the rung is TRUE. It is cleared when rung is false. Timer DN (Done) It is set to TRUE when the Accum value is equal to Q or greater than the Preset value. If TRUE, programmed time is elapsed. Timer TT (Timing) It is set when rung conditions are TRUE or the accumulated value is less than the Preset value. It is cleared once the rung is FALSE or done bit is set. Not supported Accum 16-bit accumulated count. It can be reset to zero ET when the rung conditions are TRUE. Elapsed time. Possible values range from 0 ms to 1193h2m47s294ms. Connected Components Workbench Software Limitations If using a Micro810 or Micro820 controller, the RTO internal timer does not persist through a power cycle by default. To persist the internal timer, set the Retained configuration parameter to true. If using a Micro830, Micro850, or Micro870 controller, the RTO internal timer persists through a power cycle. Behavioral Differences For MicroLogix controllers: When the processor changes from the REM Run or REM Test mode to the REM Program or REM Fault mode, or user power is lost while the timer is timing but not yet at the preset value, the following occurs: · Timer Enable (EN) bit remains set. · Timer Timing (TT) bit remains set. · Accumulated value (ACC) remains the same. On returning to the REM Run or REM Test mode, the following can happen: Condition If the rung is true: If the rung is false: Result TT bit remains set EN bit remains set ACC value remains the same and resumes incrementing. TT bit is reset DN bit remains in its last state. EN bit is reset ACC value remains in its last state. Supported Data Types in MicroLogix Controllers See Timer and Counter on page 162. 172 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Parameter Data Type EN · IN · RST · PT Q · ET ENO · BOOL SINT USINT BYTE INT UINT WORD DINT UDINT DWORD LINT ULINT LWORD REAL LREAL TIME DATE STRING Supported Data Types in Micro800 Controllers RLL Instruction Mapping Chapter 5 · · High-Speed Counter Description The HSC instruction counts high-speed pulses from a high-speed input with a specified maximum pulse rate. An alternative set of high-speed counter instructions have been added in Connected Components Workbench software version 11 or later. This set of instructions makes them more intuitive than the standard HSC instruction. They also provide additional status information, such as pulse rate and touch probe position. To learn more about these instructions, see the Connected Components Workbench software help for the following. · HSCE · HSCE_CFG · HSCE_READ_STS · HSCE_SET_STS Functional Block Diagram RSLogix 500/RSLogix Micro Connected Components Workbench Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 173 Chapter 5 RLL Instruction Mapping IO Type Input T F Input Input Input Input Output Output Output Instruction Parameters RSLogix 500/RSLogix Micro Parameters Connected Components Workbench Parameters Level Triggered Input Enable Level Triggered Input Whenever the rung state is true, the Accumulator is set to zero, the EN and DN bits are set, the TT bit is reset. Function block enable. When Enable = TRUE, execute the HSC operation that is specified in the HSC command parameter. The high-speed counter is disabled from counting When Enable = FALSE, no HSC commands are issued. Type Select from Up counters or Bidirectional counters. HscCmd Issues commands to the HSC. Up Counters clear the accumulator values and reload the preset values when the previous preset is reached. In Bidirectional Counters the accumulator and preset values are not changed by the high-speed counter when the presets are reached. Counter Always C5:0 HscAppData HSC application configuration, which is usually needed once. Preset The accumulated value that triggers an action HscStsInfo HSC application configuration, which is usually such as updating outputs or generating a high- needed once. speed counter. Accum The number of accumulated counts. PlsData Programmable Limit Switch (PLS) data structure. CU Count Up Enabled ENO Rung enable output CD Count Down Enabled Sts HSC execution status. DN High Preset Reached Connected Components Workbench Software Limitations None Behavioral Differences For MicroLogix controllers: 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. Counter Data File Elements (C5:0) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Word 0 CU CD DN OV UN UA HP LP IV IN IH IL PE LS IE <- Status Word Word 1 Preset Value Word 2 Accumulator Value Counter preset and accumulated values are stored as signed integers. 174 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 For Micro800 controllers: The high-speed counter accumulator and status are found under the HscSTSInfo parameters. Parameter CountEnable ErrorDetected CountUpFlag CountDwnFlag Mode1Done OVF UNF CountDir HPReached LPReached OFCauseInter UFCauseInter HPCauseInter LPCauseInter PlsPosition ErrorCode Accumulator HP LP HPOutput Data type HSC mode BOOL 0...9 BOOL 0...9 BOOL 0...9 BOOL 2...9 BOOL 0 or 1 BOOL 0...9 BOOL 0...9 BOOL 0...9 BOOL 2...9 BOOL 2...9 BOOL 0...9 BOOL 2...9 BOOL 0...9 BOOL 2...9 UINT 0...9 UINT 0...9 DINT DINT DINT UDINT User program access read only read/write read only read only read/write read/write read/write read only read/write read only read/write read/write read/write read/write read only read/write read/write read only read only read/write Description Counting enabled. Nonzero means error detected. Count up flag. Count down flag. HSC is Mode 1A or Mode 1B; accumulator counts up to the HP value. Overflow is detected. Underflow is detected. 1: count up; 0: count down High preset reached. Low preset reached. Overflow caused an HSC Interrupt. Underflow caused an HSC Interrupt. High preset reached, causing an HSC Interrupt. Low preset reached, causing an HSC Interrupt. Position of the Programmable Limit Switch (PLS). Displays the error codes that are detected by the HSC subsystem. Actual accumulator reading. Last high preset setting. Last low preset setting. Last high preset output setting. CountEnable BOOL LPOutput UDINT 0...9 read only Counting enabled. read/write Last low preset output setting. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 175 Chapter 5 RLL Instruction Mapping Miscellaneous 176 Supported Data Types in MicroLogix Controllers Instruction HSC Description High-Speed Counter Instruction Parameter type counter preset accum Valid Addressing Mode(s) immediate Valid File Types direct (contained in the C5:0. C5:1 counter register) (element level) (contained in the counter register) Valid Value Ranges 0...7, where: 0 = up 1 = up and reset/hold 2 = pulse/direction 3 = pulse/direction & reset/hold 4 = up/down 5 = up/down & reset/ hold 6 = encoder 7 = encoder and reset/ hold Not applicable -32,768-32,767 -32,768-32,767 Notes on Unsupported RSLogix 500/RSLogix Micro Instruction Set See the following table for notes on unsupported RSLogix 500/RSLogix Micro instruction set. Unsupported RSLogix 500/ RSLogix Micro Instruction Set LFL LFU FFL FFU MEQ JSR SBR Description LIFO Load LIFO Unload FIFO Load FIFO Unload Masked Comparison for Equal Jump to subroutine Subroutine MCR Master control reset INT Interrupt subroutine FLL Fill File CLR Clear TOD Convert to BCD FRD Convert from BCD to Integer DCD Decode 4 to 1 of 16 SCL Scale Data MVM Masked Move Notes Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Part of Ladder mechanism, not required to implement as an instruction Currently not replicated See Configure Interrupts on a Micro800 Controller on page 179 Replace with User-defined Function Block (UDFB) Can be performed by MOV Instruction Block Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 RLL Instruction Mapping Chapter 5 Unsupported RSLogix 500/ RSLogix Micro Instruction Set RES HSD HSE RAC RES for HSC ENC SQC SQL SQO HSL Description Notes Reset HSC Interrupt Disable HSC Interrupt Enable HSC Reset Accumulator Reset HSC Interrupt Encode 1 of 16 to 4-bit data Sequencer Compare Sequencer Load Sequencer Output Configures the low and high presets, the output patterns, and mask bit patterns. Counter Instruction Block in Connected Components Workbench software has "Reset" as input parameter The HSC can be configured from the configuration workspace of the controller. Available as an HSC command in the HSC Instruction Block Replace with User-defined Function Block (UDFB) Replace with User-defined Function Block (UDFB) Currently not replicated Currently not replicated Currently not replicated Part of the HSC Instruction Block Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 177 Chapter 5 RLL Instruction Mapping Notes: 178 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Additional Examples A Appendix Configure Interrupts on a Micro800 Controller For this example, use a Selectable Timed Interrupt (STI). 1. Create a program to execute when the interrupt occurs. a. On the Project Organizer panel, right-click Programs and select Add -> New LD: Ladder Diagram. b. Rename the program as STI_INT. 2. On the Project Organizer panel, double-click Micro830. The Micro830 controller tab displays. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 179 Appendix A Additional Examples 3. On the lower left of the tab, expand Controller, then click Interrupts. 4. On the Controller - Interrupts section (right), click Add. The Add Selectable Time Interrupt (STI) window displays. 5. Set the STI properties and parameters as follows: a. Interrupt Type [Selectable Timed Interrupt (STI)] b. STI ID (STI0) c. Program (the program created earlier) d. Auto Start (selected) e. Set Point (10 ms) 180 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 6. Click Apply, then click OK. The Micro830 workspace displays. Additional Examples Appendix A TIP The configured Interrupts can be configured or deleted from the Controller Interrupts workspace. Set Up High-Speed Counter The controller uses Indexed Addressing to locate the correct encoder count from (HSC) Instruction Variables the data table N7[10] to N7[17] and load the information into the high preset of the high-speed counter. The HSC instruction is required to allow the HSC parameters (N7[0] to N7[4]) to be loaded for the same instruction: Name N7[0] N7[1] N7[2] N7[3] N7[4] Data Value 0001h 0000h 100d 0001h 0d Details Output Mask Control gripper Output pattern for High Preset Turn off gripper High Preset loaded from table N7[10] to N7[17]. Output pattern for Low Preset Turn on gripper Low Preset home position when encoder triggers Z-reset. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 181 Appendix A Additional Examples The number of pulses the head must travel to reach each bin location is stored in a data table that starts at address N7 [10] and ends at N7 [17]. This value is entered under the Initial Value field so that it is used as the value of a variable when a controller starts execution for the first time, such as after a program download. Name N7[10] N7[11] N7[12] N7[13] N7[14] N7[15] N7[16] N7[17] Data Value 100d 200d 300d 400d 500d 600d 700d 800d Details Number of pulses to reach Bin Location A Number of pulses to reach Bin Location B Number of pulses to reach Bin Location C Number of pulses to reach Bin Location D Number of pulses to reach Bin Location E Number of pulses to reach Bin Location F Number of pulses to reach Bin Location G Number of pulses to reach Bin Location H 1. On the Project Organizer panel, double-click Global Variables. 2. Click the + symbol for the variable N7 to expand the row. 3. Double-click the Initial Value field for N7 [0], then enter "01". 4. Repeat step 3 for N7 [1] to N7[4] and N7[10] to N7[17] for the rest of the data values as shown in the earlier tables. The following image shows the completed entries: 182 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 B Appendix Original and Converted Pick-and-Place Ladder Diagrams Original RSLogix 500/ RSLogix Micro Ladder Diagram In this appendix, you can view and compare the three different ladder diagrams of the Pick-and-Place application. · Original RSLogix 500/RSLogix Micro Ladder Diagram · Connected Components Workbench Ladder Diagram (Converter Tool) · Connected Components Workbench Ladder Diagram (Manual Conversion) The following shows the original Pick-and-Place application ladder diagram in the RSLogix 500/RSLogix Micro report. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 183 Appendix A Original and Converted Pick-and-Place Ladder Diagrams 184 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Original and Converted Pick-and-Place Ladder Diagrams Appendix A Connected Components Workbench Ladder Diagram (Converter Tool) The following shows the Pick-and-Place application ladder diagram that was converted with the MicroLogix to Micro800 Converter tool in Connected Components Workbench software. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 185 Appendix A Original and Converted Pick-and-Place Ladder Diagrams Tool Conversion Results See the following log for information on the conversion results. ------ Conversion Started -----Source: C:\Pick and Place Machine\PICK AND PLACE MACHINE.SLC C:\Pick and Place Machine\PICK AND PLACE MACHINE.EAS C:\Pick and Place Machine\PICK AND PLACE MACHINE.EIC C:\Pick and Place Machine\PICK AND PLACE MACHINE.ERP C:\Pick and Place Machine\PICK AND PLACE MACHINE.ESG Destination: Catalog Identifier: 2080-LC30-16QWB Project: PICK AND PLACE MACHINE2 Conversion Report Location: C:\Users\user1\Documents\CCW\PICK AND PLACE MACHINE2\ConversionReport\ConversionReport.csv 186 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Original and Converted Pick-and-Place Ladder Diagrams Appendix A Converting from Processor Type: Bul.1761 MicroLogix 1000 DH-485/ HDSlave. Warning: Revise all usages of status file. They are no longer system variables, unpredictable operation could occur. The properties summary information for the project cannot be converted because documentation was not included in the database export. Warning: Arithmetic Status bits are not supported in Micro800. Revise usage of math instructions. MicroLogix Program File 'LAD 2 - MAIN_PROG' was converted to Program 'MAIN_PROG'. MicroLogix Program File 'LAD 3 - USER_FAULT' was converted to UserDefined Function Block 'USER_FAULT'. MicroLogix Program File 'LAD 4 - HSC_INT' was converted to User-Defined Function Block 'HSC_INT'. MicroLogix Program File 'LAD 5 - STI_INT' was converted to User-Defined Function Block 'STI_INT'. MicroLogix Program File 'LAD 6' was converted to User-Defined Function Block 'FB6'. MicroLogix Program File 'LAD 7' was converted to User-Defined Function Block 'FB7'. MicroLogix Program File 'LAD 8' was converted to User-Defined Function Block 'FB8'. MicroLogix Program File 'LAD 9' was converted to User-Defined Function Block 'FB9'. MicroLogix Program File 'LAD 10' was converted to User-Defined Function Block 'FB10'. MicroLogix Program File 'LAD 11' was converted to User-Defined Function Block 'FB11'. MicroLogix Program File 'LAD 12' was converted to User-Defined Function Block 'FB12'. MicroLogix Program File 'LAD 13' was converted to User-Defined Function Block 'FB13'. MicroLogix Program File 'LAD 14' was converted to User-Defined Function Block 'FB14'. Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 187 Appendix A Original and Converted Pick-and-Place Ladder Diagrams MicroLogix Program File 'LAD 15' was converted to User-Defined Function Block 'FB15'. MicroLogix Program File 'LAD 16' was converted to User-Defined Function Block 'FB16'. C:\Pick and Place Machine\PICK AND PLACE MACHINE.EAS(6,1): For entry 'N7:0', no conversion occurred of empty symbol and empty description. C:\Pick and Place Machine\PICK AND PLACE MACHINE.EAS(7,1): For entry 'N7:2', no conversion occurred of empty symbol and empty description. C:\Pick and Place Machine\PICK AND PLACE MACHINE.EAS(8,1): For entry 'N7:10', no conversion occurred of empty symbol and empty description. C:\Pick and Place Machine\PICK AND PLACE MACHINE.ERP(3,1): Entry 'O0000:000.000/01' was not used in the project. No conversion occurred for title: '' and description: 'When the pick and place head is positioned at its home position, turn off the reverse motor. At the same time the high-speed counter will tell the gripper to grab the next part and start the dwell timer. After the dwell time has expired, start up the forward motor to send the head out to its drop off bin.'. C:\Pick and Place Machine\PICK AND PLACE MACHINE.ERP(5,1): Entry 'O0000:000.000/02' was not used in the project. No conversion occurred for title: '' and description: 'When the pick and place head is positioned at its home position, turn off the reverse motor. At the same time the high-speed counter will tell the gripper to grab the next part and start the dwell timer. After the dwell time has expired, start up the forward motor to send the head out to its drop off bin.'. MicroLogix Literal Parameter 'Up/Down-Res-Hold' was converted to Defined Word 'HSC_UpDownResHold'. Variable 'I:0.0/5' was converted to '_IO_EM_DI_05'. Variable 'I:0.0/6' was converted to '_IO_EM_DI_06'. Variable 'I:0.0/7' was converted to '_IO_EM_DI_07'. Variable 'O:0.0/1' was converted to '_IO_EM_DO_01'. Variable 'O:0.0/2' was converted to '_IO_EM_DO_02'. Description of MicroLogix variable 'S:1/15' cannot be applied to system variable '__SYSVA_FIRST_SCAN'. (Dropping description: 'S:1/15:First Pass') Variable 'S:1/15' was converted to '__SYSVA_FIRST_SCAN'. 188 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Original and Converted Pick-and-Place Ladder Diagrams Appendix A MAIN_PROG(10,1): Rung Comment truncated to 255 characters. Dropping: 'd 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'. MAIN_PROG(11,1): Warning: MicroLogix Variable 'S:1/15' was converted to a system variable '__SYSVA_FIRST_SCAN'. MAIN_PROG(10,2): Warning: RA_HSL_B_FILE and RA_HSL_N_FILE User-Defined Function Blocks are rising edge triggered. The behavior is not the same as MicroLogix HSL which is level triggered. MAIN_PROG(22,1): Rung Comment truncated to 255 characters. Dropping: ' part.'. MAIN_PROG(22,2): Warning: Revise usage of Timer's Accumulator Value. The RA_TON_MICROLOGIX User-Defined Function Block does not start with the associated timer's accumulator value. MAIN_PROG(27,1): Rung Comment truncated to 255 characters. Dropping: ' motor to send the head back to its home position to pick up another part.'. MAIN_PROG(30,1): Rung Comment truncated to 255 characters. Dropping: 'ard motor to send the head out to its drop off bin.'. Interrupt3_USER_FAULT(1,1): Warning: Interrupt 'Interrupt3_USER_FAULT' is calling subroutine 'USER_FAULT'. Revise interrupt logic and configuration. Interrupt3_USER_FAULT(1,1): Warning: Revise all usages of 'USER_FAULT'. Each Function Block call may need to be surrounded by calls to UID and UIE to prevent unpredictable operation. This situation is indicated by build warning "Multi-thread access to global variable may need to be surrounded by calls to UID and UIE." Interrupt4_HSC_INT(1,1): Warning: Interrupt 'Interrupt4_HSC_INT' is calling subroutine 'HSC_INT'. Revise interrupt logic and configuration. Interrupt4_HSC_INT(1,1): Warning: Revise all usages of 'HSC_INT'. Each Function Block call may need to be surrounded by calls to UID and UIE to prevent unpredictable operation. This situation is indicated by build warning "Multi-thread access to global variable may need to be surrounded by calls to UID and UIE." ========= Conversion ends with 0 error(s) and 9 warning(s). ========= Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 189 Appendix A Original and Converted Pick-and-Place Ladder Diagrams Connected Components Workbench Ladder Diagram (Manual Conversion) The following shows the Pick-and-Place application ladder diagram that was converted manually in Connected Components Workbench software. 190 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 Original and Converted Pick-and-Place Ladder Diagrams Appendix A Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 191 Appendix A Original and Converted Pick-and-Place Ladder Diagrams Notes: 192 Rockwell Automation Publication 2080-RM002B-EN-E - June 2019 . Rockwell Automation Support Use the following resources to access support information. Technical Support Center Local Technical Support Phone Numbers Direct Dial Codes Literature Library Product Compatibility and Download Center (PCDC) Knowledgebase Articles, How-to Videos, FAQs, Chat, https://rockwellautomation.custhelp.com/ User Forums, and Product Notification Updates. Locate the phone number for your country. http://www.rockwellautomation.com/global/support/get-supportnow.page Find the Direct Dial Code for your product. Use the http://www.rockwellautomation.com/global/support/direct-dial.page code to route your call directly to a technical support engineer. Installation Instructions, Manuals, Brochures, and http://www.rockwellautomation.com/global/literature-library/ Technical Data. overview.page Get help determining how products interact, check http://www.rockwellautomation.com/global/support/pcdc.page features and capabilities, and find associated firmware. Documentation Feedback Your comments will help us serve your documentation needs better. If you have any suggestions on how to improve this document, complete the How Are We Doing? form at http://literature.rockwellautomation.com/idc/groups/literature/ documents/du/ra-du002_-en-e.pdf. Rockwell Automation maintains current product environmental information on its website at http://www.rockwellautomation.com/rockwellautomation/about-us/sustainability-ethics/product-environmental-compliance.page. Allen-Bradley, CompactLogix, Connected Components Workbench, Encompass, FactoryTalk, Integrated Architecture Builder, MicroLogix, Micro800, Micro810, Micro820, Micro830, Micro850, Micro870, PanelView Plus, Rockwell Automation, Rockwell Software, RSLinx, RSLogix 500, RSLogix Micro, and TechConnect are trademarks of Rockwell Automation, Inc. CIP and EtherNet/IP are trademarks of ODVA, Inc. Trademarks not belonging to Rockwell Automation are property of their respective companies. Rockwell Otomasyon Ticaret A.., Kar Plaza Merkezi E Blok Kat:6 34752 çerenköy, stanbul, Tel: +90 (216) 5698400 Publication 2080-RM002B-EN-E - June 2019 Supersedes Publication 2080-RM002A-EN-E - July 2015 Copyright © 2019 Rockwell Automation, Inc. All rights reserved.Acrobat Distiller 11.0 (Windows)