Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas

manual rockuell completo, Manuais, Projetos, Pesquisas de Mecatrônica

manual completo do micro logix 1400

Tipologia: Manuais, Projetos, Pesquisas

2017

Compartilhado em 14/08/2017

geraldo-souza-1
geraldo-souza-1 🇧🇷

5

(1)

1 documento

Pré-visualização parcial do texto

Baixe manual rockuell completo e outras Manuais, Projetos, Pesquisas em PDF para Mecatrônica, somente na Docsity! Instruction Set Reference Manual MicroLogix 1400 Programmable Controllers Bulletin 1766 Important User Information Solid-state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales office or online at http://www.rockwellautomation.com/literature/) describes some important differences between solid-state equipment and hard-wired electromechanical devices. Because of this difference, and also because of the wide variety of uses for solid-state equipment, all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable. In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment. The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and diagrams. No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in this manual. Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is prohibited. Throughout this manual, when necessary, we use notes to make you aware of safety considerations. Allen-Bradley, Rockwell Automation, MicroLogix, RSLinx, RSLogix 500 and TechConnect are trademarks of Rockwell Automation, Inc. Trademarks not belonging to Rockwell Automation are property of their respective companies. WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may lead to personal injury or death, property damage, or economic loss. ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present. BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous temperatures. IMPORTANT Identifies information that is critical for successful application and understanding of the product. Table of Contents Summary of Changes Firmware Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii Firmware Upgrades . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii Table of Contents Preface Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix Common Techniques Used in this Manual . . . . . . . . . . . . . . . . . . . . . . . . xxix Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx Rockwell Automation Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx Chapter 1 I/O Configuration Embedded I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 MicroLogix 1400 Expansion I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Expansion I/O Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Addressing Expansion I/O Slots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 MicroLogix 1400 Expansion I/O Memory Mapping . . . . . . . . . . . . . . . . . . 3 Discrete I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1762-IA8 ,1762-IQ8, and 1762-IQ8OW6 Input Image. . . . . . . . 3 1762-IQ16 Input Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1762-IQ32T Input Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1762-OX6I and 1762-IQ8OW6 Output Image . . . . . . . . . . . . . . . 4 1762-OA8, 1762-OB8, and 1762-OW8 Output Image . . . . . . . . 4 1762-OB16 and 1762-OW16 Output Image. . . . . . . . . . . . . . . . . . 4 1762-OV32T, 1762-OB32T Output Image. . . . . . . . . . . . . . . . . . . 5 Analog I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1762-IF2OF2 Input Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1762-IF2OF2 Output Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1762-IF4 Input Data File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1762-OF4 Input Data File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1762-OF4 Output Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Specialty I/O Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1762-IR4 RTD/Resistance Module Input Data File . . . . . . . . . . . 9 1762-IT4 Thermocouple Module Input Data File . . . . . . . . . . . 10 I/O Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Addressing Details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 I/O Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Input Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Output Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Input Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Analog Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Analog Input Filter and Update times . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Input Channel Filtering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Converting Analog Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Converting Analog Input Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Analog Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 v Table of Contents Table of ContentsLatching Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Converting Analog Output Value to Actual Output Voltage . 15 Rising Edge Behavior - Example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Rising Edge Behavior - Example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Falling Edge Behavior – Example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Falling Edge Behavior – Example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Configure Expansion I/O Using RSLogix 500/RSLogix Micro . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Chapter 2 Controller Memory and File Types Controller Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 File Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 User Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 MicroLogix 1400 User Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Viewing Controller Memory Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Protecting Data Files During Download. . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Data File Download Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Setting Download File Protection . . . . . . . . . . . . . . . . . . . . . . . . . . 27 User Program Transfer Requirements . . . . . . . . . . . . . . . . . . . . . . 27 Static File Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Using Static File Protection with Data File Download Protection. 28 Setting Static File Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Program Password Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Program Password Protection for Series B (Enhanced Password Security) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Clearing the Controller Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Allow Future Access Setting (OEM Lock) . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Web View Disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 LCD Edit Disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Chapter 3 Function Files Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Real-Time Clock Function File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Writing Data to the Real-Time Clock . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Real-Time Clock Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 RTC Battery Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 RTA - Real Time Clock Adjust Instruction. . . . . . . . . . . . . . . . . . . . . . . . . 40 Memory Module Information Function File . . . . . . . . . . . . . . . . . . . . . . . . 42 FT - Functionality Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 MP - Module Present. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 WP - Write Protect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 FO - Fault Override . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 LPC - Load Program Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43vi Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Table of Contents Table of ContentsLE - Load on Error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 LA - Load Always . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 MB - Mode Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Base Hardware Information Function File . . . . . . . . . . . . . . . . . . . . . . . . . 44 Communications Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 General Status Block of Communications Status File . . . . . . . . 45 Diagnostic Counter Block of Communications Status File . . . 47 Active Node Table Block of Communications Status File . . . . 59 Ethernet Communications Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 General Status Block of Ethernet Communications Status File 60 Diagnostic Counter Block of Communications Status File . . . 64 Input/Output Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Chapter 4 Programming Instructions Overview Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Using the Instruction Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Addressing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Immediate Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Direct Addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Indirect Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Example – Using Indirect Addressing to Duplicate Indexed Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Indexed Addressing Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Indirect Addressing Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Chapter 5 Using the High-Speed Counter and Programmable Limit Switch High-Speed Counter Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Programmable Limit Switch Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 High-Speed Counter (HSC) Function File . . . . . . . . . . . . . . . . . . . . . . . . . 78 High-Speed Counter Function File Sub-Elements Summary . . . . . . . . . 80 HSC Function File Sub-Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Program File Number (PFN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Error Code (ER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Function Enabled (FE). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Auto Start (AS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Error Detected (ED). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Counting Enabled (CE). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Set Parameters (SP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 User Interrupt Enable (UIE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 User Interrupt Executing (UIX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 User Interrupt Pending (UIP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 User Interrupt Lost (UIL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Low Preset Mask (LPM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Low Preset Interrupt (LPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Low Preset Reached (LPR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 vii Table of Contents Table of ContentsPWMX Normal Operation (NS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 PWMX Enable Hard Stop (EH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 PWMX Enable Status (ES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 PWMX Output Frequency (OF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 PWMX Operating Frequency Status (OFS) . . . . . . . . . . . . . . . . . . . 134 PWMX Duty Cycle (DC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 PWMX Duty Cycle Status (DCS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 PWMX Accel/Decel Delay (ADD) . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 PWMX Error Code (ER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Chapter 7 Relay-Type (Bit) Instructions XIC - Examine if Closed XIO - Examine if Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 OTE - Output Energize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 OTL - Output Latch OTU - Output Unlatch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 ONS - One Shot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 OSR - One Shot Rising OSF - One Shot Falling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Chapter 8 Timer and Counter Instructions Timer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 Timer Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Repeating Timer Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 TON - Timer, On-Delay. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 TOF - Timer, Off-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 RTO - Retentive Timer, On-Delay. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 How Counters Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 Using the CTU and CTD Instructions . . . . . . . . . . . . . . . . . . . . . . . . 151 Using Counter File Control and Status Bits . . . . . . . . . . . . . . . . . . . . 152 CTU - Count Up CTD - Count Down. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 RES - Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 Chapter 9 Compare Instructions Using the Compare Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 EQU - Equal NEQ - Not Equal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 GRT - Greater Than LES - Less Than . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 GEQ - Greater Than or Equal To LEQ - Less Than or Equal To . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 MEQ - Mask Compare for Equal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 LIM - Limit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159x Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Table of Contents Table of ContentsChapter 10 Math Instructions General Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Using the Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Overflow Trap Bit, S:5/0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 Using the Floating Point (F) Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 File Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 Floating Point Exception Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 LSB Round-to-Even Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 Addressing Floating Point Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 Programming Floating Point Values. . . . . . . . . . . . . . . . . . . . . . . . . . . 166 ADD - Add SUB - Subtract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 MUL - Multiply DIV - Divide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 NEG - Negate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 CLR - Clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 ABS - Absolute Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 SCL - Scale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 SCP - Scale with Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Special Considerations when Using Floating Point Parameters . . 172 Other Considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 SQR - Square Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 SIN - Sine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 MATH FLAGS EFFECTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 COS - Cosine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 MATH FLAGS EFFECTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 TAN - Tangent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 MATH FLAGS EFFECTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 ASN - Arc Sine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 ACS - Arc Cosine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 ATN - Arc Tangent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 DEG - Radians to Degrees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 RAD - Degrees to Radians . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 LN - Natural Log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 xi Table of Contents Table of ContentsInstruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 XPY - X Power Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 CPT - Compute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 MATH FLAGS EFFECTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Chapter 11 Application Specific Instructions RHC - Read High Speed Clock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 RPC - Read Program Checksum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 TDF - Compute Time Difference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Chapter 12 Conversion Instructions Using Decode and Encode Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 DCD - Decode 4 to 1-of-16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 ENC - Encode 1-of-16 to 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 FRD - Convert from Binary Coded Decimal (BCD) . . . . . . . . . . . . . . . 208 FRD Instruction Source Operand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 TOD - Convert to Binary Coded Decimal (BCD) . . . . . . . . . . . . . . . . . 211 TOD Instruction Destination Operand . . . . . . . . . . . . . . . . . . . . . . . 211 Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Changes to the Math Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 GCD - Gray Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Chapter 13 Logical Instructions Using Logical Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 Updates to Math Status Bits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 AND - Bit-Wise AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 OR - Logical OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 XOR - Exclusive OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 NOT - Logical NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 Chapter 14 Move Instructions MOV - Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Using the MOV Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219xii Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Table of Contents Table of ContentsInput Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Setpoint (SPS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Process Variable (PV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Setpoint MAX (MAXS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 Setpoint MIN (MINS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 Old Setpoint Value (OSP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 Output Limit (OL). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 Control Variable High Limit (CVH) . . . . . . . . . . . . . . . . . . . . . . . . . 286 Control Variable Low Limit (CVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 Output Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 Control Variable (CV). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Control Variable Percent (CVP). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Scaled Process Variable (SPV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 Tuning Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 Controller Gain (Kc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 Reset Term (Ti) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 Rate Term (Td) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 Time Mode (TM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 Loop Update Time (LUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 Zero Crossing Deadband (ZCD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 Feed Forward Bias (FF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 Scaled Error (SE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 Automatic / Manual (AM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 Control Mode (CM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 PV in Deadband (DB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 PLC 5 Gain Range (RG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 Setpoint Scaling (SC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 Loop Update Too Fast (TF). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 Derivative Action Bit (DA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 CV Upper Limit Alarm (UL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 CV Lower Limit Alarm (LL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 Setpoint Out Of Range (SP). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 PV Out Of Range (PV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 Done (DN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 PD10:0.19Enable (EN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 Integral Sum (IS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 Altered Derivative Term (AD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 Runtime Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 Analog I/O Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 Application Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 Input/Output Ranges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 Scaling to Engineering Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 Zero-Crossing Deadband DB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 Output Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 Output Limiting with Anti-Reset Windup . . . . . . . . . . . . . . . . . . . . 302 The Manual Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 xv Table of Contents Table of ContentsPID Rung State. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 Feed Forward or Bias. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 Application Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 PID Tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 Verifying the Scaling of Your Continuous System . . . . . . . . . . . . . . 305 Determining the Initial Loop Update Time . . . . . . . . . . . . . . . . . . . . 306 Chapter 21 ASCII Instructions General Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 ASCII Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 Instruction Types and Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 ASCII String Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 ASCII Port Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 Programming ASCII Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311 Protocol Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311 Using the Full ASCII Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . 311 Using AWA and AWT Instructions with Other Serial Channel Drivers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311 String (ST) Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 File Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 Addressing String Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 Control Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313 File Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313 Addressing Control Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314 ACL - ASCII Clear Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316 AIC - ASCII Integer to String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316 AWA - ASCII Write with Append . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316 Programming AWA Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318 AWT - ASCII Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 Programming AWT Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320 ABL - Test Buffer for Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322 ACB - Number of Characters in Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . 322 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322 Instruction Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323 ACI - String to Integer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324xvi Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Table of Contents Table of ContentsInstruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324 ACN - String Concatenate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325 AEX - String Extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 AHL - ASCII Handshake Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 ARD - ASCII Read Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 ARL - ASCII Read Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331 ASC - String Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 ASR - ASCII String Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 Entering Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 Instruction Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 Timing Diagram for ARD, ARL, AWA, and AWT Instructions . . . . 334 Using In-line Indirection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 ASCII Instruction Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 ASCII Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 Chapter 22 Communications Instructions Messaging Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 SVC - Service Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 Channel Select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 Communication Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340 Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340 MSG - Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341 The Message Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342 Message File Sub-Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342 “Control Bits” Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346 Ignore if Timed Out (TO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346 Enable (EN). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347 Enabled and Waiting (EW). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347 Error (ER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347 Done (DN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348 Start (ST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 xvii Table of Contents Table of ContentsConsiderations for Changing SMTP Configuration . . . . . . . . 410 Email Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412 Setup SMTP Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . 412 Configure MSG Setup Screen to send SMTP message . . . . . . . . . . . . . . 416 SMTP Error Codes/Internal Fail Codes . . . . . . . . . . . . . . . . . . . . . . . 418 Inline Indirection in String File for Subject and Body . . . . . . . 418 SMTP Authentication Encoding . . . . . . . . . . . . . . . . . . . . . . . . . . 418 Sending email in User Fault Routine. . . . . . . . . . . . . . . . . . . . . . . 419 Chapter 23 Modbus TCP Modbus TCP Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421 Channel Configuration for Modbus TCP . . . . . . . . . . . . . . . . . . . . . . . . . 421 Modbus TCP Server Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 424 Modbus TCP Server Configuration Parameters . . . . . . . . . . . . . . . . 424 Modbus TCP Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424 Modbus Data Table File Numbers. . . . . . . . . . . . . . . . . . . . . . . . . 425 Expanded for Holding Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 Enable Access Control for IP Addresses . . . . . . . . . . . . . . . . . . . . 425 Client IP Address0…Client IP Address4 . . . . . . . . . . . . . . . . . . . 425 Local TCP Port Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 Diagnostic File Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426 Modbus TCP Client Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 426 Modbus TCP Client Configuration Parameters . . . . . . . . . . . . . . . . 427 Modbus TCP Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Diagnostic File Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Messaging for Modbus TCP Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 Message Instruction Timeouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 Change between Executing and Non-Executing Controller Modes. . . 429 Diagnostics for Modbus TCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430 Range of Error codes for Modbus TCP Server and TCP Client . . 432 Chapter 24 Socket Interface Using CIP Generic Messaging Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 Socket Interface Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Number and Type of Sockets 435 . . . . . . . . . . . . Typical Sequence of Transactions For a TCP Client 436 . . . . . . . . . . . . Typical Sequence of Transactions For a TCP Server 437 . . . . . . . . . . . . . . . Typical Sequence of Transactions For UDP Without OpenConnection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 Typical Sequence of Transactions For UDP With OpenConnection. 439 Communicate With the Socket Object Via a MSG Instruction. . . . . . 441xx Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Table of Contents Table of ContentsMessage Transfer Sizes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Service Timeouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Message Instruction Timeouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 Socket Interface Timeouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 Programming Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 TCP Connection Loss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445 Change Controller Mode Between Executing and Non-Executing . . . 445 Application Messages and TCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Partial Reads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Partial Writes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 Socket Object Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 CreateSocket. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 449 OpenConnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451 AcceptConnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 453 Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 455 Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 457 Inline Indirection functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . 459 DeleteSocket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 460 DeleteAllSockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461 MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 462 Possible Error Codes for Socket Services . . . . . . . . . . . . . . . . . . . . . . . . . . 463 Chapter 25 Recipe and Data Logging RCP - Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 Recipe File and Programming Example . . . . . . . . . . . . . . . . . . . . . . . . 467 Configuring the RCP file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467 Application Explanation of Operation. . . . . . . . . . . . . . . . . . . . . 469 Calculation of Consumed Memory. . . . . . . . . . . . . . . . . . . . . . . . 470 Data Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471 Queues and Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471 Example Queue 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472 String Length of Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472 Number of Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473 Example Queue 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473 String Length of Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473 Number of Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474 Example Maximum Record of String Data . . . . . . . . . . . . . . . . . . . . . 475 String Length of Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 xxi Table of Contents Table of ContentsNumber of Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475 Configuring Data Log Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476 DLG - Data Log Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478 Data Log Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 Data Logging Enable (EN). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 Data Logging Done (DN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 Data Logging Overflow (OV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 Data Logging ClearQueue (CQ) . . . . . . . . . . . . . . . . . . . . . . . . . . 479 File Size (FSZ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480 Records Stored (RST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480 Retrieving (Reading) Records. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 Accessing the Retrieval File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 Retrieval Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 Information for Creating Your Own Application . . . . . . . . . . . . . . 481 Controller Receives Communications Packet. . . . . . . . . . . . . . . 481 Controller Responds with Reply . . . . . . . . . . . . . . . . . . . . . . . . . . 482 Conditions that Will Erase the Data Retrieval File . . . . . . . . . . . . . . . . . 483 Chapter 26 LCD - LCD Information LCD Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485 LCD Function File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 LCD Function File Sub-Elements Summary . . . . . . . . . . . . . . . . . . . . . . . 487 LCD Function File Sub-Elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488 Customized Boot Logo ASCII File Address Offset (CBL) . . 488 Start with Customized Display (SCD) . . . . . . . . . . . . . . . . . . . . . 488 Data Input Timeout of LCD instruction (TO) . . . . . . . . . . . . . 488 LCD Instruction Job Done (DN) . . . . . . . . . . . . . . . . . . . . . . . . . 489 LCD Display Operation Error Bit (ERR) . . . . . . . . . . . . . . . . . . 489 LCD Module Operation Error Number (ERN) . . . . . . . . . . . . 489 Target User Defined File Number (TUF) . . . . . . . . . . . . . . . . . . 490 Jog data update Mode set (JOG) . . . . . . . . . . . . . . . . . . . . . . . . . . 490 Trimpot 0 Data (TMIN – TMAX) (POT0), Trimpot 1 Data (TMIN – TMAX) (POT1) . . . . . . . . . . . . . . . 491 Instruction Display Window (WND) . . . . . . . . . . . . . . . . . . . . . 491 OK key in Customized Display (OK). . . . . . . . . . . . . . . . . . . . . . 491 ESC key in Customized Display (ESC) . . . . . . . . . . . . . . . . . . . . 492 LCD Backlight On/Off (BACKON). . . . . . . . . . . . . . . . . . . . . . 492 LCD Backlight Time (BACKTIME) . . . . . . . . . . . . . . . . . . . . . 492 LCD contrast (CNST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492 LCD - LCD Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493 Getting Value with Keypad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494 Displaying Special Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494 Appendix Axxii Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Table of Contents Table of ContentsContacting Rockwell Automation for Assistance . . . . . . . . . . . . . . . . . . 532 Appendix D Protocol Configuration DH-485 Communication Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536 DH-485 Network Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536 DH-485 Token Rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536 DH-485 Broadcast Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536 DH-485 Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 537 Software Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537 Number of Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537 Setting Node Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538 Setting Controller Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538 Setting Maximum Node Address. . . . . . . . . . . . . . . . . . . . . . . . . . 538 MicroLogix 1400 Remote Packet Support . . . . . . . . . . . . . . . . . 538 DF1 Full-Duplex Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539 DF1 Full-Duplex Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539 DF1 Half-Duplex Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540 DF1 Half-Duplex Master Driver Broadcast Messages . . . . . . . 540 DF1 Half-Duplex Slave Driver Broadcast Messages . . . . . . . . . 540 Choosing a Polling Mode for DF1 Half-Duplex Master. . . . . . . . . 540 Message-Based Polling Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540 Standard Polling Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541 About Polled Report-by-Exception . . . . . . . . . . . . . . . . . . . . . . 543 About Slave-to-Slave Messaging . . . . . . . . . . . . . . . . . . . . . . . . . 543 Addressing Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543 DF1 Half-Duplex Master Standard Polling Mode . . . . . . . . . . . . . . 543 DF1 Half-Duplex Master MSG-based Polling Mode Operation . 544 DF1 Half-Duplex Master Channel Status . . . . . . . . . . . . . . . . . . . . . 546 Monitor Active Stations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547 DF1 Half-Duplex Slave Configuration . . . . . . . . . . . . . . . . . . . . . . . . 548 DF1 Radio Modem Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549 Using the DF1 Radio Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550 Using Store and Forward Capability . . . . . . . . . . . . . . . . . . . . . . . . . . 551 Configuring the Store and Forward Table . . . . . . . . . . . . . . . . . . . . . 552 DF1 Radio Modem Channel Status . . . . . . . . . . . . . . . . . . . . . . . . . . . 553 DF1 Radio Modem System Limitations . . . . . . . . . . . . . . . . . . . . . . . 554 Modbus RTU Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555 Modbus RTU Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555 Modbus RTU Slave. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556 Modbus RTU Master Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . 556 Modbus RTU Slave Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 559 Modbus Slave Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561 Modbus Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562 Modbus Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564 ASCII Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 xxv Table of Contents Table of ContentsEthernet Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567 SNMP MIB II Data Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570 Appendix E Knowledgebase Quick Starts # 17444 Pulse Train Output (PTOX) Quick Start . . . . . . . . . . . . . . . . . 577 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578 General Information on the PTO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579 # 17446 Pulse Width Modulation (PWMX) Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581 # 17447 High Speed Counter (HSC) Quick Start . . . . . . . . . . . . . . . . . . 582 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585 # 17465 Message (MSG) Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586 Communications Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586 Message (MSG) instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587 Continuous Message Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587 Micrologix 1000 (Node 4) Ladder Logic . . . . . . . . . . . . . . . . . . . 588 Verify Data Sending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589 # 17501 Selectable Timed Interrupt (STI) Quick Start . . . . . . . . . . . . . 590 What is an Interrupt? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590 Selectable Timed Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591 Some Guidelines on Using Interrupt bits. . . . . . . . . . . . . . . . . . . 591 # 17503 Real Time Clock (RTC) Quick Start . . . . . . . . . . . . . . . . . . . . 592 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592 # 17558 User Interrupt Disable (UID) Quick Start . . . . . . . . . . . . . . . . 593 Some Guidelines on Using Interrupt bits. . . . . . . . . . . . . . . . . . . 594 # 18465 RTC Synchronization Between Controllers Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594 Minimum Hardware/Software Requirements . . . . . . . . . . . . . . 594 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595 # 18498 Data Logging (DLG) Quick Start. . . . . . . . . . . . . . . . . . . . . . . . . 597 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597 Configure the DLG Instruction in MicroLogix 1400 . . . . . . . . . . . 597 Use the Data Logging Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600 Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602 Using the Datalog Utility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603 Establish Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603 Disconnect the Modem. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604xxvi Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Table of Contents Table of ContentsAppendix F How to Use 40kHz PTOX/PWMX of MicroLogix 1400 Series B Controller Basic requirements to use 40KHz PTOX and PWMX in MicroLogix Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605 PTOX and PWMX function file changes in Series B Controller . . . . 605 RSLogix500 display issues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606 Instruction issues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607 Glossary G Index MicroLogix 1400 List of Instructions and Function FilesRockwell Automation Publication 1766-RM001G-EN-P - March 2017 xxvii Chapter P PrefaceRelated Documentation The following documents contain additional information concerning Rockwell Automation products. To obtain a copy, contact your local Rockwell Automation office or distributor. Rockwell Automation Support Before you contact Rockwell Automation for technical assistance, we suggest you review the troubleshooting information contained in this publication first. If the problem persists, call your local distributor or contact Rockwell Automation in one of the following ways: For Read this Document Document Number Information on mounting and wiring the MicroLogix 1400 Programmable Controller, including a mounting template and door labels. MicroLogix 1400 Programmable Controllers Installation Instructions 1766-IN001 Detailed information on planning, mounting, wiring, and troubleshooting your MicroLogix 1400 system. MicroLogix 1400 Programmable Controllers User Manual 1766-UM001 A description on how to install and connect an AIC+. This manual also contains information on network wiring. Advanced Interface Converter (AIC+) User Manual 1761-UM004 Information on how to install, configure, and commission a DNI DeviceNet Interface User Manual 1761-UM005 Information on DF1 open protocol. DF1 Protocol and Command Set Reference Manual 1770-6.5.16 In-depth information on grounding and wiring Allen-Bradley programmable controllers Allen-Bradley Programmable Controller Grounding and Wiring Guidelines 1770-4.1 A description of important differences between solid-state programmable controller products and hard-wired electromechanical devices Application Considerations for Solid-State Controls SGI-1.1 An article on wire sizes and types for grounding electrical equipment National Electrical Code - Published by the National Fire Protection Association of Boston, MA. A glossary of industrial automation terms and abbreviations Allen-Bradley Industrial Automation Glossary AG-7.1 Phone United States/Canada 1.440.646.3434 Outside United States/Canada You can access the phone number for your country via the Internet: 1. Go to http://www.ab.com 2. Click on Product Support (http://support.automation.rockwell.com) 3. Under Support Centers, click on Contact Information Internet  1.Go to http://www.ab.com 2.Click on Product Support (http://support.automation.rockwell.com)xxx Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Chapter 1 I/O Configuration This section discusses the various aspects of Input and Output features of the MicroLogix 1400 controllers. Each controller comes with a certain amount of embedded I/O, which is physically located on the controller. The controller also allows for adding expansion I/O. This section discusses the following I/O functions: • Embedded I/O on page 2 • MicroLogix 1400 Expansion I/O on page 2 • MicroLogix 1400 Expansion I/O Memory Mapping on page 3 • I/O Addressing on page 11 • I/O Forcing on page 12 • Input Filtering on page 13 • Latching Inputs on page 15Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 1 Chapter 1 I/O ConfigurationEmbedded I/O The MicroLogix 1400 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. 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 1766-L32BXB and 1766-L32BXBA have three high-speed outputs for use as pulse train output (PTO) and/or pulse width modulation (PWM) outputs. MicroLogix 1400 Expansion I/O If the application requires more I/O than the controller provides, you can attach I/O modules. These additional modules are called expansion I/O. Expansion I/O Modules For the MicroLogix 1400, Bulletin 1762 expansion I/O is used to provide discrete and analog inputs and outputs, and specialty modules. You can attach up to seven expansion I/O modules in any combination. MicroLogix 1400 Embedded I/O Catalog Number Description Input Power User Power Embedded Discrete I/O Embedded Analog I/O Comm. Ports 1766-L32BWA 100/240V AC 24V DC 12 Fast 24V DC Inputs 8 Normal 24V DC Inputs 12 Relay Outputs None 1 RS232/RS485(1) 1 Ethernet 1 RS232(2) 1766-L32AWA None 20 120V AC Inputs 12 Relay Outputs 1766-L32BXB 24V DC 12 Fast 24V DC Inputs 8 Normal 24V DC Inputs 6 Relay Outputs 3 Fast DC Outputs 3 Normal DC Outputs 1766-L32BWAA 100/240V AC 24V DC 12 Fast 24V DC Inputs 8 Normal 24V DC Inputs 12 Relay Outputs 4 Voltage Inputs 2 Voltage Outputs 1766-L32AWAA None 20 120V AC Inputs 12 Relay Outputs 1766-L32BXBA 24V DC 12 Fast 24V DC Inputs 8 Normal 24V DC Inputs 6 Relay Outputs 3 Fast DC Outputs 3 Normal DC Outputs (1) Isolated RS-232/RS-485 combo port. Same as ML1100 Comm 0 (2) Non-isolated RS-232. Standard D-sub connector2 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 I/O Configuration Chapter 11762-OV32T, 1762-OB32T Output Image For each output module, the output data file contains the controller-directed state of the discrete output points. Bit positions 0…15 together with word 0/1 correspond to output terminals 0…31. r/w = read and write W or d Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w 1 r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/wRockwell Automation Publication 1766-RM001G-EN-P - March 2017 5 Chapter 1 I/O ConfigurationAnalog I/O Configuration The following table shows the data ranges for 0…10V dc and 4…20 mA. 1762-IF2OF2 Input Data File For each input module, slot x, words 0 and 1 contain the analog values of the inputs. The module can be configured to use either raw/proportional data or scaled-for-PID data. The input data file for each configuration is shown below. The bits are defined as follows: Valid Input/Output Data Word Formats/Ranges Normal Operating Range Full Scale Range Raw/Proportional Data Scaled-for-PID 0…10V DC 10.5V DC 32,760 16,380 0.0V DC 0 0 4…20 mA 21.0 mA 32,760 16,380 20.0 mA 31,200 15,600 4.0 mA 6240 3120 0.0 mA 0 0 Raw/Proportional Format W or d Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 Channel 0 Data 0 to 32,768 0 0 0 1 0 Channel 1 Data 0 to 32,768 0 0 0 2 Reserved 3 Reserved 4 Reserved S1 S0 5 U0 O0 U1 O1 Reserved Scaled-for-PID Format W or d Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 Channel 0 Data 0 to 16,383 0 0 1 0 0 Channel 1 Data 0 to 16,383 0 0 2 Reserved 3 Reserved 4 Reserved S1 S0 5 U0 O0 U1 O1 Reserved6 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 I/O Configuration Chapter 1• Sx = General status bits for channels 0 and 1. This bit is set when an error (over- or under-range) exists for that channel, or there is a general module hardware error. • 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. 1762-IF2OF2 Output Data File For each module, slot x, words 0 and 1 contain the channel output data. 1762-IF4 Input Data File For each module, slot x, words 0 and 1 contain the analog values of the inputs. The module can be configured to use either raw/proportional data or scaled-for-PID data. The input data file for either configuration is shown below. The bits are defined as follows: Raw/Proportional Format W or d Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 Channel 0 Data 0 to 32,768 0 0 0 1 0 Channel 1 Data 0 to 32,768 0 0 0 Scaled-for-PID Format W or d Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 Channel 0 Data 0 to 16,383 0 0 1 0 0 Channel 1 Data 0 to 16,383 0 0 1762-IF4 Input Data File W or d Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 SGN0 Channel 0 Data 1 SGN1 Channel 1 Data 2 SGN2 Channel 2 Data 3 SGN3 Channel 3 Data 4 Reserved S3 S2 S1 S0 5 U0 O0 U1 O1 U2 O2 U3 O3 Reserved 6 ReservedRockwell Automation Publication 1766-RM001G-EN-P - March 2017 7 Chapter 1 I/O ConfigurationThe bits are defined as follows: • Sx = General status bits for input channels 0…3. These bits are set (1) when an error (over- or under-range, open-circuit or input data not valid condition) exists for that channel, or there is a general module hardware error. An input data not valid condition is determined by the user program. See MicroLogix 1200 RTD/Resistance Input Module User Manual, publication 1762-UM003, for details. • OCx = Open-circuit indication for channels 0…3, using either RTD or resistance inputs. Short-circuit detection for RTD inputs only. Short-circuit detection for resistance inputs is not indicated because 0 is a valid number. • Ox = Over-range flag bits for input channels 0…3, using either RTD or resistance inputs. These bits can be used in the control program for error detection. • Ux = Under-range flag bits for channels 0…3, using RTD inputs only. These bits can be used in the control program for error detection. Under-range detection for direct resistance inputs is not indicated because 0 is a valid number. 1762-IT4 Thermocouple Module Input Data File For each module, slot x, words 0…3 contain the analog values of the inputs. The input data file is shown below. The bits are defined as follows: 3 Analog Input Data Channel 3 4 Reserved OC 3 O C2 O C 1 O C 0 Reserved S3 S2 S1 S0 5 U0 O0 U1 O1 U2 O2 U 3 O 3 Reserved Word /Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 SG N Analog Input Data Channel 0 1 SG N Analog Input Data Channel 1 2 SG N Analog Input Data Channel 2 3 SG N Analog Input Data Channel 3 4 Reserved OC 4 OC 3 OC 2 OC 1 OC 0 Reserved S 4 S 3 S2 S1 S0 5 U0 O0 U1 O1 U2 O2 U3 O3 U4 O4 Reserved Word /Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 010 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 I/O Configuration Chapter 1• Sx = General status bits for channels 0…3 (S0…S3) and the CJC sensor (S4). This bit is set (1) when an error (over-range, under-range, open-circuit, or input data not valid) exists for that channel. An input data not valid condition is determined by the user program. Refer to MicroLogix 1200 I/O Thermocouple/mV Input Module User Manual, publication 1762-UM002 for additional details. • OCx = Open-circuit indication for channels 0…3 (OC0…OC3) and the CJC sensor (OC4). • Ox = Over-range flag bits for channels 0…3 (O0…O3) and the CJC sensor (O4). These bits can be used in the control program for error detection. • Ux = Under-range flag bits for channels 0…3 (U0…U3) and the CJC sensor (U4). These bits can be used in the control program for error detection. I/O Addressing Addressing Details The I/O addressing scheme and examples are shown below. (1) I/O located on the controller (embedded I/O) is slot 0. I/O added to the controller (expansion I/O) begins with slot 1. Xd:s.w/bFile Type Input (I) or Output (O) Data File Number Slot Number (1) Word Bit Bit DelimiterWord DelimiterSlot Delimiter I/O Addressing Scheme Format Explanation Od:s.w/b Id:s.w/b X File Type Input (I) or Output (O) d Data File Number (optional) 0 = output, 1 = input : Slot delimiter (optional, not required for Data Files 2…255) s Slot number (decimal) Embedded I/O: slot 0 Expansion I/O: slots 1…7 for MicroLogix 1400 (See page 3 for an illustration.) . Word delimiter. Required only if a word number is necessary as noted below. w Word number Required to read/write words, or if the discrete bit number is above 15. Range: 0…255 / Bit delimiter b Bit number 0 to 15Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 11 Chapter 1 I/O ConfigurationI/O Forcing I/O forcing is the ability to override the actual status of the I/O at the user’s discretion. Input Forcing When an input is forced, the value in the input data file is set to a user-defined state. For discrete inputs, you can force an input “on” or “off ”. When an input is forced, it no longer reflects the state of the physical input or the input LCD indicator. For embedded inputs, the controller reacts as if the force is applied to the physical input terminal. Output Forcing When an output is forced, the controller overrides the status of the control program, and sets the output to the user-defined state. Discrete outputs can be forced “on” or “off ”. The value in the output file is unaffected by the force. It maintains the state determined by the logic in the control program. However, the state of the physical output and the output LCD indicator will be set to the forced state. Addressing examples Addressing Level Example Address(1) Slot Word Bit Bit addressing O:0/4(2) Output slot 0 (embedded I/O) Word 0 Output bit 4 O:2/7(2) Output slot 2 (expansion I/O) Word 0 Output bit 7 I:1/4(2) Input slot 1 (expansion I/O) Word 0 Input bit 4 I:0/15(2) Input slot 0 (embedded I/O) Word 0 Input bit 15 Word addressing O:1.0 Output slot 1 (expansion I/O) Word 0 I:7.3 Input slot 7 (expansion I/O) Word 3 I:3.1 Input slot 3 (expansion I/O) Word 1 (1) The optional Data File Number is not shown in these examples. (2) A word delimiter and number are not shown. Therefore, the address refers to word 0. TIP When an input is forced, it has no effect on the input device connected to the controller. TIP If you force an output controlled by an executing PTOX or PWMX function, an instruction error is generated.12 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 I/O Configuration Chapter 1Converting Analog Data The analog input circuits are able to monitor voltage signals and convert them to digital data. There are five terminals assigned to the input channels that provide four voltage inputs, and a return signal (commons). The following table shows sample Analog Signal and Data Word values using the nominal transfer function formula: N=Vin x 4095/10 where Vin (analog signal) is in volts (V) Converting Analog Input Data Analog inputs convert voltage signals into 12-bit values. To determine an approximate voltage that an input value represents, use the equation shown. For example, if an input value of 1200 is in the input image, the calculated value is as follows: Analog Outputs The MicroLogix 1400 -L32BWAA, -L32AWAA, and -L32BXBA support 2-channel, 12-bit resolution analog output. These channels have 0…10V DC output range. Output words 4 and 5 contain the value of analog outputs (Word 4 : analog output channel 0, Word 5 : analog output channel 1). Latching Inputs Converting Analog Output Value to Actual Output Voltage Analog outputs convert voltage signals into 12-bit values. To determine an approximate voltage that an output value represents, use the equation shown. Analog to data word conversion Analog Signal Data Word 0V 0 5V 2048 10V 4095 10V 4095 ----------- inputvalue inputvoltage V = 10V 4095 ----------- 1200 2.9304 V = 10V 4095 ----------- outputvalue outputvoltage V =Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 15 Chapter 1 I/O ConfigurationFor example, if an input value of 3000 is in the output image, the calculated value is as follows: The MicroLogix 1400 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. The pulse width that can be captured is dependent upon the input filtering selected for that input. The following inputs can be configured as latching inputs: Enable this feature using RSLogix 500/RSLogix Micro. With an open project: 1. Open the Controller folder. 2. Open the I/O Configuration folder. 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” (rising edge) and “off ” (falling edge) pulses, depending upon the configuration selected in the programming software. The following information is provided for a controller looking for an “on” pulse. When an external signal is detected “on”, the controller “latches” this event. In general, at the next input scan following this event, the input image point is turned “on” and remains “on” for the next controller scan. It is then set to “off ” at the next input scan. The following figures help demonstrate this. Controller MicroLogix 1400 DC Inputs 0…11 10V 4095 ----------- 3000 7.326 V =16 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 I/O Configuration Chapter 1Rising Edge Behavior - Example 1 Rising Edge Behavior - Example 2 The previous examples demonstrate rising edge behavior. Falling edge behavior operates exactly the same way with these exceptions: • The detection is on the “falling edge” of the external input. • The input image is normally “on” (1), and changes to “off ” (0) for one scan. TIP The “gray” area of the Latched Status waveform is the input filter delay. IMPORTANT The input file value does not represent the external input when the input is configured for latching behavior. When configured for rising edge behavior, the input file value is normally “off” (“on” for 1 scan when a rising edge pulse is detected). Scan Number (X) Scan Number (X+1) Scan Number (X+2) External Input Latched Status Input File Value Input Scan Ladd er Outp ut Input Scan Ladd er Outp ut Input Scan Ladd er Outp ut Scan Number (X) Scan Number (X+1) Scan Number (X+2) External Input Latched Status Input File Value Input Scan Ladd er Outp ut Input Scan Ladd er Outp ut Input Scan Ladd er Outp utRockwell Automation Publication 1766-RM001G-EN-P - March 2017 17 Chapter 1 I/O ConfigurationNotes:20 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Chapter 2 Controller Memory and File Types This chapter describes controller memory and the types of files used by the MicroLogix 1400 controller. The chapter is organized as follows: • Controller Memory on page 21 • Data Files on page 26 • Protecting Data Files During Download on page 26 • Static File Protection on page 28 • Program Password Protection on page 30 • If a memory module is installed, the user program has the "Load Always" functionality enabled or the program is loaded from the memory module using RSLogix500 or LCD and the controller is password protected, then the controller compares the passwords before transferring the user program from the memory module to the controller. If the passwords do not match, the user program is not transferred and the Program Mismatch bit (S:5/9) is set. on page 33 • Allow Future Access Setting (OEM Lock) on page 34 • Web View Disable on page 35 Controller Memory File Structure MicroLogix 1400 controller user memory comprises Data Files, Function Files, and Program Files. TIP The file types shown for data files 3…8 are the default file types for those file numbers and cannot be changed. Data files 9…255 can be added to your program to operate as bit, timer, counter, or other files shown below. Controller User Memory File Types Data Files Function Files Program Files Specialty Files 0 Output File HSC High Speed Counter 0 System File 0 0 Data Log Queue 0 1 Input File PTOX Pulse Train Output 1 System File 1 1 Data Log Queue 1 2 Status File PWMX Pulse Width Modulation 2 Program File 2 2…255 Data Log Queues 2…255Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 21 Chapter 2 Controller Memory and File Types3 Bit File STI Selectable Timed Interrupt 3…255 Program Files 3…255 0 Recipe File 0 4 Timer File EII Event Input Interrupt 1 Recipe File 1 5 Counter File RTC Real Time Clock 2…255 Recipe Files 2…255 6 Control File 7 Integer File MMI Memory Module Information 8 Floating Point File 9…255 (B) Bit (T) Timer (C) Counter (R) Control (N) Integer (F) Floating Point (ST) String (A) ASCII (L) Long Word (MG) Message (PD) PID (PLS) Programmable Limit Switch (RI) Routing Information (RIX) Extended Routing Information BHI Base Hardware Information CS0 Communications Status for Channel 0 CS2 Communications Status for Channel 2 IOS I/O Status DLS Data Log Status LCD LCD ES1 Ethernet Status for Channel 1 Controller User Memory File Types Data Files Function Files Program Files Specialty Files22 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Controller Memory and File Types Chapter 2Viewing 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.Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 25 Chapter 2 Controller Memory and File TypesData 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: Protecting Data Files During Download Data File Download Protection 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 Data File Types File Name File Identifier File Number(1) Words per Element File Description Output File O 0 1 The Output File stores the values that are written to the physical outputs during the Output Scan. Input File I 1 1 The Input File stores the values that are read from the physical inputs during the Input Scan. Status File S 2 1 The contents of the Status File are determined by the functions which utilize the Status File. See System Status File on page 503 for a detailed description. Bit File B 3, 9…255 1 The Bit File is a general purpose file typically used for bit logic. Timer File T 4, 9…255 3 The Timer File is used for maintaining timing information for ladder logic timing instructions. See Timer and Counter Instructions on page 145 for instruction information. Counter File C 5, 9…255 3 The Counter File is used for maintaining counting information for ladder logic counting instructions. See Timer and Counter Instructions on page 145 for instruction information. Control File R 6, 9…255 3 The Control Data file is used for maintaining length and position information for various ladder logic instructions. See Control Data File on page 313 for more information. Integer File N 7, 9…255 1 The Integer File is a general purpose file consisting of 16-bit, signed integer data words. Floating Point File F 8, 9…255 2 The Floating Point File is a general purpose file consisting of 32-bit IEEE-754 floating point data elements. See Using the Floating Point (F) Data File on page 164 for more information. String File ST 9…255 42 The String File is a file that stores ASCII characters. See String (ST) Data File on page 312 for more information. ASCII File A 9…255 1 The ASCII File is a file that stores ASCII characters. Long Word File L 9…255 2 The Long Word File is a general purpose file consisting of 32-bit, signed integer data words. Message File MG 9…255 25 The Message File is associated with the MSG instruction. See Communications Instructions on page 337 for information on the MSG instruction. Programmable Limit Switch File PLS 9…255 6 The Programmable Limit Switch (PLS) File allows you to configure the High-Speed Counter to operate as a PLS or rotary cam switch. See Programmable Limit Switch (PLS) File on page 105 for information. PID File PD 9…255 23 The PID File is associated with the PID instruction. See Process Control Instruction on page 281 for more information. Routing Information File RI 9…255 20 The Routing Information File is associated with the MSG instruction. See Communications Instructions on page 337 for information on the MSG instruction. Extended Routing Information File RIX 9…255 25 The extended Routing Information File is associated with the MSG instruction. See Communications Instructions on page 337 for information on the MSG instruction. (1) File Number in BOLD is the default. Additional data files of tha type can be configured using the ramaining numbers.26 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Controller Memory and File Types Chapter 2variables in one or more data files in the controller. This situation can occur when an application needs to be updated, but the data that is relevant to the installation needs to remain intact. This capability is referred to as Data File Download Protection. The protection feature operates when: • A User Program is downloaded via programming software • A User Program is downloaded from a Memory Module Setting Download File Protection Download File Protection can be applied to the following data file types: • Output (O) • Input (I) • Binary (B) • Timer (T) • Counter (C) • Control (R) • Integer (N) • Floating Point (F) • String (ST) • ASCII (A) • Long Word (L) • Proportional Integral Derivative (PD) • Message (MG) • Programmable Limit Switch (PLS) • Routing Information (RI) • Extended Routing Information (RIX) • Recipe (Series B only) User Program Transfer Requirements Data File Download Protection only operates when the following conditions are met during a User Program or Memory Module download to the controller: • The controller contains protected data files. • The program being downloaded has the same number of protected data files as the program currently in the controller. • All protected data file numbers, types, and sizes (number of elements) currently in the controller exactly match that of the program being downloaded to the controller. TIP The data in the Status File cannot be protected.Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 27 Chapter 2 Controller Memory and File TypesAccess the Static File Protect feature using RSLogix 500/RSLogix Micro 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. Program Password Protection Programming software access to MicroLogix programs and controllers can be restricted through password protection. Each controller program may contain two passwords, the Password and the Master Password. (The Master Password is ignored unless a Password has also been configured.) The Master Password takes precedence over the Password. That way, all controllers on an assembly line, for instance, can each have a different Password, but have the same Master Password, allowing access to all controllers for supervisory or maintenance purposes. MicroLogix 1400 controllers also have a third password, the Subroutine Protection Password. This password can be configured to restrict viewing of selected ladder files. By default, no passwords are configured in the controller. You can create, change or delete a password using the Controller Properties dialog box. Unencrypted IMPORTANT Starting with RSLogix 500/Micro version 8.40, these passwords may optionally be encrypted so that as they are transmitted between the controller and PCs running RSLogix 500/Micro, someone with physical access to the network where communications is occurring over will not be able to "sniff" the network and capture the password(s). Even so, password protection should not be solely relied upon to prevent unintended changes to the program and data table. Refer to other sections in this chapter for additional steps that you may be able to take with your specific MicroLogix controller to prevent unintended changes.30 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Controller Memory and File Types Chapter 2passwords consist of up to 10 numeric characters (0…9). Encrypted passwords contain at least one non-numeric character. Once a Password has been created and downloaded into the controller, any time the user attempts to open that offline file or go online with that controller, they will be prompted to provide either the Password or the Master Password before the software proceeds. 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 a memory module is installed, the user program has the "Load Always" functionality enabled and the user program is password protected, then the controller compares the passwords before transferring the user program from the memory module to the controller. If the passwords do not match, the user program is not transferred and the Program Mismatch bit (S:5/9) is set. TIP 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 memory. See Clearing the Controller Memory on page 34.Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 31 Chapter 2 Controller Memory and File TypesProgram Password Protection for Series B (Enhanced Password Security) RSLogix 500 version 11.00.00 or higher access to MicroLogix 1400 Series B (Enhanced Password Security) programs and controllers can be restricted through online password protection. Each Series B (Enhanced Password Security) program contains one password which can be set/change/clear when program is online with controller. Series B (Enhanced Password Security) programs also have a second password, the Subroutine Protection Password similar to Series A and Series B program. This password can be set, changed, or cleared offline or when the program is online with the controller. This password can be configured to restrict the viewing of selected ladder files whether online or offline. By default, no passwords are configured in the controller. You can create, change or delete a password using the Controller properties dialog box. The length of the Password should be 8 to 32 and it can contain the combination of integers (0-9), alphabets (upper and lower cases) and symbols (valid symbols are `~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/?). The length of the Subroutine Protection Password should be 1 to 8 characters. It must contain at least one letter (upper or lower case) and can contain integers. IMPORTANT Master Password is not available in Series B (Enhanced Password Security) programs. LCD configuration changes are protected by a separate LCD password. For more information,on LCD Password Setup, refer to the MicroLogix 1400 Programmable Controllers User Manual, publication 1766-UM001. 32 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Controller Memory and File Types Chapter 2Web View Disable This allows selective disabling individual Data Files from Web View. Using RSLogix 500/RSLogix Micro V8.10 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. Any data file property changes must be made offline and downloaded to the processor. LCD Edit Disable This allows selective protection of individual Data Files on the LCD. Using RSLogix 500/RSLogix Micro V8.10 and higher, select the data file’s properties page and check the LCD Edit Disable check box as shown below. Any data file property changes must be made offline and downloaded to the processor. Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 35 Chapter 2 Controller Memory and File Types 36 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Chapter 3 Function Files This chapter describes controller function files. The chapter is organized as follows: • Overview on page 37 • Real-Time Clock Function File on page 38 • Memory Module Information Function File on page 42 • Base Hardware Information Function File on page 44 • Communications Status File on page 45 • Ethernet Communications Status File on page 60 • Input/Output Status File on page 67 Overview Function Files are one of the three primary file structures within the MicroLogix 1400 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. The features are available to the control program through either instructions that are dedicated to a specific function file, or via standard instructions such as MOV and ADD. The Function File types are: File Name File Identifier File Description High-Speed Counter HSC This file type is associated with the High-Speed Counter function. See Using the High-Speed Counter and Programmable Limit Switch on page 77 for more information. Extended Pulse Train Output PTOX This file type is associated with the Pulse Train Output Instruction. See Pulse Train Outputs (PTOX) Function File on page 115 for more information. Extended Pulse Width Modulation PWMX This file type is associated with the Pulse Width Modulation instruction. See Pulse Width Modulation (PWMX) Function File on page 129 for more information. Selectable Timed Interrupt STI This file type is associated with the Selectable Timed Interrupt function. See Using the Selectable Timed Interrupt (STI) Function File on page 272 for more information. Event Input Interrupt EII This file type is associated with the Event Input Interrupt instruction. See Using the Event Input Interrupt (EII) Function File on page 276 for more information. Real-Time Clock RTC This file type is associated with the Real-Time Clock (time of day) function. See Real-Time Clock Function File on page 38 for more information. Memory Module Information MMI This file type contains information about the Memory Module. See Memory Module Information Function File on page 42 for more information. Base Hardware Information BHI This file type contains information about the controller’s hardware. See Base Hardware Information Function File on page 44 for the file structure. Communications Status File for Channel 0 CS0 This file type contains information about the Communications with the controller. See Communications Status File on page 45 for the file structure. Communications Status File for Channel 2 CS2Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 37 Chapter 3 Function FilesRTC Battery Operation The real-time clock uses the same replaceable battery that the controller uses. The RTC Function File features a battery low indicator bit (RTC:0/BL), which shows the status of the replacement battery. When the battery is low, the indicator bit is set (1). This means that the battery wire connector could be disconnected or if the battery is connected, the battery may be ready to fail in the next two weeks. In the latter case, the replacement battery needs to be replaced with a new one. When the battery low indicator bit is clear (0), the battery level is acceptable. RTA - Real Time Clock Adjust Instruction Instruction Type: output 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. RTA is set: • If RTC Seconds are less than 30, then RTC Seconds is reset to 0. Real-Time Clock Accuracy at Various Temperatures Ambient Temperature Accuracy(1) (1) These numbers are worst case values over a 31 day month. 0°C (+32°F) -13…-121 seconds/month +25°C (+77°F) +54…-54 seconds/month +40°C (+104°F) +29…-78 seconds/month +55°C (+131°F) -43…-150 seconds/month ATTENTION: Operating with a low battery indication for more than 14 days may result in invalid RTC data if power is removed from the controller. RTA Real Time Clock Adjust Execution Time for the RTA Instruction Controller When Rung Is: True False MicroLogix 1400 999.8510 µs 0.4090 µs IMPORTANT The RTA instruction will only change the RTC when the RTA rung is evaluated true, after it was previously false (false-to-true transition). The RTA instruction will have no effect if the rung is always true or false.40 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 3• If RTC Seconds are greater than or equal to 30, then the RTC Minutes are incremented by 1 and RTC Seconds are reset to 0. The following conditions cause the RTA instruction to have no effect on the RTC data: • RTC is disabled • An external (via communications) message to the RTC is in progress when the RTA instruction is executed. (External communications to the RTC takes precedence over the RTA instruction.) To re-activate the RTA instruction, the RTA rung must become false, and then true. TIP There is only one internal storage bit allocated in the system for this instruction. Do not use more than one RTA instruction in your program. TIP You can also use a MSG instruction to write RTC data from one controller to another to synchronize time. To send (write) RTC data, use RTC:0 as the source and the destination.Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 41 Chapter 3 Function FilesMemory Module Information Function File The controller has a Memory Module Information (MMI) File which is updated with data from the attached memory module. At power-up or on detection of a memory module being inserted, the catalog number, series, revision, and type are identified and written to the MMI file in the user program. If a memory module is not attached, zeros are written to the MMI file. The memory module function file programming screen is shown below: The parameters and their valid ranges are shown in the table below. FT - Functionality Type The LSB of this word identifies the type of module installed: • 1 = Memory Module (MM1) 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. To be MMI Function File Parameters Feature Address Data Format Type User Program Access FT - Functionality Type MMI:0.FT word (INT) status read-only MP - Module Present MMI:0/MP binary (bit) status read-only WP - Write Protect MMI:0/WP binary (bit) control read-only FO - Fault Override MMI:0/FO binary (bit) control read-only LPC - Program Compare MMI:0/LPC binary (bit) control read-only LE - Load On Error MMI:0/LE binary (bit) control read-only LA - Load Always MMI:0/LA binary (bit) control read-only MB - Mode Behavior MMI:0/MB binary (bit) control read-only42 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 3Communications Status File The Communications Status (CS) File is a read-only file that contains information on how the controller communication parameters are configured and status information on communications activity. The communications status file uses: There are three Communications Status Files for each communications port. Communications Status File CS0 and CS2 correspond to Channel 0 and Channel 2 on the controller. Ethernet Communications Status File ES corresponds to Channel 1 on the controller. The data file is structured as shown below: The following tables show the details of each block in the Communications Status File. General Status Block of Communications Status File Communications Status File Size Controller Number of Word Elements MicroLogix 1400 71 1-word elements TIP You can use the Communications Status File information as a troubleshooting tool for communications issues. Communications Status File Word Description Applies to Controller Details on Page 0…5 General Channel Status Block MicroLogix 1400 45 6…22 DLL Diagnostic Counters Block MicroLogix 1400 47 23…42 DLL Active Node Table Block MicroLogix 1400 59 words 43…70 when using DF1 Full-Duplex, DF1 Half-Duplex, DH-485, or ASCII: 43 End of List Category Identifier Code (always 0) MicroLogix 1400 -- 43…70 Reserved • MicroLogix 1400 -- words 43…70 when using Modbus RTU Slave, Master or DF1 Half-Duplex Master: 43…69 Modbus Slave Diagnostic Counters Block • MicroLogix 1400 53 70 End of List Category Identifier Code (always 0) • MicroLogix 1400 -- General Channel Status Block Word Bit Description 0 - Communications Channel General Status Information Category Identifier Code 1 - Length 2 - Format CodeRockwell Automation Publication 1766-RM001G-EN-P - March 2017 45 Chapter 3 Function Files3 - Communications Configuration Error Code 4 0 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). 1 MRP – Incoming Message Reply Pending Bit This bit is set (1) when the controller determines that another device has supplied the information requested by a MSG instruction executed by this controller. When the appropriate MSG instruction is serviced (during end-of-scan, SVC, or REF), this bit is cleared (0). 2 MCP – Outgoing Message Command Pending Bit This bit is set (1) when the controller has one or more MSG instructions enabled and in the communication queue. This bit is cleared (0) when the queue is empty. 3 SSB – Selection Status Bit This bit indicates that the controller is in the System Mode. It is always set. 4 CAB – Communications Active Bit This bit is set (1) when at least one other device is on the DH-485 network. If no other devices are on the network, this bit is cleared (0). 5…14 Reserved 15 Communications Toggle Push Button Communications Defaults Active. This bit is set (1) whenever Channel 0 is in the default communications mode. The bit is cleared (0) when Channel 0 is in user configured communications mode. 5 0…7 Node Address – This byte value contains the node address of your controller on the network. 8…15 Baud Rate – This byte value contains the baud rate of the controller on the network. General Channel Status Block46 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 3Diagnostic Counter Block of Communications Status File With RSLogix 500/RSLogix Micro version 8.10.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. Diagnostic Counter Blocks are shown for: • DH-485 (on page 47) • DF1 Full-Duplex (on page 49) • DF1 Half-Duplex Slave (on page 50) • DF1 Half-Duplex Master (on page 51) • DF1 Radio Modem (on page 52) • Modbus RTU Slave (on page 53) • Modbus RTU Master (on page 54) • ASCII (on page 56) • DNP3 (on page 56 ) TIP Clicking the Clear button while online monitoring Channel Status of any channel will reset the channel status diagnostic counters for all three channels to zero. DH-485 Diagnostic Counters Block Word Bit Description 6 - Diagnostic Counters Category Identifier Code (always 2) 7 - Length (always 30) 8 - Format Code (always 0) 9 - Total Message Packets Received 10 - Total Message Packets Sent 11 0…7 Message Packet Retries 8…15 Retry Limit Exceeded (Non-Delivery) 12 0…7 NAK – No Memories Sent 8…15 NAK – No Memories Received 13 0…7 Total Bad Message Packets Received 8…15 Reserved 14…22 - ReservedRockwell Automation Publication 1766-RM001G-EN-P - March 2017 47 Chapter 3 Function FilesDF1 Half-Duplex Slave Diagnostic Counters Block Word Bit Description 6 - Diagnostic Counters Category Identifier Code (always 2) 7 - Length (always 30) 8 - Format Code (always 2) 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4…15 Reserved 10 - Total Message Packets Sent 11 - Total Message Packets Received 12 - Undelivered Message Packets 13 - Message Packets Retried 14 - NAK Packets Received 15 - Polls Received 16 - Bad Message Packets Received 17 - No Buffer Space 18 - Duplicate Message Packets Received 19…22 - Reserved50 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 3DF1 Half-Duplex Master Diagnostic Counters Block Word Bit Description 6 - Diagnostic Counters Category Identifier Code (always 2) 7 - Length (always 30) 8 - Format Code (always 3) 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4…15 Reserved 10 - Total Message Packets Sent 11 - Total Message Packets Received 12 - Undelivered Message Packets 13 - Message Packets Retried 14 - Reserved 15 - Polls Sent 16 - Bad Message Packets Received 17 - No Buffer Space, Received Packet Dropped 18 - Duplicate Message Packets Received 19 - Last Normal Poll List Scan 20 - Max. Normal Poll List Scan 21 - Last Priority Poll List Scan 22 - Max. Priority Poll List ScanRockwell Automation Publication 1766-RM001G-EN-P - March 2017 51 Chapter 3 Function FilesDF1 Radio Modem Diagnostic Counters Block Word Bit Description 6 - Diagnostic Counters Category Identifier Code (always 2) 7 - Length (always 30) 8 - Format Code (always 1) 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4…15 Reserved 10 - Total Message Packets Sent 11 - Total Message Packets Received 12 - Undelivered Message Packets 13…15 - Reserved 16 - Bad Message Packets Received 17 - No Buffer Space, Received Packet Dropped 18 - Duplicate Message Packets Received 19…22 - Reserved52 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 355 - ERR 1: Illegal Function 56 - Last Device Reporting ERR 1 57 - ERR 2: Illegal Data Address 58 - Last Device Reporting ERR 2 59 - ERR 3: Illegal Data Value 60 - Last Device Reporting ERR 3 61 - ERR 4: Slave Device Failure 62 - ERR 5: Acknowledge 63 - ERR 6: Slave Device Busy 64 - ERR 7: Negative Acknowledgement 65 - ERR 8: Memory Parity Error 66 - Non-Standard Response 67 - Last Device Reporting ERR 4 to ERR 8 or Non-Standard Response 68 and 69 - Reserved (always 0) Modbus RTU Master Diagnostic Counters Block (Presentation Layer) Word Bit DescriptionRockwell Automation Publication 1766-RM001G-EN-P - March 2017 55 Chapter 3 Function FilesASCII Diagnostic Counters Block Word Bit Description 6 - DLL Diagnostic Counters Category Identifier code (always 2) 7 - Length (always 30) 8 - Format Code (always 5) 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4…15 Reserved 10 0 Software Handshaking Status 1…15 Reserved 11 - Echo Character Count 12 - Received Character Count 13…18 - Reserved 19 - Bad Character Count 20…22 - Reserved DNP3 Slave Diagnostic Counters Block (Data Link Layer) Word Bit Description 6 - DLL Diagnostic Counters Category Identifier code (2) 7 - Length: 30 (15 words to follow including format code) 8 - Counters Format Code: 11 - DNP3 Slave56 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 39 15…4 Reserved Modem Control Line States - Always zero 3 Channel 0 - DCD Channel 2 - DCD 2 Reserved Modem Control Line States - Always zero 1 RTS 0 CTS 10 0 Total Message Packets Sent 11 - Total Message Packets Received for this node 12 - Total Packets Observed 13 - Undelivered Message Packets 14 - Message Packets Retried 15 - NAK Packets Received 16 - Link Layer Error Count 17 - Link Layer Error Code 18 - Reserved - Always zero 19 - Reserved - Always zero 20 - Reserved - Always zero 21 - Reserved - Always zero 22 - Reserved - Always zero DNP3 Slave Diagnostic Counters Block (Data Link Layer) Word Bit DescriptionRockwell Automation Publication 1766-RM001G-EN-P - March 2017 57 Chapter 3 Function FilesEthernet Communications Status File The Ethernet Communications Status (ES) File is a read-only file that contains information on how the controller Ethernet communication parameters are configured and status information on Ethernet communications activity. The Ethernet communications status file uses 178 1-word elements. The data file is structured as: The following tables show the details of each block in the Ethernet Communications Status File. General Status Block of Ethernet Communications Status File TIP You can use the Ethernet Communications Status File information as a troubleshooting tool for Ethernet communications issues. Communications Status File Word Description Applies to Controller Details on Page 0…119 General Channel Status Block MicroLogix 1400 45 120…176 DLL Diagnostic Counters Block MicroLogix 1400 47 177 End of List Category Identifier Code (always 0) MicroLogix 1400 59 General Channel Status Block Word Bit Description 0 - Communications Channel General Status Information Category Identifier Code (1) 1 - Length: 236 2 - Format Code 3 - Communications Configuration Error Code60 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 34 0 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). 1 MRP – Incoming Message Reply Pending Bit This bit is set (1) when the controller determines that another device has supplied the information requested by a MSG instruction executed by this controller. When the appropriate MSG instruction is serviced (during end-of-scan, SVC, or REF), this bit is cleared (0). 2 MCP – Outgoing Message Command Pending Bit This bit is set (1) when the controller has one or more MSG instructions enabled and in the communication queue. This bit is cleared (0) when the queue is empty. 3 to 4 Reserved – Always zero 5 SNMP Server Status This bit is set (1) when the SNMP server is enabled. The cleared bit (0) means that the SNMP server is disabled. 6 HTTP Server Status This bit is set (1) when the internal web server is enabled. The cleared bit (0) means that the internal web server is disabled. 7 SMTP Client Status This bit is set (1) when the SMTP client (for email) is enabled. The cleared bit (0) means that the SMTP client is disabled. 8…15 (Series A) Reserved – Always zero 8…11 (Series B) Reserved – Always zero 12 (Series B Modbus TCP Status This bit is set (1) when the Modbus TCP Server/Client feature is enabled. The cleared bit (0) means that the Modbus TCP Server/Client is disabled. 13 (Series B DNP3 over IP Status This bit is set (1) when the DNP3 over IP feature is enabled. The cleared bit (0) means that the DNP3 over IP feature is disabled. 14 (Series B Reserved – Always zero 15 (Series B Disable Ethernet/IP Incoming Connection Status This bit is set (1) when the Ethernet/IP Incoming connection is not allowed. The cleared bit (0) means that the Incoming connection is allowed. General Channel Status Block Word Bit DescriptionRockwell Automation Publication 1766-RM001G-EN-P - March 2017 61 Chapter 3 Function Files5 0 Ethernet Port Link Status This bit is set (1) when the Ethernet link is active. 1 Ethernet Port Connection Speed This bit is valid when the Auto Negotiation function is enabled. This bit indicates the speed of the link layer driver operating at Ethernet port: • 0: 10 Mbps • 1: 100 Mbps 2 Reserved – Always zero 3 Duplex Mode This bit is valid when the Auto Negotiation function is enabled. This bit indicates the duplex mode of the Ethernet port: • 0: Half Duplex • 1: Full Duplex 4 Auto Negotiate Status This bit is set (1) when the Auto Negotiation function is enabled. 5 Forced Speed Mode Status This bit set (1) when the Auto Negotiation function is disabled and the Ethernet port speed is 100Mbps. 6 Forced Duplex Mode Status This bit set (1) when the Auto Negotiation function is disabled and the Ethernet port’s duplex mode is Full Duplex. 7 Reserved - Always zero 8 BOOTP Valid Flag (Default: 0, False) This bit is set (1) when the appropriate BOOTP response has been received. If BOOTP Enable Flag in Ethernet Port Communications Configuration File is set (1, Yes) and this flag is cleared (0, False), then network-related information is invalid. 9 DHCP Valid Flag (Default: 0, False) This bit is set (1) when the appropriate DHCP response has been received. If DHCP Enable Flag in Ethernet Port Communications Configuration File is set (1, Yes) and this flag is cleared (0, False), then network-related information is invalid. 10 BOOTP Status Flag This bit is set (1) if BOOTP is selected as configuration method. 11 DHCP Status Flag This bit is set (1) if DHCP is selected as configuration method. General Channel Status Block Word Bit Description62 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 3151 152 Low word Frames Transmitted with Carrier Sense Errors (IEEE_T_CSERR)High word 153 154 Low word RMON Tx Collision Count (RMON_T_COL)High word Ethernet Diagnostic Counters Block (continued) Word Bit Description 155 156 Low word Total Commands Sent High word 157 158 Low word Total Commands Received High word Ethernet Diagnostic Counters Block Word Bit DescriptionRockwell Automation Publication 1766-RM001G-EN-P - March 2017 65 Chapter 3 Function FilesEthernet Diagnostic Counters Block (continued) Word Bit Description 159 160 Low word Total Replies Sent High word 161 162 Low word Total Replies Received High word 163 164 Low word Total Replies Sent with Error High word 165 166 Low word Total Replies Received with Error High word 167 168 Low word Total Replies Timed Out High word66 Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 Function Files Chapter 3The last Port tab will show the current states of Ethernet communications port according to word 5 of Ethernet Communications Status File. Input/Output Status File The input/output status (IOS) file is a read-only file in the controller that contains information on the status of the embedded and local expansion I/O. The data file is structured as: Input/Output Status File Word Description 0 Embedded Module Error Code – Always zero 1…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 1400)Rockwell Automation Publication 1766-RM001G-EN-P - March 2017 67
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved