Allen-Bradley MicroLogix 1100 Instruction Set Reference Manual

Allen-Bradley MicroLogix 1100 Instruction Set Reference Manual

Hide thumbs Also See for MicroLogix 1100:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
MicroLogix™ 1100
Programmable
Controllers
Bulletin 1763 Controllers and 1762
Expansion I/O
Instruction Set Reference
Manual

Advertisement

Table of Contents
loading

Summary of Contents for Allen-Bradley MicroLogix 1100

  • Page 1 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive MicroLogix™ 1100 Programmable Controllers Bulletin 1763 Controllers and 1762 Expansion I/O Instruction Set Reference Manual...
  • Page 2 BURN HAZARD alert people that surfaces may reach dangerous temperatures. Rockwell Automation, DeviceNet, ModBus, Allen-Bradley, SLC 5/02, SLC 5/03, PLC-5, MicroLogix, SLC 500, RSLogix, RSLinx, and RSLogix 500 are trademarks of Rockwell Automation, Inc. Trademarks not belonging to Rockwell Automation are property of their respective companies.
  • Page 3: Summary Of Changes

    Programmable Firmware Revision Catalog Numbers Controller MicroLogix 1100 Series B, Revision C, FRN 9 1763-L16AWA, 1763-L16BWA, 1763-L16BBB, and 1763-L16DWD controllers To upgrade the firmware for a MicroLogix controller visit the MicroLogix web site at http://www.ab.com/micrologix. To use all of the latest features, RSLogix 500 programming software must be version 7.20.00 or higher.
  • Page 4 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 5: Table Of Contents

    Embedded I/O ........13 MicroLogix 1100 Expansion I/O ..... . . 15 MicroLogix 1100 Expansion I/O Memory Mapping.
  • Page 6 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Table of Contents Programming Instructions Instruction Set ........81 Overview Using the Instruction Descriptions .
  • Page 7 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Table of Contents EQU - Equal NEQ - Not Equal ....... . . 181 GRT - Greater Than LES - Less Than .
  • Page 8 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Table of Contents Chapter 13 File Instructions CPW - Copy Word ....... 222 COP - Copy File .
  • Page 9 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Table of Contents Chapter 18 Process Control Instruction The PID Concept ....... . . 279 The PID Equation.
  • Page 10 Communication Channel ......394 Configuring a MicroLogix 1100 CIP Generic Message via Ethernet (OS Series B FRN 4 or later) ......409 MSG Instruction Error Codes .
  • Page 11 Basic requirements to use 40KHz PTO and PWM in MicroLogix of MicroLogix 1100 Series B Controller ........569 Controller PTO and PWM function file changes in Series B Controller .
  • Page 12 - Allen Bradley,Rockwell,plc,servo,drive Table of Contents Glossary Index MicroLogix 1100 List of Instructions and Function Files Publication 1763-RM001C-EN-P - October 2009...
  • Page 13: Embedded I/O

    • Input Filtering on page 25 • Latching Inputs on page 28 Embedded I/O The MicroLogix 1100 provide discrete I/O and analog input that is built into the controller as listed in the following table. These I/O points are referred to as Embedded I/O.
  • Page 14 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration AC embedded inputs have fixed input filters. DC embedded inputs have configurable input filters for a number of special functions that can be used in your application. These are: high-speed counting, event input interrupts, and latching inputs. The 1763-L16BBB has two high-speed outputs for use as pulse train output (PTO) and/or pulse width modulation (PWM) outputs.
  • Page 15: Micrologix 1100 Expansion I/O

    I/O modules. These additional modules are called expansion I/O. Expansion I/O Expansion I/O Modules For the MicroLogix 1100, Bulletin 1762 expansion I/O is used to provide discrete and analog inputs and outputs, and specialty modules. You can attach up to four expansion I/O modules in any combination.
  • Page 16: Micrologix 1100 Expansion I/O Memory Mapping

    - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration MicroLogix 1100 Discrete I/O Configuration Expansion I/O Memory Mapping 1762-IA8 ,1762-IQ8, and 1762-IQ8OW6 Input Image For each input module, the input data file contains the current state of the field input points. Bit positions 0 through 7 correspond to input terminals 0 through 7.
  • Page 17 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration Bit Position r/w r/w r/w r/w r/w r/w r/w = read and write, 0 = always at a 0 or OFF state 1762-OA8, 1762-OB8, and 1762-OW8 Output Image For each output module, the output data file contains the controller-directed state of the discrete output points.
  • Page 18 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration Analog I/O Configuration The following table shows the data ranges for 0 to 10V dc and 4 to 20 mA. Valid Input/Output Data Word Formats/Ranges Normal Operating Range Full Scale Range Raw/Proportional Data Scaled-for-PID 0 to 10V dc 10.5V dc 32,760...
  • Page 19 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration • Ox = Over-range flag bits for channels 0 and 1. These bits can be used in the control program for error detection. • Ux = Under-range flag bits for channels 0 and 1. These bits can be used in the control program for error detection.
  • Page 20 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration • Ox = Over-range flag bits for channels 0 through 3. These bits are set when the input signal is above the user-specified range. The module continues to convert data to the maximum full range value during an over-range condition. The bits reset when the over-range condition clears.
  • Page 21 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration 1762-OF4 Output Data File For each module, slot x, words 0 through 3 contain the channel output data. Raw/Proportional Format Bit Position Channel 0 Data 0 to 32,760 Channel 1 Data 0 to 32,760 Channel 2 Data 0 to 32,760 Channel 3 Data 0 to 32,760 Words 0 through 3 contain the analog output data for channels 0 through...
  • Page 22 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration Specialty I/O Configuration 1762-IR4 RTD/resistance Module Input Data File For each module, slot x, words 0 through 3 contain the analog values of the inputs. Words 4 and 5 provide sensor/channel status feedback. The input data file for each configuration is shown below.
  • Page 23 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration 1762-IT4 Thermocouple Module Input Data File For each module, slot x, words 0 through 3 contain the analog values of the inputs. The input data file is shown below. Word/ 15 14 Analog Input Data Channel 0 Analog Input Data Channel 1 Analog Input Data Channel 2 Analog Input Data Channel 3...
  • Page 24: I/O Addressing

    Slot number (decimal) Embedded I/O: slot 0 Expansion I/O: • slots 1 to 4 for MicroLogix 1100 (See page 15 for an illustration.) Word delimiter. Required only if a word number is necessary as noted below. Word number Required to read/write words, or if the discrete bit number is above 15.
  • Page 25: I/O Forcing

    PWM function, an instruction error is generated. Input Filtering The MicroLogix 1100 controllers allow users to configure groups of DC inputs for high-speed or normal operation. Users can configure each input group’s response time. A configurable filter determines how long the input signal must be “on”...
  • Page 26: Analog Inputs

    0, Word 5 : analog input channel 1). Analog Input Filter and Update times The MicroLogix 1100 analog input filter is programmable. The slower the filter setting, the more immune the analog inputs are to electrical noise. The more immune the analog inputs are to electrical noise, the slower the inputs will be to update.
  • Page 27 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration Programmable Filter Characteristics 1st Notch Freq (Hz) Filter Bandwidth (-3 Settling Time Resolution (Bits) dB Freq Hz) (mSec) 2.62 100.00 13.10 20.00 15.72 16.67 65.50 • 10 Hz is the default setting • The total update time is one ladder scan time plus the settling time. If a 250 Hz filter is selected, the maximum update EXAMPLE Time = ladder scan time + 4ms...
  • Page 28: Latching Inputs

    2.9326 V ( ) 1023 Latching Inputs The MicroLogix 1100 controller provides the ability to individually configure inputs to be latching inputs (sometimes referred to as pulse catching inputs). A latching input is an input that captures a very fast pulse and holds it for a single controller scan.
  • Page 29 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration 3. Open slot 0 (controller). 4. Select the “embedded I/O configuration” tab. 5. Select the mask bits for the inputs that you want to operate as latching inputs. 6. Select the state for the latching inputs. The controller can detect both “on”...
  • Page 30 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration Rising Edge Behavior - Example 2 Scan Number (X) Scan Number (X+1) Scan Number (X+2) Input Ladder Output Input Ladder Output Input Ladder Output Scan Scan Scan Scan Scan Scan Scan Scan Scan External Input Latched Status...
  • Page 31 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration Falling Edge Behavior - Example 1 Scan Number (X) Scan Number (X+1) Scan Number (X+2) Scan Number (X+3) Input Ladder Output Input Ladder Output Input Ladder Output Input Ladder Output Scan Scan Scan Scan Scan Scan Scan...
  • Page 32: Configuring Expansion

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive I/O Configuration Configuring Expansion Expansion I/O must be configured for use with the controller. Configuring expansion I/O can be done either manually, or automatically. Using I/O Using RSLogix 500 RSLogix 500: 1. Open the “Controller” folder. 2.
  • Page 33: Preface

    If you do not, obtain the proper training before using this product. Purpose of this Manual This manual is a reference guide for MicroLogix 1100 controller. It describes the procedures you use to program and troubleshoot your controller. This manual: •...
  • Page 34: Related Documentation

    Read this Document Document Number Information on understanding and applying micro controllers. MicroMentor 1761-MMB Information on mounting and wiring the MicroLogix 1100 Programmable MicroLogix 1100 Programmable 1763-IN001 Controller, including a mounting template and door labels. Controllers Installation Instructions Detailed information on planning, mounting, wiring, and troubleshooting...
  • Page 35 Chapter Controller Memory and File Types This chapter describes controller memory and the types of files used by the MicroLogix 1100 controller. The chapter is organized as follows: • Controller Memory on page 36 • Data Files on page 40 •...
  • Page 36: Chapter 1 Controller Memory

    Controller Memory and File Types Controller Memory File Structure MicroLogix 1100 user memory is comprised of Data Files, Function Files, and Program Files. The file types shown below for data files 3 through 8 are the default file types for those file numbers and cannot be changed.
  • Page 37 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types User Memory User memory is the amount of storage available to a user for storing ladder logic, data table files, I/O configuration, etc., in the controller. User data files consist of the system status file, I/O image files, and all other user-creatable data files (bit, timer, counter, control, integer, string, long word, MSG, and PID).
  • Page 38 - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types MicroLogix 1100 User Memory The MicroLogix 1100 controller supports 8K of memory. Memory can be used for program files and data files. The maximum data memory usage is 4K words as shown below.
  • Page 39 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types Viewing Controller Memory Usage 1. Highlight and open Controller Properties. 2. The amount of Memory Used and Memory Left will appear in the Controller Properties window once the program has been verified. Publication 1763-RM001C-EN-P - October 2009...
  • Page 40: Data Files

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types Data Files Data files store numeric information, including I/O, status, and other data associated with the instructions used in ladder subroutines. The data file types are: File Name File File Words per File Description Identifier Element...
  • Page 41 MSG instruction. File (1) MicroLogix 1100 OS Series B FRN 4 or later. (2) File Number in BOLD is the default. Additional data files of tha type can be configured using the ramaining numbers. Publication 1763-RM001C-EN-P - October 2009...
  • Page 42: Protecting Data Files During Download

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types Protecting Data Files Data File Download Protection During Download Once a user program is in the controller, there may be a need to update the ladder logic and download it to the controller without destroying user-configured variables in one or more data files in the controller.
  • Page 43 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types Access the Download Data File Protect feature using RSLogix 500 programming software. For each data file you want protected, check the Memory Module/Download item within the protection box in the Data File Properties screen as shown in this illustration.
  • Page 44: Static File Protection

    Using Static File Protection with Data File Download Protection Static File Protection and Data File Download Protection can be used in combination with MicroLogix 1100 Controller Series A and higher. Setting Static File Protection Static File Protection can be applied to the following data file types: •...
  • Page 45: Password Protection

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types Access the Static File Protect feature using RSLogix 500 programming software. For each data file you want protected, select the Static protection in the Data File Properties screen as shown in this illustration. To access this screen, right mouse click on the desired data file.
  • Page 46: Clearing The Controller Memory

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types If a password is lost or forgotten, there is no way to bypass the password to recover the program. The only option is to clear the controller’s memory. If the Memory Module User Program has the “Load Always” functionality enabled, and the controller User Program has a password specified, the controller compares the passwords before transferring the User Program from the Memory Module to the controller.
  • Page 47: Allow Future Access Setting (Oem Lock)

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types Allow Future Access The controller supports a feature which allows you to select if future access to the User Program should be allowed or disallowed after it has Setting (OEM Lock) been transferred to the controller.
  • Page 48 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Controller Memory and File Types Using RSLogix 500 V7.20 and higher, you can disable individual data files from being viewed via any web browser by selecting the data file’s properties page and checking the Web View Disable check box as shown below.
  • Page 49 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter Function Files This chapter describes controller function files. The chapter is organized as follows: • Overview on page 50 • Real-Time Clock Function File on page 51 • Memory Module Information Function File on page 54 •...
  • Page 50: Chapter 2 Overview

    Overview Function Files are one of the three primary file structures within the MicroLogix 1100 controller (Program Files and Data Files are the others). Function Files provide an efficient and logical interface to controller resources. Controller resources are resident (permanent) features such as the Real-Time Clock and High-Speed Counter.
  • Page 51: Real-Time Clock Function File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Real-Time Clock The real-time clock provides year, month, day of month, day of week, hour, minute, and second information to the Real-Time Clock (RTC) Function File Function File in the controller. The Real-Time Clock parameters and their valid ranges are shown in the table below.
  • Page 52 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files The real-time clock does not allow you to load or store invalid date or time data. Use the Disable Clock button in your programming device to disable the real-time clock before storing a module. This decreases the drain on the battery during storage.
  • Page 53: Rta - Real Time Clock Adjust Instruction

    Controller When Rung Is: True False Real Time Clock Adjust MicroLogix 1100 4.37 µs 4.09 µs The RTA instruction is used to synchronize the controllers Real-Time Clock (RTC) with an external source. The RTA instruction will adjust the RTC to the nearest minute. The RTA instruction adjusts the RTC based on the value of the RTC Seconds as described below.
  • Page 54: Memory Module Information Function File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Memory Module The controller has a Memory Module Information (MMI) File which is updated with data from the attached memory module. At power-up or on Information Function detection of a memory module being inserted, the catalog number, series, File revision, and type are identified and written to the MMI file in the user program.
  • Page 55 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files MP - Module Present The MP (Module Present) bit can be used in the user program to determine when a memory module is present on the controller. This bit is updated once per scan, provided the memory module is first recognized by the controller.
  • Page 56: Base Hardware Information Function File

    See Power-Up Mode Behavior on page 471 for more information. Base Hardware The base hardware information (BHI) file is a read-only file that contains a description of the MicroLogix 1100 Controller. Information Function File Base Hardware Information Function File (BHI)
  • Page 57: Communications Status File

    • MicroLogix 1100 43 to 70 Reserved words 43 to 70 when using Modbus RTU Slave, Master or DF1 Half-Duplex Master: 43 to 69 Modbus Slave Diagnostic Counters Block • MicroLogix 1100 • MicroLogix 1100 End of List Category Identifier Code...
  • Page 58 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files General Status Block of Communications Status File General Channel Status Block Word Description Communications Channel General Status Information Category Identifier Code Length Format Code Communications Configuration Error Code ICP – Incoming Command Pending Bit This bit is set (1) when the controller determines that another device has requested information from this controller.
  • Page 59 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Diagnostic Counter Block of Communications Status File With RSLogix 500 version 7.00.00 and later, formatted displays of the diagnostic counters for each configured channel are available under Channel Status. These displays include a Clear button that allows you to reset the diagnostic counters while monitoring them online with the programming software.
  • Page 60 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files DH-485 Diagnostic Counters Block Word Description Diagnostic Counters Category Identifier Code (always 2) Length (always 30) Format Code (always 0) Total Message Packets Received Total Message Packets Sent 0 to 7 Message Packet Retries 8 to 15 Retry Limit Exceeded (Non-Delivery) 0 to 7...
  • Page 61 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files DF1 Full-Duplex Diagnostic Counters Block Word Description Diagnostic Counters Category Identifier Code (always 2) Length (always 30) Format Code (always 1) Reserved Reserved 4 to 15 Reserved Total Message Packets Sent Total Message Packets Received Undelivered Message Packets ENQuiry Packets Sent NAK Packets Received...
  • Page 62 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files DF1 Half-Duplex Slave Diagnostic Counters Block Word Description Diagnostic Counters Category Identifier Code (always 2) Length (always 30) Format Code (always 2) Reserved Reserved 4 to 15 Reserved Total Message Packets Sent Total Message Packets Received Undelivered Message Packets Message Packets Retried NAK Packets Received...
  • Page 63 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files DF1 Half-Duplex Master Diagnostic Counters Block Word Description Diagnostic Counters Category Identifier Code (always 2) Length (always 30) Format Code (always 3) Reserved Reserved 4 to 15 Reserved Total Message Packets Sent Total Message Packets Received Undelivered Message Packets Message Packets Retried Reserved...
  • Page 64 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files DF1 Radio Modem Diagnostic Counters Block Word Description Diagnostic Counters Category Identifier Code (always 2) Length (always 30) Format Code (always 1) Reserved Reserved 4 to 15 Reserved Total Message Packets Sent Total Message Packets Received Undelivered Message Packets 13 to 15 - Reserved...
  • Page 65 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Modbus RTU Slave Diagnostic Counters Block (Data Link Layer) Word Description Diagnostic Counters Category Identifier Code (always 2) Length (always 30) Format Code (always 4) Reserved Reserved 4 to 15 Reserved Total Message Packets Sent Total Message Packets Received for This Slave Total Message Packets Received Link Layer Error Count...
  • Page 66 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Modbus RTU Slave Diagnostic Counters Block (Presentation Layer) Word Description Function Code 6 Message Counter Function Code 8 Message Counter Function Code 15 Message Counter Function Code 16 Message Counter Modbus RTU Master Diagnostic Counters Block (Data Link Layer) Word Description Diagnostic Counters Category Identifier Code (always 2)
  • Page 67 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Modbus RTU Master Diagnostic Counters Block (Presentation Layer) Word Description Diagnostic Counters Category Identifier Code (always 6) Length (always 32) Format Code (always 0) ERR 1: Illegal Function Last Device Reporting ERR 1 ERR 2: Illegal Data Address Last Device Reporting ERR 2 ERR 3: Illegal Data Value Last Device Reporting ERR 3...
  • Page 68 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files ASCII Diagnostic Counters Block Word Description DLL Diagnostic Counters Category Identifier code (always 2) Length (always 30) Format Code (always 5) Reserved Reserved 4 to 15 Reserved Software Handshaking Status 1 to 15 Reserved Echo Character Count Received Character Count 13 to 18 -...
  • Page 69 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Active Node Table Block of Communications Status File Active Node Table Block Word Description Active Node Table Category Identifier Code (always 3) Length: • always 4 for DH-485 • always 18 for DF1 Half-Duplex Master •...
  • Page 70 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Publication 1763-RM001C-EN-P - October 2009...
  • Page 71: Ethernet Communications Status File

    MicroLogix 1100 120 to 176 DLL Diagnostic Counters Block MicroLogix 1100 End of List Category Identifier Code (always 0) MicroLogix 1100 The following tables show the details of each block in the Ethernet Communications Status File. General Status Block of Ethernet Communications Status File...
  • Page 72 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files General Channel Status Block ICP – Incoming Command Pending Bit This bit is set (1) when the controller determines that another device has requested information from this controller. Once the request has been satisfied, the bit is cleared (0). MRP –...
  • Page 73 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files General Channel Status Block Ethernet Port Link Status This bit is set (1) when the Ethernet link is active. Ethernet Port Connection Speed This bit indicates the speed of the link layer driver operating at Ethernet port: •...
  • Page 74 Message Reply Timeout The amount of time (in ms) that the MicroLogix 1100 processor waits for a reply to a command that it has initiated via a MSG instruction. The MSG Reply Timeout has a range of 250 ms...65,500 ms.
  • Page 75 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Ethernet Diagnostic Counters Block Word Description Low word RMON Rx Packets High word (RMON_R_PACKETS) Low word RMON Tx Packets High word (RMON_T_PACKETS) Low word Frames Transmitted with Excessive Collisions High word (IEEE_T_EXCOL) Low word Frames Received with CRC Error High word (IEEE_R_CRC)
  • Page 76 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Ethernet Diagnostic Counters Block (continued) Word Description Low word Total Commands Sent High word Low word Total Commands Received High word Publication 1763-RM001C-EN-P - October 2009...
  • Page 77 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Ethernet Diagnostic Counters Block (continued) Word Description Low word Total Replies Sent High word Low word Total Replies Received High word Low word Total Replies Sent with Error High word Low word Total Replies Received with Error High word Low word Total Replies Timed Out...
  • Page 78 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Ethernet Diagnostic Counters Block (continued) Word Description Low word Total Message Connections High word Low word Total Incoming Messages High word Low word Total Outgoing Messages High word Low word Maximum Connections Allowed High word The last Port tab will show the current states of Ethernet communications port according to word 5 of Ethernet Communications Status File.
  • Page 79: Input/Output Status File

    Embedded Module Error Code – Always zero 1 to 4 Expansion Module Error Code – The word number corresponds to the module’s slot number. Refer to the I/O module’s documentation for specific information. (MicroLogix 1100) Publication 1763-RM001C-EN-P - October 2009...
  • Page 80: Publication 1763-Rm001C-En-P - October

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Function Files Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 81: Instruction Set

    - Allen Bradley,Rockwell,plc,servo,drive Chapter Programming Instructions Overview Instruction Set The following table shows the MicroLogix 1100 programming instructions listed within their functional group. Functional Group Description Page High-Speed Counter HSL, RAC – The high-speed counter instructions (along with the HSC function file) allow you to monitor and control the high-speed outputs.
  • Page 82: Using The Instruction Descriptions

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Programming Instructions Overview Using the Instruction Throughout this manual, each instruction (or group of similar instructions) has a table similar to the one shown below. This table provides Descriptions information for all sub-elements (or components) of an instruction or group of instructions.
  • Page 83 By supporting these three addressing methods, the MicroLogix 1100 allows incredible flexibility in how data can be monitored or manipulated. Each of the addressing modes are described below.
  • Page 84 The MicroLogix 1100 supports indirection (indirect addressing) for Files, Words and Bits. To define which components of an address are to be indirected, a closed bracket “[ ]” is used. The following examples illustrate how to use indirect addressing.
  • Page 85 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Programming Instructions Overview Indirect Addressing of a File B3:0 Limit Test Copy File 0001 Low Lim Source #N[N50:100]:10 10< Dest #N7:0 Test N50:100 Length 10< High Lim 25< • Address: N[N50:100]:10 • Description: In this example, the source of the COP instruction is indirected by N50:100.
  • Page 86 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Programming Instructions Overview Indirect Addressing of Bit B3:0 B3:0 0002 [B25:0] 0003 • Address: B3/[B25:0] • Description: In this example, the element to be used for the indirection is B25:0. The data in B25:0 defines the bit within file B3. If the value of location B25:0 = 1017, the XIC instruction is processed using B3/1017.
  • Page 87 In this section, an indexed addressing example is shown first. Then an equivalent indirect addressing example is shown. Indexed addressing is supported by SLC 500 and MicroLogix 1000 programmable controllers. The MicroLogix 1100, 1200, and 1500 do not support indexed addressing. This example is shown for comparison purposes. Indexed Addressing Example The following ADD instruction uses an indexed address in the Source A and Destination addresses.
  • Page 88 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Programming Instructions Overview Indirect Addressing Example An equivalent example using indirect addressing is shown below. In place of using the index register, S:24, the user can designate any other valid word address as the indirect address. Multiple indirect addresses can be used within an instruction.
  • Page 89: High-Speed Counter Overview

    Using the High-Speed Counter and Programmable Limit Switch High-Speed Counter All MicroLogix 1100, except the 1763-L16AWA, have one 20 kHz (40 ) high-speed counter. The counter has four dedicated inputs that Overview are isolated from other inputs on the controller. HSC0 utilizes inputs 0 through 3.
  • Page 90: High-Speed Counter (Hsc) Function File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch High-Speed Counter Within the RSLogix 500 Function File Folder, you see a HSC Function File. This file provides access to HSC configuration data, and also allows the (HSC) Function File control program access to all information pertaining to the High-Speed Counter.
  • Page 91 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch The HSC is extremely versatile; the user can select or configure HSC for any one of eight (8) modes of operation. (Operating Modes are discussed later in this chapter. See section HSC Mode (MOD) on page 107). Some of the enhanced capabilities of the High-Speed Counters are: •...
  • Page 92: High-Speed Counter Function File Sub-Elements Summary

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch High-Speed Counter The HSC is comprised of 36 sub-elements. These sub-elements are either bit, word, or long word structures that are used to provide control over Function File the HSC function, or provide HSC status information for use within the Sub-Elements Summary control program.
  • Page 93: Hsc Function File Sub-Elements

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch HSC Function File All examples illustrate HSC0. Sub-Elements Program File Number (PFN) Description Address Data Format HSC Modes Type User Program Access PFN - Program HSC:0.PFN word (INT) 0 to 7 control read only File Number...
  • Page 94 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Function Enabled (FE) Description Address Data Format Type User Program Access HSC Modes FE - Function HSC:0/FE bit 0 to 7 control read/write Enabled (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The FE (Function Enabled) is a status/control bit that defines when the HSC interrupt is enabled, and that interrupts generated by the HSC are processed based on their priority.
  • Page 95 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch This bit is maintained by the controller and is set and cleared automatically. Publication 1763-RM001C-EN-P - October 2009...
  • Page 96 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Counting Enabled (CE) Description Address Data Format HSC Modes Type User Program Access CE - Counting HSC:0/CE bit 0 to 7 control read/write Enabled (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The CE (Counting Enabled) control bit is used to enable or disable the High-Speed Counter.
  • Page 97 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch User Interrupt Enable (UIE) Description Address Data Type User Program Format Access Modes UIE - User Interrupt Enable HSC:0/UIE bit 0 to 7 control read/write (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The UIE (User Interrupt Enable) bit is used to enable or disable HSC subroutine processing.
  • Page 98 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch The HSC UIX bit can be used in the control program as conditional logic to detect if an HSC interrupt is executing. The HSC sub-system will clear (0) the UIX bit when the controller completes its processing of the HSC subroutine.
  • Page 99 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Low Preset Mask (LPM) Description Address Data Format Type User Program Access HSC Modes LPM - Low HSC:0/LPM bit 2 to 7 control read/write Preset Mask (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The LPM (Low Preset Mask) control bit is used to enable (allow) or disable (not allow) a low preset interrupt from occurring.
  • Page 100 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Low Preset Reached (LPR) Description Address Data Format HSC Modes Type User Program Access LPR - Low HSC:0/LPR bit 2 to 7 status read only Preset Reached (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The LPR (Low Preset Reached) status flag is set (1) by the HSC sub-system whenever the accumulated value (HSC:0.ACC) is less than or equal to the low preset variable (HSC:0.LOP).
  • Page 101 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch High Preset Mask (HPM) Description Address Data Format HSC Modes Type User Program Access HPM - High HSC:0/HPM bit 0 to 7 control read/write Preset Mask (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The HPM (High Preset Mask) control bit is used to enable (allow) or disable (not allow) a high preset interrupt from occurring.
  • Page 102 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch High Preset Reached (HPR) Description Address Data Format HSC Modes Type User Program Access HPR - High HSC:0/HPR bit 2 to 7 status read only Preset Reached (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The HPR (High Preset Reached) status flag is set (1) by the HSC sub-system whenever the accumulated value (HSC:0.ACC) is greater than or equal to the high preset variable (HSC:0.HIP).
  • Page 103 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch The UFM (Underflow Mask) control bit is used to enable (allow) or disable (not allow) a underflow interrupt from occurring. If this bit is clear (0), and a Underflow Reached condition is detected by the HSC, the HSC user interrupt is not executed.
  • Page 104 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch This bit is transitional and is set by the HSC sub-system. It is up to the control program to utilize, track if necessary, and clear (0) the overflow condition.
  • Page 105 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Overflow Mask (OFM) Description Address Data Format HSC Modes Type User Program Access OFM - Overflow HSC:0/OFM bit 0 to 7 control read/write Mask (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The OFM (Overflow Mask) control bit is used to enable (allow) or disable (not allow) an overflow interrupt from occurring.
  • Page 106 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Count Direction (DIR) Description Address Data Format HSC Modes Type User Program Access DIR - Count HSC:0/DIR bit 0 to 7 status read only Direction (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The DIR (Count Direction) status flag is controlled by the HSC sub-system.
  • Page 107 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Count Up (CU) Description Address Data Format HSC Modes Type User Program Access CU - Count Up HSC:0/CU bit 0 to 7 status read only (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The CU (Count Up) bit is used with all of the HSCs (modes 0 to 7).
  • Page 108 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch HSC Mode 0 - Up Counter HSC Mode 0 Examples Input Terminals I1:0.0/0 (HSC0) I1:0.0/1 (HSC0) I1:0.0/2 (HSC0) I1:0.0/3 (HSC0) CE Bit Comments Function Count Not Used Not Used Not Used ⇑...
  • Page 109 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch HSC Mode 2 - Counter with External Direction HSC Mode 2 Examples Input Terminals I1:0.0/0 (HSC0) I1:0.0/1 (HSC0) I1:0.0/2 (HSC0) I1:0.0/3 (HSC0) CE Bit Comments Function Count Direction Not Used Not Used ⇑...
  • Page 110 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch HSC Mode 4 - Two Input Counter (up and down) HSC Mode 4 Examples Input Terminals I1:0.0/0 (HSC0) I1:0.0/1 (HSC0) I1:0.0/2 (HSC0) I1:0.0/3 (HSC0) CE Bit Comments Function Count Up Count Down Not Used...
  • Page 111 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Using the Quadrature Encoder The Quadrature Encoder is used for determining direction of rotation and position for rotating, such as a lathe. The Bidirectional Counter counts the rotation of the Quadrature Encoder. The figure below shows a quadrature encoder connected to inputs 0, 1, and 2.
  • Page 112 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Inputs I1:0.0/0 through I1:0.0/3 are available for use as inputs to other functions regardless of the HSC being used. HSC Mode 7 - Quadrature Counter (phased inputs A and B) With External Reset and Hold HSC Mode 7 Examples Input...
  • Page 113 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Accumulator (ACC) Description Address Data Format Type User Program Access ACC - Accumulator HSC:0.ACC long word (32-bit INT) control read/write The ACC (Accumulator) contains the number of counts detected by the HSC sub-system.
  • Page 114 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch • Load new HSC parameters using the HSL instruction. See HSL - High-Speed Counter Load on page 118. The data loaded into the low preset must greater than or equal to the data resident in the underflow (HSC:0.UNF) parameter, or an HSC error is generated.
  • Page 115 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch overflow value (counts are not lost in this transition). The user can specify any value for the underflow position, provided it is less than the overflow value and falls between -2,147,483,648 and 2,147,483,647. To load data into the underflow variable, the control program must toggle (low to high) the Set Parameters (HSC:0.0/SP) control bit.
  • Page 116 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch The outputs shown in the black boxes are the outputs under the control of the HSC sub-system. The mask defines which outputs can be controlled. The high preset output or low preset output values (HPO or LPO) define if each output is either ON (1) or OFF (0).
  • Page 117 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch High Preset Output (HPO) Description Address Data Format Type User Program Access HPO - High Preset Output HSC:0.HPO word (16-bit binary) control read/write The HPO (High Preset Output) defines the state (1 = ON or 0 = OFF) of the outputs on the controller when the high preset is reached.
  • Page 118: Hsl - High-Speed Counter Load

    True False Output Low Source N7:3 82.37 μs 0.87 μs MicroLogix 1100 word 84.37 μs 0.87 μs long word The HSL (High-Speed Load) instruction allows the high and low presets, and high and low output source to be applied to a high-speed counter.
  • Page 119: Rac - Reset Accumulated Value

    True False 40.81 μs 0.87 μs MicroLogix 1100 The RAC instruction resets the high-speed counter and allows a specific value to be written to the HSC accumulator. The RAC instruction uses the following parameters: • Counter Number - Specifies which high-speed counter is being used: –...
  • Page 120: Programmable Limit Switch (Pls) File

    The PLS data file is illustrated below. The PLS Function only operates in tandem with the HSC IMPORTANT of a MicroLogix 1100. To use the PLS function, an HSC must first be configured. PLS Data File Data files 9 to 255 can be used for PLS operations.
  • Page 121 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch When the HSC counts to that new preset, the new output data is written through the HSC mask. This process continues until the last element within the PLS file is loaded. At that point the active element within the PLS file is reset to zero.
  • Page 122 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch PLS Example Setting up the PLS File 1. Using RSLogix 500, create a new project, give it a name and select the appropriate controller. 2. Right click on Data Files and select New. Publication 1763-RM001C-EN-P - October 2009...
  • Page 123 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch 3. Enter a file number (9 to 255) and select Programmable Limit Switch as the type. A Name and/or Description may be entered as well, but is not required. 4.
  • Page 124 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Publication 1763-RM001C-EN-P - October 2009...
  • Page 125 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch PLS Data File Definitions: Data Description Data Format High Preset 32-bit signed integer Low Preset Output High Data 16-bit binary Output Low Data (bit 15--> 0000 0000 0000 0000 <--bit 0) Once the values above have been entered for HIP and OHD, the PLS is configured.
  • Page 126 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using the High-Speed Counter and Programmable Limit Switch Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 127: Pto - Pulse Train Output

    Generate PWM output MicroLogix 1100 Series A controller does not support ATTENTION 40kHz PTO and PWM. Only MicroLogix 1100 Series B controller supports 40kHz PTO and PWM with any version of RSLogix500. Refer to Appendix F How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller for more information.
  • Page 128: Pulse Train Output Function

    - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs Pulse Train Output The MicroLogix 1100 1763-L16BBB controller supports two high-speed outputs. These outputs can be used as standard outputs (not high-speed) Function or individually configured for PTO or PWM operation. The PTO functionality allows a simple motion profile or pulse profile to be generated directly from the controller.
  • Page 129 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs 2. The PTO instruction is started, and pulses are produced based on the accelerate/decelerate (ACCEL) parameters, which define the number of ACCEL pulses and the type of profile: s-curve or trapezoid. 3. The ACCEL phase completes. 4.
  • Page 130 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs – Jog Pulse (JP) bit must be off – Jog Continuous (JC) bit must be off – Enable Hard Stop (EH) bit must be off – Normal Operation (NS) bit must be off –...
  • Page 131 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs Stage Rung State Sub-Elements: Relative Timing Normal Operation/NO Accelerate Status/AS Run Status/RS Decelerate Status/DS Enable/EN Done/DN Idle/ID Jog Pulse/JP Jog Continuous/JC Start of PTO Start of PTO Publication 1763-RM001C-EN-P - October 2009...
  • Page 132 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs Standard Logic Enable Example In this example, the rung state is a maintained type of input. This means that it enables the PTO instruction Normal Operation (NO) and maintains its logic state until after the PTO instruction completes its operation. With this type of logic, status bit behavior is as follows: The Done (DN) bit becomes true (1) when the PTO completes and remains set until the PTO rung logic is false.
  • Page 133: Pulse Train Outputs (Pto) Function File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs Pulse Train Outputs Within the RSLogix 500 Function File Folder, you see a PTO Function File with two elements, PTO0 and PTO1. These elements provide access to (PTO) Function File PTO configuration data and also allow the control program access to all information pertaining to each of the Pulse Train Outputs.
  • Page 134: Pulse Train Output Function File Sub-Elements Summary

    (1) OF, OFS, and JF are signed 16-bit (-32768~32768) variables in MicroLogix 1100 Series A controller, but they are unsigned 16-bit (0~65535) variables in MicroLogix 1100 Series B controller. (2) The variable range of OF, OFS, and JF is 0~20000 in MicroLogix 1100 Series A controller and it is 0~40000 in MicroLogix 1100 Series B controller. (3) Applies only to MicroLogix 1100 Series A Controller...
  • Page 135 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Output (OUT) Sub-Element Address Data Format Range Type User Program Description Access OUT - Output PTO:0.OUT word (INT) 2 or 3 control read only The PTO OUT (Output) variable defines the output (O0:0/2 or O0:0/3) that the PTO instruction controls.
  • Page 136 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Decelerating Status (DS) Sub-Element Address Data Format Range Type User Program Description Access DS - Decelerating Status PTO:0/DS 0 or 1 status read only The PTO DS (Decel) bit is controlled by the PTO sub-system. It can be used by an input instruction on any rung within the control program.
  • Page 137 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs • Cleared (0) - Whenever a PTO instruction is not within the acceleration phase of the output profile. PTO Ramp Profile (RP) Sub-Element Address Data Format Range Type User Program Description Access RP - Ramp Profile PTO:0/RP bit 0 or 1 control...
  • Page 138 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Error Detected (ED) Sub-Element Address Data Format Range Type User Program Description Access ED - Error Detected Status PTO:0/ED 0 or 1 status read only The PTO ED (Error Detected Status) bit is controlled by the PTO sub-system.
  • Page 139 In the MicroLogix 1100 Series A controller, the data less than zero or greater than 20,000 generates a PTO error. However, in the MicroLogix 1100 Series B controller, the data less than zero or greater than 40,000 generates a PTO error.
  • Page 140 (unsigned integer to signed integer). Refer to PTO and PWM function file changes in Series B Controller on page 569 in Appendix F How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller for more information. PTO Operating Frequency Status (OFS)
  • Page 141 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Output Pulses Produced (OPP) Sub-Element Address Data Range Type User Program Description Format Access OPP - Output PTO:0.OPP long word 0 to 2,147,483,647 status read only Pulses Produced (32-bit INT) The PTO OPP (Output Pulses Produced) is generated by the PTO sub-system and can be used in the control program to monitor how many pulses have been generated by the PTO sub-system.
  • Page 142 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Accel / Decel Pulses (ADP) (ADI=0) or File:Elem (ADI=1) Sub-Element Description Address Data Format Range Type User Program Access ADP - Accel/Decel Pulses PTO:0.ADP long word (32-bit INT) 0 to 1,073,741,824 control read/write (ADI=0) 0 to 2,147,483,647 (ADI=1)
  • Page 143 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs Accel Decel 12,000 Accel Decel 6,000 6,000 In this example, the maximum value that could be used for accelerate/ decelerate is 6000, because if both accelerate and decelerate are 6000, the total number of pulses = 12,000. The run component would be zero. This profile would consist of an acceleration phase from 0 to 6000.
  • Page 144 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Controlled Stop (CS) Sub-Element Description Address Data Range Type User Program Format Access CS - Controlled Stop PTO:0/CS 0 or 1 control read/write The PTO CS (Controlled Stop) bit is used to stop an executing PTO instruction, in the run portion of the profile, by immediately starting the decel phase.
  • Page 145 In the MicroLogix 1100 Series A controller, the data less than zero or greater than 20,000 generates a PTO error. However, in the MicroLogix 1100 Series B controller, the data less than zero or greater than 40,000 generates a PTO error.
  • Page 146 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Jog Pulse (JP) Sub-Element Address Data Format Range Type User Program Description Access JP - Jog Pulse PTO:0/JP 0 or 1 control read/write The PTO JP (Jog Pulse) bit is used to instruct the PTO sub-system to generate a single pulse.
  • Page 147 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Jog Continuous (JC) Sub-Element Address Data Format Range Type User Program Description Access JC - Jog Continuous PTO:0/JC 0 or 1 control read/write The PTO JC (Jog Continuous) bit instructs the PTO sub-system to generate continuous pulses.
  • Page 148 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PTO Error Code (ER) Sub-Element Address Data Format Range Type User Program Description Access ER - Error Code PTO:0.ER word (INT) -3 to 7 status read only PTO ER (Error Codes) detected by the PTO sub-system are displayed in this register.
  • Page 149: Pwm - Pulse Width Modulation

    PWM Number modules. The PWM instruction should only be used with IMPORTANT MicroLogix 1100 BBB unit. Relay outputs are not capable of performing very high-speed operations. MicroLogix 1100 Series A controller does not support ATTENTION 40kHz PTO and PWM. Only MicroLogix 1100 Series B controller supports 40kHz PTO and PWM with any version of RSLogix500.
  • Page 150: Pwm Function

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PWM Function The PWM function allows a field device to be controlled by a PWM wave form. The PWM profile has two primary components: • Frequency to be generated • Duty Cycle interval The PWM instruction, along with the HSC and PTO functions, are different than all other controller instructions.
  • Page 151 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs Publication 1763-RM001C-EN-P - October 2009...
  • Page 152: Pulse Width Modulated Function File Elements Summary

    (1) OF and OFS are signed 16-bit (-32768~32768) variables in MicroLogix 1100 Series A controller, but they are unsigned 16-bit (0~65535) variables in MicroLogix 1100 Series B controller. (2) The variable range of OF, OFS, and JF is 0~20000 in MicroLogix 1100 Series A controller and it is 0~40000 in MicroLogix 1100 Series B controller. (3) Applies only to MicroLogix 1100 Series A Controller...
  • Page 153 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs • O0:0.0/3: PWM modulates output 3 of the embedded outputs. PWM Decelerating Status (DS) Element Description Address Data Format Range Type User Program Access DS - Decelerating Status PWM:0/DS bit 0 or 1 status read only The PWM DS (Decel) bit is controlled by the PWM sub-system.
  • Page 154 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs • Set (1) - Whenever a PWM output is within the acceleration phase of the output profile. • Cleared (0) - Whenever a PWM output is not within the acceleration phase of the output profile. PWM Profile Parameter Select (PP) Element Description Address...
  • Page 155 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PWM Error Detected (ED) Element Description Address Data Range Type User Program Format Access ED - PWM Error Detection PWM:0/ED bit 0 or 1 status read only The PWM ED (Error Detected) bit is controlled by the PWM sub-system. It can be used by an input instruction on any rung within the control program to detect when the PWM instruction is in an error state.
  • Page 156 The PWM OF (Output Frequency) variable defines the frequency of the PWM function. This frequency can be changed at any time. In the MicroLogix 1100 Series A controller, the data less than zero or greater than 20,000 generates a PWM error. However, in the MicroLogix 1100 Series B controller, the data less than zero or greater than 40,000 generates a PWM error.
  • Page 157 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PWM Operating Frequency Status (OFS) Element Description Address Data Format Range Type User Program Access Controller Series OFS - PWM Operating Frequency Status PWM:0.OFS word (INT) 0 to 20,000 status read only word (UINT) 0 to 40,000 The PWM OFS (Output Frequency Status) is generated by the PWM sub-system and can be used in the control program to monitor the actual...
  • Page 158 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using High-Speed Outputs PWM Accel/Decel Delay (ADD) Element Description Address Data Format Range Type User Program Access ADD - Accel/Decel Delay PWM:0.ADD word (INT) 0 to 32,767 control read/write PWM ADD (Accel/Decel Delay) defines the amount of time in 10 millisecond interval to ramp from zero to 20kHz frequency.
  • Page 159: Xic - Examine If Closed Xio - Examine If Open

    B3:0 Execution Time for the XIC Instruction Controller When Instruction Is: B3:0 True False 1.5 μs 1.45 μs MicroLogix 1100 Execution Time for the XIO Instruction Controller When Instruction Is: True False 1.5 μs 1.5 μs MicroLogix 1100 Use the XIC instruction to determine if the addressed bit is on. Use the XIO instruction to determine if the addressed bit is off.
  • Page 160 • • • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, LCD, and DLS files.
  • Page 161: Ote - Output Energize

    False 1.43 μs 1.5 μs MicroLogix 1100 Use an OTE instruction to turn a bit location on when rung conditions are evaluated as true and off when the rung is evaluated as false. An example of a device that turns on or off is an output wired to a pilot light (addressed as O0:0/4).
  • Page 162: Otl - Output Latch Otu - Output Unlatch

    • • • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, LCD, CS, IOS, and DLS files.
  • Page 163: Ons - One Shot

    • • • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, LCD, and DLS files.
  • Page 164: Osr - One Shot Rising Osf - One Shot Falling

    Storage Bit B3:0/0 Output Bit B3:0/1 The OSR instruction for the MicroLogix 1100 does not provide the same functionality as the OSR instruction for the MicroLogix 1000 and SLC 500 controllers. For the same functionality as the OSR instruction for the MicroLogix 1000 and SLC 500 controllers, use the ONS instruction.
  • Page 165 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Relay-Type (Bit) Instructions These instructions use two parameters, Storage Bit and Output Bit. • Storage Bit - This is the bit address that remembers the rung state from the previous scan. • Output Bit - This is the bit address which is set based on a false-to-true (OSR) or true-to-false (OSF) rung transition.
  • Page 166 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Relay-Type (Bit) Instructions Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 167: Timer Instructions Overview

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter Timer and Counter Instructions Timers and counters are output instructions that let you control operations based on time or a number of events. The following Timer and Counter Instructions are described in this chapter: Instruction Used To: Page TON - Timer, On-Delay...
  • Page 168 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Timer and Counter Instructions Timer Base Settings Time Base Timing Range 0.001 seconds 0 to 32.767 seconds 0.01 seconds 0 to 327.67 seconds 1.00 seconds 0 to 32,767 seconds Each timer address is made of a 3-word element. Word 0 is the control and status word, word 1 stores the preset value, and word 2 stores the accumulated value.
  • Page 169 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Timer and Counter Instructions Use an RES instruction to reset a timer’s accumulator and status bits. Publication 1763-RM001C-EN-P - October 2009...
  • Page 170 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Timer and Counter Instructions Timer Accuracy Timer accuracy refers to the length of time between the moment a timer instruction is enabled and the moment the timed interval is complete. Timer Accuracy Time Base Accuracy 0.001 seconds -0.001 to 0.00 0.01 seconds -0.01 to 0.00...
  • Page 171: Ton - Timer, On-Delay

    Controller When Rung Is: True False 2.59 μs MicroLogix 1100 2.71 (DN=1), 4.06 (DN=0) μs Use the TON instruction to delay turning on an output. The TON instruction begins to count time base intervals when rung conditions become true. As long as rung conditions remain true, the timer increments its accumulator until the preset value is reached.
  • Page 172: Tof - Timer, Off-Delay

    Controller When Rung Is: True False 2.68 μs MicroLogix 1100 2.68 (DN=1), 4.03 (DN=0) μs Use the TOF instruction to delay turning off an output. The TOF instruction begins to count time base intervals when rung conditions become false. As long as rung conditions remain false, the timer increments its accumulator until the preset value is reached.
  • Page 173: Rto - Retentive Timer, On-Delay

    Controller When Rung Is: True False 2.52 μs MicroLogix 1100 2.74 (DN=1), 4.06 (DN=0) μs Use the RTO instruction to delay turning “on” an output. The RTO begins to count time base intervals when the rung conditions become true. As long as the rung conditions remain true, the timer increments its accumulator until the preset value is reached.
  • Page 174: How Counters Work

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Timer and Counter Instructions How Counters Work The figure below demonstrates how a counter works. The count value must remain in the range of -32,768 to +32,767. If the count value goes above +32,767, the counter status overflow bit (OV) is set (1). If the count goes below -32,768, the counter status underflow bit (UN) is set (1).
  • Page 175 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Timer and Counter Instructions retained until cleared by a reset (RES) instruction that has the same address as the counter. The counter continues to count when the accumulator is greater than the CTU preset and when the accumulator is less than the CTD preset.
  • Page 176 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Timer and Counter Instructions CTD Instruction Counter Control and Status Bits, Counter Word 0 (Data File 5 is configured as a timer file for this example.) Is Set When: And Remains Set Until One of the Following Occurs: bit 11 - C5:0/UN UN - underflow...
  • Page 177: Ctu - Count Up Ctd - Count Down

    False True False 2.28 μs 2.15 μs 2.24 μs 2.09 μs Count Down MicroLogix 1100 Counter C5:0 Preset 0< Accum 0< The CTU and CTD instructions are used to increment or decrement a counter at each false-to-true rung transition. When the CTU rung makes a false-to-true transition, the accumulated value is incremented by one count.
  • Page 178: Res - Reset

    True False 1.3 μs 0.87 μs MicroLogix 1100 The RES instruction resets timers, counters, and control elements. When the RES instruction is executed, it resets the data defined by the RES instruction. The RES instruction has no effect when the rung state is false. The...
  • Page 179 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter Compare Instructions Use these input instructions when you want to compare values of data. Instruction Used To: Page EQU - Equal Test whether two values are equal (=) NEQ - Not Equal Test whether one value is not equal to a second value (≠) LES - Less Than Test whether one value is less than a second...
  • Page 180: Using The Compare Instructions

    • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. (3) Only use the High Speed Counter Accumulator (HSC.ACC) for Source A in GRT, LES, GEQ and LEQ instructions.
  • Page 181: Equ - Equal Neq - Not Equal

    Instruction Data Size When Rung Is: 0< Source B N7:1 True False 0< 8.78 μs 0.87 μs MicroLogix 1100 EQU word 9.09 μs 0.87 μs long word 8.78 μs 0.9 μs word Not Equal 9.128 μs 0.9 μs long word...
  • Page 182: Geq - Greater Than Or Equal To Leq - Less Than Or Equal To

    Execution Time for the GEQ and LEQ Instructions Controller Data Size When Rung Is: True False Grtr Than or Eql (A>=B) 8.96 μs 0.87 μs MicroLogix 1100 word Source A N7:0 9.09 μs 0.87 μs 0< long word Source B N7:1 0<...
  • Page 183 • • • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files.
  • Page 184: Lim - Limit Test

    N7:1 True False 0< 38.96 μs 0.87 μs MicroLogix 1100 word 38.96 μs 0.87 μs long word The LIM instruction is used to test for values within or outside of a specified range. The LIM instruction is evaluated based on the Low Limit, Test, and High Limit values as shown in the following table.
  • Page 185 • • • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files.
  • Page 186 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Compare Instructions Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 187: Math Instructions

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter Math Instructions General Information Before using math instructions, become familiar with the following topics at the beginning of this chapter: • Using the Math Instructions • Updates to Math Status Bits • Using the Floating Point (F) Data File Instructions Use these output instructions to perform computations using an expression or a specific arithmetic instruction.
  • Page 188: Using The Math Instructions

    • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB 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.
  • Page 189: Updates To Math Status Bits

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Math Instructions Updates to Math Status After a math instruction is executed, the arithmetic status bits in the status file are updated. The arithmetic status bits are in word 0 in the processor Bits status file (S2). Math Status Bits With this Bit: The Controller:...
  • Page 190: Using The Floating Point (F) Data File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Math Instructions Using the Floating Point File Description (F) Data File Floating point files contain IEEE-754 floating point data elements. One floating point element is shown below. You can have up to 256 of these elements in each floating point file. Floating Point Data File Structure Floating Point Element 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00...
  • Page 191 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Math Instructions Underflow - occurs when the result of an operation produces an exponent that is less than one. Floating Point Exception Values Zero - represented by an exponent and a mantissa of zero. Both positive and negative zero are valid.
  • Page 192 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Math Instructions Format Explanation Ff:e Floating Point file File number The valid file number range is from 8 (default) to 255. Element delimiter Element number The valid element number range is from 0 to 255. Examples: F8:2 Floating Point File 8, Element 2 F10:36 Floating Point File 10, Element 36...
  • Page 193: Add - Add Sub - Subtract

    Controller Instruction Data Size When Rung Is: 0< True False Source B N7:1 0< 13.44 μs 0.87 μs MicroLogix 1100 ADD word Dest N7:2 13.34 μs 0.87 μs 0< long word 13.31 μs 0.84 μs word 13.46 μs 0.84 μs...
  • Page 194: Mul - Multiply

    N7:0 Controller Instruction Data Size When Rung Is: 0< True False Source B N7:1 0< 20.59 μs 0.87 μs MicroLogix 1100 word Dest N7:2 20.68 μs 0.87 μs 0< long word 14.68 μs 0.87 μs word 14.96 μs 0.87 μs...
  • Page 195: Abs - Absolute Value

    N7:1 True False 0< 9.62 μs 0.87 μs MicroLogix 1100 word 9.71 μs 0.87 μs long word The ABS instruction takes the absolute value of the Source and places it in the Destination. The data range for this instruction is -2,147,483,648 to 2,147,483,647 or IEEE-754 floating point value.
  • Page 196: Scl - Scale

    N7:2 True False 0< 48.62 μs 0.87 μs MicroLogix 1100 Dest N7:3 0< The SCL instruction causes the value at the Source address to be multiplied by the Rate (slope) value. The resulting value is added to the Offset and the rounded result is placed in the Destination.
  • Page 197: Scp - Scale With Parameters

    Controller Data Size When Rung Is: Input N7:0 0< True False Input Min. N7:1 331.27 μs 0.87 μs 0< MicroLogix 1100 word Input Max. N7:2 337.2 μs 0.87 μs long word 0< Scaled Min. N7:3 0< Scaled Max. N7:4 The SCP instruction produces a scaled output value that has a linear 0<...
  • Page 198 • • • • (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files.
  • Page 199: Sqr - Square Root

    When Rung Is: 0< True False 109.21 μs 0.87 μs MicroLogix 1100 word 109.77 μs 0.87 μs long word The SQR instruction calculates the square root of the absolute value of the source and places the rounded result in the destination.
  • Page 200 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Math Instructions Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 201: Conversion Instructions

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter Conversion Instructions The conversion instructions multiplex and de-multiplex data and perform conversions between binary and decimal values. Instruction Used To: Page DCD - Decode 4 to 1-of-16 Decodes a 4-bit value (0 to 15), turning on the corresponding bit in the 16-bit destination.
  • Page 202: Dcd - Decode 4 To 1-Of-16

    0000000000000000< 25.68 μs 0.87 μs MicroLogix 1100 The DCD instruction uses the lower four bits of the source word to set one bit of the destination word. All other bits in the destination word are cleared. The DCD instruction converts the values as shown in the table...
  • Page 203: Enc - Encode 1-Of-16 To 4

    Dest N7:1 27.84 μs 0.87 μs MicroLogix 1100 0000h< The ENC instruction searches the source from the lowest to the highest bit, looking for the first bit set. The corresponding bit position is written to the destination as an integer. The ENC instruction converts the values as...
  • Page 204: Frd - Convert From Binary Coded Decimal (Bcd)

    True False Source 0000h< 29.87 μs 0.87 μs MicroLogix 1100 Dest N7:0 0< The FRD instruction is used to convert the Binary Coded Decimal (BCD) source value to an integer and place the result in the destination. Addressing Modes and File Types can be used as shown in the following...
  • Page 205 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Conversion Instructions Updates to Math Status Bits Math Status Bits With this Bit: The Controller: S:0/0 Carry always resets S:0/1 Overflow sets if non-BCD value is contained at the source or the value to be converted is greater than 32,767; otherwise resets. On overflow, the minor error flag is also set.
  • Page 206 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Conversion Instructions From BCD Source S:13 00032760< Dest N7:0 32760< S:14 S:13 0000 0000 0000 0011 0010 0111 0110 0000 5-digit BCD N7:0 Decimal 0111 1111 1111 1000 You should convert BCD values to integer before you manipulate them in your ladder program.
  • Page 207 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Conversion Instructions Clearing S:14 before executing the FRD instruction is shown below: MOVE 0001 0010 0011 0100 Source N7:2 4660 Dest S:13 4660 CLEAR Dest S:14 S:13 and S:14 are FROM BCD Source S:13 displayed in BCD format. 00001234 Dest N7:0...
  • Page 208: Tod - Convert To Binary Coded Decimal (Bcd)

    0000h< 29.31 μs 0.87 μs MicroLogix 1100 The TOD instruction is used to convert the integer source value to BCD and place the result in the destination. Addressing Modes and File Types can be used as shown in the following...
  • Page 209 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Conversion Instructions Updates to Math Status Bits Math Status Bits With this Bit: The Controller: S:0/0 Carry always resets S:0/1 Overflow sets if BCD result is larger than 9999. On overflow, the minor error flag is also set. S:0/2 Zero Bit sets if result is zero, otherwise resets...
  • Page 210: Gcd - Gray Code

    190< 29.06 μs 0.87 μs MicroLogix 1100 The GCD instruction converts Gray code data (Source) to an integer value (Destination). If the Gray code input is negative (high bit set), the Destination is set to 32767 and the overflow flag is set.
  • Page 211: Logical Instructions

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter Logical Instructions The logical instructions perform bit-wise logical operations on individual words. Instruction Used To: Page AND - Bit-Wise AND Perform an AND operation OR - Logical OR Perform an inclusive OR operation XOR - Exclusive OR Perform an Exclusive Or operation NOT - Logical NOT Perform a NOT operation...
  • Page 212: Updates To Math Status Bits

    • • • (1) PTO and PWM files are valid for MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. (3) Source B does not apply to the NOT instruction. The NOT instruction only has one source value.
  • Page 213: And - Bit-Wise And

    Dest N7:2 True False 0000h< 13.06 μs 0.87 μs MicroLogix 1100 word 13.24 μs 0.87 μs long word The AND instruction performs a bit-wise logical AND of two sources and places the result in the destination. Truth Table for the AND Instruction...
  • Page 214: Or - Logical Or

    Dest N7:2 True False 0000h< 13.06 μs 0.84 μs MicroLogix 1100 word 13.31 μs 0.84 μs long word The OR instruction performs a logical OR of two sources and places the result in the destination. Truth Table for the OR Instruction...
  • Page 215: Xor - Exclusive Or

    Dest N7:2 True False 0000h< 13.09 μs 0.87 μs MicroLogix 1100 word 13.31 μs 0.87 μs long word The XOR instruction performs a logical exclusive OR of two sources and places the result in the destination. Truth Table for the XOR Instruction...
  • Page 216: Not - Logical Not

    Data Size When Rung Is: 0< True False 9.24 μs 0.87 μs MicroLogix 1100 word 9.49 μs 0.87 μs long word The NOT instruction is used to invert the source bit-by-bit (one’s complement) and then place the result in the destination.
  • Page 217: Move Instructions

    When Rung Is: 0< True False 9.18 μs 0.87 μs MicroLogix 1100 word 9.21 μs 0.87 μs long word The MOV instruction is used to move data from the source to the destination. As long as the rung remains true, the instruction moves the data each scan.
  • Page 218 • • • (1) PTO and PWM files are valid for MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. (3) Some elements can be written to. Consult the function file for details. You cannot use indirect addressing with: S, ST, MG, PD,...
  • Page 219: Mvm - Masked Move

    N7:2 True False 0< 12.9 μs 0.87 μs MicroLogix 1100 word 13.18 μs 0.87 μs long word The MVM instruction is used to move data from the source to the destination, allowing portions of the destination to be masked. The mask...
  • Page 220: Publication 1763-Rm001C-En-P - October

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Move Instructions Mask Example (Word Addressing Level) Word Value in Value in Binary Hexadecimal 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Value in Destination FFFF 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Before Move Source Value 5555...
  • Page 221 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter File Instructions The file instructions perform operations on file data. Instruction Used To: Page CPW - Copy Word Copy words of data from one location to another COP - Copy File Copy a range of data from one file location to another FLL - Fill File Load a file with a program constant or a...
  • Page 222: File Instructions

    False 16.8 μs + 0.27 μs/word 0.87 μs MicroLogix 1100 The CPW instruction copies words of data, in ascending order, from one location (Source) to another (Destination). Although similar to the File Copy (COP) instruction, the CPW instruction allows different source and destination parameters.
  • Page 223: Cop - Copy File

    False 16.8 μs + 0.28 µs/word 0.9 μs MicroLogix 1100 The COP instruction copies blocks of data from one location into another. COP Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
  • Page 224 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive File Instructions You cannot use indirect addressing with: S, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. The source and destination file types must be the same except bit (B) and integer (N);...
  • Page 225: Fll - Fill File

    When Rung Is: True False 16.8 + 0.07 μs/word 0.9 μs MicroLogix 1100 word 17.18 + 0.2 μs/long word 0.9 μs long word The FLL instruction loads elements of a file with either a constant or an address data value for a given length. The following figure shows how file instruction data is manipulated.
  • Page 226: Bsl - Bit Shift Left

    False 34.5 μs + 0.2 μs/word 34.5 μs MicroLogix 1100 The BSL instruction loads data into a bit array on a false-to-true rung transition, one bit at a time. The data is shifted left through the array, then unloaded, one bit at a time. The following figure shows the operation of the BSL instruction.
  • Page 227 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive File Instructions If you wish to shift more than one bit per scan, you must create a loop in your application using the JMP, LBL, and CTU instructions. This instruction uses the following operands: • File - The file operand is the address of the bit array that is to be manipulated.
  • Page 228: Bsr - Bit Shift Right

    False 34.5 μs + 0.2 μs/word 34.5 μs MicroLogix 1100 If you wish to shift more than one bit per scan, you must create a loop in your application using the JMP, LBL, and CTU instructions. The BSR instruction loads data into a bit array on a false-to-true rung transition, one bit at a time.
  • Page 229 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive File Instructions • Length - The length operand contains the length of the bit array in bits. The data range for length is from 0 to 2048. Addressing Modes and File Types can be used as shown in the following table: BSR Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
  • Page 230: Ffl - First In, First Out (Fifo) Load

    FIFO #N7:1 Control R6:0 True False Length 1< 38.7 + 0.02 μs/ 37.09 μs MicroLogix 1100 word Position 0< word 37.09 μs long word 38.0 + 0.02/long wordμs On a false-to-true rung transition, the FFL instruction loads words or long words into a user-created file called a FIFO stack.
  • Page 231 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive File Instructions • FIFO - The FIFO operand is the starting address of the stack. • Control - This is a control file address. The status bits, stack length, and the position value are stored in this element. The control element consists of 3 words: Word 0 not used...
  • Page 232: Ffu - First In, First Out (Fifo) Unload

    Control R6:0 True False Length 1< 38.87 μs 37.06 μs MicroLogix 1100 word Position 0< 38.87 μs 37.06 μs long word On a false-to-true rung transition, the FFU instruction unloads words or long words from a user-created file called a FIFO stack. The data is unloaded using first-in, first-out order.
  • Page 233 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive File Instructions • Destination - The destination operand is a word or long word address that stores the value which exits from the FIFO stack. The FFU instruction unloads this value from the first location on the FIFO stack and places it in the destination address.
  • Page 234: Lfl - Last In, First Out (Lifo) Load

    Control R6:0 True False Length 1< 39.93 μs 38.09 μs MicroLogix 1100 word Position 0< 39.96 μs 38.06 μs long word On a false-to-true rung transition, the LFL instruction loads words or long words into a user-created file called a LIFO stack. This instruction’s counterpart, LIFO unload (LFU), is paired with a given LFL instruction to remove elements from the LIFO stack.
  • Page 235 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive File Instructions • Control - This is a control file address. The status bits, stack length, and the position value are stored in this element. The control element consists of 3 words: 9 8 7 6 5 4 3 2 1 0 Word 0 not used Word 1...
  • Page 236: Lfu - Last In, First Out (Lifo) Unload

    True False Control R6:0 Length 1< 39.34 μs 37.06 μs MicroLogix 1100 word Position 0< 39.97 μs 37.09 μs long word On a false-to-true rung transition, the LFU instruction unloads words or long words from a user-created file called a LIFO stack. The data is unloaded using last-in, first-out order (the data in the stack is not cleared after unloading).
  • Page 237 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive File Instructions • Control - This is a control file address. The status bits, stack length, and the position value are stored in this element. The control element consists of 3 words: 9 8 7 6 5 4 3 2 1 0 Word 0 not used Word 1...
  • Page 238: Swp - Swap

    False 9.15 μs + 0.43 μs/swapped word 0.87 μs MicroLogix 1100 Use the SWP instruction to swap the low and high bytes of a specified number of words in a bit, integer, or string file. The SWP instruction has 2 operands: •...
  • Page 239 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter Sequencer Instructions Sequencer instructions are used to control automatic assembly machines or processes that have a consistent and repeatable operation. They are typically time based or event driven. Instruction Used To: Page SQC - Sequencer Compare Compare 16-bit data with stored data SQO - Sequencer Output Transfer 16-bit data to word addresses...
  • Page 240: Chapter 14 Sqc- Sequencer Compare

    Execution Time for the SQC Instruction Controller Data Size When Rung Is: Sequencer Compare File #B3:0 True False Mask N7:0 23.7 μs 6.24 μs MicroLogix 1100 word Source I:0.0 Control R6:0 24.21 μs 6.24 μs long word Length 1< Position 0<...
  • Page 241 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Sequencer Instructions The following figure explains how the SQC instruction works. Sequencer Compare File #B10:11 Mask FFF0 Source I:3.0 Control R6:21 Length 4< Position 2< Input Word I:3.0 0010 0100 1001 1101 Mask Value FFF0 1111 1111 1111 0000...
  • Page 242 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Sequencer Instructions • Mask - The mask operand contains the mask constant, word, or file which is applied to both file and source. When mask bits are set to 1, data is allowed to pass through for comparison. When mask bits are reset to 0, the data is masked (does not pass through to for comparison).
  • Page 243: Sqo- Sequencer Output

    True False Position 0< 23.78 μs 6.21 μs MicroLogix 1100 word 24.4 μs 6.21 μs long word On a false-to-true rung transition, the SQO instruction transfers masked source reference words or long words to the destination for the control of sequential machine operations.
  • Page 244 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Sequencer Instructions If the position is equal to zero at start-up, when you switch the controller from the program mode to the run mode, the instruction operation depends on whether the rung is true or false on the first scan. •...
  • Page 245 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Sequencer Instructions This instruction uses the following operands: • File - This is the sequencer reference file. Its contents, on an element-by-element, basis are masked and stored in the destination. If file type is word, then mask and source must be words.
  • Page 246: Sql - Sequencer Load

    Position 0< True False 19.27 μs 6.18 μs MicroLogix 1100 word 19.65 μs 6.18 μs long word On a false-to-true rung transition, the SQL instruction loads words or long words into a sequencer file at each step of a sequencer operation. This instruction uses the following operands: •...
  • Page 247 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Sequencer Instructions • Source - The source operand is a constant or address of the value used to fill the currently available position sequencer file. The address level of the source must match the sequencer file. If file is a word type, then source must be a word type.
  • Page 248 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Sequencer Instructions You cannot use indirect addressing with: S, ST, MG, PD, IMPORTANT RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, LCD, and DLS files. Publication 1763-RM001C-EN-P - October 2009...
  • Page 249: Chapter 15 Jmp - Jump To Label

    False 1.15 μs 0.81 μs MicroLogix 1100 The JMP instruction causes the controller to change the order of ladder execution. Jumps cause program execution to go to the rung marked LBL label number. Jumps can be forward or backward in ladder logic within the same program file.
  • Page 250: Lbl - Label

    True False 0.78 μs 0.78 μs MicroLogix 1100 The LBL instruction is used in conjunction with a jump (JMP) instruction to change the order of ladder execution. Jumps cause program execution to go to the rung marked LBL label number.
  • Page 251: Ret - Return From Subroutine

    False 1.68 μs 0.84 μs MicroLogix 1100 The RET instruction marks the end of subroutine execution or the end of the subroutine file. It causes the controller to resume execution at the instruction following the JSR instruction, user interrupt, or user fault routine that caused this subroutine to execute.
  • Page 252: End - Program End

    False 0.10 μs 0.10 μs MicroLogix 1100 The END instruction must appear at the end of every ladder program. For the main program file (file 2), this instruction ends the program scan. For a subroutine, interrupt, or user fault file, the END instruction causes a return from subroutine.
  • Page 253 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Program Control Instructions While the rung state of the first MCR instruction is true, execution proceeds as if the zone were not present. When the rung state of the first MCR instruction is false, the ladder logic within the MCR zone is executed as if the rung is false.
  • Page 254 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Program Control Instructions Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 255: Input And Output Instructions Iim - Immediate Input With Mask

    This instruction is used for embedded I/O only. It is not Immediate Input w/Mask designed to be used with expansion I/O. Slot I:0.0 Mask N7:0 Length Execution Time for the IIM Instruction Controller When Rung Is: True False 51.76 μs 0.87 μs MicroLogix 1100 Publication 1763-RM001C-EN-P - October 2009...
  • Page 256 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Input and Output Instructions The IIM instruction allows you to selectively update input data without waiting for the automatic input scan. This instruction uses the following operands: • Slot - This operand defines the location where data is obtained for updating the input file.
  • Page 257: Iom - Immediate Output With Mask

    True False 43.59 μs 0.87 μs MicroLogix 1100 The IOM instruction allows you to selectively update output data without waiting for the automatic output scan. This instruction uses the following operands: • Slot - The slot is the physical location that is updated with data from the output file.
  • Page 258: Ref- I/O Refresh

    When Rung Is: True False 0.84 μs MicroLogix 1100 see p. 462 The REF instruction is used to interrupt the program scan to execute the I/O scan and service communication portions of the operating cycle for all communication channels. This includes: write outputs, service communications (all communication channels, communications toggle functionality, and comms housekeeping), and read inputs.
  • Page 259: Information About Using Interrupts

    An interrupt is an event that causes the controller to suspend the task it is currently performing, perform a different task, and then return to the suspended task at the point where it suspended. The Micrologix 1100 supports the following User Interrupts: •...
  • Page 260 6. resumes normal execution from the point where the controller program was interrupted When Can the Controller Operation be Interrupted? The Micrologix 1100 controllers only allow interrupts to be serviced during certain periods of a program scan. They are: • At the start of a ladder rung...
  • Page 261 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts • Anytime during End of Scan The interrupt is only serviced by the controller at these opportunities. If the interrupt is disabled, the pending bit is set at the next occurrence of one of the three occasions listed above. If you enable interrupts during the program scan via an ATTENTION OTL, OTE, or UIE, this instruction (OTL, OTE, or UIE)
  • Page 262 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts User Fault Routine The user fault routine gives you the option of preventing a controller shutdown when a specific user fault occurs. The fault routine is executed when any recoverable or non-recoverable user fault occurs. The fault routine is not executed for non-user faults.
  • Page 263: User Interrupt Instructions

    False 0.74 μs 0.74 μs MicroLogix 1100 The INT instruction is used as a label to identify a user interrupt service routine (ISR). This instruction is placed as the first instruction on a rung and is always evaluated as true. Use of the INT instruction is optional.
  • Page 264: Sts - Selectable Timed Start

    True False 27.18 μs 0.84 μs MicroLogix 1100 The STS instruction can be used to start and stop the STI function or to change the time interval between STI user interrupts. The STI instruction has one operand: • Time - This is the amount of time (in milliseconds) which must expire prior to executing the selectable timed user interrupt.
  • Page 265: Uid - User Interrupt Disable

    True False 9.28 μs 0.87 μs MicroLogix 1100 The UID instruction is used to disable selected user interrupts. The table below shows the types of interrupts with their corresponding disable bits: Types of Interrupts Disabled by the UID Instruction Interrupt...
  • Page 266: Uie - User Interrupt Enable

    True False 9.28 μs 0.87 μs MicroLogix 1100 The UIE instruction is used to enable selected user interrupts. The table below shows the types of interrupts with their corresponding enable bits: Types of Interrupts Disabled by the UIE Instruction Interrupt...
  • Page 267: Uif - User Interrupt Flush

    True False 23.78 μs 0.87 μs MicroLogix 1100 The UIF instruction is used to flush (remove pending interrupts from the system) selected user interrupts. The table below shows the types of interrupts with their corresponding flush bits: Types of Interrupts Disabled by the UIF Instruction...
  • Page 268: Using The Selectable Timed Interrupt (Sti) Function File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts Using the Selectable Timed Interrupt (STI) Function File The Selectable Timed Interrupt (STI) provides a mechanism to solve time critical control requirements. The STI is a trigger mechanism that allows you to scan or solve control program logic that is time sensitive. Example of where you would use the STI are: •...
  • Page 269 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts Selectable Time Interrupt (STI) Function File Sub-Elements Summary Selectable Timed Interrupt Function File (STI:0) Sub-Element Description Address Data Format Type User Program For More Access Information PFN - Program File Number STI:0.PFN word (INT) control read only ER - Error Code...
  • Page 270 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts STI Error Code Error Recoverable Fault Description Code (Controller) Invalid Program File Program file number is less than 3, greater than 255, or does not Number exist. STI User Interrupt Executing (UIX) Sub-Element Description Address Data Format Type User Program...
  • Page 271 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts STI User Interrupt Pending (UIP) Sub-Element Description Address Data Format Type User Program Access UIP - User Interrupt Pending STI:0/UIP binary (bit) status read only The UIP (User Interrupt Pending) is a status flag that represents an interrupt is pending.
  • Page 272: Using The Event Input Interrupt (Eii) Function File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts STI Error Detected (ED) Sub-Element Description Address Data Format Type User Program Access ED - Error Detected STI:0/ED binary (bit) status read only The ED (Error Detected) flag is a status bit that can be used by the control program to detect if an error is present in the STI sub-system.
  • Page 273: Publication 1763-Rm001C-En-P - October

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts Each EII can be configured to monitor any one of the first eight inputs (I1:0.0/0 to I1:0.0/7). Each EII can be configured to detect rising edge or falling edge input signals. When the configured input signal is detected at the input terminal, the controller immediately scans the configured subroutine.
  • Page 274 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts EII Function File Sub-Elements EII Program File Number (PFN) Sub-Element Description Address Data Format Type User Program Access PFN - Program File Number EII:0.PFN word (INT) control read only PFN (Program File Number) defines which subroutine is called (executed) when the input terminal assigned to EII:0 detects a signal.
  • Page 275 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts EII User Interrupt Executing (UIX) Sub-Element Description Address Data Format Type User Program Access UIX - User Interrupt Executing EII:0/UIX binary (bit) status read only The UIX (User Interrupt Executing) bit is set whenever the EII mechanism detects a valid input and the controller is scanning the PFN.
  • Page 276 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts EII User Interrupt Pending (UIP) Sub-Element Description Address Data Format Type User Program Access UIP - User Interrupt Pending EII:0/UIP binary (bit) status read only UIP (User Interrupt Pending) is a status flag that represents an interrupt is pending.
  • Page 277 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts EII Error Detected (ED) Sub-Element Description Address Data Format Type User Program Access ED - Error Detected EII:0/ED binary (bit) status read only The ED (Error Detected) flag is a status bit that can be used by the control program to detect if an error is present in the EII sub-system.
  • Page 278 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Using Interrupts Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 279: Process Control Instruction

    - Allen Bradley,Rockwell,plc,servo,drive Chapter Process Control Instruction This chapter describes the MicroLogix 1100 Proportional Integral Derivative (PID) instruction. The PID instruction is an output instruction that controls physical properties such as temperature, pressure, liquid level, or flow rate using process loops.
  • Page 280: The Pid Equation

    Derivative 0.01 to 327.67 (minutes) (1) Applies to MicroLogix 1100 PID range when Reset and Gain Range (RG) bit is set to 1. For more information on reset and gain, see PLC 5 Gain Range (RG) on page 294. The derivative term (rate) provides smoothing by means of a low-pass filter.
  • Page 281: Pd Data File

    - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction PD Data File The PID instruction implemented by the MicroLogix 1100 controllers is virtually identical in function to the PID implementation used by the Allen-Bradley SLC 5/03 and higher processors. Minor differences primarily involve enhancements to terminology.
  • Page 282: Pid - Proportional Integral Derivative

    Setup Screen 39.34 μs 36.93 μs MicroLogix 1100 It is recommended that you place the PID instruction on a rung without any conditional logic. If conditional logic exists, the Control Variable output remains at its last value, and the CVP CV% term and integral term are both cleared when the rung is false.
  • Page 283: Input Parameters

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Input Parameters The table below shows the input parameter addresses, data formats, and types of user program access. See the indicated pages for descriptions of each parameter. Input Parameter Descriptions Address Data Format Range Type User For More...
  • Page 284 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Setpoint (SPS) Input Parameter Address Data Format Range Type User Program Descriptions Access SPS - Setpoint PD10:0.SPS word (INT) control read/write 0 to 16383 (1) The range listed in the table is for when scaling is not enabled. With scaling, the range is from minimum scaled (MINS) to maximum scaled (MAXS).
  • Page 285 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Setpoint MIN (MINS) Input Parameter Address Data Range Type User Descriptions Format Program Access MINS - Setpoint PD10:0.MINS word -32,768 to +32,767 control read/write Minimum (INT) If the SPV is read in engineering units, then the MINS (Setpoint Minimum) parameter corresponds to the value of the setpoint in engineering units when the control input is at its minimum value.
  • Page 286 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Output Limit (OL) Output Parameter Address Data Range Type User Program Descriptions Format Access OL - Output Limit PD10:0/OL binary 1 = enabled control read/write 0 = disabled An enabled (1) value enables output limiting to the values defined in PD10:0.CVH (Control Variable High) and PD10.0.CVL (Control Variable Low).
  • Page 287: Output Parameters

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Control Variable Low Limit (CVL) Output Parameter Address Data Range Type User Program Descriptions Format Access CVL - Control PD10:0.CVL word 0 to 100% control read/write Variable Low Limit (INT) When the output limit bit (PD10:0/OL) is enabled (1), the CVL (Control Value Low) you enter is the minimum output (in percent) that the Control Variable attains.
  • Page 288 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Control Variable Percent (CVP) Output Parameter Address Data Range Type User Program Descriptions Format Access CVP - Control Variable Percent PD10:0.CVP word (INT) 0 to 100 control status read CVP (Control Variable Percent) displays the control variable as a percentage.
  • Page 289: Tuning Parameters

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Tuning Parameters The table below shows the tuning parameter addresses, data formats, and types of user program access. See the indicated pages for descriptions of each parameter. Tuning Parameter Address Data Format Range Type User For More...
  • Page 290 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Controller gain is affected by the reset and gain range (RG) bit. For information, see PLC 5 Gain Range (RG) on page 294. Reset Term (T Tuning Parameter Address Data Range Type User Program Descriptions Format Access...
  • Page 291 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Time Mode (TM) Tuning Parameter Address Data Range Type User Program Descriptions Format Access TM - Time Mode PD10:0.TM binary 0 or 1 control read/write The time mode bit specifies when the PID is in timed mode (1) or STI mode (0).
  • Page 292 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Zero Crossing Deadband (ZCD) Tuning Parameter Address Data Range Type User Program Descriptions Format Access ZCD - Zero Crossing PD10:0.ZCD word (INT) 0 to 32,767 control read/write Deadband The deadband extends above and below the setpoint by the value entered.
  • Page 293 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Automatic / Manual (AM) Tuning Parameter Address Data Format Range Type User Program Descriptions Access AM - Automatic/Manual PD10:0/AM binary (bit) 0 or 1 control read/write The auto/manual bit can be set or cleared by instructions in your ladder program.
  • Page 294 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction PLC 5 Gain Range (RG) Tuning Parameter Address Data Format Range Type User Program Descriptions Access RG - PLC 5 Gain Range PD10:0/RG binary (bit) 0 or 1 control read/write When set (1), the reset (TI) and gain range enhancement bit (RG) causes the reset minute/repeat value and the gain multiplier (KC) to be divided by a factor of 10.
  • Page 295 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Loop Update Too Fast (TF) Tuning Parameter Address Data Format Range Type User Program Descriptions Access TF - Loop Update Too PD10:0/TF binary (bit) 0 or 1 status read/write Fast The TF bit is set by the PID algorithm if the loop update time specified cannot be achieved by the controller due to scan time limitations.
  • Page 296 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction CV Lower Limit Alarm (LL) Tuning Parameter Address Data Format Range Type User Program Descriptions Access LL - CV Lower Limit Alarm PD10:0/LL binary (bit) 0 or 1 status read/write The control variable lower limit alarm bit is set (1) when the calculated CV output is less than the lower CV limit.
  • Page 297 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Enable (EN) Tuning Parameter Address Data Format Range Type User Program Descriptions Access EN - Enable PD10:0/EN binary (bit) 0 or 1 status read only The PID enabled bit is set (1) whenever the PID instruction is enabled. It follows the rung state.
  • Page 298: Runtime Errors

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Runtime Errors Error code 0036 appears in the status file when a PID instruction runtime error occurs. Code 0036 covers the following PID error conditions, each of which has been assigned a unique single byte code value that appears in the MSB of the second word of the control block.
  • Page 299: Analog I/O Scaling

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Analog I/O Scaling To configure an analog input for use in a PID instruction, the analog data must be scaled to match the PID instruction parameters. In the MicroLogix 1100, the process variable (PV) in the PID instruction is designed to work with a data range of 0 to 16,383.
  • Page 300: Application Notes

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Application Notes The following paragraphs discuss: • Input/Output Ranges • Scaling to Engineering Units • Zero-crossing Deadband • Output Alarms • Output Limiting with Anti-reset Windup • The Manual Mode • Feed Forward Do not alter the state of any PID control block value ATTENTION unless you fully understand its function and how it will...
  • Page 301 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Scaling to Engineering Units Scaling lets you enter the setpoint and zero-crossing deadband values in engineering units, and display the process variable and error values in the same engineering units. Remember, the process variable PV must still be within the range 0 to 16383.
  • Page 302 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Zero-Crossing Deadband DB The adjustable deadband lets you select an error range above and below the setpoint where the output does not change as long as the error remains within this range. This lets you control how closely the process variable matches the setpoint without changing the output.
  • Page 303 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Output Limiting with Anti-Reset Windup You may set an output limit (percent of output) on the control variable. When the instruction detects that the control variable has exceeded a limit, it sets an alarm bit (bit LL for lower limit, bit UL for upper limit), and prevents the control variable from exceeding either limit value.
  • Page 304: Application Examples

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction Feed Forward or Bias Applications involving transport lags may require that a bias be added to the CV output in anticipation of a disturbance. This bias can be accomplished using the processor by writing a value to the Feed Forward Bias element (word FF).
  • Page 305 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction 2. Connect your process control equipment to your analog modules. Download your program to the processor. Leave the processor in the program mode. Ensure that all possibilities of machine motion have been ATTENTION considered with respect to personal safety and equipment damage.
  • Page 306 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction 10. Set the loop update time (and STI time interval if applicable) to a value of 5 to 10 times faster than the natural period. For example, if the cycle time is 20 seconds, and you choose to set the loop update time to 10 times faster than the natural rate, set the loop update time to 200, which would result in a 2-second rate.
  • Page 307 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction 2. Enter the REM RUN mode and verify that PV=0. 3. Type: 20 in CO% 4. Record the PV = _______ 5. Type: 40 in CO%. 6. Record the PV = _______ 7. Type: 60 in CO%. 8.
  • Page 308 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Process Control Instruction 4. Watch the PV. When the PV starts to change, stop your stopwatch. Record this value. It is the deadtime. 5. Multiply the deadtime by 4. This value approximates the natural period. For example, if deadtime = 3 seconds, then 4 x 3 = 12 seconds (≅...
  • Page 309: Ascii Instructions

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Chapter ASCII Instructions This chapter contains general information about the ASCII instructions and explains how they function in your control program. This chapter is arranged into the following sections: • Instruction Types and Operation on page 310 General Information •...
  • Page 310: Instruction Types And Operation

    ASCII Port Control These instructions use or alter the communication channel for receiving or transmitting data. The following table lists the ASCII port control instructions used by the MicroLogix 1100 controllers: MicroLogix 1100 ABL (Test Buffer for Line) ARD (ASCII Read Characters)
  • Page 311: Protocol Overview

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions • When the instruction is encountered on a rung and there are from 1 to 15 instructions in the ASCII queue, the instruction is put into the ASCII queue and is executed when the preceding instructions are completed.
  • Page 312: String (St) Data File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions When the channel is configured for DF1 Full-Duplex protocol, the AWA and AWT instructions only are valid and can transmit an ASCII string out of the RS-232 port. If the RS-232 port is configured for any protocol other than DFI Full-Duplex and ASCII, the AWA and AWT instructions will error out with an error code of 9.
  • Page 313: Control Data File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions Addressing String Files The addressing scheme for the string data file is shown below. Format Explanation String file STf:e.s File number The valid file number range is from 3 to 255. Element delimiter Element number The valid element number range is from 0 to 255.
  • Page 314: Acl - Ascii Clear Buffers

    Execution Time for the ACL Instruction Ascii Clear Buffers Channel Controller When Instruction Is: Transmit Buffer Receive Buffer True False MicroLogix 1100 clear buffers: both 61.46 μs 0.87 μs receive 20.3 μs 0.87 μs transmit 23.2 μs 0.87 μs Publication 1763-RM001C-EN-P - October 2009...
  • Page 315 The ACL instruction clears the Receive and/or Transmit buffer(s). This instruction also removes instructions from ASCII queue. For MicroLogix 1100, the ACL instruction can also be used to clear the DF1 communication buffers when the channel is configured for any of the DF1 communication drivers.
  • Page 316: Aic - Ascii Integer To String

    Dest ST14:1 True False 48.96 μs 0.87 μs MicroLogix 1100 word 57.34 μs 0.87 μs long word The AIC instruction converts an integer or long word value (source) to an ASCII string (destination). The source can be a constant or an address.
  • Page 317: Awa - Ascii Write With Append

    String Length Characters Sent 13.96 μs/character 14.21 μs MicroLogix 1100 Error Use the AWA instruction to write characters from a source string to an external device. This instruction adds the two appended characters that you configure on the Channel Configuration screen. The default is a carriage return and line feed appended to the end of the string.
  • Page 318 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions When using this instruction you can also perform in-line indirection. See page 336 for more information. Entering Parameters Enter the following parameters when programming this instruction: • Channel is the number of the RS-232 port, Channel 0. •...
  • Page 319: Awt - Ascii Write

    ST14:4 Control R6:1 String Length Controller When Instruction Is: Characters Sent Error True False 13.99 μs/character 14.21 μs MicroLogix 1100 Use the AWT instruction to write characters from a source string to an external device. Publication 1763-RM001C-EN-P - October 2009...
  • Page 320 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions Programming AWT Instructions When programming ASCII output instructions, always precede the ASCII instruction with conditional logic that either detects when new data needs to be sent or, send data on a time interval. If sent on a time interval, use an interval of 0.5 second or greater.
  • Page 321 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions – Characters Sent (.POS) can be greater than the String Length (.LEN) if inserted values from in-line indirection are used. If the String Length (.LEN) is greater than 82, the string written to the destination is truncated to 82 characters.
  • Page 322: Abl - Test Buffer For Line

    Channel True False Control R6:0 10.93 μs/character 11.43 μs MicroLogix 1100 Characters 1< Error 0< The ABL instruction is used to determine the number of characters in the receive buffer of the specified communication channel, up to and including the end-of-line characters (termination). This instruction looks for the two termination characters that you configure via the channel configuration screen.
  • Page 323: Acb - Number Of Characters In Buffer

    0< 10.93 μs 11.43 μs MicroLogix 1100 Use the ACB instruction to determine the number of characters in the buffer. On a false-to-true transition, the controller determines the total number of characters and records it in the POS field of the control data file.
  • Page 324: Aci - String To Integer

    Controller Data Size When Instruction Is: True False 39.06 μs 0.87 μs MicroLogix 1100 word 41.99 μs 0.87 μs long word Use the ACI instruction to convert a numeric ASCII string to an integer (word or long word) value. Entering Parameters Enter the following parameters when programming this instruction: •...
  • Page 325 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions • Destination - This is the location which receives the result of the conversion. The data range is from -32,768 to 32,767 if the destination is a word and from -2,147,483,648 to 2,147,483,647 if the destination is a long word.
  • Page 326: Acn - String Concatenate

    ST10:10 True False 50.15 μs + 0.11 μs/ 0.87 μs MicroLogix 1100 character The ACN instruction combines two ASCII strings. The second string is appended to the first and the result stored in the destination. Entering Parameters Enter the following parameters when programming this instruction: •...
  • Page 327: Aex - String Extract

    ST10:3 True False 51.9 μs + 0.11 μs/character 0.87 μs MicroLogix 1100 The AEX instruction creates a new string by taking a portion of an existing string and storing it in a new string. Entering Parameters Enter the following parameters when programming this instruction: •...
  • Page 328: Ahl - Ascii Handshake Lines

    True False Control R6:2 14.56 μs 15.06 μs MicroLogix 1100 Channel Status 0000h< Error 0< The AHL instruction is used to set or reset the RS-232 Request to Send (RTS) handshake control line for a modem. The controller uses the two masks to determine whether to set or reset the RTS control line, or leave it unchanged.
  • Page 329 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions • OR Mask is the mask used to set the RTS control line. Bit 1 corresponds to the RTS control line. A value of “2” in the OR mask sets the RTS control line; a value of “0” leaves the line unchanged. •...
  • Page 330: Ard - Ascii Read Characters

    True False String Length 10< 13.96 μs/character 14.25 μs MicroLogix 1100 Characters Read 0< Error 0< Use the ARD instruction to read characters from the buffer and store them in a string. To repeat the operation, the rung must go from false-to-true.
  • Page 331: Arl - Ascii Read Line

    0< 13.96 μs/character 14.25 μs MicroLogix 1100 Use the ARL instruction to read characters from the buffer, up to and including the Termination characters, and store them in a string. The Termination characters are specified via the Channel Configuration screen.
  • Page 332 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions • Characters Read (POS) is the number of characters that the controller moved from the buffer to the string (0 to 82). This field is read-only and resides in word 2 of the control data file. •...
  • Page 333: Asc - String Search

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions ASC - String Search Instruction Type: output String Search Source ST10:6 Execution Time for the ASC Instruction Index String Search ST10:7 Controller When Instruction Is: Result N7:1 0< True False 45.18 μs + 1.62 μs/matching 0.87 μs MicroLogix 1100r character...
  • Page 334: Asr - Ascii String Compare

    Source B ST10:9 27.27 μs + 0.65 μs/matching 0.9 μs MicroLogix 1100 character Use the ASR instruction to compare two ASCII strings. The controller looks for a match in length and upper/lower case characters. If two strings are identical, the rung is true; if there are any differences, the rung is false.
  • Page 335 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions Addressing Modes and File Types can be used as shown below: ASR Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Function Files Address Level...
  • Page 336: Timing Diagram For Ard, Arl, Awa, And Awt Instructions

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions Timing Diagram for ARD, ARL, AWA, and AWT Instructions Rung Condition Enable Bit (EN) Queue Bit (EU) Running Bit (RN) Done Bit Error Bit (DN or ER) 3 4 5 1 - rung goes true NOTE: The RN bit is not addressable 2 - instruction successfully queued via the Control (R) file.
  • Page 337: Ascii Instruction Error Codes

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions Examples For the following examples: N7:0 = 25 N7:1 = -37 L9:0 = 508000 L9:1 = 5 Valid in-line direction: Input: Flow rate is currently [N7:0] liters per minute and contains [L8:0] particles per liter contaminants.
  • Page 338 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions Error Code Description Recommended Action decimal hexadecimal 0x0A The unload bit (UL) is set, stopping instruction None required. execution. 0x0B The requested number of characters for the ASCII Enter a valid string length and retry operation. read was too large or negative.
  • Page 339: Ascii Character Set

    > The standard ASCII character set includes values up to 127 decimal (7F hex). The MicroLogix 1100 Controller also supports an extended character set (decimal 128 to 255). However, the extended character set may display different characters depending on the platform you are using.
  • Page 340 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive ASCII Instructions Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 341: Communications Instructions Messaging Overview

    • Configuring a Multi-hop Remote Message on EtherNet/IP Communication Channel on page 394 • Configuring a MicroLogix 1100 CIP Generic Message via Ethernet (OS Series B FRN 4 or later) on page 21-62 • MSG Instruction Error Codes on page 414 •...
  • Page 342 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions • Communications Buffers • Communication Queue These three components determine when a message is transmitted by the controller. For a message to transmit, it must be scanned on a true rung of logic. When scanned, the message and the data defined within the message (if it is a write message) are placed in a communication buffer.
  • Page 343 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions • DF1 Half-Duplex Master • DF1 Half-Duplex Slave • DF1 Radio Modem • Modbus RTU Master • Ethernet For a description of valid communication protocols, see Knowledgebase Quick Starts on page 539. Publication 1763-RM001B-EN-P - April 2007...
  • Page 344: Svc - Service Communications

    When Rung Is: True False channel 0 94.1 μs 0.8 μs MicroLogix 1100 channel 1 87.0 μs 0.8 μs both 203.1 μs 0.8 μs (1) This value for the SVC instruction is for when the communications servicing function is accessing a data file. The time increases when accessing a function file.
  • Page 345 For example, bit 0 equals channel 0. When any bit is set (1), the corresponding channel is serviced. Controller Channel Select Setting Channel(s) Serviced MicroLogix 1100 both Communication Status Bits The following communication status bits allow you to customize or monitor communications servicing.
  • Page 346: Msg - Message

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions You can place this rung after a message write instruction. CS0:4/MCP is set when the message instruction is enabled and put in the communications queue. When CS0:4/MCP is set (1), the SVC instruction is evaluated as true and the program scan is interrupted to execute the service communication’s portion of the operating scan.
  • Page 347: The Message Element

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions How quickly the message is actually sent to the destination device depends on a number of issues, including the selected channel’s communication protocol, the baud rate of the communications port, the number of retries needed (if any), and the destination device's readiness to receive the message.
  • Page 348 Status Code was received, the low byte is 0xE0 and the high byte of this sub-element contains detailed Status Code returned by CIP reply for MicroLogix 1100 Series B. Note: When SMTP sub-system cannot send an email due to some reason, error code is shown via MSG instruction.
  • Page 349 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions (1) Channel 1 only. Refer to the Routing Information File on page 383. (2) User access refers to user program access (MSG File word or bit used as an operand for an instruction in a ladder program) or access via Comms while in any mode other than download (via Programming Software or Memory Module).
  • Page 350 Modbus Target Data Word read/write Address - 1 Reserved Word read/write Reserved Word read only Message File Target Location Information Target Device = CIP Generic (The MicroLogix 1100 OS Series B only) Sub- Name Description Paramete Size User Element Program...
  • Page 351 For Channel 1, 1=MSG Connection closed by user 0=MSG Connection not closed by user (MicroLogix 1100 OS Series B FRN 4 or later) The Status Bits, Sub-Element 17, of the MSG File Element are defined below. Publication 1763-RM001B-EN-P - April 2007...
  • Page 352 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Message File Sub-Element 17 - Status Bits Address Description Paramete Size User Program Access Reserved read only MG11:0.0/ST Start: read only 1 = MSG transmitted and acknowledged by target device 0 = MSG has not been received by target MG11:0.0/ Done...
  • Page 353 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions “Control Bits” Parameters Channel 0 Setup Screen Channel 1 Setup Screen Ignore if Timed Out (TO) Address Data Format Range Type User Program Access MG11:0/TO Binary On or Off Control Read / Write The Timed Out Bit (TO) can be set in your application to remove an active message instruction from processor control.
  • Page 354 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions An easier method is to use the message timeout variable described on page 370, because it simplifies the user program. This built-in timeout control is in effect whenever the message timeout is non-zero. It defaults to 5 seconds for channel 0, so unless you change it, the internal timeout control is automatically enabled.
  • Page 355 When the Break bit is used by the true, the Ethernet/IP connection will be closed after the MSG instruction is processed. If set to 0 value, the Ethernet/IP connection will remain even if the MSG instruction sent successfully.(MicroLogix 1100 OS Series B FRN 4 or later only) Publication 1763-RM001B-EN-P - April 2007...
  • Page 356: Timing Diagram For The Msg Instruction

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Timing Diagram for the The following section describes the timing diagram for a message instruction. MSG Instruction (3) Target node (5) Target node processes packet (1) Rung goes true. receives packet. successfully and returns data (read) or acknowledges receipt (write).
  • Page 357 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions 2. At the next end of scan, REF, or SVC instruction, the controller determines if it should examine the communications queue for another instruction. The controller bases its decision on the state of the channel’s Communication Servicing Selection (CSS) and Message Servicing Selection (MSS) bits, the network communication requests from other nodes, and whether previous message instructions are already in progress.
  • Page 358 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions 4. Step 4 is not shown in the timing diagram. If you do not receive an ACK, step 3 does not occur. Instead, either no response or a negative acknowledge (NAK) is received. When this happens, the ST bit remains clear (0).
  • Page 359: Communication Servicing Selection And Message Servicing Selection

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Communication The following screen shows the channel configuration window for Communication Servicing Selection and Message Servicing Selection. Servicing Selection and Message Servicing Selection Communication Servicing Selection Use the check box to enhance communication capability. If the check box is unchecked, communication throughput (and scan time) will increase.
  • Page 360: Msg Instruction Ladder Logic

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Message Servicing Selection Use this check box to enhance communication capability. If this is checked and the Communication Servicing Selection check box is not checked the MSG functionality throughput (and scan time) will increase. •...
  • Page 361: Local Messages

    Input I:1/0 could be any user-supplied bit to control when messages are sent. Whenever I:1/0 is set and message MG11:0 is not enabled, the message instruction on rung 0001 is enabled. Internet (if required) Ethernet Switch MicroLogix 1100 NET-ENI/ENIW MicroLogix 1000 SLC 5/05 Local Messages The controller is capable of communicating using local or remote messages.
  • Page 362 DC SOURCE DC SOURCE DC SOURCE CABLE CABLE CABLE EXTERNAL EXTERNAL EXTERNAL MicroLogix 1000 MicroLogix 1100 MicroLogix 1500 Example 2 - Local DeviceNet Network with DeviceNet Interface (1761-NET-DNI) SLC 5/03 with 1747-SDN PanelView 550 PanelView DANGER DANGER Master DeviceNet Network...
  • Page 363: Configuring A Local Message

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Example 3 - Local DF1 Half-Duplex Network RS-232 (DF1 Half-Duplex Protocol) Modem MicroLogix MicroLogix MicroLogix 1000 (Slave) 1100 (Slave) 1500 (Slave) SLC 5/04 (Slave) SLC 5/03 with 1747-KE Interface Module (Slave) Configuring a Local Message Setup Screen Message The rung below shows a MSG instruction preceded by conditional logic.
  • Page 364 Communications Instructions “This Controller” Parameters Channel The MicroLogix 1100 supports Channel 0 and Channel 1 messaging. Channel 0 is the RS-232/RS-485 port and Channel 1 is the Ethernet port. If Channel 0 is selected with that channel configured for Modbus RTU Master, then the next line will display “Modbus Command”.
  • Page 365 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Communication Command The controller supports six different types of communications commands. If the target device supports any of these command types, the controller should be capable of exchanging data with the device. Supported commands include: Communication Command Types Communication Description...
  • Page 366 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Modbus Command The controller supports eight Modbus commands. If the target device supports any of these Modbus command types, the controller should be capable of exchanging data with the device. Supported Modbus commands include: Modbus Command Types Modbus Command Used For...
  • Page 367 (1) Message Type must be 500CPU or PLC5. The Local File Type and Target File Type must both be Floating Point. (2) 485CIF write-to-485CIF only for MicroLogix 1100 OS Series A FRN 3 or earlier. (3) MicroLogix 1100 OS Series B FRN 4 or later.
  • Page 368 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions The maximum amount of data that can be transferred via a MSG instruction is 103 words (120 words for Modbus commands) and is determined by the destination data type. The destination data type is defined by the type of message: read or write.
  • Page 369 (Commands 3 and 4 are read only, 16 is write only.) (1) MicroLogix 1100 Series B FRN 4 or later. (2) Message Type must be 500CPU or PLC5. The Local File Type and Target File Type must both be Floating Point.
  • Page 370 Modbus commands). The maximum timeout value is 255 seconds. Message Timeout for any MicroLogix 1100 channel 1 MSG can not be modified in the Ethernet Message Setup dialog box. It is assigned by the processor and is determined by adding the Channel 1 MSG Connection Timeout to the MSG Reply Timeout, then adding 15 seconds.
  • Page 371 (1) Message Type must be 500CPU or PLC5. The Local File Type and Target File Type must both be Floating Point. (2) 500CPU write RTC-to-Integer or RTC-to-RTC only. (3) MicroLogix 1100 OS Series B FRN 4 or later The data table offset is used for 485CIF type messages. A valid offset is any value in the range 0 to 255 and indicates the word or byte offset into the target's Common Interface File (CIF).
  • Page 372 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Input registers and holding registers are addressed at the word level. Input registers are generally used for internally storing input values. They are read-only. Holding registers are general purpose and can be both read and written.
  • Page 373: Local Messaging Examples

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Local/Remote This variable defines the type of communications that is used. Always use local when you need point-to-point communications via DF1 Full-Duplex or network communications such as Ethernet/IP, DeviceNet (using 1761-NET-DNI), DF1 Half-Duplex, or DF1 Radio Modem. For DH-485, use local if the target node is on the same DH-485 network as this controller, or remote if the path to the target node goes through one or more communication bridges.
  • Page 374 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Parameter Description This Controller Channel Identifies the communication channel. Channel 0 or Channel 1 Communication Specifies the type of message. Valid types are: Command • 500CPU Read (500CPU, 485CIF, and PLC5 message types) • 500CPU Write •...
  • Page 375 Local/Remote Specifies whether the message is local or remote. (Modbus messages are local only.) (1) MicroLogix 1100 OS Series A FRN3, 485CIF write ST-to-485CIF only. (2) 500CPU write RTC-to-Integer or RTC-to-RTC only. (3) MicroLogix 1100 Series B FRN 4 or later.
  • Page 376 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions In this example, the controller reads 10 elements from the target’s (Local Node 2) N7 file, starting at word N7:50. The 10 words are placed in the controller’s integer file starting at word N7:0. If five seconds elapse before the message completes, error bit MG11:0/ER is set, indicating that the message timed out.
  • Page 377 485CIF <---> read/write 485CIF <---> read/write 485CIF <---> read/write 485CIF (1) Output and input data types are not valid local data types for read messages. (2) MicroLogix 1100 OS Series B FRN 4 or later. Publication 1763-RM001B-EN-P - April 2007...
  • Page 378 , B, N, L <---> read/write <---> read/write <---> read/write <---> read/write (1) Output and input data types are not valid local data types for read messages. (2) MicroLogix 1100 OS Series B FRN 4 or later. Publication 1763-RM001B-EN-P - April 2007...
  • Page 379 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Example 4 - Configuring a Modbus Message This section describes how to configure a local message using the Modbus communication commands. Since configuration options are dependent on which channel is selected, the programming software has been designed to only show the options available for the selected channel.
  • Page 380 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions “This Controller” Parameters If a Channel configured for Modbus Master is selected in the Channel field of the Message Setup Screen, the following Modbus Command options will become available: • 01 Read Coil Status (0xxxx) •...
  • Page 381 Example 5 - Configuring an Ethernet/IP Message This section describes how to configure a local message when you are use Ethernet communication channel 1 of the MicroLogix 1100. Message Setup Screen Rung 0 shows a standard RSLogix 500 message (MSG) instruction preceded by conditional logic.
  • Page 382 500CPU, 485CIF, PLC5 and CIP Generic[ . Refer to the previous examples for the usage of each command. (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001B-EN-P - April 2007...
  • Page 383 Each RI File Element consists of Sub-Elements 0 through 19 as shown in the following table. To reach another MicroLogix 1100, an SLC 5/05, a PLC-5E or a controller connected to Ethernet via a 1761-NET-ENI, simply enter in the destination IP address.
  • Page 384 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Routing Information File Element Sub- Description Element Subtype of Ethernet Message: • 16 (0x10) for normal Multi-Hop MSG • 17 (0x11) for Remote Multi-Hop MSG for a DH+ Network High word of 32-bit target IP address Low word of 32-bit target IP address 8 to 15 Internal Object Identifier (IOI) size in words (1 to 5)
  • Page 385 MG11:0/ER is set, indicating that the message timed out. If the target device is another MicroLogix 1100, a SLC 5/05, a PLC-5E or a controller connected to Ethernet via a 1761-NET-ENI, then simply enter in the device’s IP address in the “To Address”...
  • Page 386 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions backplane slot number for the controller (always 0 for FlexLogix and CompactLogix, 0-16 for ControlLogix) in the second row of the “To Address” column as shown below under the MultiHop tab. If the target device is a ControlLogix controller with an ControlNet interface, then enter in the interface’s IP address of the 1756 ENET module in the first row of the “To Address”...
  • Page 387 Communications Instructions Configuring Local Write message with ST file The MicroLogix 1100 can use a message instruction to transfer string file data to target device (SLC5/0x, 1756-L1) The following message setup screen is used to send local PLC5 write to the 1756-L1 via 1756-ENBT module.
  • Page 388: Remote Messages

    In this example, node 12 on DH-485 is a MicroLogix 1100. The MicroLogix 1100 can respond to remote message requests from nodes 40 or 51 on the DH+ network and it can initiate a message to any node on the DH+ network.
  • Page 389 CHS GND SHLD CHS GND DC SOURCE DC SOURCE CABLE CABLE DC SOURCE EXTERNAL EXTERNAL CABLE EXTERNAL MicroLogix 1000 MicroLogix 1200 MicroLogix 1100 SLC 5/04 DH+ Network Node 19 Node 51 Node 40 SLC 5/04 PLC-5 Publication 1763-RM001B-EN-P - April 2007...
  • Page 390 CHS GND CHS GND SHLD CHS GND DC SOURCE DC SOURCE DC SOURCE CABLE CABLE CABLE DC SOURCE EXTERNAL EXTERNAL EXTERNAL CABLE EXTERNAL MicroLogix 1100 MicroLogix 1200 MicroLogix 1500 SLC 5/05 Ethernet Network SLC 5/05 PLC-5E Publication 1763-RM001B-EN-P - April 2007...
  • Page 391: Configuring A Remote Message

    Message Example Configuration Screen and Network The message configuration shown below is for the MicroLogix 1100 at node 12 on the DH-485 network. This message reads five elements of data from the SLC 5/04 (node 51 on the DH+ network) starting at address N:50:0.
  • Page 392 CABLE CABLE DC SOURCE EXTERNAL EXTERNAL CABLE EXTERNAL MicroLogix 1000 MicroLogix 1200 MicroLogix 1100 SLC 5/04 DH+ Network Node 23 octal (19 decimal) Link ID = 100 Node 63 octal (51 decimal) Node 40 octal (32 decimal) SLC 5/04 PLC-5 “This Controller”...
  • Page 393 This variable defines the bridge address on the local network. In the example, DH-485 node 12 (MicroLogix 1100 on Link ID 1) is writing data to node 51 (SLC 5/04 on Link ID 100). The SLC 5/04 at node 17 is the bridge device.
  • Page 394: Configuring A Multi-Hop Remote Message On Ethernet/Ip Communication Channel

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Network Link ID Set the Network Link ID in the General tab on the Channel Configuration screen. The Link ID value is a user-defined number between 1 and 65,535. All devices that can initiate remote messages and are connected to the local network must have the same number for this variable.
  • Page 395 - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Network Message Example 1: MicroLogix 1100 Ethernet to SLC5/04 DH+ via ENET & DHRIO The following illustrates the MicroLogix 1100 (CH1 Ethernet) sending a remote message to a SLC5/04 processor (DH+ Node 51). The remote message will s an ENET module, a ControlLogix chassis (Gateway) and a DHRIO module.
  • Page 396 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions DHRIO Routing table creation To create a DHRIO Routing table open up RSLinx and under Communication select RSWho. Select a driver that will allow you to see and connect up to the DHRIO module. Publication 1763-RM001B-EN-P - April 2007...
  • Page 397 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Right Click your mouse on top of the DHRIO module and a drop down box will open. Select Module Configuration by clicking with the left mouse button. Select DHRIO Routing Table tab. If no routing table has been created the following should appear.
  • Page 398 AB PLC. Enter the IP address (100.100.115.1) for the destination Ethernet processor and its Link ID (24). The Configuration should now look like the following. The following is the logic necessary for the MicroLogix 1100 processor. Publication 1763-RM001B-EN-P - April 2007...
  • Page 399 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions A MSG route must be configured in the MultiHop tab of the MSG Setup Screen. Click on the MultiHop tab. Enter in the IP address of the 1756 ENET module, select ControlLogix backplane, press the Insert key and enter in the backplane slot numbers of the DHRIO module (0-16) under the 'To Address' fields.
  • Page 400 Note: Make sure that the Target Device Data Table Address exists in the target device. Network Message Example 2: MicroLogix 1100 Ethernet to SLC 5/03 DH485 via ENET, DHRIO and 1785-KA5 bridge device (OS Series B FRN 4 or later) The following illustrates the MicroLogix 1100 OS Series B(CH1 Ethernet) sending a remote message to a SLC5/03 processor (DH+ Node 51).
  • Page 401 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions and a DHRIO Routing table must exist. It must route to a DHRIO module onto DH+ thru a 1785-KA5 bridge to DH485. Follow the example below for the configuration steps. Adding 1785-KA5 bridge module Routing to a DHRIO module onto DH+ thru a 1785KA5 bridge to DH485.
  • Page 402 DH+ node number of the KA5 (37 in this example), and the Link ID of the DH485 (13 in this example). Click Apply. You can now browse through the KA5 module from RSWho. ML1100 Channel1 Configuration The following is the message setup screen for the MicroLogix 1100 controller. Publication 1763-RM001B-EN-P - April 2007...
  • Page 403 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions A MSG route must be configured in the MultiHop tab of the MSG Setup Screen. Click on the MultiHop tab. Enter in the IP address of the 1756 ENET module, select ControlLogix backplane, press the Insert key and enter in the backplane slot numbers of the DHRIO module (0-16) under the 'To Address' fields.
  • Page 404 Source Link ID and address, as well as Destination Link ID and address. The MicroLogix 1100 OS Series B can only send remote ethernet messages using EtherNet/IP messages. The local version of EtherNet/IP messages use the 0x4B Execute PCCC service code, whereas the remote version needs to use the 0x4C Execute DH+ service code.
  • Page 405 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions In RSLinx, select DDE/OPC menu, then select Topic Configuration. Click new, enter a topic name, and click OK. The DDE/OPC Topic Configuration dialog will appear. Publication 1763-RM001B-EN-P - April 2007...
  • Page 406 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions 2. Configure Remote Routing Configuration After selecting Remote Addressing and clicking on the Configure button, select the 1785-KA5 Bridge/5130-KA for the Bridge Device. Select DH+ for the Remote Network Type and Local ID is set to 15(dec), Local KA5 is set to 63(dec).
  • Page 407 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions 2. Add a new group: 3. Add a new item: 4. Note that the “Sub Quality” will be “Bad” until an unsolicited message is received: 4. Configure the ML1100 MSG instruction Publication 1763-RM001B-EN-P - April 2007...
  • Page 408 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions ML1100 Channel 1 Network Link ID must be matched with the DDE/OPC Topic Remote ID configured in step #2 (0, in this example). Also configure a Remote Ethernet MSG in the ML1100 to Remote Station Address 63 and Remote Link ID 15: Publication 1763-RM001B-EN-P - April 2007...
  • Page 409: Configuring A Micrologix 1100 Cip Generic Message Via Ethernet (Os Series B Frn 4 Or Later)

    Client should display the N7:0 data, as well as “Good” Sub Quality: Configuring a The MicroLogix 1100 OS Series B only supports CIP Generic messages over ethernet port. This section describes how to configure a CIP Generic MicroLogix 1100 CIP...
  • Page 410 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions “This Controller” Parameters You must select CIP Generic in Communication Command field. Also the size of bytes(receive or send) is the length of service data to be sent or received in the message. “Target Device” Parameters Extended Routing Information File The CIP generic communication command requires an extended routing information file type, RIX, to store the longer path information for CIP...
  • Page 411 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Extended Routing Information File Element Sub- Description Element Subtype of Ethernet Message: 19 (0x13) for CIP Generic MSG High word of 32-bit target IP address Low word of 32-bit target IP address ASA Service to 8 7 to Internal Object Identifier (IOI) size in words (1 to 5)
  • Page 412 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Service Type Pull-Down List Auto-Fill fields Service Service Code Class Instance Attribute Custom Read Assembly 0x0E 0x04 Write Assembly 0x10 0x04 Read Output Point 0x0E 0x10 Write Output Point 0x10 0x09 Read Input point 0x0E 0x08 Read Parameter...
  • Page 413 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions When the message is replied successfully, a user can check configuration parameters in Receive Data tab. CIP Generic Error Codes/Internal Fail Codes When CIP Generic sub-system cannot send a message due to some reason or reply contains error code, error code is shown via MSG instruction.
  • Page 414: Msg Instruction Error Codes

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions MSG Instruction Error When the processor detects an error during the transfer of message data, the processor sets the ER bit and enters an error code that you can Codes monitor from your programming software. Error Code Description of Error Condition Target node is busy.
  • Page 415 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Error Code Description of Error Condition PCCC Description: Remote station problem due to download. PCCC Description: Cannot execute command due to active IPBs. No IP address configured for the network, or Bad command - unsolicited message error, or Bad address - unsolicited message error, or No privilege - unsolicited message error, or Multihop messaging cannot route request...
  • Page 416: Special Function With Msg Instruction (Os Series B Frn 4 Or Later)

    • Codes E0 to EF represent EXT STS codes 0 to F. • Codes F0 to FC represent EXT STS codes 10 to 1C. Special Function with MicroLogix 1100 Series B FRN 4 supports the configuration of IP Address, Subnet Mask, Gateway Address, Default Domain Name, Primary Name MSG instruction (OS...
  • Page 417 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions General MSG Setup Screen to change IP Address MultiHop Setup Screen to change IP Address Setup String Data File Publication 1763-RM001B-EN-P - April 2007...
  • Page 418 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions • Channel : Channel must be “1 (Integral)”. • Communication command : Communication command must be “485 CIF Write”. • Data Table Address : Data Table Address must be a String file. To change Ethernet Channel Configuration, you must enter the characters for the configuration parameter.
  • Page 419 Ethernet communication channel 1 of the MicroLogix 1100. Setup SMTP Configuration File While the processor is selected to MicroLogix 1100 Series B, “SMTP Client Enable” check box is shown in the Ethernet Channel Configuration tab. If this check box is checked, SMTP configuration page will be appeared.
  • Page 420 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions SMTP Client Enable Bit Setup Screen SMTP Configuration Setup Screen The following is an explanation of parameters to be configured: Publication 1763-RM001B-EN-P - April 2007...
  • Page 421 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions • Email Server : email Server IP Address or DNS name. As for the input of DNS name, you should make sure if the Default Domain Name has been configured in the Ethernet Channel Configuration. If it was configured in the Ethernet Channel Configuration, DNS Sub-system will query total DNS name to DNS server.
  • Page 422: Configure Msg Setup Screen To Send Smtp Message

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Configure MSG Setup The picture below provides an example of how the MSG Instruction would be configured to be used to send SMTP message. Screen to send SMTP message General MSG Setup Screen for SMTP messaging The picture below shows MultiHop setup screen and configured e-mail subject and Body using ST file.
  • Page 423 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Setup String Data File • Channel : Channel must be “1 (Integral)”. • Communication command : Communication command must be “485 CIF Write”. • Data Table Address : Data Table Address must be a String file and the String file must contain Email Subject and Email Body.
  • Page 424 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions … … Send email to SMTP TO address [8] Used to trigger the SMTP message configured in SMTP configuration File. Send email to SMTP TO address [9] Used to trigger the SMTP message configured in SMTP configuration File. •...
  • Page 425 String of the value of N7:0. SMTP Authentication Encoding If the SMTP Authentication Flag is enabled, MicroLogix 1100 sends encoded Username and Password. There are several Authentication methods; login, plain, cram-md5, and etc. But, MicroLogix 1100 supports only the login method.
  • Page 426 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Communications Instructions Notes: Publication 1763-RM001B-EN-P - April 2007...
  • Page 427: Chapter 21 Rcp - Recipe

    Controller Operation When Rung Is: True False 23.7 μs + 1.7 μs/word 0.8 μs MicroLogix 1100 Load + 3.3 μs/long word or floating point 25.2 μs + 2.4 μs/word 0.8 μs Store + 4.4 μs/long word or floating point The RCP file allows you to save custom lists of data associated with a recipe.
  • Page 428 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging See step 2, “Create a RCP File” on page 428 for the recipe file procedure. The RCP instruction uses the following parameters: • Recipe File Number - this is the file number that identifies the custom list of addresses associated with a recipe.
  • Page 429 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging • File - This is the number identifying the RCP file. It is the Recipe File Number used in the RCP instruction in your ladder program and identifies the recipe database. • Number of Recipes - This is the number of recipes contained in the RCP file.
  • Page 430 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging 4. A new window will appear. In this window, enter the values as shown below. 5. Change the Current Recipe from 0 to 1. Notice the addresses were duplicated, but the data was not. 6.
  • Page 431 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Application Explanation of Operation When B3:0/0 is energized and B3:0/1 and B3:0/2 are de-energized, Recipe File 0:Recipe number 0 is executed loading the following values to create Yellow paint. • N7:0 = 500 •...
  • Page 432 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging When B3:0/2 is energized and B3:0/0 and B3:0/1 are de-energized, Recipe File 0:Recipe number 2 is executed loading the following values to create White paint. • N7:0 = 333 • N7:1 = 333 •...
  • Page 433: Data Logging

    • Retrieving (Reading) Records on page 442 Queues and Records The MicroLogix 1100 processor has 128K bytes (128 x 1024) of additional memory for data logging purposes. Within this memory, you can define up to 256 (0 to 255) data logging queues. Each queue is configurable by size (maximum number of records stored), and by length (each record is 1 to 80 characters).
  • Page 434 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Example Queue 0 This queue is used to show how to calculate the string length of each record and maximum number of records. Queue 0 (Date = , Time = , Delimiter = ,) Date Time N7:11...
  • Page 435 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Number of Records Using Queue 0 as an example, each record consumes: Record Field Memory Consumption Date 2 bytes Time 2 bytes N7:11 2 bytes L14:0 4 bytes T4:5.ACC 2 bytes I1:3.0 2 bytes B3:2 2 bytes...
  • Page 436 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Data Memory Consumed Formatted String Size delimiter 0 bytes 1 character word 2 bytes 6 characters long word 4 bytes 11 characters date 2 bytes 10 characters time 2 bytes 8 characters For queue 5, the formatted string length is 29 characters, as shown below: Data Time...
  • Page 437: Configuring Data Log Queues

    Data Logging is configured using RSLogix 500 programming software version V7.00.00 or later. Queues 1. Open a MicroLogix 1100 application. The first step in using Data Logging is to configure the data log queue(s). Access to this function is provided via the RSLogix 500 Project tree:...
  • Page 438 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Enter the following information: Data Log Queue Description Configuration Parameter Number of Records Defines the number of records (data sets) in the queue. Separator Character Choose the character to act as the separator for the data in this queue (tab, comma, or space).
  • Page 439: Dlg - Data Log Instruction

    Data Log True False queue number 35.9 μs + 2.5 μs/data stamp + 7.5 μs MicroLogix 1100 1.9 μs/time stamp + 1.9 μs/ word logged + 4.3 μs/long word logged You must configure a data log queue before IMPORTANT programming a DLG instruction into your ladder program.
  • Page 440: Data Log Status File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Data Log Status File There is a Data Log Status (DLS) file element for each Data Log Queue. The DLS file does not exist until a data log queue has been configured. The Data Log Status file has 3-word elements.
  • Page 441 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging File Size (FSZ) File Size (FSZ) shows the number of records that are allocated for this queue. The number of records is set when the data log queue is configured. FSZ can be used with RST to determine how full the queue is. To address this word in ladder logic, use the format: DLS0:Q.FSZ, where Q is the queue number.
  • Page 442: Retrieving (Reading) Records

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Retrieving (Reading) Data is retrieved from a data logging queue by sending a logical read command that addresses the Data Log retrieval file. The oldest record is Records retrieved first and then, deleted. The record is deleted as soon as it is queued for transmission.
  • Page 443 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Recipe and Data Logging Information for Creating Your Own Application Controller Receives Communications Packet Command Structure CMD 0f FNC A2 Byte Size File No. File Tpe Ele. No. S/Ele. No. Field Function Description Destination Node Source Node Command Code Status Code Set to zero (0)
  • Page 444: Conditions That Will Erase The Data Retrieval File

    If the data integrity check fails, the record is deleted and an error is sent with STS of 0xF0 and ext STS of 0x0E. For more information on writing a DF1 protocol, refer to Allen-Bradley publication 1770-6.5.16, DF1 Protocol and Command Set Reference Manual (available from www.theautomationbookstore.com).
  • Page 445: Chapter 22 Lcd Overview

    This chapter describes how to use the LCD functions. LCD Overview Through the embedded LCD, your MicroLogix 1100 lets you monitor bit and integer data within the controller, and optionally modify that data, to interact with your control program. Similarly to the optional 1764-DAT for...
  • Page 446: Lcd Function File

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information sensors, timer “done bits”, message from another controller, etc.), or based on a scheduled action (using the embedded real time clock, or free running timers). The second mode of operation again allows for output from the ladder logic to the display, but adds input from the operator back to the controller (hereafter called “Display With Input mode”).
  • Page 447: Lcd Function File Sub-Elements Summary

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information If the controller is in the run mode, TBF, TIF, TMIN, NOTE TMAX may not be changing, those values can be available of changing only when program is downloaded. The LCD Function File contains status information and control configurations for LCD, Trimpot, and keypad, such as: •...
  • Page 448: Lcd Function File Sub-Elements

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information LCD Function File Feature Address Data Format Type User Program Access ERR - LCD Display Operation Error Bit LCD:0/ERR binary (bit) status read-only ERN - LCD Module Operation Error Number LCD:0.ERN word (INT) status read-only TBF- Target Bit File Number...
  • Page 449 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information program. By setting this bit to ON (1), you can let your controller display LCD instructions or get keypad inputs from the user at power-up, without additional operations. Data Input Timeout of LCD instruction (TO) Feature Address Data Format...
  • Page 450 (1) ERR bit. This means a Trimpot range error has occurred at program download. For more information about Trimpot functionality, refer to Using Trim Pots described in the MicroLogix 1100 Programmable Controllers User Manual, publication 1763-UM001. LCD Module Operation Error Number (ERN)
  • Page 451 Up to the first 48 words of the specified integer file can be monitored and modified. For more information, refer to Using Trim Pots described in the MicroLogix 1100 Programmable Controllers User Manual, publication 1763-UM001. Jog data update Mode set (JOG)
  • Page 452 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information The Data resident in POT0 represents the position of trim pot 0. The Data resident in POT1 corresponds to the position of trim pot 1. Those valid data range for both is from TMIN to TMAX. POT0 and POT1 value is evaluated on valid value when a new program is downloaded.
  • Page 453: Lcd - Lcd Instruction

    L3 Source A ST9:1 True False L3 Source B 8.06 μs 0.87 μs MicroLogix 1100 L4 Source A ST9:2 L4 Source B Display With Input The LCD instruction is used to display string or number, get value with Setup Screen keypad.
  • Page 454 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information LCD Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Data Files Function Files Address Level Mode Parameter Line 3 Source A...
  • Page 455 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information Getting Value with Keypad Your application program can get value from user’s keypad inputs if Display With Input bit is set (1) in LCD instructions. User inputs can be obtained with arrow, ESC, and OK keys. In this case, Line 4 is used for user input.
  • Page 456 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive LCD - LCD Information LCD Character Set LCD Font Standard character ASCII Code (Hex) Publication 1763-RM001C-EN-P - October 2009...
  • Page 457: Programming Instructions Memory Usage And Execution Time

    Appendix MicroLogix 1100 Memory Usage and Instruction Execution Time This appendix contains a complete list of the MicroLogix 1100 programming instructions. The list shows the memory usage and instruction execution time for each instruction. Execution times using indirect addressing and a scan time worksheet are also provided.
  • Page 458 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Memory Usage and Instruction Execution Time MicroLogix 1100 Controllers - Memory Usage and Instruction Execution Time for Programming Instructions Programming Instruction Instruction Word Long Word Mnemonic Execution Time in µs Memory Execution Time in µs...
  • Page 459 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Memory Usage and Instruction Execution Time MicroLogix 1100 Controllers - Memory Usage and Instruction Execution Time for Programming Instructions Programming Instruction Instruction Word Long Word Mnemonic Execution Time in µs Memory Execution Time in µs...
  • Page 460 None MicroLogix 1100 Indirect Addressing The following sections describe how indirect addressing affects the execution time of instructions in the MicroLogix 1100 processor. The timing for an indirect address is affected by the form of the indirect address. For the address forms in the following table, you can interchange the following file types: •...
  • Page 461 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Memory Usage and Instruction Execution Time Execution Times for the Indirect Addresses For most types of instructions that contain an indirect address(es), look up the form of the indirect address in the table below and add that time to the execution time of the instruction.
  • Page 462: Scan Time Worksheet

    - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Memory Usage and Instruction Execution Time MicroLogix 1100 Calculate the scan time for your control program using the worksheet below. Scan Time Worksheet Input Scan (sum of below) Overhead (if expansion I/O is used) = 53 µs...
  • Page 463 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Memory Usage and Instruction Execution Time Communications Multiplier Table Multiplier at Various Baud Rates 38.4K 19.2K 9.6K 4.8K 2.4K 1.2K Inactive Protocol DF1 Full Duplex 1.39 1.20 1.13 1.10 1.09 1.08 1.08 1.08 1.00 DF1 Half Duplex 1.18...
  • Page 464 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Memory Usage and Instruction Execution Time Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 465 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Appendix System Status File The status file lets you monitor how your controller works and lets you direct how you want it to work. This is done by using the status file to set up control bits and monitor both hardware and programming device faults and other status information.
  • Page 466: Status File Overview

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Status File Overview The status file (S:) contains the following words: Address Function Page Arithmetic Flags Controller Mode STI Mode S:2/9 Memory Module Program Compare S:2/15 Math Overflow Selection S:3H Watchdog Scan Time Free Running Clock Minor Error Bits Major Error Code...
  • Page 467: Status File Details

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Status File Details Arithmetic Flags The arithmetic flags are assessed by the processor following the execution of any math, logical, or move instruction. The state of these bits remains in effect until the next math, logical, or move instruction in the program is executed.
  • Page 468: Publication 1763-Rm001C-En-P - October

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Sign Flag Address Data Format Range Type User Program Access S:0/3 binary 0 or 1 status read/write This bit is set (1) when the result of a mathematical operation or data handling instruction is negative. Otherwise the bit remains cleared (0). When a STI, High-Speed Counter, Event Interrupt, or User Fault Routine interrupts normal execution of your program, the original value of S:0/3 is restored when execution resumes.
  • Page 469 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Forces Enabled Address Data Format Range Type User Program Access S:1/5 binary status read only This bit is always set (1) by the controller to indicate that forces are enabled. Forces Installed Address Data Format Range Type...
  • Page 470 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Fault Override At Power-Up Address Data Format Range Type User Program Access S:1/8 binary 0 or 1 control read only When set (1), causes the controller to clear the Major Error Halted bit (S:1/ 13) at power-up.
  • Page 471 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File See also:LE - Load on Error on page 56. Load Memory Module Always Address Data Format Range Type User Program Access S:1/11 binary 0 or 1 control read only For this option to work, you must set (1) this bit in the control program before downloading the program to a memory module.
  • Page 472 - Allen Bradley,Rockwell,plc,servo,drive System Status File The following table shows the Power-Up Mode under various conditions MicroLogix 1100 - Major Error Power-Up Mode at Last Power-Down Power-Up Mode Mode Switch Position Halted Mode Behavior at Power-Up Program False Don’t Care Don’t Care...
  • Page 473 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File If you clear the Major Error Halted bit (S:1/13) when the ATTENTION controller mode switch is in the RUN position, the controller immediately enters the RUN mode. Future Access (OEM Lock) Address Data Format Range Type User Program Access...
  • Page 474 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File STI Enabled Data Format Range Type User Program Access Address S:2/1 binary 0 or 1 control read/write (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device).
  • Page 475 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Math Overflow Selection Address Data Format Range Type User Program Access S:2/14 binary 0 or 1 control read/write Set (1) this bit when you intend to use 32-bit addition and subtraction. When S:2/14 is set, and the result of an ADD, SUB, MUL, or DIV instruction cannot be represented in the destination address (underflow or overflow), •...
  • Page 476 The resolution of the Free Running Clock depends upon which controller you are using. • SLC 500 and MicroLogix 1000: 10 ms/bit (0.010 seconds/bit) • MicroLogix 1100, MicroLogix 1200 and MicroLogix 1500: 100 µs/bit (0.0001 seconds/bit) The following table illustrates the differences.
  • Page 477 1.28 seconds and off for 1.28 seconds for a total cycle time of 2.56 seconds. If bit S:4/7 is monitored in a MicroLogix 1100, then that bit will be on for 0.0128 seconds and off for 0.0128 seconds for a total cycle time of 0.0256 seconds.
  • Page 478 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Memory Module Boot Address Data Format Range Type User Program Access S:5/8 binary 0 or 1 status read/write When this bit is set (1) by the controller, it indicates that a memory module program has been transferred due to S:1/10 (Load Memory Module on Error or Default Program) or S:1/11 (Load Memory Module Always) being set in an attached memory module user program.
  • Page 479 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Install a replacement battery immediately. See your IMPORTANT hardware manual for more information. See also: RTC Battery Operation on page 52. Input Filter Selection Modified Address Data Format Range Type User Program Access S:5/13 binary 0 or 1...
  • Page 480 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Suspend Code Address Data Format Range Type User Program Access word -32,768 to status read/write +32,767 When the controller executes an Suspend (SUS) instruction, the SUS code is written to this location, S:7. This pinpoints the conditions in the application that caused the Suspend mode.
  • Page 481 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Active Nodes (Nodes 16 to 31) Data Format Range Type User Program Access Address S:10 word 0 to FFFF status read only (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device).
  • Page 482 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Baud Rate Data Format Range Type User Program Access Address S:15 (high byte) byte 0 to 255 status read only (1) This byte can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device).
  • Page 483 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File STI Set Point Data Format Range Type User Program Access Address S:30 word 0 to 65535 status read only (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device).
  • Page 484 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Outgoing Message Command Pending Data Format Range Type User Program Access Address S:33/2 binary 0 or 1 status read only (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device).
  • Page 485 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Data File Overwrite Protection Lost Address Data Format Range Type User Program Access S:36/10 binary 0 or 1 status read/write When clear (0), this bit indicates that at the time of the last program transfer to the controller, protected data files in the controller were not overwritten, or there were no protected data files in the program being downloaded.
  • Page 486 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File RTC Day of Month Data Format Range Type User Program Access Address S:39 word 1 to 31 status read only (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device).
  • Page 487 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File RTC Seconds Data Format Range Type User Program Access Address S:42 word 0 to 59 status read only (1) This word can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device).
  • Page 488 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File OS FRN Address Data Format Range Type User Program Access S:59 word 0 to 32,767 status read only This register identifies the FRN of the Operating System in the controller. Processor Catalog Number Address Data Format Range...
  • Page 489 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Compiler Revision - Build Number Address Data Format Range Type User Program Access S:64 (low byte) byte 0 to 255 status read only This register identifies the Build Number of the compiler which created the program in the controller.
  • Page 490 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive System Status File Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 491: Fault Messages And Error Codes

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Appendix Fault Messages and Error Codes This chapter describes how to troubleshoot your controller. Topics include: • identifying controller faults • contacting Rockwell Automation for assistance Identifying Controller While a program is executing, a fault may occur within the operating system or your program.
  • Page 492 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Manually Clearing Faults Using the Fault Routine The occurrence of recoverable or non-recoverable user faults can cause the user fault subroutine to be executed. If the fault is recoverable, the subroutine can be used to correct the problem and clear the fault bit S:1/ 13.
  • Page 493 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Error Advisory Message Description Fault Recommended Action Code Classification (Hex) • Upgrade the OS to be compatible with 0006 MEMORY MODULE The memory module hardware Non-User HARDWARE FAULT faulted or the memory module is memory module.
  • Page 494 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Error Advisory Message Description Fault Recommended Action Code Classification (Hex) 0015 I/O CONFIGURATION The user program I/O configuration Non-User Re-compile and reload the program, and enter FILE ERROR is invalid. the Run mode. If the error persists, be sure to use RSI programming software to develop and load the program.
  • Page 495 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Error Advisory Message Description Fault Recommended Action Code Classification (Hex) 002E EII ERROR An error occurred in the EII Recoverable See the Error Code in the EII Function File for configuration. the specific error.
  • Page 496 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Error Advisory Message Description Fault Recommended Action Code Classification (Hex) • Correct the program to ensure that the 003F COP/CPW/FLL A COP, CPW or FLL instruction length Recoverable OUTSIDE OF DATA parameter references outside of the length and parameter do not point outside FILE SPACE...
  • Page 497 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Error Advisory Message Description Fault Recommended Action Code Classification (Hex) • Reconfigure the expansion I/O system so 0084 MAX I/O POWER The maximum number of expansion Non-User SUPPLIES EXCEEDED I/O power supplies allowed was that it has the correct number of power exceeded.
  • Page 498 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Error Advisory Message Description Fault Recommended Action Code Classification (Hex) • Correct the user program I/O configuration (1)(2) EXPANSION I/O An expansion I/O object (i.e. cable, Non-User xx8C OBJECT TYPE power supply, or module) in the user so that the object types match the actual MISMATCH program I/O configuration is not the...
  • Page 499: Contacting Rockwell Automation For Assistance

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Contacting Rockwell If you need to contact Rockwell Automation or local distributor for assistance, it is helpful to obtain the following information ready: Automation for Assistance • controller type, series letter, and revision letter of the base unit •...
  • Page 500 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Fault Messages and Error Codes Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 501 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Appendix Protocol Configuration Use the information in this appendix for configuring communication protocols. The following protocols are supported from any RS-232 communication channel: • DH-485 • DF1 Full-Duplex • DF1 Half-Duplex • DF1 Radio Modem • Modbus RTU •...
  • Page 502: Communication Protocol

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration DH-485 Communication The information in this section describes the DH-485 network functions, network architecture, and performance characteristics. It also helps you Protocol plan and operate the controller on a DH-485 network. DH-485 Network Description The DH-485 protocol defines the communication between multiple devices that coexist on a single pair of wires.
  • Page 503 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration DH-485 Broadcast Messages A broadcast write command is sent as a DH-485 Send Data No Acknowledgement (SDN) packet. No acknowledgement or reply is returned. DH-485 Configuration Parameters When communications are configured for DH-485, the following parameters can be changed: Parameter Options...
  • Page 504 All devices should be set to the same maximum node IMPORTANT address. MicroLogix 1100 Remote Packet Support These controllers can respond and initiate with device’s communications (or commands) that do not originate on the local DH-485 network. This is useful in installations where communication is needed between the DH-485 and DH+ networks.
  • Page 505: Df1 Full-Duplex Protocol

    RS-232 connection to external devices, such as computers, or other controllers that support DF1 Full-Duplex. DF1 is an open protocol. Refer to DF1 Protocol and Command Set Reference Manual, Allen-Bradley publication 1770-6.5.16, for more information. DF1 Full-Duplex Operation DF1 Full-Duplex protocol (also referred to as DF1 point-to-point protocol) is useful where RS-232 point-to-point communication is required.
  • Page 506: Df1 Half-Duplex Protocol

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration DF1 Half-Duplex DF1 Half-Duplex protocol provides a multi-drop single master/multiple slave network. In contrast to the DF1 Full-Duplex protocol, Protocol communication takes place in one direction at a time. You can use the RS-232 port on the MicroLogix controller as both a Half-Duplex programming port, and a Half-Duplex peer-to-peer messaging port.
  • Page 507 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Message-Based Polling Mode Message-based polling mode is best used in networks when communication with the slave stations is not time critical and where the user needs to be able to limit when and how often the master station communicates with each slave station.
  • Page 508 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Standard polling mode causes the master station to continuously send one or more 4-byte poll packets to each slave station address configured by the user in the poll list(s) in round robin fashion – as soon as the end of the polling list is reached, the master station immediately goes back and starts polling slave stations from the top of the polling list over again.
  • Page 509 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration stations to an operator interface connected to the master station for monitoring, alarming and logging purposes, and to precondition MSG instructions to each particular slave. This second use is based on the supposition that if a slave station did not respond the last time it was polled, it may not be able to receive and respond to a MSG instruction now, and so it would most likely process the maximum number of retries and time-outs before completing in error.
  • Page 510 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Addressing Tips Each station on the network, including the master station, must have a unique address. The address range is 0 to 254, so you can have a maximum of 255 stations on a single telemetry network. Station address 255 is the broadcast address, which you cannot select as a station’s individual address.
  • Page 511 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration DF1 Half-Duplex Master MSG-based Polling Mode Operation With MSG-based Polling Mode, the master device only initiates communication with a slave when a MSG instruction to that slave is triggered in ladder logic. Once the read or write command has been transmitted, the master waits the Reply MSG Timeout period and then polls that slave for a reply to its command.
  • Page 512 When the system driver is DF1 Half-Duplex Master, the following parameters can be changed: DF1 Half-Duplex Master Configuration Parameters Parameter Options Programming Software Default Channel MicroLogix 1100: Channel 0 Driver DF1 Half Duplex Master Baud Rate 300, 600, 1200, 2400, 4800, 9600, 19.2K, 38.4K 19.2K Parity none, even none...
  • Page 513 If no stations are configured in the Priority Polling Range, leave this parameter at 0. (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001C-EN-P - October 2009...
  • Page 514 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration DF1 Half-Duplex Master Channel Status Channel Status data is stored in the Communication Status Function File. Viewing Channel Status Data for DF1 Half-Duplex Master Double-click on the Channel Status Icon Located beneath the Configuration icon to bring up the Channel Status screen.
  • Page 515 DF1 Half-Duplex Master Active Node Table. The table is stored in the Communications Status Function File, words CSx:27 to CSx:42, where x is the channel number (x = 0 for MicroLogix 1100). Each bit in the table represents a station on the link, from 0 to 254, starting with CSx:27/0 for address 0 and CSx:42/14 for address 254.
  • Page 516 When the system driver is DF1 Half-Duplex Slave, the following parameters can be changed: DF1 Half-Duplex Slave Configuration Parameters Parameter Options Programming Software Default Channel MicroLogix 1100: Channel 0 Driver DF1 Half Duplex Slave Baud Rate 300, 600, 1200, 2400, 4800, 9600, 19.2K, 38.4K 19.2K Parity none, even none...
  • Page 517: Df1 Radio Modem Protocol

    When the Control Line is set to “Half-Duplex Modem (RTS/CTS Handshaking)”, this is the minimum time delay between receiving the last character of a packet and the next RTS assertion. (1) MicroLogix 1100 OS Series B FRN 4 or later DF1 Radio Modem...
  • Page 518 1100. Channel configuration appears as follows. Figure shows Channel 0 configuration. DF1 Radio Modem Channel 0 Configuration (MicroLogix 1100) When the system driver is DF1 Radio Modem, the following parameters can be changed for Channel 0. Publication 1763-RM001C-EN-P - October 2009...
  • Page 519 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration DF1 Radio Modem Channel 0 Configuration Parameters Parameter Options Programming Software Default Channel Channel 0 Driver DF1 Radio Modem Baud Rate 300, 600, 1200, 2400, 4800, 9600, 19.2K, 38.4K 19.2K Parity none, even none Node Address 0 to 254 decimal (255 is reserved for broadcast) Store and Forward...
  • Page 520 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration user-configured Store & Forward Table to indicate which received packets it should re-broadcast, based on the packet’s source and destination addresses. Configuring the Store & Forward Table The Store & Forward Table can be configured to use any valid binary data table file (B3, B9 through B255) of length 16 words.
  • Page 521 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Applying DF1 Radio Modem Protocol Note 1 – The link layer of Node 1 blocks the re-transmission of a packet that is received with the SRC byte equal to the receiving node’s station address. Packets received that originate from the receiving node should never be re-transmitted. Note 2 –...
  • Page 522 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration DF1 Radio Modem Channel Status Channel Status data is stored in the Communication Status Function File. Viewing Channel Status for DF1 Radio Modem Double-click on the Channel Status Icon Located beneath the Configuration icon to bring up the Channel Status screen.
  • Page 523 DF1 Radio Modem driver using RSLogix 500 version 5.50 or higher. All MicroLogix 1100 controllers support DF1 Radio Modem protocol. RSLogix 500 version 7.0 or higher is required to configure the MicroLogix 1100.
  • Page 524: Modbus Rtu Protocol

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Yes, with certain limitations imposed based on the radio modem network. Refer to the SLC 500 Instruction Set Reference Manual, publication 1747-RM001, for more passthru details and limitations when using the DF1 Radio Modem driver. Modbus RTU Protocol This section shows the configuration parameters for Modbus RTU (Remote Terminal Unit transmission mode) protocol.
  • Page 525 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration When the message is sent, the address is decremented by 1 and converted into a 4-character hex number to be transmitted via the network (with a range of 0-FFFFh); the slave increments the address by 1, and selects the appropriate memory group based on the Modbus function.
  • Page 526 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration The Baud defaults to 19200. The Control Line can be configured as: • No Handshaking • Full-Duplex Modem (RTS on) • Half-Duplex Modem (RTS/CTS handshaking). • No Handshaking (485 Network) In order to connect directly to an RS-485 Modbus NOTE network, use a 1763-NC01 cable and configure the Control Line setting for No Handshaking (485 network).
  • Page 527 When the Control Line is set to Half-Duplex Modem or Full-Duplex Modem, this is the minimum time delay between receiving the last character of a packet and the RTS assertion. 1,5,2 Stop Bits Data Bits (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001C-EN-P - October 2009...
  • Page 528 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Modbus RTU Slave Configuration The Modbus configuration screen and configuration procedure are shown below: 1. To set up Channel 0 and data files for Modbus communication, select the Channel 0 Configuration tab. 2. Choose “Modbus RTU Slave” driver and assign driver characteristics. 3.
  • Page 529 When the Control Line is set to Half-Duplex Modem, this is the minimum time delay between receiving the last character of a packet and the RTS assertion. 1,5,2 Stop Bits Data Bits (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001C-EN-P - October 2009...
  • Page 530 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Modbus Slave Memory Map The modbus Memory map is summarized in and detailed in : Modbus to MicroLogix Memory Map - Summary Modbus Description Valid MicroLogix Addressing Addressing File Type Data File Number Address 0001 to 4096 Read/Write Modbus Coil Data space Bit (B) or Integer (N)
  • Page 531 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Modbus Slave to MicroLogix Memory Map - Detail Modbus Addressing Modbus Address Reference Modbus Function Code (decimal) 0001 to 4096 Read/Write Modbus Coil Data space 1, 5, 15 10001 to 14096 Read Only Modbus Contact Data space 30001 to 30256 Read Modbus Input Register space 30501...
  • Page 532 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Modbus Commands The controller configured for Modbus RTU Slave responds to the Modbus command function codes listed in below: Supported Modbus Commands as a Modbus RTU Slave Command Function Code Subfunction Code (decimal) (decimal) Read Coil Status Read Input Status Read Holding Registers...
  • Page 533 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Modbus Error Codes Upon receiving a Modbus command that is not supported or improperly formatted, the controller configured for Modbus RTU Slave will respond with one of the exception codes listed in below: Modbus Error Codes Returned by Modbus RTU Slave Error Error Description...
  • Page 534: Ascii Driver

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration ASCII Driver The ASCII driver provides connection to other ASCII devices, such as bar code readers, weigh scales, serial printers, and other intelligent devices. You can use ASCII by configuring the RS-232 port, channel 0 for ASCII driver.
  • Page 535 Allows you to select the delay between when RTS is raised and the transmission is initiated. Specify Delay (x20 ms) the RTS Send Delay value in increments of 20 ms. Valid range is 0 to 65535. 1,5,2 Stop Bits Data Bits (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001C-EN-P - October 2009...
  • Page 536: Ethernet Driver

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Ethernet Driver The MicroLogix1100 supports Ethernet communication via the Ethernet communication channel 1. Ethernet is a local area network that provides communication between a variety of network devices at 10/100 Mbps. TCP/IP is the mechanism used to transport Ethernet messages. The MicroLogix1100 processor uses TCP/IP to establish sessions and to send MSG commands.
  • Page 537 This is the IP address of the computer acting as the local Ethernet network Secondary Domain Name System (DNS) server. Network Link 0 to 199. The Link ID assigned to the MicroLogix 1100 either by an RSLinx OPC topic or by the routing table in a 1756-DHRIO or 1756-DH485 module. Bootp Enable enabled, disabled 1 (enabled) Check this box to enable Bootp.
  • Page 538 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Protocol Configuration Ethernet Configuration Parameters Parameter Options Programming Software Default HTTP Server enabled, disabled. 1 (enabled) Enable Check this box to enable HTTP (Hyper-Text Transfer Protocol). Disable HTTP to guarantee better security since it prevents access to the processor using a web browser. Note that disabling HTTP will prevent you from viewing the extended diagnostics available through a web browser.
  • Page 539: Knowledgebase Quick Starts # 17444 "Quick Start" Pulse Train Output (Pto)

    • # 18498 “Quick Start” Data Logging (DLG) on page 559 # 17444 “Quick Start” NOTE: The PWM function is only available when using the BBB models of the MicroLogix 1100 Pulse Train Output (PTO) Locate the Function Files under Controller in RSLOGIX 500 v7.00 or later and select the PTO tab, then select the [+] next to PTO:0 (See Below).
  • Page 540 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Enter the following parameters as the “Minimum Configuration” required for the PTO to generate pulses. PTO:0.OUT Select Destination Output for pulses: Output O:0/2 or O:0/3 PTO:0.OF Output Frequency - Frequency of pulses: 0 to 20,000 Hz Data less then zero and greater then 20,000 generates a PTO error PTO:0.TOP...
  • Page 541 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts The following ladder logic will need to be entered into File #2 By toggling Bit B3/0 the PTO can be activated. Once running the PTO will generate the number of pulses entered into the PTO:0.TOP word and then stop.
  • Page 542: 17446 "Quick Start" Pulse Width Modulation (Pwm)

    - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts # 17446 “Quick Start” NOTE: The PWM function is only available when using the BBB models of the MicroLogix 1100. Pulse Width Modulation (PWM) Locate the Function Files under Controller in RSLOGIX 500 v7.00.00 or later and select the PWM tab, then select the [+] next to PWM:0 (See Below).
  • Page 543 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Example The following example will generate a waveform on Output O:0/2 at a frequency of 250Hz and a 50% Duty Cycle. The following ladder logic will need to be entered into File #2 By toggling Bit B3/0 the PWM can be activated.
  • Page 544: 17447 "Quick Start" High Speed Counter (Hsc)

    The HSC can utilize inputs 0 through 3. Input device connection depends on the counter mode selected. The MicroLogix 1100 uses a 32-bit signed integer for the HSC this allows for a count range of (+/-) 2,147,483,647.
  • Page 545 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Example The following example uses the HSC in Mode 0 - “Up Counter”. The “Up Counter” clears the accumulated value (0) when it reaches the High Preset (HIP). This mode configures I1:0.0/0 (I:0/0) as the HSC:0 input. Note: Each mode for the HSC will configure the inputs for different functionality.
  • Page 546 - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Proper wiring of a single ended encoder (Typical Allen-Bradley 845TK) when configuring HSC.MOD for Mode 6 (Quadrature Counter) The following diagram illustrates connecting an encoder to the MicroLogix 1100. The minimum configuration required for Mode 6 operation is to enter a file number for the PFN parameter, set the AS and CE bits to a (1) and enter a (6) for the MOD parameter.
  • Page 547 - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts 1. Select “I/O Configuration” 2. Highlight the “MicroLogix 1100“ 3. Select “Adv Config“ 4. Select the “Embedded I/O Configuration” Tab 5. Adjust Input filters as needed Problem #2: The HSC instruction does not accumulate counts and the Error Code (ER) shows a value of (1).
  • Page 548: 17465 "Quick Start" Message (Msg)

    The MSG instruction in the MicroLogix 1100 controller uses a Data File MG to process the message instruction. All message elements are accessed using the MG prefix (example: MSG done bit = MG11:0/DN).
  • Page 549 1. For this example Locate N7:0 in the ML1500 (Node 1) and enter the value 63. TERM MicroLogix 1100 SHLD CHS GND Node 1 DC SOURCE CABLE EXTERNAL MicroLogix 1100 (Node 1) Ladder Logic Publication 1763-RM001C-EN-P - October 2009...
  • Page 550 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts MSG Setup Screen Micrologix 1000 (Node 4) Ladder Logic No ladder logic is required in the destination processor, however the communications channel must be configured to match the source processor. Since the default settings for the ML1500 communications channel is DF1 protocol, 19,200 Kbaud the ML1000 must be configured to match.
  • Page 551: 17501 "Quick Start" Selectable Timed Interrupt (Sti)

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Verifying data has been sent: To verify the data has been sent to node 4 disconnect the PM02 cable and connect the PC running RSLogix 500 to the ML1000 (Node 4). Go to N7:0 and view the data, this should match the data in N7:0 of node 1.
  • Page 552 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Example: A Block of logic that needs to be scanned more often then the rest of the ladder program. Getting Started: Locate the Function Files under Controller in RSLOGIX 500 v7.00.00 or later and select the STI tab (See Below) Enter the following parameters as the “Minimum Configuration”...
  • Page 553 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts This example also sets the User Interrupt Enable bit and the Auto Start bit allowing the STI to execute. IMPORTANT:Ladder Logic Subroutine file #3 must be created in order for this example to work. If the subroutine is not created the CPU will fault due to a STI Error Code 1 - Invalid File Number for PFN has been entered.
  • Page 554: 17503 "Quick Start" Real Time Clock (Rtc)

    The RTC provides Year, Month, Day, Day of Month, Day of Week, Hour, Minute, and Second information to the RTC Function file in the controller. The MicroLogix 1100 has a built-in real time clock. Getting Started: Locate the Function Files under Controller in RSLOGIX 500 v7.00.00 or...
  • Page 555: 17558 "Quick Start" User Interrupt Disable (Uid)

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Pressing will disable the RTC from functioning and decrease the drain on the battery during storage. RTC:0/BL The Battery Low bit will be set (1) when the battery is low. This means that the battery will fail in less than 14 Days after which the RTC data may become invalid.
  • Page 556: 18465 "Quick Start" Rtc Synchronization Between Controllers

    The User Interrupt Enable bit (UIE) determines if the interrupt executes or not. # 18465 “Quick Start” The following example illustrates a message write from an SLC 5/03 or higher processor to a Micrologix 1100 processor with RTC that has been RTC Synchronization enabled. Between Controllers This example can also be applied for messaging between MicroLogix 1100, 1200 and 1500 controllers.
  • Page 557 - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Minimum Hardware/Software requirements • All MicroLogix 1100 • MicroLogix 1200 Series B FRN 2 • MicroLogix 1500 Series B FRN 4 • RSLOGIX 500 v7.00.00 Example The example shows network connections using DH-485, however DF1 Full or Half Duplex Ethernet/IP will also work.
  • Page 558 Knowledgebase Quick Starts The example above messages the SLC 500 Date and Time data (S:37 - S:42)to the MicroLogix 1100 RTC, each time the SLC processor is powered up and placed into the RUN mode or each time the Time Synchronization Bit (B3:0/0) is enabled.
  • Page 559: 18498 "Quick Start" Data Logging (Dlg)

    Configuring the DLG instruction in the MicroLogix 1100 (LRP) 1. Create a new RSLogix 500 project for the MicroLogix 1100 2. Create a new rung of ladder logic in File 2 as shown below.
  • Page 560 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts FYI - Every time Configuration above is double-clicked a new queue is added. To delete queues, simply select the queue with the mouse and press the <delete> key on the keyboard. 4. Double-Click on Data Log configuration to open the Configuration window.
  • Page 561 7. Click OK and accept the Data Log Queue window 8. Once the N10 file has been created enter the following values for each 9. Download the program to your MicroLogix 1100. 10. Go On-Line 11. Toggle the Data Logging Enable(B3:0/0) bit Off to On a total of 5 times.
  • Page 562 COM port is selected or a processor other then the MicroLogix 1100 is connected to the computer you will not be able to continue. The Data Logging utility is the only supported method for retrieving data, that has been stored in the processor.
  • Page 563 5. Click Read Status once a valid connection is established The DLOG utility will now retrieve the status information from the MicroLogix 1100 controller. In this example you can see that Queue #0 has 100 records allocated and 5 recorded.
  • Page 564 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts FYI - Remember that once the data records have been read from the MicroLogix the queue is automatically cleared. 7. Click Save Data. 8. Enter a file name. In our example “My_DLG_Data” was used. Make note of the filename about to be created and the directory it is being saved to for later reference.
  • Page 565 Q1: Can I write my own software application to retrieve the data stored in the Data Logging queue? A1: Yes - In the MicroLogix 1100 Instruction Set Reference manual, under the Data Logging chapter, all the information necessary to create your own software application, for retrieving the data stored in the processors Data Logging queue, is shown.
  • Page 566 Knowledgebase Quick Starts The following outlines the configuration and steps that can be used to read data log records from an MicroLogix 1100 controller remotely via a 1747CH0RAD (Remote Access Modem Kit) This example assumes that the programmer has configured the DLG instruction in the ML1100 to log data and that HyperTerminal is installed, configured and the user is familiar with its use.
  • Page 567 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts DISCONNECTING MODEM 1. 1. Ensure the DLG Utility has been shutdown. 2. 2.Start HyperTerminal (Do not re-connect) 3. 3.Open the previously configured “Datalog “ 4. Type “+++” to place modem in command mode, Do not press the ENTER KEY! Your modem will respond: OK 5.
  • Page 568 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Knowledgebase Quick Starts Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 569: Basic Requirements To Use 40Khz Pto And Pwm In Micrologix Controller

    How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller The PTO and PWM function files of MicroLogix 1100 Series B controller are changed to support 40kHz PTO (Pulse Train Output) and PWM (Pulse Width Modulation). In addition, a newer version of RSLogix 500 is released to support the changes.
  • Page 570: Rslogix500 Display Issues

    - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller Changes made in PTO and PWM function files of MicroLogix 1100 Series B controller and RSLogix 500 version 7.2 RSLogix500 version 7.10 or lower RSLogix500 version7.2 or higher...
  • Page 571: Instruction Issues

    Display issues may occur. (1) (During Donwload) If OF or JF value is set over 20000, then MicroLogix 1100 Series A will report an error before running the PTO or PWM instruction. (2) (During Upload) To set the OF or JF value over 32767, a negative decimal value or hex value should be entered. For example, to set OF value as 40000, OF = -25536 (dec) or 9C40H (hex) should be entered.
  • Page 572 - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller wants to set the PTO:0.JF to 40000, then put 2’s complement of 40000 (-25536) or 9C40h (hexadecimal value) to source operand as shown below. • EQU/NEQ/MEQ Instruction...
  • Page 573 - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller Otherwise, variable type should be changed to Long Type (32-bit) by CPW instruction before the execution of these instructions as shown below. • LES/ LEQ/ GRT/ GEQ/ LIM Instruction...
  • Page 574 - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller To solve this issue, variable type should be changed to Long Type (32-bit) by CPW instruction before the execution of these instructions as shown below.
  • Page 575 - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller For example, assume the PTO:0.OF value is 20000 and a user wants to set that value to x2 (twice) using the MUL instruction. If S2/14 is cleared and...
  • Page 576 - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller MUL Instruction Workaround Example: PTO:0.OF(40000) = PTO:0.OF(20000) X 2 SUB Instruction Workaround Example: PTO:0.OF(20000) = PTO:0.OF(40000) – 20000 Signed 16-bit: 0x9C40 (Hexadecimal) = -25536, Unsigned 16-bit: 0x9C40 (Hexadecimal) = 40000...
  • Page 577 - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller • DIV/SCP Instruction The operands of DIV and SCP instructions work as signed value, but JF, OF, OFS of PTO/PWM are unsigned 16-bit variable at MicroLogix 1100 Series B controller.
  • Page 578 - Allen Bradley,Rockwell,plc,servo,drive How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller To solve this issue, JF, OF, OFS of PTO/PWM type should be changed to Long Type (32-bit) by CPW instruction before the execution of these instructions as shown below.
  • Page 579: Appendix 23 Binary Numbers

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Appendix Number Systems This appendix: • covers binary and hexadecimal numbers. • explains the use of a hex mask to filter data in certain programming instructions. Binary Numbers The processor memory stores 16-bit binary numbers. As indicated in the following figure, each position in the number has a decimal value, beginning at the right with 2 and ending at the left with 2...
  • Page 580 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Number Systems = 16384 = 8192 = 4096 = 2048 = 1024 = 512 = 256 = 128 = 64 = 32 = 16 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 32767 = 0 This position is always zero for positive numbers.
  • Page 581: Hexadecimal Numbers

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Number Systems = 16384 = 8192 = 4096 = 2048 = 1024 = 512 = 256 = 128 = 64 = 32 = 16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 32767 = 32768 This position is always 1 for negative numbers.
  • Page 582 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Number Systems 2x16 = 8192 1x16 = 256 8x16 = 128 10x16 = 10 2 1 8 A 8586 Hexadecimal and binary numbers have the following equivalence. Hexadecimal 2 1 8 A = 8586 Binary 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0...
  • Page 583: Hex Mask

    efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Number Systems Hex Mask This is a 4-character code, entered as a parameter in SQO, SQC, and other instructions to exclude selected bits of a word from being operated on by the instruction. The hexadecimal values are used in their binary equivalent form, as indicated in the figure below.
  • Page 584 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Number Systems Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 585: Appendix H System Related

    - Allen Bradley,Rockwell,plc,servo,drive Appendix MicroLogix 1100 Firmware Changes in OS Series B FRN 4 OS FRN 1, 2, and 3 are Series A firmware, and OS FRN 4 is Series B firmware. There are many changes in the OS Series B FRN 4 firmware. In this chapter, only new features of OS Series B FRN 4 firmware are summarized.
  • Page 586: Ethernet Communications Related

    - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Firmware Changes in OS Series B FRN 4 ASCII driver This driver supports direct communication through RS485 Network using 1763-NC01 cable without any additional devices. Use “No Handshaking (485 Network)” in the protocol control tab of the Channel Configuration File.
  • Page 587 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Firmware Changes in OS Series B FRN 4 • Supports IP conflict detection mechanism. MicroLogix 1100 checks to see if IP Address is conflicted on the same local network every 2 minutes periodically. If IP confliction is detected, MicroLogix 1100 notifies the MAC address of the conflicted node via LCD display.
  • Page 588: Application Layer Related

    - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Firmware Changes in OS Series B FRN 4 • Supports the change of IP Address, Subnet Mask, Default Gateway, Default Domain Name, Primary Name Server, and Secondary Name Server using Ethernet MSG instruction. This can be done by sending 485CIF write command to local IP address with ST file type.
  • Page 589: Publication 1763-Rm001C-En-P - October

    - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Firmware Changes in OS Series B FRN 4 the Series B project (Channel Configuration, IO configuration, RIX file, PTO and PWM function file, MSG instruction) running in the Series B processor. Publication 1763-RM001C-EN-P - October 2009...
  • Page 590 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 Firmware Changes in OS Series B FRN 4 Notes: Publication 1763-RM001C-EN-P - October 2009...
  • Page 591 - Allen Bradley,Rockwell,plc,servo,drive Glossary The following terms are used throughout this manual. Refer to the Allen-Bradley Industrial Automation Glossary, publication AG-7.1, for a complete guide to Allen-Bradley technical terms. address A character string that uniquely identifies a memory location. For example, I:1/0 is the memory address for data located in Input file word 1, bit 0.
  • Page 592 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive communication scan A part of the controller’s operating cycle. Communication with devices (such as other controllers and operator interface devices) takes place during this period. control program User logic (the application) that defines the controller’s operation. controller A device, such as a programmable controller, used to control output devices.
  • Page 593 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Data Terminal Equipment Electromagnetic interference. embedded I/O Embedded I/O is the controller’s on-board I/O. For MicroLogix controllers, embedded I/O is all I/O residing at slot 0. expansion I/O Expansion I/O is I/O that is connected to the controller via a bus or cable. MicroLogix 1200 controllers use Bulletin 1762 expansion I/O.
  • Page 594 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive half-duplex A mode of communication where data transmission is limited to one direction at a time. hard disk A storage device in a personal computer. high byte Bits 8 to 15 of a word. housekeeping The portion of the scan when the controller performs internal checks and services communications.
  • Page 595 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive jump Changes the normal sequence of program execution. In ladder programs a JUMP (JMP) instruction causes execution to jump to a specific rung in the user program. ladder logic A graphical programming format resembling a ladder-like diagram. The ladder logic programing language is the most common programmable controller language.
  • Page 596 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive modem Modulator/demodulator. Equipment that connects data terminal equipment to a communication line. modes Selected methods of operation. Example: run, test, or program. negative logic The use of binary logic in such a way that “0” represents the desired voltage level.
  • Page 597 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive off-state leakage current When a mechanical switch is opened (off-state), no current flows through the switch. Semiconductor switches and transient suppression components which are sometimes used to protect switches, have a small current flow when they are in the off state. This current is referred to as the off-state leakage current.
  • Page 598 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive processor files The set of program and data files resident in the controller. program file Areas within a processor that contain the logic programs. MicroLogix controllers support multiple program files. program mode When the controller is not scanning the control program. program scan A part of the controller’s operating cycle.
  • Page 599 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive retentive data Information (data) that is preserved through power cycles. RS-232 An EIA standard that specifies electrical, mechanical, and functional characteristics for serial binary communication circuits. run mode An executing mode during which the controller scans or executes the logic program.
  • Page 600 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive status The condition of a circuit or system. terminal A point on an I/O module that external devices, such as a push button or pilot light, are wired to. throughput The time between when an input turns on and a corresponding output turns on or off.
  • Page 601 B-478 AIC instruction P-316 baud rate G-591 AIC+ Advanced Interface Converter G-591 baud rate status B-482 Allen-Bradley BHI Function File P-56 contacting for assistance C-499 G-591 allow future access setting P-47 bit instructions P-159 AND instruction...
  • Page 602 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive DF1 radio modem parameters counter file and status bits D-519 P-175 DH485 parameters definition D-503 G-592 Modbus RTU Master parameters how counters work D-527 P-174 Modbus RTU Slave parameters CPU (central processing unit), definition D-528 D-529 G-592 clear instruction CPW instruction...
  • Page 603 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive DIN rail PTO Quick Start G-592 E-539 DIV instruction PWM Quick Start P-194 E-542 divide instruction RTC Quick Start P-194 E-554 RTC Synchronization Quick Start E-556 Quick Start example STI Quick Start E-559 E-551 DLG Instruction user interrupt disable (UID) Quick Start P-439 E-555...
  • Page 604 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive free running clock status input and output instructions B-476 P-255 full-duplex input device G-593 G-594 function files input filter selection modified status bit P-49 P-50 B-479 base hardware information (BHI) input filtering P-56 1-25 communications status (CS) file input scan P-57 P-71...
  • Page 605 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive POT0 maximum scan time status P-451 B-482 POT1 MCR instruction P-451 P-252 memory P-448 P-36 Sub-Elements clearing controller memory P-447 P-448 P-46 memory mapping P-450 MicroLogix 1200 I/O P-451 1-16 memory module boot status bit P-449 B-478 memory module compare bit P-452...
  • Page 606 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive move instructions OSR instruction P-217 P-164 OTE instruction P-161 Quick Start example OTL instruction E-548 P-162 MSG instruction OTU instruction P-346 P-162 error codes outgoing message command pending status bit P-414 B-484 ladder logic output device P-360 G-597 local messaing examples...
  • Page 607 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive application notes recipe P-300 P-427 PID instruction recipe instruction P-282 P-427 PID tuning REF instruction P-304 P-258 runtime errors refresh instruction P-298 P-258 the PID concept related publications P-279 P-34 the PID equation relay P-280 G-598 protocol relay logic G-598...
  • Page 608 TON instruction P-171 Station list troubleshooting C-492 C-499 viewing D-515 automatically clearing faults C-491 status G-600 contacting Allen-Bradley for assistance C-499 status file B-465 identifying controller faults C-491 manually clearing faults C-492 enabled bit B-474 using the fault routine C-492...
  • Page 609 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive file number status write B-482 G-600 major error detected status bit B-477 recoverable and non-recoverable faults P-262 user interrupt disable instruction P-265 XIC instruction P-159 user interrupt enable instruction P-266 XIO instruction P-159 user interrupt flush instruction P-267 XOR instruction P-215...
  • Page 610 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Publication 1763-RM001C-EN-P - October 2009...
  • Page 611 - Allen Bradley,Rockwell,plc,servo,drive MicroLogix 1100 List of Instructions and Function Files Instruction- Description Page Instruction- Description Page ABL - Test Buffer for Line 19-322 NEG - Negate 9-194 ABS - Absolute Value 9-195 NEQ - Not Equal 8-181 ACB - Number of Characters in Buffer...
  • Page 612 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Instruction- Description Page Instruction- Description Page MSG - Message 20-346 STI - Selectable Timed Interrupt 17-268 MUL - Multiply 9-194 ES - Ethernet Status 2-71 MVM - Masked Move 12-219 Publication 1763-RM001C-EN-P - October 2009...
  • Page 613 ___No, there is no need to contact me ___Yes, please call me ___Yes, please email me at _______________________ ___Yes, please contact me via _____________________ Return this form to: Rockwell Automation Technical Communications, 1 Allen-Bradley Dr., Mayfield Hts., OH 44124-9705 Fax: 440-646-3525 Email: RADocumentComments@ra.rockwell.com Publication CIG-CO521C-EN-P- May 2003...
  • Page 614 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive PLEASE FASTEN HERE (DO NOT STAPLE) Other Comments PLEASE FOLD HERE NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST-CLASS MAIL PERMIT NO. 18235 CLEVELAND OH POSTAGE WILL BE PAID BY THE ADDRESSEE...
  • Page 615 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive...
  • Page 616 efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive Rockwell Automation Rockwell Automation provides technical information on the Web to assist you in using its products. At Support http://support.rockwellautomation.com, you can find technical manuals, a knowledge base of FAQs, technical and application notes, sample code and links to software service packs, and a MySupport feature that you can customize to make the best use of these tools.

This manual is also suitable for:

1763-l16bbb1763-l16awa1763-l16bwa1763-l16dwd

Table of Contents