Download Print this page
Rockwell Automation 1763 Reference Manual
Rockwell Automation 1763 Reference Manual

Rockwell Automation 1763 Reference Manual

Controllers and expansion i/o
Hide thumbs Also See for 1763:

Advertisement

Quick Links

Instruction Set Reference Manual
MicroLogix 1100 Programmable Controllers
Bulletin 1763 Controllers and 1762 Expansion I/O

Advertisement

loading
Need help?

Need help?

Do you have a question about the 1763 and is the answer not in the manual?

Questions and answers

Summary of Contents for Rockwell Automation 1763

  • Page 1 Instruction Set Reference Manual MicroLogix 1100 Programmable Controllers Bulletin 1763 Controllers and 1762 Expansion I/O...
  • Page 2 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.
  • Page 3 Features are added to the controllers through firmware upgrades. See the Firmware Revision latest release notes, 1763-RN003, to be sure that your controller’s firmware History is at the level you need. Firmware upgrades are not required, except to allow you access to the new features. See “Firmware Upgrades” below.
  • Page 4 Summary of Changes Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 5 Related Documentation ........14 Rockwell Automation Support ....... . 14 Chapter 1 Embedded I/O.
  • Page 6 NEQ - Not Equal ......... 181 Publication 1763-RM001D-EN-P - September 2011...
  • Page 7 CPW - Copy Word ........222 File Instructions Publication 1763-RM001D-EN-P - September 2011...
  • Page 8 The PID Equation ......... 280 Publication 1763-RM001D-EN-P - September 2011...
  • Page 9 MSG Instruction Ladder Logic ....... 360 Publication 1763-RM001D-EN-P - September 2011...
  • Page 10 Identifying Controller Faults ....... . . 491 Fault Messages and Error Contacting Rockwell Automation for Assistance ....499 Codes...
  • Page 11 RSLogix500 compatibility ........590 Glossary Publication 1763-RM001D-EN-P - September 2011...
  • Page 12 Table of Contents Index MicroLogix 1100 List of Instructions and Function Files Publication 1763-RM001D-EN-P - September 2011...
  • Page 13 • Numbered lists provide sequential steps or hierarchical information. • Change bars appear beside information that has been changed or added since the last revision of this manual. Change bars appear in the margin as shown to the right of this paragraph. Publication 1763-RM001D-EN-P - September 2011...
  • Page 14 Preface The following documents contain additional information concerning Related Documentation Rockwell Automation products. To obtain a copy, contact your local Rockwell Automation office or distributor. Read this Document Document Number Information on understanding and applying micro controllers. MicroMentor 1761-MMB Information on mounting and wiring the MicroLogix 1100 Programmable...
  • Page 15 Controllers discrete 0~10V dc analog 1763-L16AWA 10 120V ac relay 0~10V dc analog 1763-L16BBB 24V dc relay 0~10V dc 24V dc FET analog high-speed 24V dc FET 1763-L16DWD 10 12/24Vdc relay 0~10V dc analog Publication 1763-RM001D-EN-P - September 2011...
  • Page 16 These are: high-speed counting, event input interrupts, and latching inputs. The 1763-L16BBB has two high-speed outputs for use as pulse train output (PTO) and/or pulse width modulation (PWM) outputs.
  • Page 17 1762-IA8 ,1762-IQ8, and 1762-IQ8OW6 Input Image For each input module, the input data file contains the current state of the field input points. Bit positions 0 through 7 correspond to input terminals 0 through 7. Publication 1763-RM001D-EN-P - September 2011...
  • Page 18 Bit positions 0 through 5 correspond to output terminals 0 through 5. Bit Position r/w r/w r/w r/w r/w r/w r/w = read and write, 0 = always at a 0 or OFF state Publication 1763-RM001D-EN-P - September 2011...
  • Page 19 = read and write Publication 1763-RM001D-EN-P - September 2011...
  • Page 20 The bits are defined as follows: • 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. Publication 1763-RM001D-EN-P - September 2011...
  • Page 21 1762-IF4 Input Data File Bit Position SGN0 Channel 0 Data SGN1 Channel 1 Data SGN2 Channel 2 Data SGN3 Channel 3 Data reserved O0 U1 O1 U2 O2 U3 O3 reserved reserved The bits are defined as follows: Publication 1763-RM001D-EN-P - September 2011...
  • Page 22 They can be used in the control program for error detection. The module continues to convert analog data to the minimum full range value while this bit is set (1). The bit is reset (0) when the error clears. Publication 1763-RM001D-EN-P - September 2011...
  • Page 23 (15), and bit 14. If bit 15 equals 1, the module sets the output value to 0V or 0 mA. If bit 15 equals zero and bit 14 equals 1, the module sets the output value to 10.5V dc or 21 mA. Publication 1763-RM001D-EN-P - September 2011...
  • Page 24 • Ux = Under-range flag bits for channels 0 through 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. Publication 1763-RM001D-EN-P - September 2011...
  • Page 25 • Ux = Under-range flag bits for channels 0 through 3 (U0 through U3) and the CJC sensor (U4). These bits can be used in the control program for error detection. Publication 1763-RM001D-EN-P - September 2011...
  • Page 26 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. Publication 1763-RM001D-EN-P - September 2011...
  • Page 27 You typically set the filters to a lower value when using high-speed counters, latching inputs, and input interrupts. Input filtering is configured using RSLogix 500 programming software. To configure the filters using RSLogix 500: Publication 1763-RM001D-EN-P - September 2011...
  • Page 28 Similarly, the faster the filter setting, the less immune the analog inputs are to electrical noise. The less immune the analog inputs are to electrical noise, the faster the inputs will be to update. Publication 1763-RM001D-EN-P - September 2011...
  • Page 29 The analog input circuits are able to monitor voltage signals and convert them to digital data. There are three terminals assigned to the input channels that provide two voltage inputs, and a return signal (commons). Publication 1763-RM001D-EN-P - September 2011...
  • Page 30 The following inputs can be configured as latching inputs: Controller MicroLogix 1100 DC Inputs 0 through 3 You enable this feature with RSLogix 500 programming software. With an open project: 1. Open the “Controller” folder. 2. Open the “I/O Configuration” folder. Publication 1763-RM001D-EN-P - September 2011...
  • Page 31 Rising Edge Behavior - Example 1 Scan Number (X) Scan Number (X+1) Scan Number (X+2) Input Ladder Output Input Ladder Output Input Ladder Output Scan Scan Scan Scan Scan Scan Scan Scan Scan External Input Latched Status Input File Value Publication 1763-RM001D-EN-P - September 2011...
  • Page 32 Scan Number (X+2) Scan Number (X+3) Input Ladder Output Input Ladder Output Input Ladder Output Input Ladder Output Scan Scan Scan Scan Scan Scan Scan Scan Scan Scan Scan Scan External Input Latched Status Input File Value Publication 1763-RM001D-EN-P - September 2011...
  • Page 33 The input file value does not represent the external input when the input IMPORTANT is configured for latching behavior. When configured for falling edge behavior, the input file value is normally “on” (“off” for 1 scan when a falling edge pulse is detected). Publication 1763-RM001D-EN-P - September 2011...
  • Page 34 500 will read the existing configuration of the controller’s I/O. Some I/O modules support or require configuration. To configure a specific module, double-click on the module, an I/O configuration screen will open that is specific to the module. Publication 1763-RM001D-EN-P - September 2011...
  • Page 35 • Password Protection on page 45 • Clearing the Controller Memory on page 46 • Allow Future Access Setting (OEM Lock) on page 47 • Web View Disable (OS Series B FRN 4 or later) on page 47 Publication 1763-RM001D-EN-P - September 2011...
  • Page 36 (R) Control Ethernet Status (N) Integer (F) Floating Point (ST) String (L) Long Word (MG) Message (PD) PID (PLS) Programmable Limit Switch (RI) Routing Information (RIX) Extended Routing Information (OS Series B FRN 4 or later) Publication 1763-RM001D-EN-P - September 2011...
  • Page 37 (1) These are approximate values. For actual memory usage, see the tables in Appendix A of this manual. Publication 1763-RM001D-EN-P - September 2011...
  • Page 38 The MicroLogix 1100 controller also supports 64K bytes of battery backed memory for Data Logging or Recipe operations. See Chapter 22 for Data Logging and Recipe information. See System Status File on page 465 to find the memory usage for specific instructions. Publication 1763-RM001D-EN-P - September 2011...
  • Page 39 Controller Memory and File Types Viewing Controller Memory Usage 1. Highlight and open Controller Properties. 2. The amount of Memory Used and Memory Left will appear in the Controller Properties window once the program has been verified. Publication 1763-RM001D-EN-P - September 2011...
  • Page 40 Instruction on page 279 for more information. Routing 9 to 255 The Routing Information File is associated with the MSG instruction. See Information File Communications Instructions on page 341 for information on the MSG instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 41 MSG instruction. File (1) MicroLogix 1100 OS Series B FRN 4 or later. (2) File Number in BOLD is the default. Additional data files of tha type can be configured using the ramaining numbers. Publication 1763-RM001D-EN-P - September 2011...
  • Page 42 • Long Word (L) • Proportional Integral Derivative (PD) • Message (MG) • Programmable Limit Switch (PLS) • Routing Information (RI) • Extended Routing Information (RIX) The data in the Status File cannot be protected. Publication 1763-RM001D-EN-P - September 2011...
  • Page 43 The data protection lost indicator (S:36/10) is then set. The data protection lost indicator represents that the protected files within the controller have had values downloaded and the user application may need to be re-configured. Publication 1763-RM001D-EN-P - September 2011...
  • Page 44 • Integer (N) • Floating Point (F) • String (ST) • Long Word (L) • Proportional Integral Derivative (PD) • Message (MG) • Programmable Limit Switch (PLS) • Routing Information (RI) • Extended Routing Information (RIX) Publication 1763-RM001D-EN-P - September 2011...
  • Page 45 You can establish, change, or delete a password by using the Controller Properties dialog box. It is not necessary to use passwords, but if used, a master password is ignored unless a password is also used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 46 2. When the Programming Software detects this number has been entered, it asks if you want to clear the memory in the controller. 3. If you reply “yes” to this prompt, the programming software instructs the controller to clear Program memory. Publication 1763-RM001D-EN-P - September 2011...
  • Page 47 Controller passwords are not associated with the Allow Future Access setting. This allows selective disabling individual Data Files from Web View. Web View Disable (OS Series B FRN 4 or later) Publication 1763-RM001D-EN-P - September 2011...
  • Page 48 Web View Disable check box as shown below. Any data file property changes must be made offline and downloaded to the processor. Publication 1763-RM001D-EN-P - September 2011...
  • Page 49 • Memory Module Information Function File on page 54 • Base Hardware Information Function File on page 56 • Communications Status File on page 57 • Ethernet Communications Status File on page 71 • Input/Output Status File on page 79 Publication 1763-RM001D-EN-P - September 2011...
  • Page 50 79 for the file structure. Ethernet Status File The file type contains information about the Ethernet Communications with the controller. LCD Information File This file type is associated with the LCD screen, keypads, and trimpot. Publication 1763-RM001D-EN-P - September 2011...
  • Page 51 In RSLogix 500, click on Set Date & Time in the RTC Function File screen to set the RTC time to the current time on your PC. Publication 1763-RM001D-EN-P - September 2011...
  • Page 52 (0), the battery level is acceptable. ATTENTION: Operating with a low battery indication for more than 14 days (or 8 hours without the battery) may result in invalid RTC data if power is removed from the controller. Publication 1763-RM001D-EN-P - September 2011...
  • Page 53 Do not use more than one RTA instruction in your program. 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. Publication 1763-RM001D-EN-P - September 2011...
  • Page 54 MMI:0/LA binary (bit) control read-only MB - Mode Behavior MMI:0/MB binary (bit) control read-only FT - Functionality Type The LSB of this word identifies the type of module installed: • 1 = Memory Module (MM1) Publication 1763-RM001D-EN-P - September 2011...
  • Page 55 It enables you to determine the value without actually loading the user program from the memory module. See Memory Module Program Compare on page 474 for more information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 56 MicroLogix 1100 Controller. Information Function File Base Hardware Information Function File (BHI) Address Description BHI:0.CN CN - Catalog Number BHI:0.SRS SRS - Series BHI:0.REV REV - Revision BHI:0.FT FT - Functionality Type Publication 1763-RM001D-EN-P - September 2011...
  • Page 57 43 to 69 Modbus Slave Diagnostic Counters Block • MicroLogix 1100 • MicroLogix 1100 End of List Category Identifier Code (always 0) The following tables show the details of each block in the Communications Status File. Publication 1763-RM001D-EN-P - September 2011...
  • Page 58 Node Address - This byte value contains the node address of your controller on the network. 8 to 15 Baud Rate - This byte value contains the baud rate of the controller on the network. Publication 1763-RM001D-EN-P - September 2011...
  • Page 59 • DF1 Half-Duplex Master ( on page 63) • DF1 Radio Modem ( on page 64) • Modbus RTU Slave ( on page 65) • Modbus RTU Master ( on page 67) • ASCII ( on page 68) Publication 1763-RM001D-EN-P - September 2011...
  • Page 60 Retry Limit Exceeded (Non-Delivery) 0 to 7 NAK – No Memories Sent 8 to 15 NAK – No Memories Received 0 to 7 Total Bad Message Packets Received 8 to 15 Reserved 14 to 22 - Reserved Publication 1763-RM001D-EN-P - September 2011...
  • Page 61 Total Message Packets Received Undelivered Message Packets ENQuiry Packets Sent NAK Packets Received ENQuiry Packets Received Bad Message Packets Received and NAKed No Buffer Space and NAK’ed Duplicate Message Packets Received 19 to 22 - Reserved Publication 1763-RM001D-EN-P - September 2011...
  • Page 62 Total Message Packets Sent Total Message Packets Received Undelivered Message Packets Message Packets Retried NAK Packets Received Polls Received Bad Message Packets Received No Buffer Space Duplicate Message Packets Received 19 to 22 - Reserved Publication 1763-RM001D-EN-P - September 2011...
  • Page 63 Polls Sent Bad Message Packets Received No Buffer Space, Received Packet Dropped Duplicate Message Packets Received Last Normal Poll List Scan Max. Normal Poll List Scan Last Priority Poll List Scan Max. Priority Poll List Scan Publication 1763-RM001D-EN-P - September 2011...
  • Page 64 Total Message Packets Sent Total Message Packets Received Undelivered Message Packets 13 to 15 - Reserved Bad Message Packets Received No Buffer Space, Received Packet Dropped Duplicate Message Packets Received 19 to 22 - Reserved Publication 1763-RM001D-EN-P - September 2011...
  • Page 65 Data File Number of Error Request Element Number of Error Request Function Code 1 Message Counter Function Code 2 Message Counter Function Code 3 Message Counter Function Code 4 Message Counter Function Code 5 Message Counter Publication 1763-RM001D-EN-P - September 2011...
  • Page 66 Length (always 30) Format Code (always 9) Reserved Reserved 4 to 15 Reserved Total Message Packets Sent Reserved Total Message Packets Received Link Layer Error Count Link Layer Error Code 15 to 22 - Reserved Publication 1763-RM001D-EN-P - September 2011...
  • Page 67 ERR 5: Acknowledge ERR 6: Slave Device Busy ERR 7: Negative Acknowledgement ERR 8: Memory Parity Error Non-Standard Response Last Device Reporting ERR 4 to ERR 8 or Non-Standard Response 68 and 69 - Reserved (always 0) Publication 1763-RM001D-EN-P - September 2011...
  • Page 68 Format Code (always 5) Reserved Reserved 4 to 15 Reserved Software Handshaking Status 1 to 15 Reserved Echo Character Count Received Character Count 13 to 18 - Reserved Bad Character Count 20 to 22 - Reserved Publication 1763-RM001D-EN-P - September 2011...
  • Page 69 (CS0:42/1 is node 240, CS0:42/2 is node 241, etc.) If you are using RSLogix 500 version 7.00.00 or higher, you can view the active node table by clicking on “Processor Status” and then selecting the tab for the configured channel. Publication 1763-RM001D-EN-P - September 2011...
  • Page 70 Function Files Publication 1763-RM001D-EN-P - September 2011...
  • Page 71 The following tables show the details of each block in the Ethernet Communications Status File. General Status Block of Ethernet Communications Status File General Channel Status Block Word Description Communications Channel General Status Information Category Identifier Code (1) Length: 236 Format Code Communications Configuration Error Code Publication 1763-RM001D-EN-P - September 2011...
  • Page 72 7 to 15 Reserved – Always zero 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. Publication 1763-RM001D-EN-P - September 2011...
  • Page 73 Advertise 10 MB Full Duplex Flag This bit indicates advertisement status if Auto negotiate enabled: • 0: 10 MB Full Duplex was not advertised during auto negotiation • 1: 10 MB Full Duplex was advertised during auto negotiation Publication 1763-RM001D-EN-P - September 2011...
  • Page 74 DLL Diagnostic Counters Category Identifier Code (always 2) Length: 110 (55 words to follow including format code) Counters Format Code: Ethernet (always 0) Low word RMON Rx Octets High word (RMON_R_OCTETS) Low word RMON Tx Octets High word (RMON_T_OCTETS) Publication 1763-RM001D-EN-P - September 2011...
  • Page 75 Frames Transmitted with Deferral Delay High word (IEEE_T_DEF) Low word Frames Transmitted with Late Collisions High word (IEEE_T_LCOL) Low word Frames Transmitted with Carrier Sense Errors High word (IEEE_T_CSERR) Low word RMON Tx Collision Count High word (RMON_T_COL) Publication 1763-RM001D-EN-P - September 2011...
  • Page 76 Function Files Ethernet Diagnostic Counters Block (continued) Word Description Low word Total Commands Sent High word Low word Total Commands Received High word Publication 1763-RM001D-EN-P - September 2011...
  • Page 77 High word Low word Total Replies Received High word Low word Total Replies Sent with Error High word Low word Total Replies Received with Error High word Low word Total Replies Timed Out High word Publication 1763-RM001D-EN-P - September 2011...
  • Page 78 Low word Total Outgoing Messages High word Low word Maximum Connections Allowed High word The last Port tab will show the current states of Ethernet communications port according to word 5 of Ethernet Communications Status File. Publication 1763-RM001D-EN-P - September 2011...
  • Page 79 Embedded Module Error Code – Always zero 1 to 4 Expansion Module Error Code – The word number corresponds to the module’s slot number. Refer to the I/O module’s documentation for specific information. (MicroLogix 1100) Publication 1763-RM001D-EN-P - September 2011...
  • Page 80 Function Files Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 81 LCD - The LCD instruction transfers data from a data file to the LCD and receives a value from the LCD keypad. (1) The RTA - Real Time Clock Adjust Instruction appears on page 53 following the Real-Time Clock Function File information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 82 (XIC, XIO, etc.) must be programmed to the bit level, timer instructions (TON, TOF, etc.) must be programmed to the element level (timers have 3 words per element) and math instructions (ADD, SUB, etc.) must be programmed to the word or long word level. Publication 1763-RM001D-EN-P - September 2011...
  • Page 83 0.) • High Limit = N7:17 (This is the data resident in Integer file 7, element 17.) The Test Value (LCD:0.POT0) and High Limit (N7:17) are direct addressing examples. The Low Limit is immediate addressing. Publication 1763-RM001D-EN-P - September 2011...
  • Page 84 If a number larger than the number of elements in the data file is placed in N10:1 (in this example), data integrity cannot be guaranteed, because a file boundary will be crossed. This may not generate a controller fault, but the data location is invalid/ unknown. Publication 1763-RM001D-EN-P - September 2011...
  • Page 85 If the data at N50:100 is less than 10 or greater than 25, the copy instruction is not processed. This procedure can be used to make sure an indirect address does not access data an unintended location. Publication 1763-RM001D-EN-P - September 2011...
  • Page 86 You must exercise extreme care when using indirect addressing. Always IMPORTANT be aware of the possibility of crossing file boundaries or pointing to data that was not intended to be used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 87 Source A N7:20 Source B Source B Dest #N15:0 Dest N15:20 In this example, the controller uses the following addresses: Operand Base Address Offset Value in S:24 Working Address Source A N7:0 N7:20 Destination N15:0 N15:20 Publication 1763-RM001D-EN-P - September 2011...
  • Page 88 Source A N7:20 Source B Source B Dest N15:[N7:3] Dest N15:20 In this example, the controller uses the following addresses: Operand Base Address Offset Value in N7:3 Working Address Source A N7:0 N7:20 Destination N7:0 N15:20 Publication 1763-RM001D-EN-P - September 2011...
  • Page 89 Chapter Using the High-Speed Counter and Programmable Limit Switch All MicroLogix 1100, except the 1763-L16AWA, have one 20 kHz (40 High-Speed Counter ) high-speed counter. The counter has four dedicated inputs that Overview are isolated from other inputs on the controller. HSC0 utilizes inputs 0 through 3.
  • Page 90 The HSC function, along with the PTO and PWM instructions, are different than most other controller instructions. Their operation is performed by custom circuitry that runs in parallel with the main system processor. This is necessary because of the high performance requirements of these functions. Publication 1763-RM001D-EN-P - September 2011...
  • Page 91 • Run-time editable parameters (from the user control program) The High-Speed Counter function operates as described in the following diagram. Overflow +2,147,483,647 maximum High Preset Low Preset -2,147,483,648 minimum Underflow (1) OS Series B FRN 4 or later Publication 1763-RM001D-EN-P - September 2011...
  • Page 92 (16-bit binary) 0 to 7 control read/write LPO - Low Preset Output HSC:0.LPO word (16-bit binary) 2 to 7 control read/write (1) For Mode descriptions, see HSC Mode (MOD) on page 107. n/a = not applicable Publication 1763-RM001D-EN-P - September 2011...
  • Page 93 2 to 7 High preset is less than or equal to low preset Invalid Overflow 0 to 7 High preset is greater than overflow (1) For Mode descriptions, see HSC Mode (MOD) on page 107. Publication 1763-RM001D-EN-P - September 2011...
  • Page 94 HSC sub-system. The most common type of error that this bit represents is a configuration error. When this bit is set (1), you should look at the specific error code in parameter HSC:0.ER. Publication 1763-RM001D-EN-P - September 2011...
  • Page 95 Using the High-Speed Counter and Programmable Limit Switch This bit is maintained by the controller and is set and cleared automatically. Publication 1763-RM001D-EN-P - September 2011...
  • Page 96 This bit is controlled by the user program and retains its value through a power cycle. It is up to the user program to set and clear this bit. SP can be toggled while the HSC is running and no counts are lost. Publication 1763-RM001D-EN-P - September 2011...
  • Page 97 HSC subroutine due to any of the following conditions: • Low preset reached • High preset reached • Overflow condition - count up through the overflow value • Underflow condition - count down through the underflow value Publication 1763-RM001D-EN-P - September 2011...
  • Page 98 The controller can process 1 active and maintain up to 2 pending user interrupt conditions. This bit is set by the controller. It is up to the control program to utilize, track if necessary, and clear the lost condition. Publication 1763-RM001D-EN-P - September 2011...
  • Page 99 This bit can be cleared (0) by the control program and is also be cleared by the HSC sub-system whenever these conditions are detected: • High Preset Interrupt executes • Underflow Interrupt executes • Overflow Interrupt executes • Controller enters an executing mode Publication 1763-RM001D-EN-P - September 2011...
  • Page 100 The LPR (Low Preset Reached) status flag is set (1) by the HSC sub-system whenever the accumulated value (HSC:0.ACC) is less than or equal to the low preset variable (HSC:0.LOP). This bit is updated continuously by the HSC sub-system whenever the controller is in an executing mode. Publication 1763-RM001D-EN-P - September 2011...
  • Page 101 This bit can be cleared (0) by the control program and is also cleared by the HSC sub-system whenever these conditions are detected: • Low Preset Interrupt executes • Underflow Interrupt executes • Overflow Interrupt executes • Controller enters an executing mode Publication 1763-RM001D-EN-P - September 2011...
  • Page 102 Underflow Mask (UFM) Description Address Data Format HSC Modes Type User Program Access UFM - HSC:0/UFM bit 2 to 7 control read/write Underflow Mask (1) For Mode descriptions, see HSC Mode (MOD) on page 107. Publication 1763-RM001D-EN-P - September 2011...
  • Page 103 (1) For Mode descriptions, see HSC Mode (MOD) on page 107. The OF (Overflow) status flag is set (1) by the HSC sub-system whenever the accumulated value (HSC:0.ACC) has counted through the overflow variable (HSC:0.OF). Publication 1763-RM001D-EN-P - September 2011...
  • Page 104 This bit is transitional and is set by the HSC sub-system. It is up to the control program to utilize, track if necessary, and clear (0) the overflow condition. Overflow conditions do not generate a controller fault. Publication 1763-RM001D-EN-P - September 2011...
  • Page 105 This bit can be cleared (0) by the control program and is also cleared by the HSC sub-system whenever these conditions are detected: • Low Preset Interrupt executes • High Preset Interrupt executes • Underflow Interrupt executes • Controller enters an executing mode Publication 1763-RM001D-EN-P - September 2011...
  • Page 106 The CD (Count Down) bit is used with the bidirectional counters (modes 2 to 7). If the CE bit is set, the CD bit is set (1). If the CE bit is clear, the CD bit is cleared (0). Publication 1763-RM001D-EN-P - September 2011...
  • Page 107 Two input counter (up and down) Two input counter (up and down) with external reset and hold Quadrature counter (phased inputs A and B) Quadrature counter (phased inputs A and B) with external reset and hold Publication 1763-RM001D-EN-P - September 2011...
  • Page 108 Clear accumulator (=0)   Blank cells = don’t care, = rising edge, = falling edge Inputs I1:0.0/0 through I1:0.0/3 are available for use as inputs to other functions regardless of the HSC being used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 109 Clear accumulator (=0)   Blank cells = don’t care, = rising edge, = falling edge Inputs I1:0.0/0 through I1:0.0/3 are available for use as inputs to other functions regardless of the HSC being used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 110 Clear accumulator (=0)   Blank cells = don’t care, = rising edge, = falling edge Inputs I1:0.0/0 through I1:0.0/3 are available for use as inputs to other functions regardless of the HSC being used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 111 Example 6 off (0) Hold accumulator value (1) Count input A leads count input B. (2) Count input B leads count input A.   Blank cells = don’t care, = rising edge, = falling edge Publication 1763-RM001D-EN-P - September 2011...
  • Page 112 (2) Count input B leads count input A.   Blank cells = don’t care, = rising edge, = falling edge Inputs I1:0.0/0 through I1:0.0/3 are available for use as inputs to other functions regardless of the HSC being used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 113 • Toggle (low to high) the Set Parameters (HSC:0/SP) control bit. When the SP bit is toggled high, the data currently stored in the HSC function file is transferred/loaded into the HSC sub-system. Publication 1763-RM001D-EN-P - September 2011...
  • Page 114 When the underflow interrupt is generated, the HSC sub-system resets the accumulated value to the overflow value and the counter then begins counting from the Publication 1763-RM001D-EN-P - September 2011...
  • Page 115 The table below illustrates this relationship: Affect of HSC Output Mask on Base Unit Outputs Output Address 16-Bit Signed Integer Data Word 15 14 13 12 11 10 9 HSC:0.HPO (high preset output) HSC:0.OMB (output mask) O0:0.0 Publication 1763-RM001D-EN-P - September 2011...
  • Page 116 The bits in the gray boxes are unused. The first 6 bits of the mask word are used and the remaining mask bits are not functional because they do not correlate to any physical outputs on the base unit. The mask bit pattern can be configured only during initial setup. Publication 1763-RM001D-EN-P - September 2011...
  • Page 117 The low output bit pattern can be configured during initial setup, or while the controller is operating. Use the HSL instruction or the SP bit to load the new parameters while the controller is operating. Publication 1763-RM001D-EN-P - September 2011...
  • Page 118 • • • • • Output High Source • • • • • • • • • • • • Output Low Source • • • • • • • • • • • • Publication 1763-RM001D-EN-P - September 2011...
  • Page 119 For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Data Files Function Files Address Level Mode Parameter Counter Number • Source • • • • • Publication 1763-RM001D-EN-P - September 2011...
  • Page 120 (High - OHD or Low - OLD) will be written through the HSC mask. At that point, the next preset (High - HIP or Low - LOP) defined in the PLS file becomes active. Publication 1763-RM001D-EN-P - September 2011...
  • Page 121 The valid element number range is from 0 to 255. Sub-Element delimiter Sub-Element number The valid sub-element number range is from 0 to 5 Examples: PLS10:2 PLS File 10, Element 2 PLS12:36.5 PLS File 12, Element 36, Sub-Element 5 (Output Low Source) Publication 1763-RM001D-EN-P - September 2011...
  • Page 122 Using the High-Speed Counter and Programmable Limit Switch PLS Example Setting up the PLS File 1. Using RSLogix 500, create a new project, give it a name and select the appropriate controller. 2. Right click on Data Files and select New. Publication 1763-RM001D-EN-P - September 2011...
  • Page 123 PLS data file and increase the number of elements. 5. Under Data Files, PLS10 should appear as shown to the left. 6. Double-click on PLS10 under Data Files. For this example, enter the values as illustrated below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 124 Using the High-Speed Counter and Programmable Limit Switch Publication 1763-RM001D-EN-P - September 2011...
  • Page 125 When HSC.ACC equals 250, the PLS10:0.OHD is sent through the HSC.OMB mask and energizes the outputs. This will repeat as the HSC.ACC reaches 500, 750, and 1000. Once completed, the cycle resets and repeats. Publication 1763-RM001D-EN-P - September 2011...
  • Page 126 Using the High-Speed Counter and Programmable Limit Switch Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 127 The PTO instruction should only be used with MicroLogix 1100 BBB units. IMPORTANT Relay outputs are not capable of performing very high-speed operations. Instruction Type: output Execution Time for the PTO Instruction Controller When Rung Is: True False 51.28 μs 31.94 μs MicroLogix 1100 Publication 1763-RM001D-EN-P - September 2011...
  • Page 128 MicroLogix 1100 Series B Controller for more information. Within the PTO function file, there are PTO element(s). An element can be set to control either output 2 (O0:0/2 on 1763-L16BBB) or output 3 (O0:0/3 on 1763-L16BBB). The interface to the PTO sub-system is accomplished by scanning a PTO instruction in the main program file (file number 2) or by scanning a PTO instruction in any of the subroutine files.
  • Page 129 – Jog Pulse (JP) bit must be off – Jog Continuous (JC) bit must be off – Enable Hard Stop (EH) bit must be off – Normal Operation (NS) bit must be off – The output cannot be forced Publication 1763-RM001D-EN-P - September 2011...
  • Page 130 DN bit goes off. So, to detect when the PTO instruction completes its output, you can monitor the Done (DN), Idle (ID), or Normal Operation (NO) status bits. Publication 1763-RM001D-EN-P - September 2011...
  • Page 131 Using High-Speed Outputs Stage Rung State Sub-Elements: Relative Timing Normal Operation/NO Accelerate Status/AS Run Status/RS Decelerate Status/DS Enable/EN Done/DN Idle/ID Jog Pulse/JP Jog Continuous/JC Start of PTO Start of PTO Publication 1763-RM001D-EN-P - September 2011...
  • Page 132 Rung State Sub-Elements: Relative Timing Normal Operation /NO Accelerate Status /AS Run Status /RS Decelerate Status /DS Enable /EN Done /DN Idle /ID Jog Pulse /JP Jog Continuous /JC Start of PTO Start of PTO Publication 1763-RM001D-EN-P - September 2011...
  • Page 133 PTO configuration data and also allow the control program access to all information pertaining to each of the Pulse Train Outputs. If the controller mode is run, the data within sub-element fields may be changing. Publication 1763-RM001D-EN-P - September 2011...
  • Page 134 (2) The variable range of OF, OFS, and JF is 0~20000 in MicroLogix 1100 Series A controller and it is 0~40000 in MicroLogix 1100 Series B controller. (3) Applies only to MicroLogix 1100 Series A Controller (4) Applies only to MicroLogix 1100 Series B Controller Publication 1763-RM001D-EN-P - September 2011...
  • Page 135 • Cleared (0) - When the rung the PTO is on is false. If the rung is false when the PTO instruction completes, the Done bit is set until the next scan of the PTO instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 136 It can be used by an input instruction on any rung within the control program. The AS bit operates as follows: • Set (1) - Whenever a PTO instruction is within the acceleration phase of the output profile. Publication 1763-RM001D-EN-P - September 2011...
  • Page 137 • Set (1) - PTO sub-system is in an idle state. The idle state is defined as the PTO is not running and no errors are present. • Cleared (0) - PTO sub-system is not in an idle state (it is running) Publication 1763-RM001D-EN-P - September 2011...
  • Page 138 The enable hard stop aborts any PTO sub-system operation (idle, normal, jog continuous or jog pulse) and generates a PTO sub-system error. The EH bit operates as follows: Publication 1763-RM001D-EN-P - September 2011...
  • Page 139 MicroLogix 1100 Series A controller, the data less than zero or greater than 20,000 generates a PTO error. However, in the MicroLogix 1100 Series B controller, the data less than zero or greater than 40,000 generates a PTO error. Publication 1763-RM001D-EN-P - September 2011...
  • Page 140 PTO:0.TOP long word 0 to 2,147,483,647 control read/write Pulses To Be Generated (32-bit INT) The PTO TOP (Total Output Pulses) defines the total number of pulses to be generated for the pulse profile (accel/run/decel inclusive). Publication 1763-RM001D-EN-P - September 2011...
  • Page 141 The acceleration and deceleration counts must be entered before the PTO is enabled. If the four long elements are not properly identified, the controller will return a -3 error in the PTO function file when going to run. Publication 1763-RM001D-EN-P - September 2011...
  • Page 142 In the example below (when ADI=0), • TOP (total output pulses) = 12,000 • ADP (accelerate/decelerate pulses)= 6,000 (This is the maximum ADP value that may be entered without causing a fault. The run portion will equal 0.) Publication 1763-RM001D-EN-P - September 2011...
  • Page 143 The maximum frequency = the integer which is less than or equal to the result found below (OF = output frequency): • For Trapezoid Profiles: [OF x (OF/4)] + 0.5 • For S-Curve Profiles: 0.999 x OF x SQRT(OF/6) Publication 1763-RM001D-EN-P - September 2011...
  • Page 144 Stop (CS) Set Ramp Function Normal Ramp Decel After CS Function is Set Accel Decel If the CS bit is set during the accel phase, the accel phase completes and the PTO immediately enters the decel phase. Publication 1763-RM001D-EN-P - September 2011...
  • Page 145 (unsigned integer to signed integer). Refer to PTO and PWM function file changes in Series B Controller on page 571 in Appendix F How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller for more information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 146 • Cleared (0) - Whenever a PTO instruction exits the Jog Pulse state The output (jog) pulse is normally complete with the JP bit set. The JPS bit remains set until the JP bit is cleared (0 = off). Publication 1763-RM001D-EN-P - September 2011...
  • Page 147 PTO is generating continuous Jog Pulses. The JCS bit operates as follows: • Set (1) - Whenever a PTO instruction is generating continuous Jog Pulses • Cleared (0) - Whenever a PTO instruction is not generating continuous Jog Pulses. Publication 1763-RM001D-EN-P - September 2011...
  • Page 148 • greater than half the total output pulses to be generated (TOP) • Accel/Decel exceeds limit (See page 142.) This error faults the controller. It can be cleared by logic within the User Fault Routine. Publication 1763-RM001D-EN-P - September 2011...
  • Page 149 When Rung Is: True False 51.9 μs 33.68 μs MicroLogix 1100 The PWM function allows a field device to be controlled by a PWM wave PWM Function form. The PWM profile has two primary components: Publication 1763-RM001D-EN-P - September 2011...
  • Page 150 Within the PWM function file are two PWM elements. Each element can Pulse Width Modulation be set to control either output 2 (O0:0/2) or output 3 (O0:0/3). Function (PWM) Function File file element PWM:0 is shown below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 151 Using High-Speed Outputs Publication 1763-RM001D-EN-P - September 2011...
  • Page 152 PWM instruction controls. This variable is set within the function file folder when the control program is written and cannot be set by the user program. The outputs are defined as O0:0/2 or O0:0/3 as listed below: Publication 1763-RM001D-EN-P - September 2011...
  • Page 153 • Set (1) - Whenever the PWM instruction is within the run phase of the output profile. • Cleared (0) - Whenever the PWM instruction is not within the run phase of the output profile. Publication 1763-RM001D-EN-P - September 2011...
  • Page 154 PWM activity. It can be used in the control program by an input instruction. • Set (1) - PWM sub-system is in an idle state. • Cleared (0) - PWM sub-system is not in an idle state (it is running). Publication 1763-RM001D-EN-P - September 2011...
  • Page 155 The PWM EH (Enable Hard Stop) bit stops the PWM sub-system immediately. A PWM hard stop generates a PWM sub-system error. • Set (1) - Instructs the PWM sub-system to stop its output modulation immediately (output off = 0). • Cleared (0) - Normal operation. Publication 1763-RM001D-EN-P - September 2011...
  • Page 156 (unsigned integer to signed integer). Refer to PTO and PWM function file changes in Series B Controller on page 571 in Appendix F How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller for more information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 157 The PWM DCS (Duty Cycle Status) provides feedback from the PWM sub-system. The Duty Cycle Status variable can be used within an input instruction on a rung of logic to provide PWM system status to the remaining control program. Publication 1763-RM001D-EN-P - September 2011...
  • Page 158 It can be cleared by logic within the User Fault Routine. Reserved Duty Cycle The PWM duty cycle is either less than zero or greater than 1000. Error This error faults the controller. It can be cleared by logic within the User Fault Routine. Publication 1763-RM001D-EN-P - September 2011...
  • Page 159 When Instruction Is: True False 1.5 μs 1.5 μs MicroLogix 1100 Use the XIC instruction to determine if the addressed bit is on. Use the XIO instruction to determine if the addressed bit is off. Publication 1763-RM001D-EN-P - September 2011...
  • Page 160 (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, LCD, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 161 (last instruction on last branch). It is recommended this be the only output instruction on the rung. ATTENTION: Never use an output address at more than one place in your logic program. Always be fully aware of the load represented by the output coil. Publication 1763-RM001D-EN-P - September 2011...
  • Page 162 (including field devices) energizes with the return of power if the OTL bit was set when power was lost. ATTENTION: Under error conditions, physical outputs are turned off. Once the error conditions are cleared, the controller resumes operation using the data table value. Publication 1763-RM001D-EN-P - September 2011...
  • Page 163 OFF and remains OFF until the logic preceding the ONS instruction is false (this re-activates the ONS instruction). The ONS Storage Bit is the bit address that remembers the rung state from the previous scan. This bit is used to remember the false-to-true rung transition. Publication 1763-RM001D-EN-P - September 2011...
  • Page 164 (rising edge) change of state of the rung. • Use the OSF instruction when an event must start based on the true-to-false (falling edge) change of state of the rung. These instructions use two parameters, Storage Bit and Output Bit. Publication 1763-RM001D-EN-P - September 2011...
  • Page 165 For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Data Files Function Files Address Level Mode Parameter Storage Bit • • • • Output Bit • • • • • • • • Publication 1763-RM001D-EN-P - September 2011...
  • Page 166 Relay-Type (Bit) Instructions Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 167 • Accumulator - The accumulator counts the time base intervals. It represents elapsed time. The accumulator data range is from 0 to 32767. Timers can be set to any one of three time bases: Publication 1763-RM001D-EN-P - September 2011...
  • Page 168 Data Files Mode Parameter Timer • • • Time Base • • Preset • • Accumulator • • (1) Valid for Timer Files only. Use an RES instruction to reset a timer’s accumulator and status bits. Publication 1763-RM001D-EN-P - September 2011...
  • Page 169 2.5 seconds, no time is lost; if the skip duration exceeds 2.5 seconds, an undetectable timing error occurs. When using subroutines, a timer must be scanned at least every 2.5 seconds to prevent a timing error. Publication 1763-RM001D-EN-P - September 2011...
  • Page 170 14 - T4:0/TT TT - timer timing rung state is true and accumulated value < preset value • DN bit is set bit15 - T4:0/EN EN - timer enable rung state is true rung state goes false Publication 1763-RM001D-EN-P - September 2011...
  • Page 171 RES instruction to reset a timer address used in a TOF instruction. If the TOF accumulated value and status bits are reset, unpredictable machine operation may occur. Publication 1763-RM001D-EN-P - September 2011...
  • Page 172 • DN bit is set bit15 - T4:0/EN EN - timer enable rung state is true rung state goes false To reset the accumulator of a retentive timer, use an RES instruction. See RES - Reset on page 177. Publication 1763-RM001D-EN-P - September 2011...
  • Page 173 -32768 to 32767. The accumulated value is incremented (CTU) or decremented (CTD) on each false-to-true rung transition. The accumulated value is retained when the rung condition again becomes false, and when Publication 1763-RM001D-EN-P - September 2011...
  • Page 174 • rung state is false bit 15 - C5:0/CU CU - count up rung state is true enable • a RES instruction with the same address as the CTU instruction is enabled Publication 1763-RM001D-EN-P - September 2011...
  • Page 175 CTU instruction is enabled • rung state is false bit 14 - C5:0/CD CD - count down rung state is true enable • a RES instruction with the same address as the CTD instruction is enabled Publication 1763-RM001D-EN-P - September 2011...
  • Page 176 (assuming 50% duty cycle). This condition is needed to enable the counter to detect false-to-true transitions from the incoming device. Publication 1763-RM001D-EN-P - September 2011...
  • Page 177 RES Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Data Files Function Files Address Level Mode Parameter Structure • • • Publication 1763-RM001D-EN-P - September 2011...
  • Page 178 Timer and Counter Instructions Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 179 (≥) MEQ - Mask Compare for Equal Test portions of two values to see whether they are equal LIM - Limit Test Test whether one value is within the range of two other values Publication 1763-RM001D-EN-P - September 2011...
  • Page 180 • For EQU, GEQ, GRT, LEQ, and LES - If either Source is not a number (NAN), then rung state changes to false. • For NEQ - If either Source is not a number (NAN), then rung state remains true. Publication 1763-RM001D-EN-P - September 2011...
  • Page 181 N7:1 0< than a second value. GRT and LES Instruction Operation Instruction Relationship of Source Values Resulting Rung State A > B true A ≤ B false A ≥ B false A < B true Publication 1763-RM001D-EN-P - September 2011...
  • Page 182 ANDed with the mask. Then, these results are compared to each other. If the resulting values are equal, the rung state is true. If the resulting values are not equal, the rung state is false. Publication 1763-RM001D-EN-P - September 2011...
  • Page 183 (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 184 The data ranges are: • -32,768 to 32,767 (word) • -2,147,483,648 to 2,147,483,647 (long word) Addressing Modes and File Types can be used as shown in the following table: Publication 1763-RM001D-EN-P - September 2011...
  • Page 185 (1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit. (2) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 186 Compare Instructions Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 187 Find the absolute value of the source value SQR - Square Root Find the square root of a value SCL - Scale Scale a value SCP - Scale with Parameters Scale a value to a range determined by creating a linear relationship Publication 1763-RM001D-EN-P - September 2011...
  • Page 188 (2) The Data Log Status file can only be used for the following math instructions: ADD, SUB, MUL, DIV, NEG, and SCP. (3) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 189 (OTU) instruction with address S:5/0 in your program. The rung must be between the overflow point and the END or TND statement. The following illustration shows the rung you can use to unlatch the overflow trap bit. Publication 1763-RM001D-EN-P - September 2011...
  • Page 190 (0 or 1) e is the exponent (1 to 254) m is the mantissa (0 ≤ f < 1) The valid range for floating point numbers is from -3.4028 x 10 +3.4028 x 10 Publication 1763-RM001D-EN-P - September 2011...
  • Page 191 LSB, the result is rounded up by adding one LSB. If the bits to the right of the LSB represent a value of exactly one-half LSB, the result is rounded up or down so that the LSB is an even number. Publication 1763-RM001D-EN-P - September 2011...
  • Page 192 – If Destination is an integer and the result is positive, overflow Destination is +32767 (word) or +2,147,483, 648 (long word). – If Destination is an integer and the result is negative, overflow Destination is -32767 (word) or -2,147,483, 648 (long word). Publication 1763-RM001D-EN-P - September 2011...
  • Page 193 Source B) and place the sum in the Destination. 0< Dest N7:2 0< Use the SUB instruction to subtract one value from another value (Source A - Source B) and place the result in the Destination. Publication 1763-RM001D-EN-P - September 2011...
  • Page 194 Execution Time for the CLR Instruction 0< Controller Data Size When Rung Is: True False 0.87 μs MicroLogix 1100 word 5.29μs 5.46 μs 0.87 μs long word Use the CLR instruction to set the Destination to a value of zero. Publication 1763-RM001D-EN-P - September 2011...
  • Page 195 • Overflow Trap - The Math Overflow Trap Bit is only set if the Overflow bit is set. Otherwise, it remains in its last state. Overflow bit is set. Otherwise, it remains in its last state. Publication 1763-RM001D-EN-P - September 2011...
  • Page 196 • offset = scaled min. - (input min. x rate) Rate and Offset can both be immediate values. The data range for rate and offset is -32768 to 32767. Addressing Modes and File Types can be used as shown in the following table: Publication 1763-RM001D-EN-P - September 2011...
  • Page 197 N7:5 0< the following equation listed below to determine scaled output: y = [(y )/(x )](x - x ) + y Addressing Modes and File Types can be used as shown in the following table: Publication 1763-RM001D-EN-P - September 2011...
  • Page 198 , the Result becomes the Scaled Start value If x = 0 and x does not equal x , The Result becomes a negative overflow (for integer values) or a negative NAN (for floating point values) Publication 1763-RM001D-EN-P - September 2011...
  • Page 199 • • • • (1) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 200 Math Instructions Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 201 • • • • (1) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 202 All other bits in the destination word are cleared. The DCD instruction converts the values as shown in the table below: Decode 4 to 1-of-16 Source Bits Destination Bits 15 to 04 03 x = not used Publication 1763-RM001D-EN-P - September 2011...
  • Page 203 The math overflow bit (S:5/0) is not set. S:0/2 Zero Bit sets if result is zero, otherwise resets S:0/3 Sign Bit always resets Publication 1763-RM001D-EN-P - September 2011...
  • Page 204 4 digits stored in S:13 and the high order digit in S:14). If the source is the math register, it must be directly addressed as S:13. S:13 is the only status file element that can be used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 205 Register (S:13). You must reset the Minor Error Bit (S:5.0) to prevent an error. Example The BCD value 32,760 in the math register is converted and stored in N7:0. The maximum source value is 32767 (BCD). Publication 1763-RM001D-EN-P - September 2011...
  • Page 206 S:14 before executing the FRD instruction. If S:14 is not cleared and a value is contained in this word from another math instruction located elsewhere in the program, an incorrect decimal value is placed in the destination word. Publication 1763-RM001D-EN-P - September 2011...
  • Page 207 4-digit thumbwheel switch for example) is moved from word N7:2 into the math register. Status word S:14 is then cleared to make certain that unwanted data is not present when the FRD instruction is executed. Publication 1763-RM001D-EN-P - September 2011...
  • Page 208 4 digits stored in S:13 and the high order digit in S:14). If the destination is the math register, it must be directly addressed as S:13. S:13 is the only status file element that can be used. Publication 1763-RM001D-EN-P - September 2011...
  • Page 209 N7:0. The maximum BCD value is 9999. To BCD The destination value is Source N7:3 9760< displayed in BCD format. Dest N10:0 9760< N7:3 Decimal 0010 0110 0010 0000 N7:0 4-digit BCD 1001 0111 0110 0000 Publication 1763-RM001D-EN-P - September 2011...
  • Page 210 Gray code input is negative, otherwise is reset S:0/2 Zero Bit set if the destination is zero, otherwise reset S:0/3 Sign Bit always reset S:5/0 Overflow Trap set if the Overflow Bit is set, otherwise reset Publication 1763-RM001D-EN-P - September 2011...
  • Page 211 Destination parameter in the AND, OR, and XOR instructions. • Source A and Source B can be a constant or an address, but both cannot be constants. • Valid constants are -32768 to 32767 (word) and -2,147,483,648 to 2,147,483,647 (long word). Publication 1763-RM001D-EN-P - September 2011...
  • Page 212 With this Bit: The Controller: S:0/0 Carry always resets S:0/1 Overflow always resets S:0/2 Zero Bit sets if result is zero, otherwise resets S:0/3 Sign Bit sets if result is negative (MSB is set), otherwise resets Publication 1763-RM001D-EN-P - September 2011...
  • Page 213 Do not use the High Speed Counter Accumulator (HSC.ACC) for the IMPORTANT Destination parameter in the AND, OR, and XOR instructions. For more information, see Using Logical Instructions on page 211 and Updates to Math Status Bits on page 212. Publication 1763-RM001D-EN-P - September 2011...
  • Page 214 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 Do not use the High Speed Counter Accumulator (HSC.ACC) for the IMPORTANT Destination parameter in the AND, OR, and XOR instructions. Publication 1763-RM001D-EN-P - September 2011...
  • Page 215 Do not use the High Speed Counter Accumulator (HSC.ACC) for the IMPORTANT Destination parameter in the AND, OR, and XOR instructions. For more information, see Using Logical Instructions on page 211 and Updates to Math Status Bits on page 212. Publication 1763-RM001D-EN-P - September 2011...
  • Page 216 0 0 0 0 0 1 0 1 1 1 1 1 0 0 1 1 For more information, see Using Logical Instructions on page 211 and Updates to Math Status Bits on page 212. Publication 1763-RM001D-EN-P - September 2011...
  • Page 217 If the result is negative, the Destination is -32768. – If the Math Overflow Selection Bit is set, the unsigned truncated value of the Source is stored in the Destination. • Source can be a constant or an address. Publication 1763-RM001D-EN-P - September 2011...
  • Page 218 (1) Control bit. If you want to move one word of data without affecting the math flags, use a copy (COP) instruction with a length of 1 word instead of the MOV instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 219 The mask can be a constant value, or you can vary the mask by assigning a direct address. Bits in the destination that correspond to zeros in the mask are not altered as shown in the shaded areas in the following table. Publication 1763-RM001D-EN-P - September 2011...
  • Page 220 With this Bit: The Controller: S:0/0 Carry always resets S:0/1 Overflow always resets S:0/2 Zero Bit sets if destination is zero, otherwise resets S:0/3 Sign Bit sets if the MSB of the destination is set, otherwise resets Publication 1763-RM001D-EN-P - September 2011...
  • Page 221 Load words into a file and unload them in reverse order (last in, first out) LFU - Last In, First Out (LIFO) Unload SWP - Swap Swap low byte with high byte in a specified number of words Publication 1763-RM001D-EN-P - September 2011...
  • Page 222 This only occurs when attempting to write invalid data to the RTC function file. Examples of invalid data are: setting the Day of Week to zero or setting the Date to February 30th. Publication 1763-RM001D-EN-P - September 2011...
  • Page 223 • • • Length • (1) See Important note about indirect addressing. You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 224 Range of Length Operand 1 word elements (ie. word) 1 to 128 2 word elements (ie. long word) 1 to 64 3 word elements (ie. counter) 1 to 42 42 word elements (ie. string) 1 to 3 Publication 1763-RM001D-EN-P - September 2011...
  • Page 225 1 to 128 (word), 1 to 64 (long word), or 1 to 42 (3 word element such as counter). The source and destination operands must be of the same file type, unless they are bit (B) and integer (N). Publication 1763-RM001D-EN-P - September 2011...
  • Page 226 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 58 Bit Array #B3:1 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 RESERVED 73 72 71 70 69 68 67 66 65 64 Unload Bit (R6:0/10) Publication 1763-RM001D-EN-P - September 2011...
  • Page 227 (1) See Important note about indirect addressing. (2) Control file only. Not valid for Timers and Counters. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 228 (4) UL - Unload Bit is the instruction’s output. Avoid using the UL (unload) bit when the ER (error) bit is set. • Bit Address - The source is the address of the bit to be transferred into the bit array at the last (highest) bit position. Publication 1763-RM001D-EN-P - September 2011...
  • Page 229 (1) See Important note about indirect addressing. (2) Control file only. Not valid for Timers and Counters. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 230 If FIFO is a long word size file, source must be a long word value or constant. The data range for the source is from -32768 to 32767 (word) or -2,147,483,648 to 2,147,483,647 (long word). Publication 1763-RM001D-EN-P - September 2011...
  • Page 231 (1) See Important note about indirect addressing. (2) Control file only. Not valid for Timers or Counters. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 232 #N7:12 at the next N7:45 available position, 9 in this case. Loading and Unloading of Stack #N7:12 This instruction uses the following operands: • FIFO - The FIFO operand is the starting address of the stack. Publication 1763-RM001D-EN-P - September 2011...
  • Page 233 (1) See Important note about indirect addressing. (2) Control file only. Not valid for Timers and Counters. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and DLS IMPORTANT files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 234 The data range for the source is from -32768 to 32767 (word) or -2,147,483,648 to 2,147,483,647 (long word). • LIFO - The LIFO operand is the starting address of the stack. Publication 1763-RM001D-EN-P - September 2011...
  • Page 235 (1) See Important note about indirect addressing. (2) Control file only. Not valid for Timers and Counters. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 236 LIFO stack. If LIFO is a word size file, destination must be a word size file. If LIFO is a long word size file, destination must be a long word size file. Publication 1763-RM001D-EN-P - September 2011...
  • Page 237 (1) See Important note about indirect addressing. (2) Control file only. Not valid for Timers and Counters. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 238 Source Value before executing SWP instruction: b a d c f e h g j i l k n m p o r q t s v u x w z y a b c d e f g Length The underlined characters show the 13 words where the low byte was swapped with the high byte. Publication 1763-RM001D-EN-P - September 2011...
  • Page 239 The primary advantage of sequencer instructions is to conserve program memory. These instructions monitor and control 16 (word) or 32 (long word) discrete outputs at a time in a single rung. You can use bit integer or double integer files with sequencer instructions. Publication 1763-RM001D-EN-P - September 2011...
  • Page 240 While the rung remains true, the source is compared against the reference data for every scan. If equal, the FD bit is set in the SQCs control counter. Applications of the SQC instruction include machine diagnostics. Publication 1763-RM001D-EN-P - September 2011...
  • Page 241 If file type is word, then mask and source must be words. If file type is long word, mask and source must be long words. Publication 1763-RM001D-EN-P - September 2011...
  • Page 242 Position is a component of the control register. The position can range from 0 to 255 for words and 0 to 127 for long words. The position is incremented on each false-to-true transition. Publication 1763-RM001D-EN-P - September 2011...
  • Page 243 If the position is equal to zero at start-up, when you switch the controller from the program mode to the run mode, the instruction operation depends on whether the rung is true or false on the first scan. Publication 1763-RM001D-EN-P - September 2011...
  • Page 244 0000 1111 Sequencer Output File #B10:1 Word Step B10:1 0000 0000 0000 0000 B10:2 1010 0010 1111 0101 B10:3 1111 0101 0100 1010 Current Step B10:4 0101 0101 0101 0101 B10:5 0000 1111 0000 1111 Publication 1763-RM001D-EN-P - September 2011...
  • Page 245 Position is a component of the control register. The position can range from 0 to 255. Position is incremented on each false-to-true transition. Publication 1763-RM001D-EN-P - September 2011...
  • Page 246 • File - This is the sequencer reference file. Its contents are received on an element-by-element basis from the source. If file type is word, then mask and source must be words. If file type is long word, mask and source must be long words. Publication 1763-RM001D-EN-P - September 2011...
  • Page 247 • • • • • • • • • Source Control • • Length • • Position • • (1) See Important note about indirect addressing. (2) File Direct and File Indirect addressing also applies. Publication 1763-RM001D-EN-P - September 2011...
  • Page 248 Sequencer Instructions (3) Control file only. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, LCD, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 249 Multiple JMP instructions may cause execution to proceed to the same label. The immediate data range for the label is from 0 to 999. The label is local to a program file. Publication 1763-RM001D-EN-P - September 2011...
  • Page 250 The SBR instruction is a label which is not used by the processor. It is for user subroutine identification purposes as the first rung for that subroutine. This instruction is the first instruction on a rung and is always evaluated as true. Publication 1763-RM001D-EN-P - September 2011...
  • Page 251 TND will return from the subroutine and continue to scan the rest of the main program (file 2). If this instruction is executed in a nested subroutine, it terminates execution of all nested subroutines. Publication 1763-RM001D-EN-P - September 2011...
  • Page 252 The end of an MCR zone is defined to be the first rung containing just an MCR instruction following a start MCR zone rung as shown below. 0030 0031 Ladder Logic within MCR Zone 0032 0033 Publication 1763-RM001D-EN-P - September 2011...
  • Page 253 I/O power shutdown. ATTENTION: If you start instructions such as timers or counters in an MCR zone, instruction operation ceases when the zone is disabled. Re-program critical operations outside the zone if necessary. Publication 1763-RM001D-EN-P - September 2011...
  • Page 254 Program Control Instructions Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 255 This instruction is used for embedded I/O only. It is not designed to be Immediate Input w/Mask used with expansion I/O. Slot I:0.0 Mask N7:0 Length Execution Time for the IIM Instruction Controller When Rung Is: True False 51.76 μs 0.87 μs MicroLogix 1100 Publication 1763-RM001D-EN-P - September 2011...
  • Page 256 For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Data Files Function Files Address Level Mode Parameter Slot • • • • Mask • • • • • • • • • Length • Publication 1763-RM001D-EN-P - September 2011...
  • Page 257 For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Data Files Function Files Address Level Mode Parameter Slot • • • • Mask • • • • • • • • • Length • Publication 1763-RM001D-EN-P - September 2011...
  • Page 258 ATTENTION: The watchdog and scan timers are reset when executing the REF instruction. You must insure that the REF instruction is not placed inside a non-terminating program loop. Do not place the REF instruction inside a program loop unless the program is thoroughly analyzed. Publication 1763-RM001D-EN-P - September 2011...
  • Page 259 The Micrologix 1100 supports the following User Interrupts: • User Fault Routine • Event Interrupts (4) • High-Speed Counter Interrupts • Selectable Timed Interrupt (1) The MicroLogix 1100 has one HSC Interrupt. Publication 1763-RM001D-EN-P - September 2011...
  • Page 260 When Can the Controller Operation be Interrupted? The Micrologix 1100 controllers only allow interrupts to be serviced during certain periods of a program scan. They are: • At the start of a ladder rung Publication 1763-RM001D-EN-P - September 2011...
  • Page 261 The priorities from highest to lowest are: User Fault Routine highest priority Event Interrupt 0 Event Interrupt 1 High-Speed Counter Interrupt 0 Event Interrupt 2 Event Interrupt 3 Selectable Timed Interrupt lowest priority Publication 1763-RM001D-EN-P - September 2011...
  • Page 262 S:29. If the fault is recoverable, the routine can be used to correct the problem and clear the fault bit S:1/13. The controller then continues in its current executing mode. The routine does not execute for non-user faults. Publication 1763-RM001D-EN-P - September 2011...
  • Page 263 The INT instruction is used as a label to identify a user interrupt service routine (ISR). This instruction is placed as the first instruction on a rung and is always evaluated as true. Use of the INT instruction is optional. Publication 1763-RM001D-EN-P - September 2011...
  • Page 264 • • • • (1) See Important note about indirect addressing. You cannot use indirect addressing with: S, ST, MG, PD, RTC, HSC, PTO, IMPORTANT PWM, STI, EII, BHI, MMI, CS, IOS, and DLS files. Publication 1763-RM001D-EN-P - September 2011...
  • Page 265 4. Enter the sum into the UID instruction. For example, to disable EII Event 1 and EII Event 3: EII Event 1 = 32, EII Event 3 = 4 32 + 4 = 36 (enter this value) Publication 1763-RM001D-EN-P - September 2011...
  • Page 266 ATTENTION: If you enable interrupts during the program scan via an OTL, OTE, or UIE, this instruction must be the last instruction executed on the rung (last instruction on last branch). It is recommended this be the only output instruction on the rung. Publication 1763-RM001D-EN-P - September 2011...
  • Page 267 4. Enter the sum into the UIF instruction. For example, to disable EII Event 1 and EII Event 3: EII Event 1 = 32, EII Event 3 = 4 32 + 4 = 36 (enter this value) Publication 1763-RM001D-EN-P - September 2011...
  • Page 268 4. The controller then scans the logic in the STI program file. 5. When the STI file scan is completed, the controller returns to where it was prior to the interrupt and continues normal operation. Publication 1763-RM001D-EN-P - September 2011...
  • Page 269 Data Format Type User Program Access ER - Error Code STI:0.ER word (INT) status read only Error codes detected by the STI sub-system are displayed in this register. The table below explains the error codes. Publication 1763-RM001D-EN-P - September 2011...
  • Page 270 The controller can process 1 active and maintain up to 2 pending user interrupt conditions before it sets the lost bit. This bit is set by the controller. It is up to the control program to utilize, track if necessary, and clear the lost condition. Publication 1763-RM001D-EN-P - September 2011...
  • Page 271 The auto start bit is configured with the programming device and stored as part of the user program. The auto start bit automatically sets the STI Timed Interrupt Enable (TIE) bit when the controller enters any executing mode. Publication 1763-RM001D-EN-P - September 2011...
  • Page 272 Within the function file section of RSLogix 500, the user sees an EII folder. Within the folder are four EII elements. Each of these elements (EII:0, EII:1, EII:2, and EII:3) are identical; this explanation uses EII:0 as shown below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 273 (bit) control read only ED - Error Detected EII:0/ED binary (bit) status read only ES - Edge Select EII:0/ES binary (bit) control read only IS - Input Select EII:0.IS word (INT) control read only Publication 1763-RM001D-EN-P - September 2011...
  • Page 274 Program file number is less than 3, greater than 255, or does not Number exist Invalid Input Valid numbers must be 0, 1, 2, 3, 4, 5, 6, or 7. Selection Input Selection EIIs cannot share inputs. Each EII must have a unique input. Overlap Publication 1763-RM001D-EN-P - September 2011...
  • Page 275 The controller can process 1 active and maintain up to 2 pending user interrupt conditions before it sets the lost bit. This bit is set by the controller. It is up to the control program to utilize, track, and clear the lost condition. Publication 1763-RM001D-EN-P - September 2011...
  • Page 276 The auto start bit is configured with the programming device and stored as part of the user program. The auto start bit automatically sets the EII Event Interrupt Enable (EIE) bit when the controller enters any executing mode. Publication 1763-RM001D-EN-P - September 2011...
  • Page 277 The IS (Input Select) parameter is used to configure each EII to a specific input on the controller. Valid inputs are 0 to 7, which correspond to I1:0.0/0 to I1:0.0/7. This parameter is configured with the programming device and cannot be changed from the control program. Publication 1763-RM001D-EN-P - September 2011...
  • Page 278 Using Interrupts Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 279 The PID equation controls the process by sending an output signal to the control valve. The greater the error between the setpoint and process variable input, the greater the output signal. Alternately, the smaller the Publication 1763-RM001D-EN-P - September 2011...
  • Page 280 PLC 5 Gain Range (RG) on page 294. The derivative term (rate) provides smoothing by means of a low-pass filter. The cut-off frequency of the filter is 16 times greater than the corner frequency of the derivative term. Publication 1763-RM001D-EN-P - September 2011...
  • Page 281 PD element. Each PD element is composed of 20 sub-elements, which include bit, integer and long integer data. All of the examples in this chapter use PD file 10 sub-element 0. PD file created by RSLogix 500. Publication 1763-RM001D-EN-P - September 2011...
  • Page 282 B3:0 0047 PID File PD8:0 Process Variable N7:0 Control Variable N7:1 Setup Screen When programming, the setup screen provides access to the PID instruction configuration parameters. The illustration below shows the RSLogix 500 setup screen. Publication 1763-RM001D-EN-P - September 2011...
  • Page 283 CVL - Control Variable Low Limit PD10:0.CVL word (INT) 0 to 100% control read/write (1) The range listed in the table is for when scaling is not enabled. With scaling, the range is from minimum scaled (MINS) to maximum scaled (MAXS). Publication 1763-RM001D-EN-P - September 2011...
  • Page 284 Maximum (INT) If the SPV is read in engineering units, then the MAXS (Setpoint Maximum) parameter corresponds to the value of the setpoint in engineering units when the control input is at its maximum value. Publication 1763-RM001D-EN-P - September 2011...
  • Page 285 -32,768 to +32,767 status read only Setpoint Value (INT) The OSP (Old Setpoint Value) is substituted for the current setpoint, if the current setpoint goes out of range of the setpoint scaling (limiting) parameters. Publication 1763-RM001D-EN-P - September 2011...
  • Page 286 When the output limit bit (PD10:0/OL) is disabled (0), the CVH value you enter determines when the upper limit alarm bit (UL) is set. If CV exceeds the maximum value, the output is not overridden and the upper limit alarm bit (UL) is set. Publication 1763-RM001D-EN-P - September 2011...
  • Page 287 CV - Control Variable User-defined word (INT) 0 to 16,383 control read/write The CV (Control Variable) is user-defined. See the ladder rung below. 0000 PID File PD10:0 Process Variable N7:0 Control Variable N7:1 Setup Screen Publication 1763-RM001D-EN-P - September 2011...
  • Page 288 If the SPV is configured to be read in engineering units, then this parameter corresponds to the value of the process variable in engineering units. See Analog I/O Scaling on page 299 for more information on scaling. Publication 1763-RM001D-EN-P - September 2011...
  • Page 289 (when RG = 0), or 0 to 327.67 (when RG = 1). Set this gain to one-half the value needed to cause the output to oscillate when the reset and rate terms (below) are set to zero. Publication 1763-RM001D-EN-P - September 2011...
  • Page 290 327.67 minutes. Set this value to 1/8 of the integral gain T This word is not effected by the reset and gain range (RG) bit. For information, see PLC 5 Gain Range (RG) on page 294. Publication 1763-RM001D-EN-P - September 2011...
  • Page 291 When in STI mode, this value must equal the STI time interval value loaded in STI:0.SPM. The valid range is 0.01 to 10.24 seconds. Publication 1763-RM001D-EN-P - September 2011...
  • Page 292 Scaled error is the difference between the process variable and the setpoint. The format of the difference (E = SP-PV or E = PV-SP) is determined by the control mode (CM) bit. See Control Mode (CM) on page 293. Publication 1763-RM001D-EN-P - September 2011...
  • Page 293 Data Format Range Type User Program Descriptions Access DB - PV in Deadband PD10:0/DB binary (bit) 0 or 1 status read/write This bit is set (1) when the process variable is within the zero-crossing deadband range. Publication 1763-RM001D-EN-P - September 2011...
  • Page 294 Setpoint Scaling (SC) Tuning Parameter Address Data Format Range Type User Program Descriptions Access SC - Setpoint Scaling PD10:0/SC binary (bit) 0 or 1 control read/write The SC bit is cleared when setpoint scaling values are specified. Publication 1763-RM001D-EN-P - September 2011...
  • Page 295 Descriptions Access UL - CV Upper Limit Alarm PD10:0/UL binary (bit) 0 or 1 status read/write The control variable upper limit alarm bit is set when the calculated CV output exceeds the upper CV limit. Publication 1763-RM001D-EN-P - September 2011...
  • Page 296 PV - PV Out of Range PD10:0/PV binary (bit) 0 or 1 status read/write The process variable out of range bit is set (1) when the unscaled process variable • exceeds 16,383, or • is less than zero. Publication 1763-RM001D-EN-P - September 2011...
  • Page 297 AD - Altered PD10:0.AD long word -2,147,483,648 to status read only Derivative Term (32-bit INT) 2,147,483,647 This long word is used internally to track the change in the process variable within the loop update time. Publication 1763-RM001D-EN-P - September 2011...
  • Page 298 0 < output low limit < output high limit < 100 2. Output low limit > 100 Output low limit > output high limit Change output low limit to 0 < output low limit < output high limit < 100 Publication 1763-RM001D-EN-P - September 2011...
  • Page 299 I/O module. The configuration for the analog output is virtually identical. Simply address the PID control variable (CV) to the analog output address and configure the analog output to “Scaled for PID” behavior. Publication 1763-RM001D-EN-P - September 2011...
  • Page 300 0 to 16383. The Control Output (word 16 of the control block) has the range of 0 to 100%. You can set lower and upper limits for the instruction’s calculated output values (where an upper limit of 100% corresponds to a Control Variable limit of 16383). Publication 1763-RM001D-EN-P - September 2011...
  • Page 301 CV output is always between 0 and 16383. When you select scaling, the instruction scales the setpoint, deadband, process variable, and error. You must consider the effect on all these variables when you change scaling. Publication 1763-RM001D-EN-P - September 2011...
  • Page 302 (CVH) and lower alarm (CVL). Alarm values are specified as a percentage of the output. If you do not want alarms, enter zero and 100% respectively for lower and upper alarm values and ignore the alarm bits. Publication 1763-RM001D-EN-P - September 2011...
  • Page 303 0 to 16383, not 0 to 100. Writing to the CV percent (CVP) with your ladder program has no effect in the MANUAL mode. PID Rung State If the PID rung is false, the integral sum (IS) is cleared and CV remains in its last state. Publication 1763-RM001D-EN-P - September 2011...
  • Page 304 1. Create your ladder program. Make certain that you have properly scaled your analog input to the range of the process variable PV and that you have properly scaled your control variable CV to your analog output. Publication 1763-RM001D-EN-P - September 2011...
  • Page 305 1 cycle. That is, obtain the natural period of the process. Natural Period ≅ 4x deadtime Record the gain value. Return to the MANUAL mode (stop the process if necessary). Publication 1763-RM001D-EN-P - September 2011...
  • Page 306 To ensure that your process is linear, and that your equipment is properly connected and scaled, do the following: 1. Place the PID instruction in MANUAL and enter the following parameters: – type: 0 for MinS – type: 100 for MaxS Publication 1763-RM001D-EN-P - September 2011...
  • Page 307 Make the necessary corrections and repeat steps 2-10. Determining the Initial Loop Update Time To determine the approximate loop update time that should be used for your process, perform the following: 1. Place the normal application values in MinS and MaxS. Publication 1763-RM001D-EN-P - September 2011...
  • Page 308 STI time interval. Enter the optional settings that apply (output limiting, output alarm, MaxS - MinS scaling, feed forward). 8. Return to page 305 and complete the tuning procedure starting with step 4. Publication 1763-RM001D-EN-P - September 2011...
  • Page 309 ARL - ASCII Read Line Read one line of characters from the input buffer and place them into a string. ASC - String Search Search a string. ASR - ASCII String Compare Compare two strings. Publication 1763-RM001D-EN-P - September 2011...
  • Page 310 16 instructions. The ASCII queue operates as follows: • When the instruction is encountered on a rung and the ASCII queue is empty, the instruction executes immediately. It may take several program scans for the instruction to complete. Publication 1763-RM001D-EN-P - September 2011...
  • Page 311 However, you can use the AWA and AWT instructions with DF1 Full-Duplex protocol. This functionality is provided for backward compatibility with the legacy devices which are configured for DF1 Full-Duplex protocol to receive ASCII data from a controller. Publication 1763-RM001D-EN-P - September 2011...
  • Page 312 String Length - number of characters (range is from 0 to 82) character 0 character 1 character 2 character 3 ↓ ↓ ↓ character 78 character 79 character 80 character 81 Publication 1763-RM001D-EN-P - September 2011...
  • Page 313 (3) DN = Asynchronous Done Bit - is set when an instruction successfully completes its operation. (4) EM = Synchronous Done Bit - not used (5) ER = Error Bit - when set, indicates that an error occurred while executing the instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 314 Execution Time for the ACL Instruction Ascii Clear Buffers Channel Controller When Instruction Is: Transmit Buffer Receive Buffer True False MicroLogix 1100 clear buffers: both 61.46 μs 0.87 μs receive 20.3 μs 0.87 μs transmit 23.2 μs 0.87 μs Publication 1763-RM001D-EN-P - September 2011...
  • Page 315 ACL Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Function Files Address Level Data Files Mode Parameter Channel • • Receive Buffer • • Publication 1763-RM001D-EN-P - September 2011...
  • Page 316 For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Data Files Function Files Address Level Mode Parameter Source • • • • • • • • • • • Destination • • • Publication 1763-RM001D-EN-P - September 2011...
  • Page 317 Enter the following parameters when programming this instruction: • Channel is the number of the RS-232 port, Channel 0. • Source is the string element you want to write. • Control is the control data file. See page 313. Publication 1763-RM001D-EN-P - September 2011...
  • Page 318 R6:23 If input slot 1, bit 10 is set, read 25 characters from String Length ST37:42 and write it to the display device. Then Characters Sent write a carriage return and line feed (default). Error Publication 1763-RM001D-EN-P - September 2011...
  • Page 319 RUN mode. This instruction executes on a true rung. Once started, if the rung goes false, the instruction continues to completion. If you want to repeat this instruction, the rung must transition from false-to-true. Publication 1763-RM001D-EN-P - September 2011...
  • Page 320 Address Function Files Address Level Data Files Mode Parameter Channel • • Source • • • Control • • • (1) The Control data file is the only valid file type for the Control Element. Publication 1763-RM001D-EN-P - September 2011...
  • Page 321 On a false-to-true transition, the controller reports the number of characters in the POS field of the control data file. The channel configuration must be set to ASCII. Publication 1763-RM001D-EN-P - September 2011...
  • Page 322 The Done bit (DN) is then set. If a zero appears in the POS field, no termination characters were found. The Found bit (FD) is set if the POS field is set to a non-zero value. Publication 1763-RM001D-EN-P - September 2011...
  • Page 323 For definitions of the terms used in this table see Using the Instruction Descriptions on page 82. Address Function Files Address Level Data Files Mode Parameter Channel • • Control • • • (1) The Control data file is the only valid file type for the Control Element. Publication 1763-RM001D-EN-P - September 2011...
  • Page 324 The data range is from -32,768 to 32,767 if the destination is a word and from -2,147,483,648 to 2,147,483,647 if the destination is a long word. Addressing Modes and File Types can be used as shown below: Publication 1763-RM001D-EN-P - September 2011...
  • Page 325 ACN - String Concatenate Execution Time for the ACN Instruction String Concatenate Source A ST10:11 Controller When Instruction Is: Source B ST10:12 Dest ST10:10 True False 50.15 μs + 0.11 μs/ 0.87 μs MicroLogix 1100 character Publication 1763-RM001D-EN-P - September 2011...
  • Page 326 Instruction Type: output AEX - String Extract String Extract Source ST10:0 Execution Time for the AEX Instruction Index Number Controller When Instruction Is: Dest ST10:3 True False 51.9 μs + 0.11 μs/character 0.87 μs MicroLogix 1100 Publication 1763-RM001D-EN-P - September 2011...
  • Page 327 Instruction Operation This instruction executes on a true rung. The following conditions cause the controller to set the ASCII String Manipulation Error bit (S:5/15): • Source string length is less than 1 or greater than 82 Publication 1763-RM001D-EN-P - September 2011...
  • Page 328 This status is read-only and resides in the .POS field in the control data file. The following shows how to determine the channel status value. In this example, the value is 001F. Publication 1763-RM001D-EN-P - September 2011...
  • Page 329 ARD - ASCII Read Characters Execution Time for the ARD Instruction ASCII Read Controller When Instruction Is: Channel Dest ST10:4 True False Control R6:3 13.96 μs/character 14.25 μs String Length 10< MicroLogix 1100 Characters Read 0< Error 0< Publication 1763-RM001D-EN-P - September 2011...
  • Page 330 Address Function Files Address Level Data Files Mode Parameter Channel • • Destination • • • Control • • • (1) The Control data file is the only valid file type for the Control Element. Publication 1763-RM001D-EN-P - September 2011...
  • Page 331 The maximum is 82 characters. If you specify a length larger than 82, only the first 82 characters are read and moved to the destination. (A length of “0” defaults to 82.) This is word 1 in the control data file. Publication 1763-RM001D-EN-P - September 2011...
  • Page 332 Done bit (DN) is set and the number of characters found is stored in the POS word of the control data file. For information on the timing of this instruction, see the timing diagram on page 336. Publication 1763-RM001D-EN-P - September 2011...
  • Page 333 • • Index • • • • Search • • • Result • • • • • • • • (1) The Control data file is the only valid file type for the Control Element. Publication 1763-RM001D-EN-P - September 2011...
  • Page 334 Entering Parameters Enter the following parameters when programming this instruction: • Source A is the location of the first string used for comparison. • Source B is the location of the second string used for comparison. Publication 1763-RM001D-EN-P - September 2011...
  • Page 335 (1) The Control data file is the only valid file type for the Control Element. Instruction Operation If the string length of Source A or Source B exceeds 82 characters, the ASCII String Manipulation Error bit (S:5/15) is set and the rung goes false. Publication 1763-RM001D-EN-P - September 2011...
  • Page 336 • Positive value symbol (+) and leading zeros are not printed. Negative values (-) are printed with a leading minus sign. Commas are not inserted where they would normally appear in numbers greater than one thousand. Publication 1763-RM001D-EN-P - September 2011...
  • Page 337 ASCII transmission is already in progress. 0x09 Type of ASCII communications operation requested is Reconfigure the channel and retry operation. not supported by the current channel configuration. 0x0A The unload bit (UL) is set, stopping instruction None required. execution. Publication 1763-RM001D-EN-P - September 2011...
  • Page 338 (either a negative number or a number greater than 82). 0x0E Execution of an ACL instruction caused this None required. instruction to abort. 0x0F Communications channel configuration was changed None required. while instruction was in progress. Publication 1763-RM001D-EN-P - September 2011...
  • Page 339 (7F hex). The MicroLogix 1100 Controller also supports an extended character set (decimal 128 to 255). However, the extended character set may display different characters depending on the platform you are using. Decimal values 0 through 31 are also assigned Ctrl- codes. Publication 1763-RM001D-EN-P - September 2011...
  • Page 340 ASCII Instructions Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 341 Interrupt the program scan to execute the service communications part of the operating cycle. The scan then resumes at the instruction following the SVC instruction. Transfer data from one device to another. The communication architecture is comprised of three primary Messaging Overview components: Publication 1763-RM001D-EN-P - September 2011...
  • Page 342 The controller initiates read and write messages through available communication channels when configured for the following protocols: • DH-485 • DF1 Full-Duplex Publication 1763-RM001D-EN-P - September 2011...
  • Page 343 Communications Instructions • DF1 Half-Duplex Master • DF1 Half-Duplex Slave • DF1 Radio Modem • Modbus RTU Master • Ethernet For a description of valid communication protocols, see Knowledgebase Quick Starts on page 541. Publication 1763-RM001D-EN-P - September 2011...
  • Page 344 Selection on page 359 for more information. For best results, place the SVC instruction in the middle of the control program. You may not place an SVC instruction in a Fault, DII, STI, or I/ O Event subroutine. Publication 1763-RM001D-EN-P - September 2011...
  • Page 345 The SVC instruction is used when you want to execute a communication function, such as transmitting a message, prior to the normal service communication portion of the operating scan. CS0:4 Service Communications 0000 Channel Select 0001h Publication 1763-RM001D-EN-P - September 2011...
  • Page 346 If B3:0 is on (1), the MSG rung is true, and MG11:0 is not already processing a message; then MG11:0 is processed. If one of the four buffers is available, the message and its associated data are processed immediately. Publication 1763-RM001D-EN-P - September 2011...
  • Page 347 Modbus Master: bits 07-00 (Function Code), bits 15-08 (reserved) Internal Physical Address Word read only MG11:0.RBL PCCC: Remote Bridge Link ID Word read only Modbus Master: not used MG11:0.LBN PCCC: Local Bridge Node Address Word read only Modbus Master: not used Publication 1763-RM001D-EN-P - September 2011...
  • Page 348 Fail Code returned by the SMTP sub-system for MicroLogix 1100 Series B. Extended Status Error Code from expansion I/O communications module. Supplemental Routing Path Data Address: bits 7 to 0: Starting Element, bits 15 to 8: File Number Publication 1763-RM001D-EN-P - September 2011...
  • Page 349 Target File Element Number for Word read only O and I files. Set to zero for any file other than O or I. (1) The file number for RTC function files is set to 0 by the programming software. Publication 1763-RM001D-EN-P - September 2011...
  • Page 350 Target Instance Word read/write CIP Send Data Count Word read/write Internal Physical Address of Word read only CIP Send Data Table Address operand The Control Bits, Sub-Element 16, of the MSG File Element are defined below: Publication 1763-RM001D-EN-P - September 2011...
  • Page 351 For Channel 1, 1=MSG Connection closed by user 0=MSG Connection not closed by user (MicroLogix 1100 OS Series B FRN 4 or later) The Status Bits, Sub-Element 17, of the MSG File Element are defined below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 352 Enabled and Waiting: 1=MSG Enabled and Waiting 0=MSG not Enabled and Waiting 1 to Reserved read only MG11:0.0/R For PCCC Messaging: read only Range (1 = Local, 0 = Remote) For Modbus Messaging: Range (1 = Local) Publication 1763-RM001D-EN-P - September 2011...
  • Page 353 When the timer times out, you can set the TO bit, which removes the message from the system. The controller resets the TO bit the next time the associated MSG rung goes from false to true. Publication 1763-RM001D-EN-P - September 2011...
  • Page 354 (not in the queue) and waiting to be sent. The EW bit is cleared after the message has been sent and the processor receives acknowledgement (ACK) from the target device. This is before the target device has processed the message and sent a reply. Publication 1763-RM001D-EN-P - September 2011...
  • Page 355 When the Break bit is used by the true, the Ethernet/IP connection will be closed after the MSG instruction is processed. If set to 0 value, the Ethernet/IP connection will remain even if the MSG instruction sent successfully.(MicroLogix 1100 OS Series B FRN 4 or later only) Publication 1763-RM001D-EN-P - September 2011...
  • Page 356 MSG Timeout period begins timing when the EN bit is set (1). If the timeout period expires before the MSG instruction completes its function, the ER bit is set (1), and an error code (37H) is placed in the MG File to inform you of the timeout error. Publication 1763-RM001D-EN-P - September 2011...
  • Page 357 If the Target Node faults or power cycles during the message transaction, you will never receive a reply. This is why you should use a Message Timeout value in your MSG instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 358 6. If the DN or ER bit is set (1) and the MSG rung is false, the EN bit is cleared (0) the next time the message instruction is scanned. See MSG Instruction Ladder Logic on page 360 for examples using the message instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 359 Message Servicing Selection is set (checked), First the incoming channel 0 or channel 1 message reply; then one outgoing channel 0 or channel 1 message on the overflow queue. • All remaining incoming channel 0 or channel 1 commands. Publication 1763-RM001D-EN-P - September 2011...
  • Page 360 For example, when the DN or ER bit is set. 0000 Read/Write Message MSG File MG11:0 Setup Screen Message Done Bit Message Enable Bit MG11:0 MG11:0 0001 Message Error Bit MG11:0 0002 Publication 1763-RM001D-EN-P - September 2011...
  • Page 361 Remote messages use a remote network, where devices are accessible only by passing or routing through a device to another network. Remote networks are discussed on page 388. Local Networks The following three examples represent different types of local networks. Publication 1763-RM001D-EN-P - September 2011...
  • Page 362 MicroLogix 1500 Example 2 - Local DeviceNet Network with DeviceNet Interface (1761-NET-DNI) SLC 5/03 with 1747-SDN PanelView 550 PanelView DANGER DANGER Master DeviceNet Network Personal Computer DANGER DANGER DANGER DANGER MicroLogix 1000 MicroLogix 1100 MicroLogix 1500 Publication 1763-RM001D-EN-P - September 2011...
  • Page 363 Read/Write Message MSG File MG11:0 Setup Screen The RSLogix Message Setup Screen is shown below. This screen is used to setup “This Controller”, “Target Device”, and “Control Bits”. Descriptions of each of the elements follow. Publication 1763-RM001D-EN-P - September 2011...
  • Page 364 Channel 0 is the RS-232/RS-485 port and Channel 1 is the Ethernet port. If Channel 0 is selected with that channel configured for Modbus RTU Master, then the next line will display “Modbus Command”. Otherwise, the next line displays “Communication Command”. Publication 1763-RM001D-EN-P - September 2011...
  • Page 365 (1) See Important note below. The Common Interface File (CIF) in the MicroLogix 1100, 1200, 1500, IMPORTANT and SLC 500 processors is File 9. The CIF in the MicroLogix 1000 controller is Integer File 7. Publication 1763-RM001D-EN-P - September 2011...
  • Page 366 04 Read Input Registers reading words 05 Write Single Coil writing 1 bit 06 Write Single Register writing 1 word 15 Write Multiple Coil writing multiple bits 16 Write Multiple Registers writing multiple words Publication 1763-RM001D-EN-P - September 2011...
  • Page 367 Floating Point (F) and Long (L) file types are valid for Modbus Command messages for Holding Registers (commands 03, 06 and 16) when Data is configured for 32 bit. Size in Elements This variable defines the amount of data (in elements) to exchange with the target device. Publication 1763-RM001D-EN-P - September 2011...
  • Page 368 Elements per Message 485CIF O, I, B, N 1-word 2-word T, C, R 3-word (1) (2) 42-word 2 (write only 500CPU O, I, B, N 1-word 2-word T, C, R 3-word 8-word 1 (write only) 42-word Publication 1763-RM001D-EN-P - September 2011...
  • Page 369 (1) MicroLogix 1100 Series B FRN 4 or later. (2) Message Type must be 500CPU or PLC5. The Local File Type and Target File Type must both be Floating Point. (3) MicroLogix 1100 OS Series A FRN3 Publication 1763-RM001D-EN-P - September 2011...
  • Page 370 If the message timeout is set to zero, the message instruction will never timeout. Set the Time Out bit (TO = 1) to flush a message instruction from its buffer if the destination device does not respond to the communications request. Publication 1763-RM001D-EN-P - September 2011...
  • Page 371 • contacts (1xxxx) • input registers (3xxxx) • holding registers (4xxxx) Coils and contacts are addressed at the bit level. Coils are outputs and can be read and written. Contacts are inputs and are read-only. Publication 1763-RM001D-EN-P - September 2011...
  • Page 372 1761-NET-DNI), DF1 Half-Duplex, or DF1 Radio Modem. For DH-485, use local if the target node is on the same DH-485 network as this controller, or remote if the path to the target node goes through one or more communication bridges. Publication 1763-RM001D-EN-P - September 2011...
  • Page 373 • 500CPU message type • 485CIF message type • PLC5 message type • Modbus RTU Message type • EtherNet/IP Message type A summary of the message instruction configuration parameters is shown in the following table. Publication 1763-RM001D-EN-P - September 2011...
  • Page 374 • Timer (500CPU and 485CIF), Counter, and Control elements; valid size: 1 to 34. • PLC-5 Timer elements; valid size: 1 to 20 • Modbus bit elements: 1 to 1920 • Modbus register elements: 1 to 120 Publication 1763-RM001D-EN-P - September 2011...
  • Page 375 (1) MicroLogix 1100 OS Series A FRN3, 485CIF write ST-to-485CIF only. (2) 500CPU write RTC-to-Integer or RTC-to-RTC only. (3) MicroLogix 1100 Series B FRN 4 or later. Example 1 - Local Read from a 500CPU Message Instruction Setup Publication 1763-RM001D-EN-P - September 2011...
  • Page 376 (1) Output and input data types are not valid local data types for read messages. (2) 500CPU write RTC-to-Integer or RTC-to-RTC only. (3) MiroLogix 1100 OS Series B FRN 4 or later. Example 2 - Local Read from a 485CIF Message Instruction Setup Publication 1763-RM001D-EN-P - September 2011...
  • Page 377 485CIF <---> read/write 485CIF <---> read/write 485CIF <---> read/write 485CIF (1) Output and input data types are not valid local data types for read messages. (2) MicroLogix 1100 OS Series B FRN 4 or later. Publication 1763-RM001D-EN-P - September 2011...
  • Page 378 , B, N, L <---> read/write <---> read/write <---> read/write <---> read/write (1) Output and input data types are not valid local data types for read messages. (2) MicroLogix 1100 OS Series B FRN 4 or later. Publication 1763-RM001D-EN-P - September 2011...
  • Page 379 1. Access the message setup screen by double-clicking Setup Screen. 2. The RSLogix 500 Message Setup Screen appears. This screen is used to setup or monitor message parameters for “This Controller”, “Target Device”, and “Control Bits”. Descriptions of each of these sections follow. Publication 1763-RM001D-EN-P - September 2011...
  • Page 380 Slave Node Address (decimal) The default Slave Node Address is 1. The Range is 0 to 247. Zero is the Modbus broadcast address and is only valid for Modbus write commands (5, 6, 15 and 16). Publication 1763-RM001D-EN-P - September 2011...
  • Page 381 1. Access the message setup screen by double-clicking Setup Screen. 2. The RSLogix 500 Message Setup Screen appears. This screen is used to setup or monitor message parameters for “This Controller”, “Target Device”, and “Control Bits”. Descriptions of each of these sections follow. Publication 1763-RM001D-EN-P - September 2011...
  • Page 382 500CPU, 485CIF, PLC5 and CIP Generic[ . Refer to the previous examples for the usage of each command. (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001D-EN-P - September 2011...
  • Page 383 Each RI File Element consists of Sub-Elements 0 through 19 as shown in the following table. To reach another MicroLogix 1100, an SLC 5/05, a PLC-5E or a controller connected to Ethernet via a 1761-NET-ENI, simply enter in the destination IP address. Publication 1763-RM001D-EN-P - September 2011...
  • Page 384 RI element number. Each Channel 1 Ethernet MSG Instruction must have its own RIx:y. If the RIx:y entered in the MSG setup screen does not yet exist, then the programming software will automatically create it when the rung is verified. Publication 1763-RM001D-EN-P - September 2011...
  • Page 385 Ethernet interface, then enter in the interface’s IP address in the first row of the “To Address” column, press the computer’s Insert key to add a hop. Select ControlLogix Backplane and enter in the Publication 1763-RM001D-EN-P - September 2011...
  • Page 386 ControlLogix) in the second row of the “To Address” column as shown below under the MultiHop tab. Double click on the From Device under the ControlLogix Backplane and select the 1756-ControlNet Interface. Enter the address of the ControlNet Interface using 1747-KFC15. Publication 1763-RM001D-EN-P - September 2011...
  • Page 387 1756-L1 via 1756-ENBT module. A message read will also work. The “rcv_string” tag on the ControlLogix controller is created as a string type and mapped PLC/SLC mapping table to allow the controller to accept those messages. Publication 1763-RM001D-EN-P - September 2011...
  • Page 388 DH+ network and it can initiate a message to any node on the DH+ network. The MicroLogix 1000 can respond to remote message requests, but it cannot initiate them. The MicroLogix 1100 capabilities are the same as the MicroLogix 1200 or MicroLogix 1500 in this example. Publication 1763-RM001D-EN-P - September 2011...
  • Page 389 CHS GND SHLD CHS GND DC SOURCE DC SOURCE CABLE CABLE DC SOURCE EXTERNAL EXTERNAL CABLE EXTERNAL MicroLogix 1000 MicroLogix 1200 MicroLogix 1100 SLC 5/04 DH+ Network Node 19 Node 51 Node 40 SLC 5/04 PLC-5 Publication 1763-RM001D-EN-P - September 2011...
  • Page 390 CHS GND CHS GND SHLD CHS GND DC SOURCE DC SOURCE DC SOURCE CABLE CABLE CABLE DC SOURCE CABLE EXTERNAL EXTERNAL EXTERNAL EXTERNAL MicroLogix 1100 MicroLogix 1200 MicroLogix 1500 SLC 5/05 Ethernet Network SLC 5/05 PLC-5E Publication 1763-RM001D-EN-P - September 2011...
  • Page 391 SLC 5/04 (node 51 on the DH+ network) starting at address N:50:0. The SLC 5/04 at Node 23 of the DH+ network is configured for passthru operation. The MicroLogix 1100 capabilities are the same as the MicroLogix 1200 or MicroLogix 1500 in this example. Publication 1763-RM001D-EN-P - September 2011...
  • Page 392 See “Target Device” Parameters on page 370. “Control Bits” Parameters See “Control Bits” Parameters on page 353. “Target Device” Parameters Message Timeout See Message Timeout on page 370. Data Table Address See Data Table Address/Offset on page 371. Publication 1763-RM001D-EN-P - September 2011...
  • Page 393 Link ID 100 must use the remote bridge link ID of the passthru device. In this example, the SLC 5/04 on Link ID1, node 17 is the passthru device. Publication 1763-RM001D-EN-P - September 2011...
  • Page 394 A user can configure a multi-hop remote message in the RSLogix500 Configuring a Multi-hop Message Setup screen. Remote Message on EtherNet/IP Communication Channel Publication 1763-RM001D-EN-P - September 2011...
  • Page 395 Belden 9463 "Blue Hose" cable is used to connect the DH+ devices on the network. Ethernet cable and an Ethernet hub are used to connect the ENET module and the MicroLogix 1100 CH1 Ethernet ports together. MicroLogix 1100 CH1 Configuration Publication 1763-RM001D-EN-P - September 2011...
  • Page 396 Communications Instructions DHRIO Routing table creation To create a DHRIO Routing table open up RSLinx and under Communication select RSWho. Select a driver that will allow you to see and connect up to the DHRIO module. Publication 1763-RM001D-EN-P - September 2011...
  • Page 397 2. Select OK. Channel B is actually not necessary. Right click on the Backplane and left click on Add Module. Left click on 1756-ENET. Enter the correct slot number 2 and Link ID 16 for the ENET module. Publication 1763-RM001D-EN-P - September 2011...
  • Page 398 Left click on AB PLC. Enter the IP address (100.100.115.1) for the destination Ethernet processor and its Link ID (24). The Configuration should now look like the following. The following is the logic necessary for the MicroLogix 1100 processor. Publication 1763-RM001D-EN-P - September 2011...
  • Page 399 Click on the ControlLogix Backplane to highlight it and press the Insert key on your computer’s keyboard to add another hop. Double click on the From Device under the ControlLogix Backplane and select the 1756-DHRIO. Publication 1763-RM001D-EN-P - September 2011...
  • Page 400 ENET module, a ControlLogix chassis (Gateway), a DHRIO module and a 1785-KA5 bridge device. In order for the message to pass through the network, a multiHop MSG must be setup Publication 1763-RM001D-EN-P - September 2011...
  • Page 401 DH485 network, the DHRIO module must be configured using the ControlLogix Gateway Configuration tool. For example, if a 1785-KA5 bridge is on a DH+ network at node 37 and the DH485 LinkID is 13, complete the following: DHRIO Routing table creation Publication 1763-RM001D-EN-P - September 2011...
  • Page 402 DH+ node number of the KA5 (37 in this example), and the Link ID of the DH485 (13 in this example). Click Apply. You can now browse through the KA5 module from RSWho. ML1100 Channel1 Configuration The following is the message setup screen for the MicroLogix 1100 controller. Publication 1763-RM001D-EN-P - September 2011...
  • Page 403 To Address. Press the Insert key to add another hop. Double click on the From Device and select Remote(DH/DH+/DH-485). Enter in the destination node address (DH+ octal address of target processor) under the To Address. Publication 1763-RM001D-EN-P - September 2011...
  • Page 404 • Configure a new DDE/OPC topic in RSLinx for unsolicited data. • Configure Remote Routing Configuration. • Configure the DDE topic and Item in RSLinx. • Configure the ML1100 MSG instruction 1. Configure a new DDE/OPC topic in RSLinx for unsolicited data Publication 1763-RM001D-EN-P - September 2011...
  • Page 405 Communications Instructions In RSLinx, select DDE/OPC menu, then select Topic Configuration. Click new, enter a topic name, and click OK. The DDE/OPC Topic Configuration dialog will appear. Publication 1763-RM001D-EN-P - September 2011...
  • Page 406 63(dec). The Remote ID should match the Network Link ID of the initiating ML1100, and must be unique between controllers initiating unsolicited messages to RSLinx: 3. Configure the DDE topic and Item in RSLinx 1. Connect to the RSLinx OPC Server: Publication 1763-RM001D-EN-P - September 2011...
  • Page 407 Communications Instructions 2. Add a new group: 3. Add a new item: 4. Note that the “Sub Quality” will be “Bad” until an unsolicited message is received: 4. Configure the ML1100 MSG instruction Publication 1763-RM001D-EN-P - September 2011...
  • Page 408 ML1100 Channel 1 Network Link ID must be matched with the DDE/OPC Topic Remote ID configured in step #2 (0, in this example). Also configure a Remote Ethernet MSG in the ML1100 to Remote Station Address 63 and Remote Link ID 15: Publication 1763-RM001D-EN-P - September 2011...
  • Page 409 Ethernet (OS Series B FRN 4 or later) The RSLogix Message Setup Screen is shown below. This screen is used to setup “This Controller”, “Target Device”, and “Control Bits”. Descriptions of each of the elements follow. Publication 1763-RM001D-EN-P - September 2011...
  • Page 410 Each RIX file Element consists of Sub-Elements 0 through 24 as shown in the following table. To reach another MicroLogix 1100, an SLC 5/05, a PLC-5E or a controller connected to Ethernet via 1761-ENI, simply enter in the destination IP address. Publication 1763-RM001D-EN-P - September 2011...
  • Page 411 Note that only the Service Code is filled in for the user. The Class, Instance, and Attribute must be filled in by the user just as the table below indicates with question marks in their corresponding columns. Publication 1763-RM001D-EN-P - September 2011...
  • Page 412 (consist of IP address, network mask, gateway address, DNS name) The controller reads 30 elements for a single attribute value from the ControlLogix controller. The 30 bytes are placed in the controller's integer file starting at word N7:0 Publication 1763-RM001D-EN-P - September 2011...
  • Page 413 Fail Code is stored in Word 22 of MG file. When messaging through CIP communication and the low byte is 0xE0, the high byte of this sub-element contains detailed Fail Code returned by the CIP sub-system. Status Code Reference: CIP Common Specification Appendix B: Status Codes Publication 1763-RM001D-EN-P - September 2011...
  • Page 414 Modbus Error 5: Acknowledge Modbus Error 6: Slave Device Busy Modbus Error 7: Negative Acknowledge Modbus Error 8: Memory Parity Error Modbus Error: Non-standard reply. Actual code returned can be found in the upper byte of sub-element 22. Publication 1763-RM001D-EN-P - September 2011...
  • Page 415 PCCC Description: Invalid parameter; invalid data in search or command block. PCCC Description: Address reference exists to deleted area. PCCC Description: Command execution failure for unknown reason; PLC-3 histogram overflow. PCCC Description: Data conversion error. Publication 1763-RM001D-EN-P - September 2011...
  • Page 416 MicroLogix 1100 supports Email Capability. These features can be done later) by sending the 485CIF write message to local IP Address with ST file type. Ethernet Channel Configuration Change Functionality Configure MSG Setup Screen to change Ethernet Channel Configuration Publication 1763-RM001D-EN-P - September 2011...
  • Page 417 Communications Instructions General MSG Setup Screen to change IP Address MultiHop Setup Screen to change IP Address Setup String Data File Publication 1763-RM001D-EN-P - September 2011...
  • Page 418 Flushes all DNS names in DNS Cache before TTL (Time to Live) timeout. String File configured in MSG instruction will be ignored. • Local / Remote : “Local / Remote” has no impact on the operation. Publication 1763-RM001D-EN-P - September 2011...
  • Page 419 Client Enable” check box is shown in the Ethernet Channel Configuration tab. If this check box is checked, SMTP configuration page will be appeared. Otherwise, SMTP configuration page will not be appeared. You must setup SMTP configuration before sending SMTP messages. Publication 1763-RM001D-EN-P - September 2011...
  • Page 420 Communications Instructions SMTP Client Enable Bit Setup Screen SMTP Configuration Setup Screen The following is an explanation of parameters to be configured: Publication 1763-RM001D-EN-P - September 2011...
  • Page 421 File. If String Text is entered, RSLogix500 updated the Length fields automatically. These parameters are non-editable in RUN mode. You can change them in offline or in online PROGRAM mode. Maximum of the characters for the string parameters are 62 bytes. Publication 1763-RM001D-EN-P - September 2011...
  • Page 422 SMTP message. Screen to send SMTP message General MSG Setup Screen for SMTP messaging The picture below shows MultiHop setup screen and configured e-mail subject and Body using ST file. MultiHop Setup Screen for SMTP messaging Publication 1763-RM001D-EN-P - September 2011...
  • Page 423 Send email to SMTP TO address [1] Used to trigger the SMTP message configured in SMTP configuration File. Send email to SMTP TO address [2] Used to trigger the SMTP message configured in SMTP configuration File. Publication 1763-RM001D-EN-P - September 2011...
  • Page 424 0x03DD From (reply) Address not configured or invalid. 0x04DD Unable to connect to SMTP mail server. 0x05DD Communication error with SMTP server. 0x06DD Authentication required. 0x07DD Authentication failed. 0x10DD SMTP Configuration File does not exist. Publication 1763-RM001D-EN-P - September 2011...
  • Page 425 29(Fault Routine S2:29) of System Status File. SMTP MSG instruction must be used in the configured Fault Routine also. Configuration for sending email in UFR Publication 1763-RM001D-EN-P - September 2011...
  • Page 426 Communications Instructions Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 427 • If you are not using the data logging function, it allows you more memory (up to 64K bytes) for RCP files. You can use the Data Log Queue for data logging and recipe data, but the total cannot exceed 128K bytes. Publication 1763-RM001D-EN-P - September 2011...
  • Page 428 • • • • • • • Recipe File and Programming Example Configuring the RCP file 1. Using RSLogix 500, locate and select RCP Configuration Files. Right-click and select New. 2. Create a RCP File. Publication 1763-RM001D-EN-P - September 2011...
  • Page 429 • Data Log Queue - Recipe data is stored in the data log memory space (max. 64K bytes). All the recipe data is stored into the controller’s memory module IMPORTANT (1763-MM1). 3. Enter the RCP file parameters as shown below. When finished click on OK. Publication 1763-RM001D-EN-P - September 2011...
  • Page 430 6. Enter the data for Recipe 1 as shown below. 7. Change from Recipe 1 to Recipe 2 and enter the following data. The Recipes are now configured. 8. Create the following ladder logic. Publication 1763-RM001D-EN-P - September 2011...
  • Page 431 When B3:0/1 is energized and B3:0/0 and B3:0/2 are de-energized, Recipe File 0:Recipe number 1 is executed loading the following values to create Purple paint. • N7:0 = 500 • N7:1 = 0 • N7:2 = 500 Publication 1763-RM001D-EN-P - September 2011...
  • Page 432 2-byte N7:2 2-byte T4:0.PRE 2-byte Integrity Check 2-byte Total 10-byte Consumed memory size for Recipe File 0 = Data Field per a recipe * Number of Recipes = 10 * 3 (bytes) = 30 bytes Publication 1763-RM001D-EN-P - September 2011...
  • Page 433 User Program. Each record is stored as the instruction is executed and is non-volatile (battery-backed) to prevent loss during power-down. Program Files Data Files Function Files Specialty Files 6 to 255 Q4 to 255 4 to 255 Publication 1763-RM001D-EN-P - September 2011...
  • Page 434 N7:11 L14:0 T4:5.ACC I1:3.0 I1:2.1 Characters = 10 + 1 + 8 + 1 + 6 + 1 + 11 + 1 + 6 + 1 + 6 + 1 + 6 = 59 characters Publication 1763-RM001D-EN-P - September 2011...
  • Page 435 String Length of Record The size of a record is limited so that the length of the maximum formatted string does not exceed 80 characters. The following table can be used to determine the formatted string length. Publication 1763-RM001D-EN-P - September 2011...
  • Page 436 13107. The maximum number of records is calculated by: Maximum Number of Records = Data Log File Size/Record Size = 128K bytes/10 bytes = (128)(1024)/10 = 13107 records Publication 1763-RM001D-EN-P - September 2011...
  • Page 437 2. The Data Log Que window appears. Double-click on Data Log Configuration. Appearance of Data Log Que Configuration window before creating a queue. 3. The Data Log Que dialog box appears as shown below. Use this dialog box to enter the queue information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 438 4. After entering all the information for the data log queue, click on OK. The queue is added to the Data Log Que window with a corresponding queue number. This is the queue number to use in the DLG instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 439 The DLG rung must be reset (scanned false) before it will capture data again. Never place the DLG instruction alone on a rung. It should always have preceding logic, as shown below: Data Log queue number Publication 1763-RM001D-EN-P - September 2011...
  • Page 440 Once set, the OV bit remains set until you clear (0) it. To address this bit in ladder logic, use the format: DLS0:Q/OV, where Q is the queue number. Publication 1763-RM001D-EN-P - September 2011...
  • Page 441 Low Limit (LIM instruction) Test (LIM instruction) High Limit (LIM instruction) Source (MEQ instruction) Mask (MEQ instruction) Compare (MEQ instruction) Math Source A Source B Input (SCP instruction) Logical Source A Source B Move Source Publication 1763-RM001D-EN-P - September 2011...
  • Page 442 File Retrieval Tools There are a number of retrieval tools designed for use with Palm OS, Windows CE, Windows 9x, and Windows NT. You can download these free tools from our web site. Visit http://www.ab.com/micrologix. Publication 1763-RM001D-EN-P - September 2011...
  • Page 443 12 bytes (characters) Date Field 11 bytes (characters) Time Field 9 bytes (characters) The formatted string length cannot exceed 80 bytes in length. The last byte will be a zero value representing the terminator character. Publication 1763-RM001D-EN-P - September 2011...
  • Page 444 You can put the following rung in your ladder program to prevent this from happening: B3:1 Less Than or Eql (A<=B) Data Log Source A DLS0:5.RST queue number Source B DLS0:5.FSZ Publication 1763-RM001D-EN-P - September 2011...
  • Page 445 LCD. These lines can consist of combinations of Bits, Integers, and String characters. So now the control program can send alert/alarm messages, I/O data values, simple text messages, or combinations of these messages to the operator. These messages can be triggered by events Publication 1763-RM001D-EN-P - September 2011...
  • Page 446 Within the RSLogix 500 Function File Folder, you see a LCD Function LCD Function File File. This file provides access to LCD and Trimpot configuration data, and also allows the control program access to all information pertaining to LCD screen, keypad, Trimpot. Publication 1763-RM001D-EN-P - September 2011...
  • Page 447 SCD - Start with Customized Display LCD:0/SCD binary (bit) control read-only TO - Data Input Timeout of LCD instruction LCD:0.TO word (INT) control read-only DN - LCD Instruction Job Done LCD:0/DN binary (bit) status read-only Publication 1763-RM001D-EN-P - September 2011...
  • Page 448 LCD screen instead the default I/O Status screen at power-up. When this bit is set (1), the controllers enters the Customized Display mode at power-up, instead entering the default mode and displaying the I/O Status screen, and interfaces with LCD instructions in Publication 1763-RM001D-EN-P - September 2011...
  • Page 449 Trimpot values (POT0 and POT1) with the new Trimpot range (TMIN to TMAX) and sets (1) ERR bit if an error is found and resets (0) if no error is found. Publication 1763-RM001D-EN-P - September 2011...
  • Page 450 Up to the first 48 bits (3 words) of the specified bit file can be monitored and modified. For more information, refer to Using Trim Pots described in the MicroLogix 1100 Programmable Controllers User Manual, publication 1763-UM001. Publication 1763-RM001D-EN-P - September 2011...
  • Page 451 Trimpot 1 Data (TMIN – TMAX) (POT1) Feature Address Data Format Type User Program Access POT0 - Trimpot 0 Data LCD:0.POT0 word (INT) status read-only (TMIN – TMAX) POT1 - Trimpot 1 Data LCD:0.POT1 word (INT) status read-only (TMIN – TMAX) Publication 1763-RM001D-EN-P - September 2011...
  • Page 452 OK bit is presented for handy interface to LCD instruction and keypad, so it is just updated in U-MSG screen. ESC key in Customized Display (ESC) Feature Address Data Format Type User Program Access ESC - ESC key in LCD:0/ESC binary (bit) status/ read/write Customized Display control Publication 1763-RM001D-EN-P - September 2011...
  • Page 453 • • • • • • • • • Line 3 Source A • • • • • • • • • Line 3 Source B • • • • • • • • • Publication 1763-RM001D-EN-P - September 2011...
  • Page 454 Your application program can get value from user’s keypad inputs if Display With Input bit is set (1) in LCD instructions. User inputs can be obtained with arrow, ESC, and OK keys. In this case, Line 4 is used for Publication 1763-RM001D-EN-P - September 2011...
  • Page 455 LCD. The table below shows the available character set on the LCD. For information on how to manipulate a string file for display of special characters, refer to your RSLogix 500 Online Help. Publication 1763-RM001D-EN-P - September 2011...
  • Page 456 LCD Information LCD Character Set LCD Font Standard character ASCII Code (Hex) Publication 1763-RM001D-EN-P - September 2011...
  • Page 457 ASCII String Compare 27.27+0.65/ 0.90 None None None matching char. ASCII Write with Append 13.96 14.21 None None None ASCII Write 13.99 14.21 None None None Bit Shift Left 34.5 + 0.2/word 34.50 None None None Publication 1763-RM001D-EN-P - September 2011...
  • Page 458 None None None Less Than or Equal To 8.96 0.87 9.09 0.87 Less Than 8.96 0.87 9.09 0.87 LIFO Load 39.93 38.09 39.96 38.06 LIFO Unload 39.34 37.06 39.97 37.09 Limit 38.96 0.87 38.96 0.87 Publication 1763-RM001D-EN-P - September 2011...
  • Page 459 6.18 Sequencer Output 23.78 6.21 24.40 6.21 Square Root 109.21 0.87 109.77 0.87 Selectable Timed Interrupt Start STS 27.18 0.84 None None None Subtract 13.31 0.84 13.46 0.84 Suspend None None None None None None Publication 1763-RM001D-EN-P - September 2011...
  • Page 460 For the address forms in the following table, you can interchange the following file types: • Input (I) and Output (O) • Bit (B), Integer (N) • Timer (T), Counter (C), and Control (R) Publication 1763-RM001D-EN-P - September 2011...
  • Page 461 Execution Time Example – Bit Instruction Using an Indirect Address XIC B3/[*] • XIC: 1.44 μs + 5.5 μs = 6.94 μs True case • XIC: 1.44 μs + 5.5 μs = 6.94 μs False case Publication 1763-RM001D-EN-P - September 2011...
  • Page 462 Multiply by Communications Multiplier from Table X Time Tick Multiplier (X1.02) Total Estimated Scan Time = (1) Communications Overhead is a function of the device connected to the controller. This will not occur every scan. Publication 1763-RM001D-EN-P - September 2011...
  • Page 463 1.00 (1) Inactive is defined as No Messaging and No Data Monitoring. For DH-485 protocol, inactive means that the controller is not connected to a network. (2) Applies to MicroLogix 1500 Series B Processors only. Publication 1763-RM001D-EN-P - September 2011...
  • Page 464 MicroLogix 1100 Memory Usage and Instruction Execution Time Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 465 Do not write to reserved words in the status file. If you intend writing to IMPORTANT status file data, it is imperative that you first understand the function fully. Publication 1763-RM001D-EN-P - September 2011...
  • Page 466 OS Catalog Number S:58 OS Series S:59 OS FRN S:60 Processor Catalog Number S:61 Processor Series S:62 Processor Revision S:63 User Program Functionality Type S:64L Compiler Revision - Build Number S:64H Compiler Revision - Release Publication 1763-RM001D-EN-P - September 2011...
  • Page 467 Otherwise the bit remains cleared (0). When an STI, High-Speed Counter, Event Interrupt, or User Fault Routine interrupts normal execution of your program, the original value of S:0/2 is restored when execution resumes. Publication 1763-RM001D-EN-P - September 2011...
  • Page 468 • suspend mode (operation halted by execution of the SUS instruction) • run mode • (1) Valid modes are indicated by the ( ) symbol. N/A indicates an invalid mode for that controller. Publication 1763-RM001D-EN-P - September 2011...
  • Page 469 This bit is set (1) by the controller to indicate that 1 or more inputs or outputs are forced. When this bit is clear, a force condition is not present within the controller. Publication 1763-RM001D-EN-P - September 2011...
  • Page 470 If you clear the controller memory, the controller loads the default program. The mode of the controller after the transfer takes place is determined by the controller mode switch and the Power-Up Mode Behavior Selection bit (S:1/12). Publication 1763-RM001D-EN-P - September 2011...
  • Page 471 If you want the controller to power-up and enter the Run mode, IMPORTANT regardless of any previous fault conditions, you must also set the Fault Override bit (S:1/8) so that the Major Error Halted flag is cleared before determining the power up mode. Publication 1763-RM001D-EN-P - September 2011...
  • Page 472 S:1/13 and the fault condition, the controller continues to execute the control program. If the fault cannot be cleared, the outputs are cleared and the controller exits its executing mode and the FAULT LED flashes. Publication 1763-RM001D-EN-P - September 2011...
  • Page 473 (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device). This address is duplicated at STI:0/UIP. SeeUsing the Selectable Timed Interrupt (STI) Function File on page 268 for more information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 474 If the user program does not match the memory module program, or if the memory module is not present, the controller faults with error code 0017H on any attempt to enter an executing mode. See also:LPC - Load Program Compare on page 55. Publication 1763-RM001D-EN-P - September 2011...
  • Page 475 The timing accuracy is from -10 ms to +0 ms. This means that a value of 2 results in a timeout between 10 and 20 ms. If the program scan time value equals the watchdog value, a watchdog major error is generated (code 0022H). Publication 1763-RM001D-EN-P - September 2011...
  • Page 476 S:4/9 5.120 10.240 0.0512 0.1024 S:4/10 10.240 20.480 0.1024 0.2048 S:4/11 20.480 40.960 0.2048 0.4096 S:4/12 40.960 81.92 0.4096 0.8192 S:4/13 81.92 163.84 0.8192 1.6384 S:4/14 163.84 327.68 1.6384 3.2768 S:4/15 327.68 655.36 3.2768 6.5536 Publication 1763-RM001D-EN-P - September 2011...
  • Page 477 User Program Access S:5/3 binary 0 or 1 status read/write When set (1), the major error code (S:6) represents the major error that occurred while processing the User Fault Routine due to another major error. Publication 1763-RM001D-EN-P - September 2011...
  • Page 478 Interrupt (STI) Function File on page 268 for more information. Processor Battery Low Address Data Format Range Type User Program Access S:5/11 binary 0 or 1 status read only This bit is set (1) when the battery is low. Publication 1763-RM001D-EN-P - September 2011...
  • Page 479 0 to FFFF status read/write This register displays a value which can be used to determine what caused a fault to occur. SeeIdentifying Controller Faults on page 491 to learn more about troubleshooting faults. Publication 1763-RM001D-EN-P - September 2011...
  • Page 480 (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device). This address is duplicated in the Communications Status File (CSx:0.27). SeeActive Node Table Block on page 69 for more information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 481 (1) This byte can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device). This address is duplicated in the Communications Status File (CSx:0.5/0 through CSx:0.5/7). SeeGeneral Channel Status Block on page 58 for more information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 482 User Fault Routine File Number Address Data Format Range Type User Program Access S:29 word 0 to 255 status read only This register is used to control which subroutine executes when a User Fault is generated. Publication 1763-RM001D-EN-P - September 2011...
  • Page 483 (1) This bit can only be accessed via ladder logic. It cannot be accessed via communications (such as a Message instruction from another device). This address is duplicated in the Communications Status File at CS0:0.4/ 1. SeeGeneral Channel Status Block on page 58 for more information. Publication 1763-RM001D-EN-P - September 2011...
  • Page 484 Range Type User Program Access S:33/9 binary 0 or 1 status read/write The controller changes the status of this bit at the end of each scan. It is reset upon entry into an executing mode. Publication 1763-RM001D-EN-P - September 2011...
  • Page 485 This address is duplicated in the Real-Time Clock Function File at RTC:0.YR SeeReal-Time Clock Function File on page 51 for more information. Note: This value will not update while viewing online in RSLogix 500. Monitor address in function file to see online values. Publication 1763-RM001D-EN-P - September 2011...
  • Page 486 This address is duplicated in the Real-Time Clock Function File at RTC:0.HR SeeReal-Time Clock Function File on page 51 for more information. Note: This value will not update while viewing online in RSLogix 500. Monitor address in function file to see online values. Publication 1763-RM001D-EN-P - September 2011...
  • Page 487 This address is duplicated in the Real-Time Clock Function File at RTC:0.DOW SeeReal-Time Clock Function File on page 51 for more information. Note: This value will not update while viewing online in RSLogix 500. Monitor address in function file to see online values. Publication 1763-RM001D-EN-P - September 2011...
  • Page 488 This register identifies the Catalog Number for the processor. Processor Series Address Data Format Range Type User Program Access S:61 ASCII A to Z status read only This register identifies the Series of the processor. Publication 1763-RM001D-EN-P - September 2011...
  • Page 489 Compiler Revision - Release Address Data Format Range Type User Program Access S:64 (high byte) byte 0 to 255 status read only This register identifies the Release of the compiler which created the program in the controller. Publication 1763-RM001D-EN-P - September 2011...
  • Page 490 System Status File Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 491 This chapter describes how to troubleshoot your controller. Topics include: • identifying controller faults • contacting Rockwell Automation for assistance While a program is executing, a fault may occur within the operating Identifying Controller system or your program. When a fault occurs, you have various options to Faults determine what the fault is and how to correct it.
  • Page 492 The default program is loaded to the Non-User controller memory. This occurs: • Verify battery is connected. • Contact your local Rockwell Automation • if a power down occurred during representative if the error persists. program download or transfer from the memory module.
  • Page 493 • Start up your system. • Refer to proper grounding guidelines and using surge suppressors in your controller’s User Manual. • Contact your local Rockwell Automation representative if the error persists. • Cycle power on your unit. Then, 0009 FATAL INTERNAL...
  • Page 494 OS. compatible with the memory module. INCOMPATIBLE WITH • Obtain a new memory module. • Contact your local Rockwell Automation representative for more information about available operating systems your controller. • Upgrade the OS using ControlFlash.
  • Page 495 2048 or an data file space using the memory map, then PARAMETER FFU, FFL, LFU, LFL instruction length reload and Run. parameter is greater than 128 (word file) or greater than 64 (double word file) Publication 1763-RM001D-EN-P - September 2011...
  • Page 496 • Cycle power. • Reconfigure the expansion I/O system so 0083 MAX I/O CABLES The maximum number of expansion Non-User EXCEEDED I/O cables allowed was exceeded. that it has an allowable number of cables. • Cycle power. Publication 1763-RM001D-EN-P - September 2011...
  • Page 497 Run mode, or • an expansion I/O power supply is • With power removed, add the missing configured in the user program and power supply. a power supply is physically present, but the types do not match. Publication 1763-RM001D-EN-P - September 2011...
  • Page 498 (2) The xx in this error code means that the error occurs at the location of the last properly configured Expansion I/O module +1. You should use this information in conjunction with the specific error code to determine the source of the problem. Publication 1763-RM001D-EN-P - September 2011...
  • Page 499 System FRN) in the Status File. • controller LED status • controller error codes (found in S2:6 of status file) or LCD screen. Rockwell Automation phone numbers are listed on the back cover of this manual. To contact us via the Internet, go to http://www.rockwellautomation.com.
  • Page 500 Fault Messages and Error Codes Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 501 • DF1 Radio Modem Protocol on page 517 • Modbus RTU Protocol on page 524 • ASCII Driver on page 535 • Ethernet Driver on page 537 See your controller’s User Manual for information about required network devices and accessories. Publication 1763-RM001D-EN-P - September 2011...
  • Page 502 The allowable range of node addresses 0 to 31. There must be at least one initiator on the network (such as a MicroLogix controller, or an SLC 5/02 or higher processor). Publication 1763-RM001D-EN-P - September 2011...
  • Page 503 The number of nodes on the network directly affects the data transfer time between nodes. Unnecessary nodes (such as a second programming terminal that is not being used) slow the data transfer rate. The maximum number of nodes on the network is 32. Publication 1763-RM001D-EN-P - September 2011...
  • Page 504 These controllers can respond and initiate with device’s communications (or commands) that do not originate on the local DH-485 network. This is useful in installations where communication is needed between the DH-485 and DH+ networks. Publication 1763-RM001D-EN-P - September 2011...
  • Page 505 ACK Timeout (x20 ms) 1 to 65535 counts (20 ms increments) 50 counts NAK retries 0 to 255 3 retries ENQ retries 0 to 255 3 retries Stop Bits not a setting, always 1 Publication 1763-RM001D-EN-P - September 2011...
  • Page 506 Choosing a Polling Mode for DF1 Half-Duplex Master A master station can be configured to communicate with slave stations in either Message-based polling mode or Standard polling mode. The pros and cons of each polling mode are described below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 507 Node Table “automatically” keeps track of which slaves are (and are not) communicating. Standard polling mode should not be used in cases where the user needs to be able to limit when and how often the master station communicates with each slave station. Publication 1763-RM001D-EN-P - September 2011...
  • Page 508 Active Node Table bit is set. Besides being an excellent online troubleshooting tool, two common uses of the Active Node Table are to report good/bad communication status for all slave Publication 1763-RM001D-EN-P - September 2011...
  • Page 509 The address range is 0 to 254, so you can have a maximum of 255 stations on a single telemetry network. Station address 255 is the broadcast address, which you cannot select as a station’s individual address. Publication 1763-RM001D-EN-P - September 2011...
  • Page 510 This slave-to-slave transfer is a built-in function of the master device and can also be used by programming software to upload and download programs to processors on the DF1 Half-Duplex link. Standard Mode Channel Configuration Publication 1763-RM001D-EN-P - September 2011...
  • Page 511 The master can be configured either to ignore (“MSG-based Polling, don’t allow slaves to initiate”) or to accept (“MSG-based Polling, allow slaves to initiate”) MSGs that may have been triggered and queued up in the slave. Publication 1763-RM001D-EN-P - September 2011...
  • Page 512 (RTS/CTS Handshaking)” Specifies the delay time between when the last serial character is sent to the modem and when RTS is deactivated. Gives the modem extra time to transmit the last character of a packet. Publication 1763-RM001D-EN-P - September 2011...
  • Page 513 If no stations are configured in the Priority Polling Range, leave this parameter at 0. (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001D-EN-P - September 2011...
  • Page 514 The status of the RTS handshaking line (asserted by the processor) CTS (Clear to Send) CSx:9/0 The status of the CTS handshaking line (received by the processor) DCD (Data Carrier Detect) CSx:9/3 Reserved (1) x equals the Channel number. Publication 1763-RM001D-EN-P - September 2011...
  • Page 515 DF1 Master channel. Example Active Node Table At power-up or after reconfiguration, the master station assumes that all slave stations are inactive. A station is shown active only after it responds to a poll packet. Publication 1763-RM001D-EN-P - September 2011...
  • Page 516 (RTS/CTS Handshaking)” Specifies the delay time between when the last serial character is sent to the modem and when RTS is deactivated. Gives the modem extra time to transmit the last character of a packet. Publication 1763-RM001D-EN-P - September 2011...
  • Page 517 DF1 Radio Modem protocol. DF1 Radio Modem protocol is currently supported by SLC 5/03, 5/04 and 5/ 05 controllers; MicroLogix 1100, 1200 and 1500 controllers; and Logix controllers at Version 16.1 firmware or higher. Publication 1763-RM001D-EN-P - September 2011...
  • Page 518 Channel configuration appears as follows. Figure shows Channel 0 configuration. DF1 Radio Modem Channel 0 Configuration (MicroLogix 1100) When the system driver is DF1 Radio Modem, the following parameters can be changed for Channel 0. Publication 1763-RM001D-EN-P - September 2011...
  • Page 519 DF1 Radio Modem also supports Store & Forward capability in order to forward packets between nodes that are outside of radio range of each other. Each node that is enabled for Store & Forward has a Publication 1763-RM001D-EN-P - September 2011...
  • Page 520 Whenever Store & Forward is used within a radio modem network, every node should have a Store & Forward Table file configured, even if all of the bits in the file are cleared, so that duplicate packets will be ignored. Publication 1763-RM001D-EN-P - September 2011...
  • Page 521 If you are using RSLogix 500 version 7.00.00 or higher, you can view the store & forward table by clicking on “Processor Status” and then selecting the tab for the DF1 Master channel. Example Store & Forward Table Publication 1763-RM001D-EN-P - September 2011...
  • Page 522 The status of the RTS handshaking line (asserted by the processor) CTS (Clear to Send) CSx:9/0 The status of the CTS handshaking line (received by the processor) DCD (Data Carrier Detect) CSx:9/3 Reserved (1) x equals Channel number Publication 1763-RM001D-EN-P - September 2011...
  • Page 523 If not, then you may still be able to use the DF1 Radio Modem driver, but only if you limit MSG instruction initiation to a single “master” node whose transmission can be received by every other node. Publication 1763-RM001D-EN-P - September 2011...
  • Page 524 Input registers and holding registers are addressed at the word level. Input registers are generally used for internally storing input values. They are read-only. Holding registers are general purpose and can be both read and written to. Publication 1763-RM001D-EN-P - September 2011...
  • Page 525 Note that the maximum number of registers in a command does not allow for more than two files to be accessed during a single Modbus command. Modbus RTU Master Configuration Select the Modbus RTU Master from the Channel Configuration menu as shown below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 526 • Half-Duplex Modem (RTS/CTS handshaking). • No Handshaking (485 Network) In order to connect directly to an RS-485 Modbus network, use a 1763-NC01 cable and configure the Control Line setting for No Handshaking (485 network). The Protocol Control defaults are: •...
  • Page 527 When the Control Line is set to Half-Duplex Modem or Full-Duplex Modem, this is the minimum time delay between receiving the last character of a packet and the RTS assertion. 1,5,2 Stop Bits Data Bits (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001D-EN-P - September 2011...
  • Page 528 N11 (or B11), N12 (or B12), N13 (or B13), N14 (or B14), and N15 (or B15). 4. Enter the data table size and type for each required file. The data table file(s) (not including the five additional tables if Expanded is checked) will be created automatically. Publication 1763-RM001D-EN-P - September 2011...
  • Page 529 When the Control Line is set to Half-Duplex Modem, this is the minimum time delay between receiving the last character of a packet and the RTS assertion. 1,5,2 Stop Bits Data Bits (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001D-EN-P - September 2011...
  • Page 530 Read/Write Modbus Holding Register space Bit (B) or Integer (N) 3 to 255 words 0 to 255 of 41793 to 42048 the last Holding Register file (1) These addresses only become active when specially configured for expanded holding registers. Publication 1763-RM001D-EN-P - September 2011...
  • Page 531 Read/Write Modbus Holding Register space (5th Holding Register file). 3, 6, 16 41501 to 41566 Read/Write System Status File 3, 6, 16 41793 to 42048 Read/Write Modbus Holding Register space (6th Holding Register file). 3, 6, 16 Publication 1763-RM001D-EN-P - September 2011...
  • Page 532 (decimal) (decimal) Read Coil Status Read Input Status Read Holding Registers Read Input Registers Write Single Coil Write Single Holding Register Write Multiple Coils Write Multiple Holding Registers (1) Broadcast is supported for this command. Publication 1763-RM001D-EN-P - September 2011...
  • Page 533 Acknowledge The slave has accepted the request, but a long duration of time will be required to process the request. Slave Device Busy The slave is currently processing a long-duration command. Publication 1763-RM001D-EN-P - September 2011...
  • Page 534 UART error during reply reception. Bad CRC in reply packet. CTS one second timeout prior to transmission. CTS dropped in mid-packet transmission. Packet receive from unknown Slave or Bad slave. Function code Mismatch. Function code not supported. Reply Timeout Publication 1763-RM001D-EN-P - September 2011...
  • Page 535 The channel configuration screen is shown below: The controller updates changes to the channel configuration at the next execution of a Service Communications (SVC) instruction, I/O Refresh (REF) instruction, or when it performs Communications Servicing, whichever comes first. Publication 1763-RM001D-EN-P - September 2011...
  • Page 536 Allows you to select the delay between when RTS is raised and the transmission is initiated. Specify Delay (x20 ms) the RTS Send Delay value in increments of 20 ms. Valid range is 0 to 65535. 1,5,2 Stop Bits Data Bits (1) MicroLogix 1100 OS Series B FRN 4 or later Publication 1763-RM001D-EN-P - September 2011...
  • Page 537 1 to 254 in each field. 0.0.0.0 Address The IP address of the gateway that provides a connection to another IP network. This field is required when you communicate with other network devices, not on a local subnet. Publication 1763-RM001D-EN-P - September 2011...
  • Page 538 485CIF write message with a string element. There B only) must be a SMTP server on the network capable of processing e-mail service. This provides an extremely versatile mechanism to report alarms, status, and other data-related functions. Publication 1763-RM001D-EN-P - September 2011...
  • Page 539 The amount of time (in minutes) that a MSG connection may remain inactive before it is terminated. 30 minutes. Timeout The Inactivity Timeout has a 1 minute resolution and a range from 1 to 65,500 minutes. (Series B only) Contact Not Applicable Location Not Applicable Publication 1763-RM001D-EN-P - September 2011...
  • Page 540 Protocol Configuration Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 541 # 17444 “Quick Start” of the MicroLogix 1100 Pulse Train Output (PTO) Locate the Function Files under Controller in RSLOGIX 500 v7.00 or later and select the PTO tab, then select the [+] next to PTO:0 (See Below). Publication 1763-RM001D-EN-P - September 2011...
  • Page 542 Accel/Decel component Example The following example will generate 10,000 pulses on Output O:0/2 at a frequency of 500Hz and 100 pulses will be used for Accelerating and 100 pulses will be used for Decelerating. Publication 1763-RM001D-EN-P - September 2011...
  • Page 543 Important Note: Once the PTO has been initiated and is generating pulses a new TOP value will not take effect until the PTO has either completed generating pulses and has been restarted or has been Hard Stopped using PTO:0/EH bit and been restarted. Publication 1763-RM001D-EN-P - September 2011...
  • Page 544 DC = 0750 075% Output ON 025% Output OFF DC = 0500 050% Output ON 050% Output OFF DC = 0250 025% Output ON 075% Output OFF DC = 0000 000% Output OFF (Constant no Waveform) Publication 1763-RM001D-EN-P - September 2011...
  • Page 545 By toggling Bit B3/0 the PWM can be activated. Note: Once activated the PWM will continue to generate a waveform until B3/0 is toggled OFF or the PWM:0/EH (Enable Hard Stop) bit has been activated. Publication 1763-RM001D-EN-P - September 2011...
  • Page 546 Counting Enabled control bit is used to enable or disable the HSC High Preset is the upper set point (in counts) that defines when the HSC will generate an HSC:0.HIP interrupt and execute the PFN sub-routine. Publication 1763-RM001D-EN-P - September 2011...
  • Page 547 IMPORTANT:Ladder Logic Subroutine file #3 must be created in order for this example to work. If the subroutine is not created the CPU will fault due to an HSC Error Code 1 - Invalid File Number for PFN has been entered. Publication 1763-RM001D-EN-P - September 2011...
  • Page 548 Problem #1:The input display on the MicroLogix LCD screen turn on and off, but no counts are seen in the HSC accumulator. Solution:The input filter frequency may need to be adjusted in order to capture the input pulses. Follow the steps below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 549 Solution:A file number was entered into (PFN) but the value entered was less then (3) or greater then (255) or the file number entered was correct, however the file does not exist. Create the NEW program file by “Right” mouse clicking on “Program Files” Publication 1763-RM001D-EN-P - September 2011...
  • Page 550 The MSG instruction in the MicroLogix 1100 controller uses a Data File MG to process the message instruction. All message elements are accessed using the MG prefix (example: MSG done bit = MG11:0/DN). Publication 1763-RM001D-EN-P - September 2011...
  • Page 551 1. For this example Locate N7:0 in the ML1500 (Node 1) and enter the value 63. MicroLogix 1100 TERM SHLD CHS GND Node 1 DC SOURCE CABLE EXTERNAL MicroLogix 1100 (Node 1) Ladder Logic Publication 1763-RM001D-EN-P - September 2011...
  • Page 552 ML1000 channel configuration has been changed, in order for this example to function connect the controllers using a 1761-CBL-PM02 cable, leave connected until the COMM 0 LED on the ML1100 starts to blink. Publication 1763-RM001D-EN-P - September 2011...
  • Page 553 An interrupt is an event that causes the processor to suspend the task it is Interrupt (STI) currently performing, perform a different task, and then return to the suspend task at the point where it suspended. Publication 1763-RM001D-EN-P - September 2011...
  • Page 554 MicroLogix 1500 enters run or test. User Interrupt Enabled control bit is used to enable or STI:0/UIE disable the STI subroutine from processing. Setpoint (in milliseconds) defines the interval that the STI:0.SPM interrupt will scan the PFN sub-routine. Publication 1763-RM001D-EN-P - September 2011...
  • Page 555 If the Auto Start bit (AS) is set this will start the interrupt on power up and set the Timed Interrupt Enabled bit (TIE) automatically, allowing the interrupt to execute. Shown in the example above. Publication 1763-RM001D-EN-P - September 2011...
  • Page 556 Seconds offline, once downloaded the values will take effect immediately. Note: The Day of the week is calculated by the RTC Online Pressing will set the ML1100 clock to the same Date & Time as the PC connected online. Publication 1763-RM001D-EN-P - September 2011...
  • Page 557 Ell - Event Input Interrupts Event 0 bit 6 Ell - Event Input Interrupts Event 1 bit 5 HSC - High Speed Counter HSC0 bit 4 Ell - Event Input Interrupts Event 2 bit 3 Publication 1763-RM001D-EN-P - September 2011...
  • Page 558 This example can also be applied for messaging between MicroLogix 1100, 1200 and 1500 controllers. When messaging from a MicroLogix 1100/1200/1500 controller to MicroLogix 1100/1200/1500 it is recommended that RTC:0 be used as the source instead of (S:37 - S:42). Publication 1763-RM001D-EN-P - September 2011...
  • Page 559 EXTERNAL 1747-CP3 Additional MicroLogix 1200/1500s MicroLogix 1100 TERM SHLD CHS GND DC SOURCE CABLE EXTERNAL 1. Configure the SLC's Channel 0 port for DH-485 protocol. 2. Enter the following ladder logic into the SLC processor. Publication 1763-RM001D-EN-P - September 2011...
  • Page 560 Synchronization Bit (B3:0/0) is enabled. ATTENTION: Valid years for the Micrologix 1100 begin with 1998. Any date/time/year values, prior to 1998, that are sent to a Micrologix controller will generate a MSG Error Code 10h. Publication 1763-RM001D-EN-P - September 2011...
  • Page 561 2. Create a new rung of ladder logic in File 2 as shown below. FYI - The DLG instruction ONLY captures data on a false-to-true rung transition. 3. Double Click Data Logging - Configuration in the controller organizer to access the Data Log Queue Configuration window Publication 1763-RM001D-EN-P - September 2011...
  • Page 562 <delete> key on the keyboard. 4. Double-Click on Data Log configuration to open the Configuration window. 5. Complete the Data Log Queue as shown below. The Number of records and Addresses selected were arbitrary for this example. Publication 1763-RM001D-EN-P - September 2011...
  • Page 563 8. Once the N10 file has been created enter the following values for each 9. Download the program to your MicroLogix 1100. 10. Go On-Line 11. Toggle the Data Logging Enable(B3:0/0) bit Off to On a total of 5 times. Publication 1763-RM001D-EN-P - September 2011...
  • Page 564 19200 baud If using defaults select 19200 above, otherwise select the baud rate configured in the MicroLogix Channel Configuration Screen. If a correct configuration has been selected the utility software will indicate that it has connected to the processor as shown below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 565 Queues and creates an off-line file. Once the Read Log has completed the following screen will appear confirming the number of records that have been read from the Queue(s) Publication 1763-RM001D-EN-P - September 2011...
  • Page 566 “Text Files” or “All files (*.*)” in order to locate your saved file. (The headings for each column are not stored in the data file these were added for readability.) Publication 1763-RM001D-EN-P - September 2011...
  • Page 567 ASCII instructions of the MicroLogix processor to send out the data. Using the DATALOG Utility to retrieve data remotely via a Remote Access Modem Kit (RAD) For more information on Remote Access Modem Kits visit http:// support.rockwellautomation.com/modem/modem_Main.asp Publication 1763-RM001D-EN-P - September 2011...
  • Page 568 HyperTerminal is no longer running. 6. Open the Data Logging Utility. 7. Select in the DLG Utility the COMM port that the PC modem is configured for. 8. Click Connect. Publication 1763-RM001D-EN-P - September 2011...
  • Page 569 4. Type “+++” to place modem in command mode, Do not press the ENTER KEY! Your modem will respond: OK 5. Type “ATH “ 6. Press Enter. This will send the disconnect command to modem. Publication 1763-RM001D-EN-P - September 2011...
  • Page 570 Knowledgebase Quick Starts Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 571 Controller MicroLogix 1100 Series A firmware didn’t support values above 20000 (20kHz). However, these values are changed to unsigned 16-bit and 40000 (40kHz) respectively to implement 40kHz PTO and PWM functions in Series B controller. Publication 1763-RM001D-EN-P - September 2011...
  • Page 572 However, since an output frequency can not be a negative value, MicroLogix 1100 controller works properly although the displayed value looks weird. The following table summarizes possible display issues for each different combination of a RSLogix 500 version and MicroLogix 1100 Series. Publication 1763-RM001D-EN-P - September 2011...
  • Page 573 16-bit signed integer (-32,768...32,767) even though 16-bit unsigned integer (0...65,535) is functionally supported by PTO/PWM. To solve this issue, 2’s complement notation or hexadecimal value should be used. For example, Publication 1763-RM001D-EN-P - September 2011...
  • Page 574 For example, when a user wants to check if the PTO:0.OF is equal(EQU) 35000 or not equal(NEQ), a user should put 2’s complement of 35000 (-30536) or 88B8h (hexadecimal value) as a specific value as shown below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 575 32767. For example, assume the PWM:0.OF value is 35000 and the value to compare is 100. Actually, PWM:0.OF is greater than 100, but the executed result of this instruction is just the opposite. Publication 1763-RM001D-EN-P - September 2011...
  • Page 576 To get an unsigned result without Math Overflow Error from ADD/ SUB/ MUL instructions, S:2/14 (Math Overflow Selected) bit should be set and the S:5/0 (Math Overflow Trap) bit should be cleared after the execution of these instructions. Publication 1763-RM001D-EN-P - September 2011...
  • Page 577 S:5/0 bit is not cleared after execution of the MUL instruction, then the result will be 32767 and Math Overflow Error will be reported at the End of Scan. ADD Instruction Workaround Example: PTO:0.OF(40000) = PTO:0.OF(20000) + 20000 Publication 1763-RM001D-EN-P - September 2011...
  • Page 578 How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller MUL Instruction Workaround Example: PTO:0.OF(40000) = PTO:0.OF(20000) X 2 SUB Instruction Workaround Example: PTO:0.OF(20000) = PTO:0.OF(40000) – 20000 Signed 16-bit: 0x9C40 (Hexadecimal) = -25536, Unsigned 16-bit: 0x9C40 (Hexadecimal) = 40000 Publication 1763-RM001D-EN-P - September 2011...
  • Page 579 JF, OF and OFS of PTO/PWM values are greater than 32767. If PTO:0.JF is 40000, the expected NEG result is -40000 and the expected ABS result is 40000. However, the actual results are 25536 both because both NEG and ABS instruction recognize 9C40h as -25536. Publication 1763-RM001D-EN-P - September 2011...
  • Page 580 How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller To solve this issue, JF, OF, OFS of PTO/PWM type should be changed to Long Type (32-bit) by CPW instruction before the execution of these instructions as shown below. Publication 1763-RM001D-EN-P - September 2011...
  • Page 581 32767. All positions are 1 except the far left position. Other examples: 0000 1001 0000 1110 = 2048+256+8+4+2 = 2318 0010 0011 0010 1000 = 8192+512+256+32+8 = 9000 Publication 1763-RM001D-EN-P - September 2011...
  • Page 582 1s beginning at the left, and subtract its value from the total value of positions to the right of that position. For example, 1111 1111 0001 1010 = (24+23+21) - 28 = (16+8+2) - 256 = -230. Publication 1763-RM001D-EN-P - September 2011...
  • Page 583 0 to 15. Decimal 0 The position values of hexadecimal numbers are powers of 16, beginning 0 at the right: with 16 Example Hexadecimal number 218A has a decimal equivalent value of 8586. Publication 1763-RM001D-EN-P - September 2011...
  • Page 584 We know this is a negative number because it exceeds the maximum positive value of 32767. To calculate its value, subtract 16 (the next higher power of 16) from 56950: 56950 - 65536 = -8586. Publication 1763-RM001D-EN-P - September 2011...
  • Page 585 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 Destination Word 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 (all bits 0 initially) Publication 1763-RM001D-EN-P - September 2011...
  • Page 586 Number Systems Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 587 DF1 Half Duplex Master driver / DF1 Half Duplex Slave driver This driver supports direct communication through RS485 Network using 1763-NC01 cable without any additional devices. Use “No Handshaking (485 Network)” in the protocol control tab of the Channel Configuration File.
  • Page 588 MicroLogix 1100 Firmware Changes in OS Series B FRN 4 ASCII driver This driver supports direct communication through RS485 Network using 1763-NC01 cable without any additional devices. Use “No Handshaking (485 Network)” in the protocol control tab of the Channel Configuration File.
  • Page 589 • Supports DNS query when E-mail feature is used. User can write the string of the DNS name in the E-mail Server IP entry in the SMTP Configuration File. User also should set Primary Name Server and Secondary Name Server in the Ethernet Channel Configuration. Publication 1763-RM001D-EN-P - September 2011...
  • Page 590 If RSLogix500 V7.0 or V7.10 is used with the MicroLogix1100 Series B RSLogix500 processor, the processor type will be shown as MicroLogix1100 Series A compatibility in the software. RSLogix500 V7.0 or V7.10 may not work normally with Publication 1763-RM001D-EN-P - September 2011...
  • Page 591 MicroLogix 1100 Firmware Changes in OS Series B FRN 4 the Series B project (Channel Configuration, IO configuration, RIX file, PTO and PWM function file, MSG instruction) running in the Series B processor. Publication 1763-RM001D-EN-P - September 2011...
  • Page 592 MicroLogix 1100 Firmware Changes in OS Series B FRN 4 Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 593 Boolean operators Logical operators such as AND, OR, NAND, NOR, NOT, and Exclusive-OR that can be used singularly or in combination to form logic statements or circuits. Can have an output response of T or F. Publication 1763-RM001D-EN-P - September 2011...
  • Page 594 The decision-making and data storage section of a programmable controller. data table The part of processor memory that contains I/O status and files where user data (such as bit, integer, timers, and counters) is monitored, manipulated, and changed for control purposes. Publication 1763-RM001D-EN-P - September 2011...
  • Page 595 A device that detects position, and transmits a signal representing that position. executing mode Any run or test mode. false The status of an instruction that does not provide a continuous logical path on a ladder rung. Publication 1763-RM001D-EN-P - September 2011...
  • Page 596 A device, such as a push button or a switch, that supplies an electrical signal to the controller. input scan The controller reads all input devices connected to the input terminals. Publication 1763-RM001D-EN-P - September 2011...
  • Page 597 The element (or bit) in a binary word that carries the smallest value of weight. LED (Light Emitting Diode) Used as status indicator for processor functions and inputs and outputs. LIFO (Last-In-First-Out) The order that data is stored and retrieved from a file. Publication 1763-RM001D-EN-P - September 2011...
  • Page 598 A series of stations (nodes) connected by some type of communication medium. A network may be made up of a single link or multiple links. nominal input current The typical amount of current seen at nominal input voltage. Publication 1763-RM001D-EN-P - September 2011...
  • Page 599 The ON delay time is a measure of the time required for the controller logic to recognize that a signal has been presented at the input terminal of the controller. one shot A programming technique that sets a bit ON or OFF for one program scan. Publication 1763-RM001D-EN-P - September 2011...
  • Page 600 When the controller is not scanning the control program. program scan A part of the controller’s operating cycle. During the program scan, the logic program is processed and the Output Image is updated. Publication 1763-RM001D-EN-P - September 2011...
  • Page 601 Information (data) that is preserved through power cycles. RS-232 An EIA standard that specifies electrical, mechanical, and functional characteristics for serial binary communication circuits. run mode An executing mode during which the controller scans or executes the logic program. Publication 1763-RM001D-EN-P - September 2011...
  • Page 602 The condition of a circuit or system. terminal A point on an I/O module that external devices, such as a push button or pilot light, are wired to. Publication 1763-RM001D-EN-P - September 2011...
  • Page 603 If the watchdog runs past its programmed time period, it causes a fault. write To send data to another device. For example, the processor writes data to another device with a message write instruction. Publication 1763-RM001D-EN-P - September 2011...
  • Page 604 Notes: Publication 1763-RM001D-EN-P - September 2011...
  • Page 605 20-337 DF1 full-duplex parameters status bits D-505 20-312 20-313 DF1 half-duplex parameters D-512 D-516 timing diagram 20-336 DF1 radio modem parameters ASCII integer to string instruction D-519 20-316 DH485 parameters D-503 Publication 1763-RM001D-EN-P - September 2011...
  • Page 606 8-176 configuration parameters D-503 count up instruction 8-176 description D-502 counters protocol D-502 counter file 8-173 token rotation D-502 counter file and status bits 8-174 DIN rail G-595 definition G-594 DIV instruction 10-194 Publication 1763-RM001D-EN-P - September 2011...
  • Page 607 DLG Quick Start example E-561 11-205 HSC Quick Start instruction E-546 11-204 MSG Quick Start free running clock E-550 B-476 PTO Quick Start free running clock status E-541 B-476 PWM Quick Start full-duplex E-544 G-596 Publication 1763-RM001D-EN-P - September 2011...
  • Page 608 C-491 23-449 IIM instruction 17-255 23-452 immediate input with mask instruction 17-255 23-451 immediate output with mask instruction 17-257 23-452 in-line indirection 20-336 POT0 23-451 input and output instructions 17-255 POT1 23-451 input device G-596 Publication 1763-RM001D-EN-P - September 2011...
  • Page 609 16-252 monitoring controller operation, fault recovery procedure math instructions 10-187 C-492 math overflow selection bit B-475 MOV instruction 13-217 math register status B-481 move instructions 13-217 maximum scan time status B-482 MCR instruction 16-252 Publication 1763-RM001D-EN-P - September 2011...
  • Page 610 5-120 operating voltage G-600 programming device G-601 OR instruction 12-214 programming instructions 4-81 OSF instruction 7-164 proportional integral derivative OSR instruction 7-164 application notes 19-300 OTE instruction 7-161 PID instruction 19-282 Publication 1763-RM001D-EN-P - September 2011...
  • Page 611 G-602 Quick Start example E-556 scan time G-602 real-time clock adjust instruction 3-53 last 100 µSec scan time status B-485 recipe 22-427 maximum scan time status B-482 recipe instruction 22-427 scan time worksheet Publication 1763-RM001D-EN-P - September 2011...
  • Page 612 B-468 subroutine label instruction 16-250 user fault routine subtract instruction 10-193 creating a user fault routine 18-262 SUS instruction 16-251 file number status B-482 suspend code status B-480 major error detected status bit B-477 Publication 1763-RM001D-EN-P - September 2011...
  • Page 613 7-159 user interrupt enable instruction 18-266 XIO instruction 7-159 user interrupt flush instruction 18-267 XOR instruction 12-215 user memory 2-37 user program functionality type status B-489 zero flag B-467 watchdog scan time B-475 write G-603 Publication 1763-RM001D-EN-P - September 2011...
  • Page 614 Publication 1763-RM001D-EN-P - September 2011...
  • Page 615 6-133 MCR - Master Control Reset 16-252 PWM - Pulse Width Modulation 6-150 MEQ - Mask Compare for Equal 9-182 RTC - Real Time Clock 3-51 MOV - Move 13-217 ES - Ethernet Status 3-71 Publication 1763-RM001D-EN-P - September 2011...
  • Page 616 Instruction- Description Page Instruction- Description Page MSG - Message 21-346 STI - Selectable Timed Interrupt 18-268 MUL - Multiply 10-194 ES - Ethernet Status 3-71 MVM - Masked Move 13-219 Publication 1763-RM001D-EN-P - September 2011...
  • Page 618 Rockwell Automation representative. New Product Satisfaction Return Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility. However, if your product is not functioning and needs to be returned, follow these procedures.