background image

MicroLogix™ 1100 
Programmable 
Controllers

Bulletin 1763 Controllers and 1762 
Expansion I/O

Instruction Set Reference 
Manual

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Содержание 1763-L16AWA

Страница 1: ...MicroLogix 1100 Programmable Controllers Bulletin1763Controllersand1762 Expansion I O Instruction Set Reference Manual efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 2: ...ct to use of information circuits equipment or software described in this manual Reproduction of the contents of this manual in whole or in part without written permission of Rockwell Automation Inc is prohibited Throughout this manual when necessary we use notes to make you aware of safety considerations Rockwell Automation DeviceNet ModBus Allen Bradley SLC 5 02 SLC 5 03 PLC 5 MicroLogix SLC 500...

Страница 3: ...ept to allow you access to the new features See Firmware Upgrades below Firmware Upgrades Enhanced features are added to the controllers through a firmware upgrade This firmware upgrade is not required except to allow you access to the latest features To use the newest features be sure your controller s firmware is at the following level To upgrade the firmware for a MicroLogix controller visit th...

Страница 4: ...Publication 1763 RM001C EN P October 2009 4 Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 5: ... 33 Related Documentation 34 Rockwell Automation Support 34 Chapter 1 Controller Memory and File Types Controller Memory 36 Data Files 40 Protecting Data Files During Download 42 Static File Protection 44 Password Protection 45 Clearing the Controller Memory 46 Allow Future Access Setting OEM Lock 47 Web View Disable OS Series B FRN 4 or later 47 Chapter 2 Function Files Overview 50 Real Time Cloc...

Страница 6: ...tion 128 Pulse Train Outputs PTO Function File 133 Pulse Train Output Function File Sub Elements Summary 134 PWM Pulse Width Modulation 149 PWM Function 150 Pulse Width Modulation PWM Function File 150 Pulse Width Modulated Function File Elements Summary 152 Chapter 6 Relay Type Bit Instructions XIC Examine if Closed XIO Examine if Open 159 OTE Output Energize 161 OTL Output Latch OTU Output Unlat...

Страница 7: ... CLR Clear 194 ABS Absolute Value 195 SCL Scale 196 SCP Scale with Parameters 197 SQR Square Root 199 Chapter 10 Conversion Instructions Using Decode and Encode Instructions 201 DCD Decode 4 to 1 of 16 202 ENC Encode 1 of 16 to 4 203 FRD Convert from Binary Coded Decimal BCD 204 TOD Convert to Binary Coded Decimal BCD 208 GCD Gray Code 210 Chapter 11 Logical Instructions Using Logical Instructions...

Страница 8: ... Label 250 JSR Jump to Subroutine 250 SBR Subroutine Label 250 RET Return from Subroutine 251 SUS Suspend 251 TND Temporary End 251 END Program End 252 MCR Master Control Reset 252 Chapter 16 Input and Output Instructions IIM Immediate Input with Mask 255 IOM Immediate Output with Mask 257 REF I O Refresh 258 Chapter 17 Using Interrupts Information About Using Interrupts 259 User Interrupt Instruc...

Страница 9: ... Buffers 314 AIC ASCII Integer to String 316 AWA ASCII Write with Append 317 AWT ASCII Write 319 ABL Test Buffer for Line 322 ACB Number of Characters in Buffer 323 ACI String to Integer 324 ACN String Concatenate 326 AEX String Extract 327 AHL ASCII Handshake Lines 328 ARD ASCII Read Characters 330 ARL ASCII Read Line 331 ASC String Search 333 ASR ASCII String Compare 334 Timing Diagram for ARD A...

Страница 10: ...end SMTP message 422 Chapter 21 Recipe and Data Logging RCP Recipe 427 Data Logging 433 Queues and Records 433 Configuring Data Log Queues 437 DLG Data Log Instruction 439 Data Log Status File 440 Retrieving Reading Records 442 Accessing the Retrieval File 442 Conditions that Will Erase the Data Retrieval File 444 Chapter 22 LCD LCD Information LCD Overview 445 LCD Function File 446 LCD Function F...

Страница 11: ...3 Quick Start Real Time Clock RTC 554 17558 Quick Start User Interrupt Disable UID 555 18465 Quick Start RTC Synchronization Between Controllers 556 18498 Quick Start Data Logging DLG 559 Appendix F How to Use 40kHz PTO PWM of MicroLogix 1100 Series B Controller Basic requirements to use 40KHz PTO and PWM in MicroLogix Controller 569 PTO and PWM function file changes in Series B Controller 569 RSL...

Страница 12: ...Publication 1763 RM001C EN P October 2009 12 Table of Contents Glossary Index MicroLogix 1100 List of Instructions and Function Files efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 13: ...apping on page 16 I O Addressing on page 24 I O Forcing on page 25 Input Filtering on page 25 Latching Inputs on page 28 Embedded I O The MicroLogix 1100 provide discrete I O and analog input that is built into the controller as listed in the following table These I O points are referred to as Embedded I O Controller Family Inputs Outputs Quantity Type Quantity Type MicroLogix 1100 Controllers 176...

Страница 14: ...rable input filters for a number of special functions that can be used in your application These are high speed counting event input interrupts and latching inputs The 1763 L16BBB has two high speed outputs for use as pulse train output PTO and or pulse width modulation PWM outputs efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 15: ... up to four expansion I O modules in any combination Addressing Expansion I O Slots The figure below shows the addressing for the MicroLogix 1100 and its I O The expansion I O is addressed as slots 1 through 4 the controller s embedded I O is addressed as slot 0 Modules are counted from left to right as shown below TIP In most cases you can use the following address format X s b X file type letter...

Страница 16: ...ly 1762 IQ32T Input Image For each input module the input data file contains the current state of the field input points Bit positions 0 15 together with word 0 1 correspond to input terminals 0 31 r read only 1762 OX6I and 1762 IQ8OW6 Output Image For each output module the output data file contains the controller directed state of the discrete output points Bit positions 0 through 5 correspond t...

Страница 17: ...ite 1762 OV32T 1762 OB32T Output Image For each output module the output data file contains the controller directed state of the discrete output points Bit positions 0 15 together with word 0 1 correspond to output terminals 0 31 r w read and write Word Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 r w r w r w r w r w r w Word Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3...

Страница 18: ...re is a general module hardware error Valid Input Output Data Word Formats Ranges Normal Operating Range Full Scale Range Raw Proportional Data Scaled for PID 0 to 10V dc 10 5V dc 32 760 16 380 0 0V dc 0 0 4 to 20 mA 21 0 mA 32 760 16 380 20 0 mA 31 200 15 600 4 0 mA 6240 3120 0 0 mA 0 0 Raw Proportional Format Word Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 Channel 0 Data 0 to 32 768 ...

Страница 19: ...ion is shown below The bits are defined as follows Sx General status bits for channels 0 through 3 This bit is set when an error over or under range exists for that channel or there is a general module hardware error Raw Proportional Format Word Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 Channel 0 Data 0 to 32 768 0 0 0 1 0 Channel 1 Data 0 to 32 768 0 0 0 Scaled for PID Format Word Bi...

Страница 20: ...ed as follows SOx General status bits for output channels 0 through 3 This bit is set when an error over or under range exists for that channel or there is a general module hardware error OOx Over range flag bits for output channels 0 through 3 These bits indicate an input signal above the user range and can be used in the control program for error detection The module continues to convert analog ...

Страница 21: ... 0 and 1 but checks the sign bit 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 Raw Proportional Format Word Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 Channel 0 Data 0 to 32 760 0 0 0 1 0 Channel 1 Data 0 to 32 760 0 0 0 2 0 Channel 2 Data 0 to 32 760 0 0 0 ...

Страница 22: ...or details OCx Open circuit indication for channels 0 through 3 using either RTD or resistance inputs Short circuit detection for RTD inputs only Short circuit detection for resistance inputs is not indicated because 0 is a valid number Ox Over range flag bits for input channels 0 through 3 using either RTD or resistance inputs These bits can be used in the control program for error detection Ux U...

Страница 23: ...er Manual publication 1762 UM002 for additional details OCx Open circuit indication for channels 0 through 3 OC0 through OC3 and the CJC sensor OC4 Ox Over range flag bits for channels 0 through 3 O0 through O3 and the CJC sensor O4 These bits can be used in the control program for error detection Ux Under range flag bits for channels 0 through 3 U0 through U3 and the CJC sensor U4 These bits can ...

Страница 24: ... 1100 See page 15 for an illustration Word delimiter Required only if a word number is necessary as noted below w Word number Required to read write words or if the discrete bit number is above 15 Range 0 to 255 Bit delimiter b Bit number 0 to 15 Addressing Level Example Address 1 Slot Word Bit Bit Addressing O 0 4 2 Output Slot 0 Embedded I O word 0 output bit 4 O 2 7 2 Output Slot 2 Expansion I ...

Страница 25: ...t LCD indicator will be set to the forced state Input Filtering The MicroLogix 1100 controllers allow users to configure groups of DC inputs for high speed or normal operation Users can configure each input group s response time A configurable filter determines how long the input signal must be on or off before the controller recognizes the signal The higher the value the longer it takes for the i...

Страница 26: ...nels are single ended unipolar circuits and accept 0 10V dc Input words 4 5 contain the value of analog inputs Word 4 analog input channel 0 Word 5 analog input channel 1 Analog Input Filter and Update times The MicroLogix 1100 analog input filter is programmable The slower the filter setting the more immune the analog inputs are to electrical noise The more immune the analog inputs are to electri...

Страница 27: ...above the pass band are sharply rejected An area of particular concern is the 50 60 Hz region where pick up from power lines can occur Converting Analog Data 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 Programmable Filter Characteri...

Страница 28: ...er provides the ability to individually configure inputs to be latching inputs sometimes referred to as pulse catching inputs A latching input is an input that captures a very fast pulse and holds it for a single controller scan The pulse width that can be captured is dependent upon the input filtering selected for that input The following inputs can be configured as latching inputs You enable thi...

Страница 29: ...provided for a controller looking for an on pulse When an external signal is detected on the controller latches this event In general at the next input scan following this event the input image point is turned on and remains on for the next controller scan It is then set to off at the next input scan The following figures help demonstrate this Rising Edge Behavior Example 1 Scan Number X Scan Numb...

Страница 30: ...rea of the Latched Status waveform is the input filter delay IMPORTANT The input file value does not represent the external input when the input is configured for latching behavior When configured for rising edge behavior the input file value is normally off on for 1 scan when a rising edge pulse is detected Scan Number X Scan Number X 1 Scan Number X 2 External Input Latched Status Input File Val...

Страница 31: ...e value is normally on off for 1 scan when a falling edge pulse is detected Scan Number X Scan Number X 1 Scan Number X 2 External Input Latched Status Input File Value Input Scan Ladder Scan Output Scan Scan Number X 3 Input Scan Ladder Scan Output Scan Input Scan Ladder Scan Output Scan Input Scan Ladder Scan Output Scan Scan Number X Scan Number X 1 Scan Number X 2 External Input Latched Status...

Страница 32: ...uration drag the Compact I O module to the slot For automatic configuration you must have the controller connected online to the computer either directly or over a network Click the Read I O Config button on the I O configuration screen RSLogix 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 cl...

Страница 33: ...Purpose of this Manual This manual is a reference guide for MicroLogix 1100 controller It describes the procedures you use to program and troubleshoot your controller This manual gives you an overview of the file types used by the controllers provides the instruction set for the controllers contains application examples to show the instruction set in use Common Techniques Used in this Manual The f...

Страница 34: ...twork wiring Advanced Interface Converter AIC User Manual 1761 6 4 Information on how to install configure and commission a DNI DeviceNet Interface User Manual 1761 6 5 Information on DF1 open protocol DF1 Protocol and Command Set Reference Manual 1770 6 5 16 In depth information on grounding and wiring Allen Bradley programmable controllers Allen Bradley Programmable Controller Grounding and Wiri...

Страница 35: ...hapter is organized as follows Controller Memory on page 36 Data Files on page 40 Protecting Data Files During Download on page 42 Static File Protection on page 44 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 36: ...stem File 1 1 Data Log Queue 1 2 Status File PWM Pulse Width Modulation 2 Program File 2 2 to 255 Data Log Queues 2 to 255 3 Bit File STI Selectable Timed Interrupt 3 to 255 Program Files 3 to 255 0 Recipe File 0 4 Timer File EII Event Input Interrupt 1 Recipe File 1 5 Counter File RTC Real Time Clock 2 to 255 Recipe Files 2 to 255 6 Control File 7 Integer File MMI Memory Module Information 8 Floa...

Страница 37: ...ger data file element 1 user word 1 long word file element 2 user words 1 timer data file element 3 user words For program files a word is the equivalent of a ladder instruction with one operand For example 1 1 XIC instruction which has 1 operand consumes 1 user word 1 EQU instruction which has 2 operands consumes 2 user words 1 ADD instruction which has 3 operands consumes 3 user words Function f...

Страница 38: ...ix 1100 Memory Usage and Instruction Execution Time on page 457 to find the memory usage for specific instructions The MicroLogix 1100 controller also supports 64K bytes of battery backed memory for Data Logging or Recipe operations See Chapter 21 for Data Logging and Recipe information See System Status File on page 465 to find the memory usage for specific instructions 4 0K 0 5K 0K 0K 4 0K 4 7K ...

Страница 39: ...e Types 39 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 40: ...sition information for various ladder logic instructions See Control Data File on page 313 for more information Integer File N 7 9 to 255 1 The Integer File is a general purpose file consisting of 16 bit signed integer data words Floating Point File F 8 9 to 255 2 The Floating Point File is a general purpose file consisting of 32 bit IEEE 754 floating point data elements See Using the Floating Poi...

Страница 41: ...MSG instruction See Communications Instructions on page 341 for information on the MSG instruction 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 File Name File Identifier File Number 2 Words per Element File Description efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 42: ...eds to remain intact This capability is referred to as Data File Download Protection The protection feature operates when A User Program is downloaded via programming software A User Program is downloaded from a Memory Module Setting Download File Protection Download File Protection can be applied to the following data file types Output O Input I Binary B Timer T Counter C Control R Integer N Floa...

Страница 43: ...hese conditions are not met the entire User Program is transferred to the controller Additionally if the program in the controller contains protected files the Data Protection Lost indicator S 36 10 is set to indicate that protected data has been lost For example a control program with protected files is transferred to the controller The original program did not have protected files or the files d...

Страница 44: ...e used in combination with MicroLogix 1100 Controller Series A and higher Setting Static File Protection Static File Protection can be applied to the following data file types Output O Input I Status S Binary B Timer T Counter C Control R Integer N Floating Point F String ST Long Word L Proportional Integral Derivative PD Message MG Programmable Limit Switch PLS Routing Information RI Extended Rou...

Страница 45: ... passwords consist of up to 10 digits 0 9 Each controller program may contain two passwords the Password and the Master Password Passwords restrict access to the controller The Master Password takes precedence over the Password The idea is that all controllers in a project would have different Passwords but the same Master Password allowing access to all controllers for supervisory or maintenance ...

Страница 46: ...er you can clear the controller memory and download a new User Program You can clear the memory when the programming software prompts you for a System or Master Password to go on line with the controller To do so 1 Enter 65257636 the telephone keypad equivalent of MLCLRMEM MicroLogix Clear Memory 2 When the Programming Software detects this number has been entered it asks if you want to clear the ...

Страница 47: ...es window as shown below When Allow Future Access is deselected the controller requires that the User Program in the controller is the same as the one in the programming device If the programming device does not have a matching copy of the User Program access to the User Program in the controller is denied To access the User Program clear controller memory and reload the program Web View Disable O...

Страница 48: ... can disable individual data files from being viewed via any web browser by selecting the data file s properties page and checking the Web View Disable check box as shown below Any data file property changes must be made offline and downloaded to the processor efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 49: ...follows Overview on page 50 Real Time Clock Function File on page 51 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 50: ... type is associated with the Selectable Timed Interrupt function See Using the Selectable Timed Interrupt STI Function File on page 268 for more information Event Input Interrupt EII This file type is associated with the Event Input Interrupt instruction See Using the Event Input Interrupt EII Function File on page 272 for more information Real Time Clock RTC This file type is associated with the ...

Страница 51: ...te Time in the RTC Function File screen to set the RTC time to the current time on your PC Real Time Clock Function File Feature Address Data Format Range Type User Program Access YR RTC Year RTC 0 YR word 1998 to 2097 status read only MON RTC Month RTC 0 MON word 1 to 12 status read only DAY RTC Day of Month RTC 0 DAY word 1 to 31 status read only HR RTC Hours RTC 0 HR word 0 to 23 military time ...

Страница 52: ...to fail in the next two days In the latter case the replacement battery needs to be replaced with a new one When the battery low indicator bit is clear 0 the battery level is acceptable TIP Use the Disable Clock button in your programming device to disable the real time clock before storing a module This decreases the drain on the battery during storage Real Time Clock Accuracy at Various Temperat...

Страница 53: ...progress when the RTA instruction is executed External communications to the RTC takes precedence over the RTA instruction To re activate the RTA instruction the RTA rung must become false and then true Execution Time for the RTA Instruction Controller When Rung Is True False MicroLogix 1100 4 37 µs 4 09 µs IMPORTANT The RTA instruction will only change the RTC when the RTA rung is evaluated true ...

Страница 54: ...nd their valid ranges are shown in the table below FT Functionality Type The LSB of this word identifies the type of module installed 1 Memory Module MM1 MMI Function File Parameters Feature Address Data Format Type User Program Access FT Functionality Type MMI 0 FT word INT status read only MP Module Present MMI 0 MP binary bit status read only WP Write Protect MMI 0 WP binary bit control read on...

Страница 55: ... Override bit represents the status of the fault override setting of the program stored in the memory module It enables you to determine the value of the FO bit without actually loading the program from the memory module See Fault Override At Power Up on page 470 for more information LPC Load Program Compare The LPC Load Program Compare bit shows the status of the load program compare selection in...

Страница 56: ...ding the user program from the memory module See Load Memory Module Always on page 471 for more information MB Mode Behavior The MB Mode Behavior bit represents the status of the mode behavior setting in the program stored in the memory module It enables you to determine the value of the selection without actually loading the user program from the memory module See Power Up Mode Behavior on page 4...

Страница 57: ...Status File Size Controller Number of Word Elements MicroLogix 1100 71 1 word elements TIP You can use the Communications Status File information as a troubleshooting tool for communications issues Communications Status File Word Description Applies to Controller Details on Page 0 to 5 General Channel Status Block MicroLogix 1100 58 6 to 22 DLL Diagnostic Counters Block MicroLogix 1100 60 23 to 42...

Страница 58: ... or REF this bit is cleared 0 2 MCP Outgoing Message Command Pending Bit This bit is set 1 when the controller has one or more MSG instructions enabled and in the communication queue This bit is cleared 0 when the queue is empty 3 SSB Selection Status Bit This bit indicates that the controller is in the System Mode It is always set 4 CAB Communications Active Bit This bit is set 1 when at least on...

Страница 59: ...while monitoring them online with the programming software Diagnostic Counter Blocks are shown for DH 485 on page 60 DF1 Full Duplex on page 61 DF1 Half Duplex Slave on page 62 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 TIP Clicking on the Clear button while online monitoring Channel Status of either channe...

Страница 60: ...ngth always 30 8 Format Code always 0 9 Total Message Packets Received 10 Total Message Packets Sent 11 0 to 7 Message Packet Retries 8 to 15 Retry Limit Exceeded Non Delivery 12 0 to 7 NAK No Memories Sent 8 to 15 NAK No Memories Received 13 0 to 7 Total Bad Message Packets Received 8 to 15 Reserved 14 to 22 Reserved efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 61: ...ways 1 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 to 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 ENQuiry Packets Sent 14 NAK Packets Received 15 ENQuiry Packets Received 16 Bad Message Packets Received and NAKed 17 No Buffer Space and NAK ed 18 Duplicate Message Packets Received 19 to 22 Reserved efesotomasyon com Allen Bradley Rockwell ...

Страница 62: ... 8 Format Code always 2 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 to 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 Message Packets Retried 14 NAK Packets Received 15 Polls Received 16 Bad Message Packets Received 17 No Buffer Space 18 Duplicate Message Packets Received 19 to 22 Reserved efesotomasyon com Allen Bradley Rockwell plc servo d...

Страница 63: ...rved 4 to 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 Message Packets Retried 14 Reserved 15 Polls Sent 16 Bad Message Packets Received 17 No Buffer Space Received Packet Dropped 18 Duplicate Message Packets Received 19 Last Normal Poll List Scan 20 Max Normal Poll List Scan 21 Last Priority Poll List Scan 22 Max Priority Poll List ...

Страница 64: ...h always 30 8 Format Code always 1 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 to 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 to 15 Reserved 16 Bad Message Packets Received 17 No Buffer Space Received Packet Dropped 18 Duplicate Message Packets Received 19 to 22 Reserved efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 65: ... Identifier Code always 10 44 Length always 14 45 Format Code always 0 46 Pre Send Time Delay 47 0 to 7 Node Address 8 to 15 Reserved 48 Inter Character Timeout 49 RTS Send Delay 50 RTS Off Delay 51 0 to 7 Baud Rate 8 and 9 Parity 10 to 15 Reserved 52 Diagnostic Counters Category Identifier Code always 6 53 Length always 32 54 Format Code always 0 55 Presentation Layer Error Code 56 Presentation L...

Страница 66: ...yer Word Bit Description 6 Diagnostic Counters Category Identifier Code always 2 7 Length always 30 8 Format Code always 9 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 to 15 Reserved 10 Total Message Packets Sent 11 Reserved 12 Total Message Packets Received 13 Link Layer Error Count 14 Link Layer Error Code 15 to 22 Reserved Modbus RTU Slave Diagnostic Counters Block Presentation Layer Word Bit Descript...

Страница 67: ...on 56 Last Device Reporting ERR 1 57 ERR 2 Illegal Data Address 58 Last Device Reporting ERR 2 59 ERR 3 Illegal Data Value 60 Last Device Reporting ERR 3 61 ERR 4 Slave Device Failure 62 ERR 5 Acknowledge 63 ERR 6 Slave Device Busy 64 ERR 7 Negative Acknowledgement 65 ERR 8 Memory Parity Error 66 Non Standard Response 67 Last Device Reporting ERR 4 to ERR 8 or Non Standard Response 68 and 69 Reser...

Страница 68: ...egory Identifier code always 2 7 Length always 30 8 Format Code always 5 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 to 15 Reserved 10 0 Software Handshaking Status 1 to 15 Reserved 11 Echo Character Count 12 Received Character Count 13 to 18 Reserved 19 Bad Character Count 20 to 22 Reserved efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 69: ...255 for DF1 Half Duplex Master always 0 for DF1 Full Duplex DF1 Half Duplex Slave Modbus RTU Slave Modbus RTU Master and ASCII 27 Active Node Table DH 485 and DF1 Half Duplex Master Nodes 0 to 15 CS0 27 1 is node 1 CS0 27 2 is node 2 etc This is a bit mapped register that displays the status of each node on the network If a bit is set 1 the corresponding node is active on the network If a bit is c...

Страница 70: ...Publication 1763 RM001C EN P October 2009 70 Function Files efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 71: ...neral Status Block of Ethernet Communications Status File TIP You can use the Ethernet Communications Status File information as a troubleshooting tool for Ethernet communications issues Communications Status File Word Description Applies to Controller Details on Page 0 to 119 General Channel Status Block MicroLogix 1100 58 120 to 176 DLL Diagnostic Counters Block MicroLogix 1100 60 177 End of Lis...

Страница 72: ...nstruction is serviced during end of scan SVC or REF this bit is cleared 0 2 MCP Outgoing Message Command Pending Bit This bit is set 1 when the controller has one or more MSG instructions enabled and in the communication queue This bit is cleared 0 when the queue is empty 3 to 5 Reserved Always zero 6 HTTP Server Status This bit is set 1 when the internal web server is enabled The cleared bit 0 m...

Страница 73: ...d If DHCP Enable Flag in Ethernet Port Communications Configuration File is set 1 Yes and this flag is cleared 0 False then network related information is invalid 10 BOOTP Status Flag This bit is set 1 if BOOTP is selected as configuration method 11 DHCP Status Flag This bit is set 1 if DHCP is selected as configuration method 12 Advertise 100 MB Full Duplex Flag This bit indicates advertisement s...

Страница 74: ...rved Always zero 117 Message Connection Timeout The amount of time in ms allowed for a MSG instruction to establish a connection with the destination node The MSG Connection Timeout has a range of 250 ms 65 500 ms 118 Message Reply Timeout The amount of time in ms that the MicroLogix 1100 processor waits for a reply to a command that it has initiated via a MSG instruction The MSG Reply Timeout has...

Страница 75: ...ve FIFO Overflow Count IEEE_R_MACERR High word 141 142 Low word Frames transmitted with Tx FIFO Under run IEEE_T_MACERR High word 143 144 Low word Frames Transmitted with Single Collision IEEE_T_1COL High word 145 146 Low word Frames Transmitted with Multiple Collisions IEEE_T_MCOL High word 147 148 Low word Frames Transmitted with Deferral Delay IEEE_T_DEF High word 149 150 Low word Frames Transm...

Страница 76: ...09 76 Function Files Ethernet Diagnostic Counters Block continued Word Bit Description 155 156 Low word Total Commands Sent High word 157 158 Low word Total Commands Received High word efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 77: ...on 159 160 Low word Total Replies Sent High word 161 162 Low word Total Replies Received High word 163 164 Low word Total Replies Sent with Error High word 165 166 Low word Total Replies Received with Error High word 167 168 Low word Total Replies Timed Out High word efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 78: ...hernet Communications Status File Ethernet Diagnostic Counters Block continued Word Bit Description 169 170 Low word Total Message Connections High word 171 172 Low word Total Incoming Messages High word 173 174 Low word Total Outgoing Messages High word 175 176 Low word Maximum Connections Allowed High word efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 79: ... status of the embedded and local expansion I O The data file is structured as Input Output Status File Word Description 0 Embedded Module Error Code Always zero 1 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 80: ...Publication 1763 RM001C EN P October 2009 80 Function Files Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 81: ...binary and decimal values 201 Logical AND OR XOR NOT The logical instructions perform bit wise logical operations on words 211 Move MOV MVM The move instructions modify and move words 217 File CPW COP FLL BSL BSR FFL FFU LFL LFU The file instructions perform operations on file data 221 Sequencer SQC SQO SQL Sequencer instructions are used to control automatic assembly machines that have consistent...

Страница 82: ...e 49 CS See Communications Status File on page 57 IOS See Input Output Status File on page 79 DLS See Data Log Status File on page 440 Address Mode See Addressing Modes on page 83 Addressing Level Address levels describe the granularity at which an instruction allows an operand to be used For example relay type instructions XIC XIO etc must be programmed to the bit level timer instructions TON TOF...

Страница 83: ...essing is primarily used to assign numeric constants within instructions For example You require a 10 second timer so you program a timer with a 1 second time base and a preset value of 10 The numbers 1 and 10 in this example are both forms of immediate addressing Direct Addressing When you use direct addressing you define a specific data location within the controller Any data location that is su...

Страница 84: ...ted a closed bracket is used The following examples illustrate how to use indirect addressing Indirect Addressing of a Word Address N7 N10 1 In this example the element number to be used for source A in the ADD instruction is defined by the number located in N10 1 If the value of location N10 1 15 the ADD instruction operates as N7 15 Source B In this example the element specified by N10 1 must be...

Страница 85: ...arger than 255 is placed in N50 100 in this example a controller fault occurs This is because the controller has a maximum of 255 data files In addition the file defined by the indirection should match the file type defined by the instruction in this example an integer file TIP This example also illustrates how to perform a limit check on the indirect address The limit instruction at the beginning...

Страница 86: ...uctions may or may not allow indirection Please review the compatibility table for each instruction to determine which elements within an instruction support indirection TIP If a number larger than 4096 or larger than the number of elements in the data file is placed in B25 0 in this example data integrity cannot be guaranteed Exceeding the number of elements in the data file would cause the file ...

Страница 87: ...for comparison purposes Indexed Addressing Example The following ADD instruction uses an indexed address in the Source A and Destination addresses If the indexed offset value is 20 stored in S 24 the controller uses the data stored at the base address plus the indexed offset to perform the operation In this example the controller uses the following addresses Operand Base Address Offset Value in S ...

Страница 88: ...tion uses an indirect address in the Source A and Destination addresses If the indirect offset value is 20 stored in N7 3 the controller uses the data stored at the base address plus the indirect offset to perform to instruction In this example the controller uses the following addresses Operand Base Address Offset Value in N7 3 Working Address Source A N7 0 20 N7 20 Destination N7 0 20 N15 20 Ind...

Страница 89: ...RAC instructions as follows High Speed Counter HSC Function File on page 90 HSL High Speed Counter Load on page 118 RAC Reset Accumulated Value on page 119 Programmable Limit Switch Overview The Programmable Limit Switch function allows you to configure the High Speed Counter to operate as a PLS programmable limit switch or rotary cam switch See page 120 for more information 1 OS Series B FRN 4 or...

Страница 90: ...cess to all information pertaining to the High Speed Counter 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 TIP If the controller is in the run mode the...

Страница 91: ... are 20 kHz 40 kHz 1 operation High speed direct control of outputs 32 bit signed integer data count range of 2 147 483 647 Programmable High and Low presets and Overflow and Underflow setpoints Automatic Interrupt processing based on accumulated count Run time editable parameters from the user control program The High Speed Counter function operates as described in the following diagram 1 OS Seri...

Страница 92: ...0 HPM bit 0 to 7 control read write 101 UFM Underflow Mask HSC 0 UFM bit 2 to 7 control read write 102 OFM Overflow Mask HSC 0 OFM bit 0 to 7 control read write 105 LPI Low Preset Interrupt HSC 0 LPI bit 2 to 7 status read write 99 HPI High Preset Interrupt HSC 0 HPI bit 0 to 7 status read write 101 UFI Underflow Interrupt HSC 0 UFI bit 2 to 7 status read write 103 OFI Overflow Interrupt HSC 0 OFI...

Страница 93: ...s 1 1 For Mode descriptions see HSC Mode MOD on page 107 Type User Program Access PFN Program File Number HSC 0 PFN word INT 0 to 7 control read only Description Address Data Format HSC Modes 1 1 For Mode descriptions see HSC Mode MOD on page 107 Type User Program Access ER Error Code HSC 0 ER word INT 0 to 7 status read only HSC Error Codes Error Code Name Mode 1 1 For Mode descriptions see HSC M...

Страница 94: ...be set to enable the HSC Error Detected ED The ED Error Detected flag is a status bit that can be used in the control program to detect if an error is present in the 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 Description Address Data Format HSC Modes 1 1 For M...

Страница 95: ...M001C EN P October 2009 Using the High Speed Counter and Programmable Limit Switch 95 This bit is maintained by the controller and is set and cleared automatically efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 96: ...ction with the address of HSC 0 SP is solved true off to on rung transition all configuration variables currently stored in the HSC function are checked and loaded into the HSC sub system The HSC sub system then operates based on those newly loaded settings 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 ...

Страница 97: ... is set 1 whenever the HSC sub system begins processing the 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 Description Address Data Format HSC Modes 1 1 For Mode descriptions see HSC Mode MOD on page 107 Type User Program Access UIE User In...

Страница 98: ...ntained by the controller and is set and cleared automatically User Interrupt Lost UIL The UIL User Interrupt Lost is a status flag that represents an interrupt has been lost 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 Descripti...

Страница 99: ...e control program to identify that the low preset condition caused the HSC interrupt If the control program needs to perform any specific control action based on the low preset this bit would be used as conditional logic 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 Inter...

Страница 100: ...ted 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 Description Address Data Format HSC Modes 1 1 For Mode descriptions see HSC Mode MOD on page 107 Type User Program Access LPR Low Preset Reached HSC 0 LPR bit 2 to 7 status read only efesotomasyon com Allen Bradley Roc...

Страница 101: ...n the control program to identify that the high preset condition caused the HSC interrupt If the control program needs to perform any specific control action based on the high preset this bit is used as conditional logic 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...

Страница 102: ...and is set by the HSC sub system It is up to the control program to utilize track if necessary and clear 0 the underflow condition Underflow conditions do not generate a controller fault Underflow Mask UFM Description Address Data Format HSC Modes 1 1 For Mode descriptions see HSC Mode MOD on page 107 Type User Program Access HPR High Preset Reached HSC 0 HPR bit 2 to 7 status read only Descriptio...

Страница 103: ... If the control program needs to perform any specific control action based on the underflow this bit is used as conditional logic 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 Overflow Interrupt executes Controller enters an executing mode Overflow OF The...

Страница 104: ...mmable Limit Switch This bit is transitional and is set by the HSC sub system It is up to the control program to utilize track if necessary and clear 0 the overflow condition Overflow conditions do not generate a controller fault efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 105: ... the control program to identify that the overflow variable caused the HSC interrupt If the control program needs to perform any specific control action based on the overflow this bit is used as conditional logic 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 execu...

Страница 106: ...e HSC is configured for Mode 0 or Mode 1 behavior and the accumulator counts up to the High Preset Count Down CD 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 Description Address Data Format HSC Modes 1 1 For Mode descriptions see HSC Mode MOD on page 107 Type User Program Access DI...

Страница 107: ... Up HSC 0 CU bit 0 to 7 status read only Description Address Data Format Type User Program Access MOD HSC Mode HSC 0 MOD word INT control read only HSC Operating Modes Mode Number Type 0 Up Counter The accumulator is immediately cleared 0 when it reaches the high preset A low preset cannot be defined in this mode 1 Up Counter with external reset and hold The accumulator is immediately cleared 0 wh...

Страница 108: ...ccumulator value TIP Inputs I1 0 0 0 through I1 0 0 3 are available for use as inputs to other functions regardless of the HSC being used HSC Mode 1 Examples Input Terminals I1 0 0 0 HSC0 I1 0 0 1 HSC0 I1 0 0 2 HSC0 I1 0 0 3 HSC0 CE Bit Comments Function Count Not Used Reset Hold Example 1 on 1 off 0 off 0 on 1 HSC Accumulator 1 count Example 2 on 1 off 0 on 1 Hold accumulator value Example3 on 1 ...

Страница 109: ...ccumulator value TIP Inputs I1 0 0 0 through I1 0 0 3 are available for use as inputs to other functions regardless of the HSC being used HSC Mode 3 Examples Input Terminals I1 0 0 0 HSC0 I1 0 0 1 HSC0 I1 0 0 2 HSC0 I1 0 0 3 HSC0 CE Bit Comments Function Count Direction Reset Hold Example 1 off 0 on 1 off 0 off 0 on 1 HSC Accumulator 1 count Example 2 on 1 on 1 off 0 off 0 on 1 HSC Accumulator 1 c...

Страница 110: ... Hold accumulator value TIP Inputs I1 0 0 0 through I1 0 0 3 are available for use as inputs to other functions regardless of the HSC being used HSC Mode 5 Examples Input Terminals I1 0 0 0 HSC0 I1 0 0 1 HSC0 I1 0 0 2 HSC0 I1 0 0 3 HSC0 CE Bit Comments Function Count Direction Reset Hold Example 1 on 1 off 0 on 1 off 0 off 0 on 1 HSC Accumulator 1 count Example 2 on 1 off 0 on 1 off 0 off 0 on 1 H...

Страница 111: ...he encoders typically provide one pulse per revolution HSC Mode 6 Quadrature Counter phased inputs A and B Quadrature Encoder Input 0 Input 1 Input 2 A B Z Reset input Reverse Rotation Forward Rotation B A 1 2 3 2 1 Count HSC Mode 6 Examples Input Terminals I1 0 0 0 HSC0 I1 0 0 1 HSC0 I1 0 0 2 HSC0 I1 0 0 3 HSC0 CE Bit Comments Function Count A Count B Not Used Not Used Example 1 1 off 0 on 1 HSC ...

Страница 112: ... 3 HSC0 CE Bit Comments Function Count A Count B Z reset Hold Example 1 1 off 0 off 0 on 1 HSC Accumulator 1 count Example 2 2 off 0 off 0 off 0 on 1 HSC Accumulator 1 count Example3 off 0 off 0 on 1 Reset accumulator to zero Example 4 on 1 Hold accumulator value Example 5 on 1 Hold accumulator value Example 6 off 0 on 1 Hold accumulator value Example 7 off 0 off 0 Hold accumulator value 1 Count i...

Страница 113: ... See HSL High Speed Counter Load on page 118 The data loaded into the high preset must be less than or equal to the data resident in the overflow HSC 0 OVF parameter or an HSC error is generated Low Preset LOP The LOP Low Preset is the lower setpoint in counts that defines when the HSC sub system generates an interrupt To load data into the low preset the control program must do one of the followi...

Страница 114: ...ed it is greater than the underflow value and falls between 2 147 483 648 and 2 147 483 647 To load data into the overflow variable the control program must toggle low to high the Set Parameters HSC 0 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 Underflow UNF The UNF Underflow defines the lower cou...

Страница 115: ...h or Low presets The bit pattern stored in the OMB variable defines which outputs are controlled by the HSC and which outputs are not controlled by the HSC The bit pattern of the OMB variable directly corresponds to the output bits on the controller Bits that are set 1 are enabled and can be turned on or off by the HSC sub system Bits that are clear 0 cannot be turned on or off by the HSC sub syst...

Страница 116: ...O define if each output is either ON 1 or OFF 0 Another way to view this is that the high or low preset output is written through the output mask with the output mask acting like a filter 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 ...

Страница 117: ...g Low Preset Output LPO The LPO Low Preset Output defines the state 1 on 0 off of the outputs on the controller when the low preset is reached See Output Mask Bits OMB on page 115 for more information on how to directly turn outputs on or off based on the low preset being reached The low output bit pattern can be configured during initial setup or while the controller is operating Use the HSL inst...

Страница 118: ...egister The data range for the output high source is from 0 to 65 535 Output Low Source Specifies the value in the LPO low preset output register The data range for the output low source is from 0 to 65 535 Valid Addressing Modes and File Types are shown below HSL High Speed Counter Load HSC Number HSC0 High Preset N7 0 Low Preset N7 1 Output High Source N7 2 Output Low Source N7 3 HSL Controller ...

Страница 119: ...tor The data range is from 2 147 483 648 to 2 147 483 647 Valid Addressing Modes and File Types are shown below RAC Reset Accumulated Value Counter HSC0 Source 0 RAC Controller Execution Time When Rung Is True False MicroLogix 1100 40 81 μs 0 87 μs RAC Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82...

Страница 120: ...ata File Data files 9 to 255 can be used for PLS operations Each PLS data file can be up to 256 elements long Each element within a PLS file consumes 6 user words of memory The PLS data file is shown below PLS Operation When the PLS function is enabled and the controller is in the run mode the HSC will count incoming pulses When the count reaches the first preset High HIP or Low LOP defined in the...

Страница 121: ...other parameters The PLS function can operate with all of the other HSC capabilities The ability to select which HSC events generate a user interrupt are not limited Addressing PLS Files The addressing format for the PLS file is shown below TIP The Output High Data OHD is only written when the High preset HIP is reached The Output Low Data OLD is written when the low preset is reached TIP Output H...

Страница 122: ... 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 123: ... is not required 4 Elements refers to the number of PLS steps For this example enter a value of 4 If more steps are required at a later time simply go to the properties for the 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 efesotomasyon com...

Страница 124: ...Publication 1763 RM001C EN P October 2009 124 Using the High Speed Counter and Programmable Limit Switch efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 125: ...irst runs HSC ACC equals 0 therefore PLS10 0 OLD s data is sent through the HSC OMB mask and sets all the outputs off 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 Data Description Data Format HIP High Preset 32 bit signed integer LOP Low Preset ...

Страница 126: ...Publication 1763 RM001C EN P October 2009 126 Using the High Speed Counter and Programmable Limit Switch Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 127: ...y MicroLogix 1100 Series B controller supports 40kHz PTO and PWM with any version of RSLogix500 Refer to Appendix F How to Use 40kHz PTO PWM of MicroLogix 1100 Series B Controller for more information PTO Pulse Train Output PTO Number 0 PTO IMPORTANT The PTO function can only be used with the controller s embedded I O It cannot be used with expansion I O modules IMPORTANT The PTO instruction shoul...

Страница 128: ...ation period The number of pulses not used in the acceleration deceleration period defines how many pulses are generated during the run phase In this implementation the accelerate decelerate intervals are not required to be the same Independent values can be defined for these intervals The ADI bit in the PTO function file is used to enable this feature See page 134 Within the PTO function file the...

Страница 129: ...dated each time the PTO instruction is scanned while it is running This provides the control program access to PTO status while it is running The charts in the following examples illustrate the typical timing sequence behavior of a PTO instruction The stages listed in each chart have nothing to do with controller scan time They simply illustrate a sequence of events In actuality the controller may...

Страница 130: ...eans that the false to true rung transition enables the PTO instruction and then returns to a false state prior to the PTO instruction completing its operation If a transitional input to the PTO instruction is used the Done DN bit turns on when the instruction completes but only remains on until the next time the PTO instruction is scanned in the user program The structure of the control program d...

Страница 131: ... 2 3 4 5 6 7 8 9 10 11 12 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 132: ...behavior is as follows The Done DN bit becomes true 1 when the PTO completes and remains set until the PTO rung logic is false The false rung logic re activates the PTO instruction To detect when the PTO instruction completes its output monitor the done DN bit Stage 0 1 2 3 4 5 6 7 8 9 10 11 12 Rung State Sub Elements Relative Timing Normal Operation NO Accelerate Status AS Run Status RS Decelerat...

Страница 133: ...ee a PTO Function File with two elements PTO0 and PTO1 These elements provide access to PTO configuration data and also allow the control program access to all information pertaining to each of the Pulse Train Outputs TIP If the controller mode is run the data within sub element fields may be changing efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 134: ...it 0 or 1 control read write 141 JP Jog Pulse PTO 0 JP bit 0 or 1 control read write 146 JC Jog Continuous PTO 0 JC bit 0 or 1 control read write 147 EH Enable Hard Stop PTO 0 EH bit 0 or 1 control read write 138 EN Enable Status follows rung state PTO 0 EN bit 0 or 1 status read only 139 ER Error Code PTO 0 ER word INT 2 to 7 status read only 148 OF 1 2 Output Frequency Hz PTO 0 OF word INT 3 0 t...

Страница 135: ...struction on any rung within the control program The DN bit operates as follows Set 1 Whenever a PTO instruction has completed its operation successfully 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 Sub Element Description Address Data Format Range Type User Program Access OUT O...

Страница 136: ...ithin the run phase of the output profile Cleared 0 Whenever a PTO instruction is not within the run phase of the output profile PTO Accelerating Status AS The PTO AS Accelerating Status bit is controlled by the PTO sub system 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 phas...

Страница 137: ...instruction to produce a Trapezoid profile PTO Idle Status IS The PTO IS Idle Status is controlled by the PTO sub system It can be used in the control program by an input instruction The PTO sub system must be in an idle state whenever any PTO operation needs to start The IS bit operates as follows Set 1 PTO sub system is in an idle state The idle state is defined as the PTO is not running and no ...

Страница 138: ...h no PTO errors The NS bit operates as follows Set 1 Whenever a PTO instruction is in its normal state Cleared 0 Whenever a PTO instruction is not in its normal state PTO Enable Hard Stop EH The PTO EH Enable Hard Stop bit is used to stop the PTO sub system immediately Once the PTO sub system starts a pulse sequence the only way to stop generating pulses is to set the enable hard stop bit The enab...

Страница 139: ...PTO OF Output Frequency variable defines the frequency of the PTO output during the RUN phase of the pulse profile This value is typically determined by the type of device that is being driven the mechanics of the application or the device components being moved In the MicroLogix 1100 Series A controller the data less than zero or greater than 20 000 generates a PTO error However in the MicroLogix...

Страница 140: ...Series B Controller on page 569 in Appendix F How to Use 40kHz PTO PWM of MicroLogix 1100 Series B Controller for more information Sub Element Description Address Data Format Range Type User Program Access Controller Series OFS Operating Frequency Status Hz PTO 0 OFS word INT 0 to 20 000 status read only A word UINT 0 to 40 000 B TIP The value displayed may not exactly match the value entered in t...

Страница 141: ...ement There must be four long elements available in the file The choice of selecting a common profile or separate profiles must be made at the time of programming This cannot be changed once the program is downloaded into the controller The selection of the ramp type must be made prior to going to run The acceleration and deceleration counts must be entered before the PTO is enabled If the four lo...

Страница 142: ...ate pulses 6 000 This is the maximum ADP value that may be entered without causing a fault The run portion will equal 0 Sub Element Description Address Data Format Range Type User Program Access ADP Accel Decel Pulses PTO 0 ADP long word 32 bit INT 0 to 1 073 741 824 ADI 0 0 to 2 147 483 647 ADI 1 control read write TIP When entering the ADP parameters the PTO will generate an Accel Decel Error if...

Страница 143: ...s the deceleration phase 6000 to 12 000 At 12 000 the PTO operation would stop output frequency 0 If you need to determine the ramp period accelerate decelerate ramp duration 2 x ADP OF duration in seconds OF output frequency The following formulas can be used to calculate the maximum frequency limit for both profiles The maximum frequency the integer which is less than or equal to the result foun...

Страница 144: ...hout an error or fault condition If the CS bit is set during the accel phase the accel phase completes and the PTO immediately enters the decel phase Sub Element Description Address Data Format Range Type User Program Access CS Controlled Stop PTO 0 CS bit 0 or 1 control read write Normal Ramp Function without CS Accel Run Decel Normal Ramp Function Ramp Function Decel After CS is Set Accel Contro...

Страница 145: ...ater than 40 000 generates a PTO error Normal Ramp Function Ramp Function Decel After CS is Set Accel Controlled Stop CS Set Decel Sub Element Description Address Data Format Range Type User Program Access Controller Series JF Jog Frequency Hz PTO 0 JF word INT 0 to 20 000 control read write A word UINT 0 to 40 000 B ATTENTION In order to use 40kHz PTO and PWM with a prior version of RSLogix 500 v...

Страница 146: ...og Pulse Status bit is controlled by the PTO sub system It can be used by an input instruction on any rung within the control program to detect when the PTO has generated a Jog Pulse The JPS bit operates as follows Set 1 Whenever a PTO instruction outputs a Jog Pulse Cleared 0 Whenever a PTO instruction exits the Jog Pulse state Sub Element Description Address Data Format Range Type User Program A...

Страница 147: ...is cleared the current output pulse is truncated PTO Jog Continuous Status JCS The PTO JCS Jog Continuous Status bit is controlled by the PTO sub system It can be used by an input instruction on any rung within the control program to detect when the 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...

Страница 148: ...utput 3 are the only valid choices This is a configuration error The controller faults and the User Fault Routine does not execute 0 Normal Normal 0 no error present 1 No No Yes Hardstop Detected This error is generated whenever a hard stop is detected This error does not fault the controller To clear this error scan the PTO instruction on a false rung and reset the EH Enable Hard Stop bit to 0 2 ...

Страница 149: ... within the User Fault Routine Pulse Train Output Error Codes Error Code Non User Fault Recoverable Fault Instruction Errors Error Name Description PWM Pulse Width Modulation PWM Number 1 PWM IMPORTANT The PWM function can only be used with the controller s embedded I O It cannot be used with expansion I O modules IMPORTANT The PWM instruction should only be used with MicroLogix 1100 BBB unit Rela...

Страница 150: ...s active A waveform at the specified frequency with the specified duty cycle is output 4 The rung that the PWM is on is solved false 5 The PWM instruction is IDLE While the PWM instruction is being executed status bits and data are updated as the main controller continues to operate Because the PWM instruction is actually being executed by a parallel system the status bits and other information ar...

Страница 151: ...Publication 1763 RM001C EN P October 2009 Using High Speed Outputs 151 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 152: ...WM 0 ED bit 0 or 1 status read only 155 NS PWM Normal Operation PWM 0 NS bit 0 or 1 status read only 155 EH PWM Enable Hard Stop PWM 0 EH bit 0 or 1 control read write 155 ES PWM Enable Status PWM 0 ES bit 0 or 1 status read only 156 OF 1 2 PWM Output Frequency PWM 0 OF word INT 3 0 to 20 000 3 control read write 156 word UINT 4 0 to 40 000 4 OFS 1 PWM Operating Frequency Status PWM 0 OFS word INT...

Страница 153: ...control program 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 PWM Accelerating Status AS The PWM AS Accelerating Status bit is controlled by the PWM sub system It can be used by an input instruction on any rung within the control program The AS bit operates as follows Element...

Страница 154: ...e the PWM output is running enabled See PWM ADD on page 158 for more information PWM Idle Status IS The PWM IS Idle Status is controlled by the PWM sub system and represents no 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 Element Description Address Data Format Rang...

Страница 155: ...normal state A normal state is defined as ACCEL RUN or DECEL with no PWM errors Set 1 Whenever a PWM instruction is in its normal state Cleared 0 Whenever a PWM instruction is not in its normal state PWM Enable Hard Stop EH 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 modu...

Страница 156: ... or greater than 20 000 generates a PWM error However in the MicroLogix 1100 Series B controller the data less than zero or greater than 40 000 generates a PWM error Element Description Address Data Format Range Type User Program Access ES PWM Enable Status PWM 0 ES bit 0 or 1 status read only Element Description Address Data Format Range Type User Program Access Controller Series OF PWM Output Fr...

Страница 157: ...utput OFF DC 0 0 Output OFF constant no waveform PWM Duty Cycle Status DCS 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 Element Description Address Data Format Range Type User Program Access Controller Series OFS PWM Oper...

Страница 158: ...s is a configuration error The controller faults and the User Fault Routine does not execute Example PWM0 and PWM1 are both attempting to use a single output 1 Yes No No Output Error An invalid output has been specified Output 2 and output 3 are the only valid choices This is a configuration error The controller faults and the User Fault Routine does not execute 0 Normal Normal 0 no error present ...

Страница 159: ...s on Use the XIO instruction to determine if the addressed bit is off Instruction Used To Page XIC Examine if Closed Examine a bit for an ON condition 159 XIO Examine if Open Examine a bit for an OFF condition 159 OTE Output Enable Turn ON or OFF a bit non retentive 161 OTL Output Latch Latch a bit ON retentive 162 OTU Output Unlatch Unlatch a bit OFF retentive 162 ONS One Shot Detect an OFF to ON...

Страница 160: ...sed Bit XIC Instruction XIO Instruction True Off Returns a False Returns a True True On Returns a True Returns a False False Instruction is not evaluated Instruction is not evaluated XIC and XIO Instructions Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files 1 CS Comms IOS I O D...

Страница 161: ...ve or false Master Control Reset MCR zone B3 0 1 Execution Time for the OTE Instructions Controller When Rung Is True False MicroLogix 1100 1 43 μs 1 5 μs TIP A bit that is set within a subroutine using an OTE instruction remains set until the OTE is scanned again ATTENTION If you enable interrupts during the program scan via an OTL OTE or UIE this instruction must be the last instruction executed...

Страница 162: ...D RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Destination Bit 1 PTO and PWM files are only for use with MicroLogix 1100 BBB unit 2 See Important note about indirect addressing IMPORTANT You cannot use indirect addressing with S ST MG PD RTC HSC PTO PWM STI EII BHI MMI LCD CS IOS and DLS files L B3 0 1 U B3 0 1 Execution Time for the OTL and O...

Страница 163: ...peration using the data table value OTL and OTU Instructions Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files 1 CS Comms IOS I O DLS Data Log Address Mode 2 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit ...

Страница 164: ...red false ONS Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Storage Bit OSR ...

Страница 165: ...ut Bit false to true one scan bit is set bit is set true to true bit is set bit is reset true to false and false to false bit is reset bit is reset OSF Storage and Output Bits Operation Rung State Transition Storage Bit Output Bit true to false one scan bit is reset bit is set false to false bit is reset bit is reset false to true and true to true bit is set bit is reset OSR and OSF Instructions V...

Страница 166: ...Publication 1763 RM001C EN P October 2009 166 Relay Type Bit Instructions Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 167: ...alue that the timer must reach before the timer times out When the accumulator reaches this value the DN status bit is set TON and RTO only The preset data range is from 0 to 32767 The minimum required update interval is 2 55 seconds regardless of the time base Accumulator The accumulator counts the time base intervals It represents elapsed time The accumulator data range is from 0 to 32767 Timers...

Страница 168: ...t 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word 0 EN TT DN Internal Use Word 1 Preset Value Word 2 Accumulated Value ATTENTION Do not copy timer elements while the timer enable bit EN is set Unpredictable machine operation may occur Timer Instructions Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data ...

Страница 169: ...lication 1763 RM001C EN P October 2009 Timer and Counter Instructions 169 TIP Use an RES instruction to reset a timer s accumulator and status bits efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 170: ...imer is an easy way to repeat its complex conditional logic at another rung in your ladder program Timer Accuracy Time Base Accuracy 0 001 seconds 0 001 to 0 00 0 01 seconds 0 01 to 0 00 1 00 seconds 1 00 to 0 00 TIP Timing could be inaccurate if Jump JMP Label LBL Jump to Subroutine JSR or Subroutine SBR instructions skip over the rung containing a timer instruction while the timer is timing If t...

Страница 171: ...nd mode changes Timer instructions use the following control and status bits EN DN TON Timer On Delay Timer T4 0 Time Base 1 0 Preset 0 Accum 0 TON Execution Time for the TON Instructions Controller When Rung Is True False MicroLogix 1100 2 71 DN 1 4 06 DN 0 μs 2 59 μs Timer Control and Status Bits Timer Word 0 Data File 4 is configured as a timer file for this example Bit Is Set When And Remains ...

Страница 172: ...e False MicroLogix 1100 2 68 μs 2 68 DN 1 4 03 DN 0 μs Timer Control and Status Bits Timer Word 0 Data File 4 is configured as a timer file for this example Bit Is Set When And Remains Set Until One of the Following Occurs bit 13 T4 0 DN DN timer done rung conditions are true rung conditions go false and the accumulated value is greater than or equal to the preset value bit 14 T4 0 TT TT timer tim...

Страница 173: ...re retained through power cycles and mode changes Timer instructions use the following control and status bits To reset the accumulator of a retentive timer use an RES instruction See RES Reset on page 178 EN DN RTO Retentive Timer On Timer T4 0 Time Base 1 0 Preset 0 Accum 0 RTO Execution Time for the RTO Instructions Controller When Rung Is True False MicroLogix 1100 2 74 DN 1 4 06 DN 0 μs 2 52 ...

Страница 174: ...et and Word 2 contains the Accumulated Value CU Count Up Enable Bit CD Count Down Enable Bit DN Count Done Bit OV Count Overflow Bit UN Count Underflow Bit Preset When the accumulator reaches this value the DN bit is set The preset data range is from 32768 to 32767 Accumulator The accumulator contains the current count The accumulator data range is from 32768 to 32767 The accumulated value is incr...

Страница 175: ...ress Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Counter Preset Accumulator 1 Valid for Counter Files only CTU Instruction Counter Control and Status Bits Counter Word 0 Data File 5 is configured as a timer file for this example Bit Is Set When And Remains Set Until One of the Following Occurs b...

Страница 176: ...ted value wraps from 32 768 to 32 767 and continues to count down a RES instruction with the same address as the CTD instruction is enabled bit 13 C5 0 DN DN done indicator accumulated value preset value accumulated value preset value or a RES instruction with the same address as the CTU instruction is enabled bit 14 C5 0 CD CD count down enable rung state is true rung state is false a RES instruc...

Страница 177: ...t Up Counter C5 0 Preset 0 Accum 0 CTU CU DN CTU Count Down Counter C5 0 Preset 0 Accum 0 CTD Execution Time for the CTU and CTD Instructions Controller CTU When Rung Is CTD When Rung Is True False True False MicroLogix 1100 2 28 μs 2 15 μs 2 24 μs 2 09 μs TIP If the signal is coming from a field device wired to an input on the controller the on and off duration of the incoming signal must not be ...

Страница 178: ...ue to 0 DN bit TT bit EN bit The controller resets the ACC value to 0 OV bit UN bit DN bit CU bit CD bit The controller resets the POS value to 0 EN bit EU bit DN bit EM bit ER bit UL bit ATTENTION Because the RES instruction resets the accumulated value and status bits do not use the RES instruction to reset a timer address used in a TOF instruction If the TOF accumulated value and status bits ar...

Страница 179: ...e is less than a second value 181 LEQ Less Than or Equal To Test whether one value is less than or equal to a second value 182 GRT Greater Than Test whether one value is greater than a second value 181 GEQ Greater Than or Equal To Test whether one value is greater than or equal to a second value 182 MEQ Mask Compare for Equal Test portions of two values to see whether they are equal 182 LIM Limit ...

Страница 180: ...ource is not a number NAN then rung state remains true EQU NEQ GRT LES GEQ and LEQ Instructions Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files 1 CS Comms IOS I O DLS Data Log Address Mode 2 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC 3 PTO PWM STI EII BHI M...

Страница 181: ...or the EQU and NEQ Instructions Controller Instruction Data Size When Rung Is True False MicroLogix 1100 EQU word 8 78 μs 0 87 μs long word 9 09 μs 0 87 μs NEQ word 8 78 μs 0 9 μs long word 9 128 μs 0 9 μs EQU and NEQ Instruction Operation Instruction Relationship of Source Values Resulting Rung State EQU A B true A B false NEQ A B false A B true GRT Greater Than A B Source A N7 0 0 Source B N7 1 ...

Страница 182: ...7 1 0 GEQ LEQ Less Than or Eql A B Source A N7 0 0 Source B N7 1 0 LEQ Execution Time for the GEQ and LEQ Instructions Controller Data Size When Rung Is True False MicroLogix 1100 word 8 96 μs 0 87 μs long word 9 09 μs 0 87 μs GEQ and LEQ Instruction Operation Instruction Relationship of Source Values Resulting Rung State GEQ A B true A B false LEQ A B false A B true IMPORTANT Only use the High Sp...

Страница 183: ...ompare 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 Mask Mask 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 Intermediate Result Intermediate Result 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 Comparison of the Intermediate Results not equal MEQ Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table ...

Страница 184: ...h be constants When mixed sized parameters are used all parameters are put into the format of the largest parameter For instance if a word and a long word are used the word is converted to a long word 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 LIM Limit Test Low Lim N7 0 0 Test 0 0 H...

Страница 185: ... Data Log Address Mode 2 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Low Limit Test High Limit 1 PTO and PWM files are only for use with MicroLogix 1100 BBB unit 2 See Important note about indirect addressing IMPORTANT You cannot use indirect addressing with S ST MG PD RTC HSC PTO PWM STI EII BHI MMI...

Страница 186: ...Publication 1763 RM001C EN P October 2009 186 Compare Instructions Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 187: ...truction Instruction Used To Page ADD Add Add two values 193 SUB Subtract Subtract two values 193 MUL Multiply Multiply two values 194 DIV Divide Divide one value by another 194 NEG Negate Change the sign of the source value and place it in the destination 194 CLR Clear Set all bits of a word to zero 194 ABS Absolute Value Find the absolute value of the source value 195 SQR Square Root Find the sq...

Страница 188: ...h Overflow Selection Bit is set the unsigned truncated value of the Source is stored in the Destination Sources can be constants or an address but both sources cannot be constants Valid constants are 32 768 to 32 767 word and 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 Math Instructions ADD SUB MUL DIV NEG CLR Valid Addressin...

Страница 189: ...atch 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 Math Status Bits With this Bit The Controller S 0 0 Carry sets if carry is generated otherwise resets S 0 1 Overflow sets when the result of a math instruction does not fit into the de...

Страница 190: ...a 32 bit floating point number not one of the exception values defined on page 191 is given by the following expression Note the restoration of the suppressed most significant bit of the mantissa 1 s x 2 e 127 x 1 m where s is the sign bit 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 1038 to 3 4028 x 1038 Definitions Overflow...

Страница 191: ...ns overflow Infinity is propagated through calculations NAN not a number is represented by an exponent of 255 and a non zero mantissa part NANs are used to indicate results that are mathematically undefined such as 0 0 and adding plus infinity to minus infinity All operations given a NAN as input must generate a NAN as output LSB Round to Even Rule Floating point operations are rounded using the r...

Страница 192: ...verflows result in infinity with the correct sign All underflows result in plus zero All denormalized Source values are treated as plus zero Results are always rounded using the Round to Even rule If Destination is an integer and the result is NAN or infinity a saturated result 32768 or 32767 for word or 2 147 836 648 or 2 147 836 647 for long word is stored in Destination and the Math Overflow Se...

Страница 193: ... result is all zero s otherwise it is reset Sign Is set if the most significant bit of the Destination is set bit 15 for word bit 31 for long word or floating point data otherwise it is reset Overflow Trap The Math Overflow Trap Bit is only set if the Overflow bit is set Otherwise it remains in its last state Considerations When Using Floating Point Data ADD Add Source A N7 0 0 Source B N7 1 0 Des...

Страница 194: ...lt in the Destination CLR Clear Instruction Type output Use the CLR instruction to set the Destination to a value of zero MUL Multiply Source A N7 0 0 Source B N7 1 0 Dest N7 2 0 MUL DIV Divide Source A N7 0 0 Source B N7 1 0 Dest N7 2 0 DIV Execution Time for the MUL and DIV Instructions Controller Instruction Data Size When Rung Is True False MicroLogix 1100 MUL word 20 59 μs 0 87 μs long word 2...

Страница 195: ...ts If Destination is an integer and Source is NAN or infinity a saturated result 32767 for word or 2 147 836 647 for long word is stored in Destination and the Math Overflow Selection Bit is ignored If Destination is an integer the rounded result is stored If an overflow occurs after rounding a saturated result 32767 for word or 2 147 836 647 for long word is stored in Destination and the Math Ove...

Страница 196: ...o 32767 Addressing Modes and File Types can be used as shown in the following table ABS Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 4 2 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode 1 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI ...

Страница 197: ...OS I O DLS Data Log Address 1 Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Source Rate Offset Destination 1 See Important note about indirect addressing IMPORTANT You cannot use indirect addressing with S ST MG PD RTC HSC PTO PWM STI EII BHI MMI CS IOS and DLS files IMPORTANT Do not use the High ...

Страница 198: ...d File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files 1 CS Comms IOS I O DLS Data Log Address Mode 2 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Input x Input Min x0 Input Max x1 Scaled Min y0 Scaled Max y1 O...

Страница 199: ...nstruction Controller Data Size When Rung Is True False MicroLogix 1100 word 109 21 μs 0 87 μs long word 109 77 μs 0 87 μs SQR Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode 1 Address Level O I S B T C R N ST F L MG PD R...

Страница 200: ...Publication 1763 RM001C EN P October 2009 200 Math Instructions Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 201: ... integer 203 FRD Convert From Binary Coded Decimal Converts the BCD source value to an integer and stores it in the destination 204 TOD Convert to Binary Coded Decimal Converts the integer source value to BCD format and stores it in the destination 208 Conversion Instructions Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Description...

Страница 202: ...0 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 x 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 x 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 x 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 x 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 x 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 x 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 x 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 x 0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 x 1 0 0 0 0 0 ...

Страница 203: ... 0 1 0 x x x x x x x x x x x x 1 0 0 0 0 0 0 1 1 x x x x x x x x x x x 1 0 0 0 0 0 0 1 0 0 x x x x x x x x x x 1 0 0 0 0 0 0 0 1 0 1 x x x x x x x x x 1 0 0 0 0 0 0 0 0 1 1 0 x x x x x x x x 1 0 0 0 0 0 0 0 0 0 1 1 1 x x x x x x x 1 0 0 0 0 0 0 0 0 0 1 0 0 0 x x x x x x 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 x x x x x 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 x x x x 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 x x x 1 0 0 0 0...

Страница 204: ...ath register it must be directly addressed as S 13 S 13 is the only status file element that can be used FRD From BCD Source S 0 0000h Dest N7 0 0 FRD Execution Time for the FRD Instructions Controller When Rung Is True False MicroLogix 1100 29 87 μs 0 87 μs FRD Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions ...

Страница 205: ...or the value to be converted is greater than 32 767 otherwise resets On overflow the minor error flag is also set S 0 2 Zero Bit sets if result is zero otherwise resets S 0 3 Sign Bit always resets TIP Always provide ladder logic filtering of all BCD input devices prior to performing the FRD instruction The slightest difference in point to point input filter delay can cause the FRD instruction to ...

Страница 206: ...0 0011 0010 0111 0110 0000 15 0 15 0 5 digit BCD 0 0 0 3 2 7 6 0 3 2 7 6 0 N7 0 Decimal 0111 1111 1111 1000 TIP If the math register S 13 and S 14 is used as the source for the FRD instruction and the BCD value does not exceed four digits be sure to clear word 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 locate...

Страница 207: ...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 CLR CLEAR Dest S 14 0 FRD FROM BCD Source S 13 00001234 Dest N7 0 1234 MOV MOVE Source N7 2 4660 Dest S 13 4660 I 1 0 0001 0010 0011 0100 0000 0100 1101 0010 S 13 and S 14 are displayed in BCD format efesotomasyon com All...

Страница 208: ...s the math register it must be directly addressed as S 13 S 13 is the only status file element that can be used TOD To BCD Source N7 0 0 Dest N7 1 0000h TOD Execution Time for the TOD Instructions Controller When Rung Is True False MicroLogix 1100 29 31 μs 0 87 μs TOD Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descrip...

Страница 209: ...0 1 Overflow sets if BCD result is larger than 9999 On overflow the minor error flag is also set S 0 2 Zero Bit sets if result is zero otherwise resets S 0 3 Sign Bit sets if the source word is negative otherwise resets TIP To convert numbers larger than 9999 decimal the destination must be the Math Register S 13 You must reset the Minor Error Bit S 5 0 to prevent an error TOD To BCD Source N7 3 9...

Страница 210: ... GCD Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 4 2 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Source Destination Math ...

Страница 211: ...n 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 Instruction Used To Page AND Bit Wise AND Perform an AND operation 213 OR Logical OR Perform an inclusive OR operation 214 XOR Exclusive OR Perform an Exclusive Or operation 215 NOT Logical NOT Perform a NOT operation 216 IMPORTANT Do not use the High Spee...

Страница 212: ...ss Mode 2 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Source A Source B 3 Destination 1 PTO and PWM files are valid for MicroLogix 1100 BBB unit 2 See Important note about indirect addressing 3 Source B does not apply to the NOT instruction The NOT instruction only has one source value IMPORTANT You ...

Страница 213: ...0h Source B N7 1 0000h Dest N7 2 0000h AND Execution Time for the AND Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 13 06 μs 0 87 μs long word 13 24 μs 0 87 μs Truth Table for the AND Instruction Destination A AND B Source A 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 Source B 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 Destination 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 IMPORTANT Do not use the H...

Страница 214: ...e for the OR Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 13 06 μs 0 84 μs long word 13 31 μs 0 84 μs Truth Table for the OR Instruction Destination A OR B Source A 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 Source B 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 Destination 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 IMPORTANT Do not use the High Speed Counter Accumulator HSC ACC for the Destination p...

Страница 215: ... 0000h Source B N7 1 0000h Dest N7 2 0000h XOR Execution Time for the XOR Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 13 09 μs 0 87 μs long word 13 31 μs 0 87 μs Truth Table for the XOR Instruction Destination A XOR B Source A 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 Source B 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 Destination 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 IMPORTANT Do not use t...

Страница 216: ...g Logical Instructions on page 211 and Updates to Math Status Bits on page 212 NOT NOT Source N7 0 0 Dest N7 1 0 NOT Execution Time for the NOT Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 9 24 μs 0 87 μs long word 9 49 μs 0 87 μs Truth Table for the NOT Instruction Destination A NOT B Source 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 Destination 0 0 0 0 0 1 0 1 1 1 1 1 0 0 1...

Страница 217: ... is handled as follows If the Math Overflow Selection Bit is clear a saturated result is stored in the Destination If the Source is positive the Destination is 32767 word 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 Instruction Used to Page ...

Страница 218: ... Long Word Element Source Destination 3 3 3 3 1 PTO and PWM files are valid for MicroLogix 1100 BBB unit 2 See Important note about indirect addressing 3 Some elements can be written to Consult the function file for details IMPORTANT You cannot use indirect addressing with S ST MG PD RTC HSC PTO PWM STI EII BHI MMI CS IOS and DLS files Math Status Bits With this Bit The Controller S 0 0 Carry alwa...

Страница 219: ... the following Source Mask and Destination must be of the same data size i e all words or all long words To mask data set the mask bit to zero to pass data set the mask bit to one The mask can be a constant value or you can vary the mask by assigning a direct address MVM Masked Move Source N7 0 0 Mask N7 1 0000h Dest N7 2 0 MVM Execution Time for the MVM Instruction Controller Data Size When Rung ...

Страница 220: ...ask F0F0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 Value in Destination After Move 5F5F 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1 MVM Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode 1 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC...

Страница 221: ...om an element address 225 BSL Bit Shift Left Load and unload data into a bit array one bit at a time 226 BSR Bit Shift Right 228 FFL First In First Out FIFO Load Load words into a file and unload them in the same order first in first out 230 FFU First In First Out FIFO Unload 232 LFL Last In First Out LIFO Load Load words into a file and unload them in reverse order last in first out 234 LFU Last ...

Страница 222: ...e or a function file addressing must be specified to the sub element level You can reference a sub element of bits in a function file containing a combination of read only and read write bits You cannot directly reference the high word of a long word as an operand in the CPW instruction A Major fault 003F is generated if the execution of the instruction exceeds the data table space A Major fault 0...

Страница 223: ...ength 1 See Important note about indirect addressing IMPORTANT You cannot use indirect addressing with S ST MG PD RTC HSC PTO PWM STI EII BHI MMI CS IOS and DLS files COP Copy File Source N7 0 Dest N7 1 Length 1 COP Execution Time for the COP Instruction Controller When Rung Is True False MicroLogix 1100 16 8 μs 0 28 µs word 0 9 μs COP Instruction Valid Addressing Modes and File Types For definiti...

Страница 224: ...be copied as shown in the following table IMPORTANT You cannot use indirect addressing with S MG PD RTC HSC PTO PWM STI EII BHI MMI CS IOS and DLS files Maximum Lengths for the COP Instruction Source Destination Data Type 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 efesotomasyon c...

Страница 225: ...om 32768 to 32767 word or 2 147 483 648 to 2 147 483 647 long word or any IEEE 754 32 bit value Destination The starting destination address where the data is written Length The length operand contains the number of elements The length can range from 1 to 128 word 1 to 64 long word or 1 to 42 3 word element such as counter FLL Fill File Source N7 0 Dest N7 1 Length 1 FLL Execution Time for the FLL...

Страница 226: ...O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Source Destination Length 1 See Important note about indirect addressing IMPORTANT You cannot use indirect addressing with S ST MG PD RTC HSC PTO PWM STI EII BHI MMI CS IOS and DLS files EN DN BSL Bit Shift Left File B3 1 Control R6 0 Bit Address B32 0 0 Length 1 BSL Exe...

Страница 227: ...n is enabled DN 2 2 DN Done Bit when set indicates that the bit array has shifted one position ER 3 3 ER Error Bit when set indicates that the instruction detected an error such as entering a negative number for the length or source operand UL 4 4 UL Unload Bit is the instruction s output Avoid using the UL unload bit when the ER error bit is set not used Word 1 Size of bit array number of bits Wo...

Страница 228: ...SR Bit Shift Right File B3 3 Control R6 0 Bit Address I 0 15 Length 1 BSR Execution Time for the BSR Instruction Controller When Rung Is True False MicroLogix 1100 34 5 μs 0 2 μs word 34 5 μs Data block is shifted one bit at a time from bit 69 to bit 32 Source Bit I 23 06 38 Bit Array B3 2 Unload Bit R6 0 10 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 63 62 61 60 59 58 57 56 55 54 53 52 51 50 ...

Страница 229: ...g the Instruction Descriptions on page 82 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode 1 Address Level O I S B T C R N F L ST MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element File Control 2 Length Source 1 See Important note about indirect addressing 2 Control file only Not valid for Timers and Counters IMPO...

Страница 230: ...ce 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 EN DN EM FFL FIFO Load Source N7 0 FIFO N7 1 Control R6 0 Length 1 Position 0 FFL Execution Time for the FFL Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 38 7 0 02 μs word 37 09 μs long word 38 0 0 02 long wordμs 37 09 μs EU...

Страница 231: ...1 10 9 8 7 6 5 4 3 2 1 0 Word 0 EN 1 1 EN Enable Bit is set on false to true transition of the rung and indicates the instruction is enabled DN 2 2 DN Done Bit when set indicates that the stack is full EM 3 3 EM Empty Bit when set indicates FIFO is empty not used Word 1 Length maximum number of words or long words in the stack Word 2 Position the next available location where the instruction loads...

Страница 232: ...EU DN EM FFU FIFO Unload FIFO N7 0 Dest N7 1 Control R6 0 Length 1 Position 0 FFU Execution Time for the FFU Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 38 87 μs 37 06 μs long word 38 87 μs 37 06 μs EU EM DN FFL FIFO LOAD Source N7 10 FIFO N7 12 Control R6 0 Length 34 Position 9 FFU FIFO UNLOAD FIFO N7 12 Dest N7 11 Control R6 0 Length 34 Position 9 EN DN EM Desti...

Страница 233: ...osition zero Addressing Modes and File Types can be used as shown in the following table 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word 0 EU 1 1 EU Enable Unload Bit is set on false to true transition of the rung and indicates the instruction is enabled DN 2 2 DN Done Bit when set indicates that the stack is full EM 3 3 EM Empty Bit when set indicates FIFO is empty not used Word 1 Length maximum numbe...

Страница 234: ...d 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 LIFO The LIFO operand is the starting address of the stack EN DN EM LFL LIFO Load Source N7 0 LIFO N7 1 Control R6 0 Length 1 Position 0 LFL Execution Time for the LFL Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 39 93 μs 38 09 μs long word 39 9...

Страница 235: ...EN 1 1 EN Enable Bit is set on false to true transition of the rung and indicates the instruction is enabled DN 2 2 DN Done Bit when set indicates that the stack is full EM 3 3 EM Empty Bit when set indicates that LIFO is empty not used Word 1 Length maximum number of words or long words in the stack Word 2 Position the next available location where the instruction loads data LFL Instruction Valid...

Страница 236: ...e destination must match the 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 EU DN EM LFU LIFO Unload LIFO N7 0 Dest N7 1 Control R6 0 Length 1 Position 0 LFU Execution Time for the LFU Instruction Controller Data Size When Rung Is True False MicroLogix 1100 word 39 34 μs 37 06 μs long word 39 97...

Страница 237: ...nabled DN 2 2 DN Done Bit when set indicates that the stack is full EM 3 3 EM Empty Bit when set indicates LIFO is empty not used Word 1 Length maximum number of words or double words in the stack Word 2 Position the next available location where the instruction unloads data LFU Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruct...

Страница 238: ...yzabcdefg Source Value before executing SWP instruction badcfehgjilknmporqtsvuxwzyabcdefg The underlined characters show the 13 words where the low byte was swapped with the high byte SWP Swap Source ST10 1 DATA 0 Length 13 SWP Execution Time for the SWP Instruction Controller When Rung Is True False MicroLogix 1100 9 15 μs 0 43 μs swapped word 0 87 μs SWP Instruction Valid Addressing Modes and Fi...

Страница 239: ...h step Use the sequencer load instruction to load data into the sequencer file 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 Instruction Used To Page SQC Sequencer Compare Compare 16 bi...

Страница 240: ...code it is fixed If you enter an element address or a file address direct or indirect for changing the mask with each step it is variable When the rung goes from false to true the instruction increments to the next step word in the sequencer file Data stored there is transferred through a mask and compared against the source for equality While the rung remains true the source is compared against t...

Страница 241: ...perands File This is the sequencer reference file Its contents on an element by element basis are masked and compared to the masked value stored in source TIP 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 EN DN FD SQC Sequencer Compare File B10 11 Mask FFF0 Source I 3 0 Control R6 21 Length 4 Position 2 SQC Input Word I 3 0 001...

Страница 242: ...osition 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 TIP If mask is direct or indirect the position selects the location in the specified file 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word 0 EN 1 1 EN Enable Bit is set by a false to true rung transition and indicates that ...

Страница 243: ...ng transition the instruction resets the position to step one SQC Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode 1 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direc...

Страница 244: ... set mask bits The mask can be fixed or variable It is fixed if you enter a hexadecimal code It is variable if you enter an element address or a file address direct or indirect for changing the mask with each step The following figure indicates how the SQO instruction works Destination O 14 0 External Outputs O 14 at Step 2 15 8 7 0 00 0000 0101 0000 1010 01 ON 02 Mask Value 0F0F 03 ON 15 8 7 0 04...

Страница 245: ...s well as Mask and or Destination if they are file data types It determines the next location in the stack to be masked and moved to the destination 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 TIP If file type is word then mask and source must be words If file type is long word mask and source must be...

Страница 246: ... IOS I O DLS Data Log Address Mode 1 Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Element Bit Word Long Word File 2 Mask 2 Destination 2 Control 3 Length Position 1 See Important note about indirect addressing 2 File Direct and File Indirect addressing also applies 3 Control file only IMPORTANT You cannot use indirect addressin...

Страница 247: ...odes and File Types can be used as shown in the following table 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word 0 EN 1 1 EN Enable Bit is set by a false to true rung transition and indicates that the instruction is enabled DN 2 2 DN Done Bit is set after the instruction has operated on the last word in the sequencer file It is reset on the next false to true rung transition after the rung goes false ER...

Страница 248: ...1C EN P October 2009 248 Sequencer Instructions IMPORTANT You cannot use indirect addressing with S ST MG PD RTC HSC PTO PWM STI EII BHI MMI CS IOS LCD and DLS files efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 249: ...s 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 Instruction Used To Page JMP Jump to Label Jump forward backward to a corresponding label instruction 249 LBL Label 250 JSR Jump to Subroutine Jump to a designated subroutine and return 250 SBR Subroutine Label 250 RET Return from Subroutine 251 SUS Suspen...

Страница 250: ...proceeds to the instruction following the JSR instruction The immediate data range for the JSR file is from 3 to 255 SBR Subroutine Label Instruction Type input 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 L...

Страница 251: ...ata range for the suspend ID is from 32768 to 32767 TND Temporary End Instruction Type output The TND instruction is used to denote a premature end of ladder program execution The TND instruction cannot be executed from a STI subroutine HSC subroutine EII subroutine or a user fault subroutine This instruction may appear more than once in a ladder program On a true rung TND stops the processor from...

Страница 252: ...are reset when the rung goes false This instruction defines the boundaries of an MCR Zone An MCR Zone is the set of ladder logic instructions bounded by an MCR instruction pair The start of an MCR zone is defined to be the rung that contains an MCR instruction preceded by conditional logic The end of an MCR zone is defined to be the first rung containing just an MCR instruction following a start M...

Страница 253: ...CR instructions note that You must end the zone with an unconditional MCR instruction You cannot nest one MCR zone within another Do not jump into an MCR zone If the zone is false jumping into it activates the zone TIP The MCR instruction is not a substitute for a hard wired master control relay that provides emergency stop capability You still must install a hard wired master control relay to pro...

Страница 254: ...Publication 1763 RM001C EN P October 2009 254 Program Control Instructions Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 255: ...al input scan 255 IOM Immediate Output with Mask Update outputs prior to the normal output scan 257 REF I O Refresh Interrupt the program scan to execute the I O scan write outputs service communications read inputs 258 IIM Immediate Input w Mask Slot I 0 0 Mask N7 0 Length 1 IIM TIP This instruction is used for embedded I O only It is not designed to be used with expansion I O Execution Time for ...

Страница 256: ... data file A 0 prohibits corresponding bit data in slot from being passed to the input data file The mask value can range from 0 to 0xFFFF Length This is the number of masked words to transfer to the input data file Addressing Modes and File Types can be used as shown below IMPORTANT Slot 0 is the only valid slot number that can be used with this instruction IIM cannot be used with expansion I O B...

Страница 257: ...ow IOM Immediate Output w Mask Slot O 0 0 Mask N7 0 Length 1 IOM TIP This instruction is used for embedded I O only It is not designed to be used with expansion I O Execution Time for the IOM Instruction Controller When Rung Is True False MicroLogix 1100 43 59 μs 0 87 μs IMPORTANT Slot 0 is the only valid slot number that can be used with this instruction IOM cannot be used with expansion I O Bit ...

Страница 258: ...the operating cycle The scan then resumes at the instruction following the REF instruction The REF instruction cannot be executed from an STI subroutine HSC subroutine EII subroutine or a user fault subroutine REF Execution Time for the REF Instruction Controller When Rung Is True False MicroLogix 1100 see p 462 0 84 μs TIP Using an REF instruction may result in input data changing in the middle o...

Страница 259: ... Limit Switch on page 89 Information About Using Interrupts The purpose of this section is to explain some fundamental properties of the User Interrupts including What is an interrupt When can the controller operation be interrupted Priority of User Interrupts Interrupt Latency User Fault Routine What is an Interrupt An interrupt is an event that causes the controller to suspend the task it is cur...

Страница 260: ... executing the User Interrupt subroutine or set of subroutines if the specified subroutine calls a subsequent subroutine 5 completes the subroutine s 6 resumes normal execution from the point where the controller program was interrupted When Can the Controller Operation be Interrupted The Micrologix 1100 controllers only allow interrupts to be serviced during certain periods of a program scan They...

Страница 261: ...uted the currently executing interrupt routine is suspended and the higher priority interrupt is serviced Then the lower priority interrupt is allowed to complete before returning to normal processing If an interrupt occurs while a higher priority interrupt is being serviced executed and the pending bit has been set for the lower priority interrupt the currently executing interrupt routine continu...

Страница 262: ...aults causes the controller to read S 29 and execute the subroutine number identified by 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 Recoverable Non Recoverable Non User Fault Recoverable Faults are caused by the user and ma...

Страница 263: ... This should be the first instruction in your interrupt subroutine 263 STS Selectable Timed Start Use the STS Selectable Timed Interrupt Start instruction to the start the STI timer from the control program rather than starting automatically 264 UID User Interrupt Disable Use the User Interrupt Disable UID and the User Interrupt Enable UIE instructions to create zones in which I O interrupts canno...

Страница 264: ...o time until it reaches the new set point Note that if the new setting is less than the current accumulated time the STI times out immediately For example if the STI has been timing for 15 microseconds and the STI set point is changed from 20 microseconds to 10 microseconds an STI user interrupt occurs at the next start of rung Addressing Modes and File Types can be used as shown below STS Selecta...

Страница 265: ...isable EII Event 1 and EII Event 3 EII Event 1 32 EII Event 3 4 32 4 36 enter this value UID User Interrupt Disable Interrupt Types 5 UID Execution Time for the UID Instruction Controller When Rung Is True False MicroLogix 1100 9 28 μs 0 87 μs Types of Interrupts Disabled by the UID Instruction Interrupt Element Decimal Value Corresponding Bit EII Event Input Interrupts Event 0 64 bit 6 EII Event ...

Страница 266: ...ypes 4 UIE Execution Time for the UIE Instruction Controller When Rung Is True False MicroLogix 1100 9 28 μs 0 87 μs Types of Interrupts Disabled by the UIE Instruction Interrupt Element Decimal Value Corresponding Bit EII Event Input Interrupts Event 0 64 bit 6 EII Event Input Interrupts Event 1 32 bit 5 HSC High Speed Counter HSC0 16 bit 4 EII Event Input Interrupts Event 2 8 bit 3 EII Event Inp...

Страница 267: ...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 UIF User Interrupt Flush Interrupt Types 1 UIF Execution Time for the UIF Instruction Controller When Rung Is True False MicroLogix 1100 23 78 μs 0 87 μs Types of Interrupts Disabled by the UIF Instruction Interrupt Element Decimal Value Corresponding Bit EII Event Input Interrupts Event 0 64 b...

Страница 268: ... at a specific rate to guarantee a consistent acceleration deceleration profile A block of logic that needs to be scanned more often How an STI is used is typically driven by the demands requirements of the application It operates using the following sequence 1 The user selects a time interval 2 When a valid interval is set and the STI is properly configured the controller monitors the STI value 3...

Страница 269: ...escription Address Data Format Type User Program Access For More Information PFN Program File Number STI 0 PFN word INT control read only 269 ER Error Code STI 0 ER word INT status read only 269 UIX User Interrupt Executing STI 0 UIX binary bit status read only 270 UIE User Interrupt Enable STI 0 UIE binary bit control read write 270 UIL User Interrupt Lost STI 0 UIL binary bit status read write 2...

Страница 270: ...ear the UIE bit After the calculations are complete set the UIE bit and STI subroutine processing resumes STI User Interrupt Lost UIL The UIL User Interrupt Lost is a status flag that indicates an interrupt was lost 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...

Страница 271: ...e the timer is running the accumulated value is cleared 0 If the bit is then set 1 timing starts This bit is controlled by the user program and retains its value through a power cycle STI Auto Start AS The AS Auto Start is a control bit that can be used in the control program The auto start bit is configured with the programming device and stored as part of the user program The auto start bit auto...

Страница 272: ... be changed from the control program by using the STS instruction Using the Event Input Interrupt EII Function File The EII event input interrupt is a feature that allows the user to scan a specific program file subroutine when an input condition is detected from a field device Within the function file section of RSLogix 500 the user sees an EII folder Within the folder are four EII elements Each ...

Страница 273: ...n PFN Program File Number EII 0 PFN word INT control read only 274 ER Error Code EII 0 ER word INT status read only 274 UIX User Interrupt Executing EII 0 UIX binary bit status read only 275 UIE User Interrupt Enable EII 0 UIE binary bit control read write 275 UIL User Interrupt Lost EII 0 UIL binary bit status read write 275 UIP User Interrupt Pending EII 0 UIP binary bit status read only 276 EIE...

Страница 274: ...n of the EII EII Error Code ER Any ER Error Code detected by the EII sub system is displayed in this register The table below explains the error codes Sub Element Description Address Data Format Type User Program Access PFN Program File Number EII 0 PFN word INT control read only Sub Element Description Address Data Format Type User Program Access ER Error Code EII 0 ER word INT status read only E...

Страница 275: ...math calculations need to be processed without interruption Before the calculations take place clear the UIE bit After the calculations are complete set the UIE bit and EII subroutine processing resumes EII User Interrupt Lost UIL UIL User Interrupt Lost is a status flag that represents an interrupt has been lost The controller can process 1 active and maintain up to 2 pending user interrupt condi...

Страница 276: ...when cleared 0 default the function is disabled This bit is controlled by the user program and retains its value through a power cycle EII Auto Start AS AS Auto Start is a control bit that can be used in the control program 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...

Страница 277: ...election is based on the type of field device that is connected to the controller The default condition is 1 which configures the EII for rising edge operation EII Input Select IS 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 ...

Страница 278: ...Publication 1763 RM001C EN P October 2009 278 Using Interrupts Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 279: ...ed mode the instruction updates its output periodically at a user selectable rate In the STI mode the instruction should be placed in an STI interrupt subroutine It then updates its output every time the STI subroutine is scanned The STI time interval and the PID loop update rate must be the same in order for the equation to execute properly See Using the Selectable Timed Interrupt STI Function Fi...

Страница 280: ...ve 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 Term Range Low to High Reference Controller Gain KC 0 01 to 327 67 dimensionless 1 1 Applies to MicroLogix 1100 PID range when Reset and Gain Range RG bit is set to 1 For more information on reset and gain see PLC 5 Gain Range RG on ...

Страница 281: ...teger file The Micrologix 1100 PID instruction utilizes a PD data file You can create a PD data file by creating a new data file and classifying it as a PD file type RSLogix automatically creates a new PD file or a PD sub element whenever a PID instruction is programmed on a rung The PD file then appears in the list of Data Files as shown in the illustration Each PD data file has a maximum of 255 ...

Страница 282: ...with RSLogix 500 programming software When programming the setup screen provides access to the PID instruction configuration parameters The illustration below shows the RSLogix 500 setup screen PID PID PID File PD8 0 Process Variable N7 0 Control Variable N7 1 Setup Screen PID Execution Time for the PID Instruction Controller When Rung Is True False MicroLogix 1100 39 34 μs 36 93 μs TIP In order t...

Страница 283: ...284 MAXS Setpoint Maximum PD10 0 MAXS word INT 32 768 to 32 767 control read write 284 MINS Setpoint Minimum PD10 0 MINS word INT 32 768 to 32 767 control read write 285 OSP Old Setpoint Value PD10 0 OSP word INT 32 768 to 32 767 status read only 285 OL Output Limit PD10 0 OL binary 1 enabled 0 disabled control read write 286 CVH Control Variable High Limit PD10 0 CVH word INT 0 to 100 control rea...

Страница 284: ...arameter Descriptions Address Data Format Range Type User Program Access SPS Setpoint PD10 0 SPS word INT 0 to 16383 1 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 control read write Input Parameter Descriptions Address Data Format Range Type User Program Access PV Process Variable user defined word INT...

Страница 285: ... is substituted for the current setpoint if the current setpoint goes out of range of the setpoint scaling limiting parameters InputParameter Descriptions Address Data Format Range Type User Program Access MINS Setpoint Minimum PD10 0 MINS word INT 32 768 to 32 767 control read write TIP MinS MaxS scaling allows you to work in engineering units The deadband error and SPV are also displayed in engi...

Страница 286: ...VH the CV is set overridden to the CVH value you entered and the upper limit alarm bit UL is set 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 Output Parameter Descriptions Address Data Format Range Type User Program Ac...

Страница 287: ...See the indicated pages for descriptions of each parameter Control Variable CV The CV Control Variable is user defined See the ladder rung below Output Parameter Descriptions Address Data Format Range Type User Program Access CVL Control Variable Low Limit PD10 0 CVL word INT 0 to 100 control read write Output Parameter Descriptions Address Data Format Range Type User Program Access For More Infor...

Страница 288: ...ile in manual mode the CVP will display the last value calculated by the PID equation Scaled Process Variable SPV The SPV Scaled Process Variable is the analog input variable If scaling is enabled the range is the minimum scaled value MinS to maximum scaled value MaxS If the SPV is configured to be read in engineering units then this parameter corresponds to the value of the process variable in en...

Страница 289: ...to 32 767 status read only 292 AM Automatic Manual PD10 0 AM binary bit 0 or 1 control read write 293 CM Control Mode PD10 0 CM binary bit 0 or 1 control read write 293 DB PV in Deadband PD10 0 DB binary bit 0 or 1 status read write 293 RG PLC 5 Gain Range PD10 0 RG binary bit 0 or 1 control read write 294 SC Setpoint Scaling PD10 0 SC binary bit 0 or 1 control read write 294 TF Loop Update Too Fa...

Страница 290: ...Controller gain is affected by the reset and gain range RG bit For information see PLC 5 Gain Range RG on page 294 Tuning Parameter Descriptions Address Data Format Range Type User Program Access TI Reset Term Ti PD10 0 Ti word INT 0 to 32 767 control read write TIP Reset term is affected by the reset and gain range RG bit For information see PLC 5 Gain Range RG on page 294 Tuning Parameter Descri...

Страница 291: ... Update Time LUT The loop update time word 13 is the time interval between PID calculations The entry is in 0 01 second intervals Enter a loop update time five to ten times faster than the natural period of the load The natural period of the load is determined by setting the reset and rate parameters to zero and then increasing the gain until the output begins to oscillate When in STI mode this va...

Страница 292: ...affect the CV output Scaled Error SE 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 Tuning Parameter Descriptions Address Data Format Range Type User Program Access ZCD Zero Crossing Deadband PD10 0 ZCD word INT 0 to 32 767 control read write Tuning...

Страница 293: ...variable is greater than the setpoint Reverse acting E SP PV causes the control variable to decrease when the process variable is greater than the setpoint PV in Deadband DB This bit is set 1 when the process variable is within the zero crossing deadband range Tuning Parameter Descriptions Address Data Format Range Type User Program Access AM Automatic Manual PD10 0 AM binary bit 0 or 1 control re...

Страница 294: ...alue KC of 1 indicates that the error is multiplied by 0 01 and applied to the PID algorithm Example with the RG bit clear The reset term TI of 1 indicates that the integral value of 0 1 minutes repeat 6 0 seconds repeat is applied to the PID integral algorithm The gain value KC of 1 indicates that the error is multiplied by 0 1 and applied to the PID algorithm Setpoint Scaling SC The SC bit is cl...

Страница 295: ...instead of the process variable PV When clear 0 this bit allows the derivative rate calculation to be evaluated where the derivative is performed on the PV CV Upper Limit Alarm UL The control variable upper limit alarm bit is set when the calculated CV output exceeds the upper CV limit Tuning Parameter Descriptions Address Data Format Range Type User Program Access TF Loop Update Too Fast PD10 0 T...

Страница 296: ...mputed It resets 0 whenever the instruction is scanned and the PID algorithm was not computed applies to timed mode only Tuning Parameter Descriptions Address Data Format Range Type User Program Access LL CV Lower Limit Alarm PD10 0 LL binary bit 0 or 1 status read write Tuning Parameter Descriptions Address Data Format Range Type User Program Access SP Setpoint Out of Range PD10 0 SP binary bit 0...

Страница 297: ...Tuning Parameter Descriptions Address Data Format Range Type User Program Access EN Enable PD10 0 EN binary bit 0 or 1 status read only Tuning Parameter Descriptions Address Data Format Range Type User Program Access IS Integral Sum PD10 0 IS long word 32 bit INT 2 147 483 648 to 2 147 483 647 status read write Tuning Parameter Descriptions Address Data Format Range Type User Program Access AD Alt...

Страница 298: ...re using setpoint scaling and MinS setpoint SP MaxS or If you are not using setpoint scaling and 0 setpoint SP 16383 then during the initial execution of the PID loop this error occurs and bit 11 of word 0 of the control block is set However during subsequent execution of the PID loop if an invalid loop setpoint is entered the PID loop continues to execute using the old setpoint and bit 11 of word...

Страница 299: ...e The IF4 has 4 inputs which are individually configurable In this example analog input 0 is configured for 0 to 10V and is scaled in engineering units Word 0 is not being used in a PID instruction Input 1 word 1 is configured for 4 to 20 mA operation with scaling configured for a PID instruction This configures the analog data for the PID instruction The analog configuration screen is accessed fr...

Страница 300: ...l block If the process variable is greater than 16383 bit 14 set then a value of 16383 is used for PV and the Process var out of range bit is set The Control Variable calculated by the PID instruction has the same range of 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 u...

Страница 301: ...he same value for both parameters setpoint scaling is disabled For example if measuring a full scale temperature range of 73 C PV 0 to 1156 C PV 16383 enter a value of 73 for MinS and 1156 for MaxS Remember that inputs to the PID instruction must be 0 to 16383 Signal conversions could be as follows 2 Enter the setpoint word 2 and deadband word 9 in the same scaled engineering units Read the scaled...

Страница 302: ...s above and below the setpoint by the value you enter A value of zero inhibits this feature The deadband has the same scaled units as the setpoint if you choose scaling Output Alarms You may set an output alarm on the control variable at a selected value above and or below a selected output percent When the instruction detects that the control variable has exceeded either value it sets an alarm bi...

Страница 303: ...s a feature that prevents the integral term from becoming excessive when the control variable reaches a limit When the sum of the PID and bias terms in the control variable reaches the limit the instruction stops calculating the integral sum until the control variable comes back in range The integral sum is contained in element IS The Manual Mode In the MANUAL mode the PID algorithm does not compu...

Страница 304: ...d methods used by your company There are a number of techniques that can be used to tune a PID loop The following PID tuning method is general and limited in terms of handling load disturbances When tuning we recommend that changes be made in the MANUAL mode followed by a return to AUTO Output limiting is applied in the MANUAL mode Procedure 1 Create your ladder program Make certain that you have ...

Страница 305: ...6 While monitoring the PID display adjust the process manually by writing to the CO percent value 7 When you feel that you have the process under control manually place the PID instruction in the AUTO mode 8 Adjust the gain while observing the relationship of the output to the setpoint over time 9 When you notice that the process is oscillating above and below the setpoint in an even manner record...

Страница 306: ... to provide a rate term of 0 04 minutes per repeat 14 Place the process in the AUTO mode If you have an ideal process the PID tuning is complete 15 To make adjustments from this point place the PID instruction in the MANUAL mode enter the adjustment then place the PID instruction back in the AUTO mode This technique of going to MANUAL then back to AUTO ensures that most of the gain error is remove...

Страница 307: ...rogression of fifteen CO 20 PV 35 CO 40 PV 55 CO 60 PV 75 CO 80 PV 95 If the values you recorded are not offset by the same amount Either your scaling is incorrect or the process is not linear or your equipment is not properly connected and or configured Make the necessary corrections and repeat steps 2 10 Determining the Initial Loop Update Time To determine the approximate loop update time that ...

Страница 308: ...conds then 12 10 1 2 seconds Therefore the value 120 would be entered as the loop update time 120 x 10 ms 1 2 seconds 7 Enter the following values the initial setpoint SP value a reset Ti of 0 a rate Td of 0 a gain Kc of 1 and the loop update time determined in step 17 Set the PID mode to STI or Timed per your ladder diagram If STI is selected ensure that the loop update time equals the STI time i...

Страница 309: ... Write a string with user configured characters appended 317 AWT ASCII Write Write a string 319 ABL Test Buffer for Line Determine the number of characters in the buffer up to and including the end of line character 322 ACB Number of Characters in Buffer Determine the total number of characters in the buffer 323 ACI String to Integer Convert a string to an integer value 324 ACN String Concatenate ...

Страница 310: ...struction is encountered in a ladder logic program it executes immediately and causes all instructions to be removed from the ASCII queue including stopping execution of the ASCII instruction currently executing The ER error bit is set for each instruction that is removed from the ASCII queue When any of the other port control instructions are encountered in a ladder logic program it may or may no...

Страница 311: ...ate streams of ASCII data out of a communications port Protocol Overview Using the Full ASCII Instruction Set To use the full ASCII instruction set the communication channel must be configured for ASCII protocol as described below See on page 535 for the ASCII parameters that you set via the Channel 0 configuration screens in your programming software Configuration of the two append characters for...

Страница 312: ...re Configuration of the two append characters for the AWA instruction can be found in the General tab of Channel Configuration option in RSLogix 500 String ST Data File File Description The string data file is used by the ASCII instructions to store ASCII character data The ASCII data can be accessed by the source and destination operands in the ASCII instructions The string data file can also be ...

Страница 313: ...ent represents a word address Examples ST9 2 ST17 1 LEN ST13 7 DATA 1 String File 9 Element 2 String File 17 Element 1 LEN Variable String File 13 Element 7 word 2 characters 2 and 3 ASCII Instructions Control Data File Elements Control Element Word 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 0 EN 1 1 EN Enable Bit indicates that an instruction is enabled due to a false to true transition This...

Страница 314: ...he Control R file Format Explanation R Control file R e s b f File number The valid file number range is from 3 to 255 Element delimiter e Element number The valid element number range is from 0 to 255 Each element is 3 words in length as shown in Subelement delimiter s Subelement number The valid subelement number range is from 0 to 2 You can also specify LEN or POS Bit delimiter b Bit number The...

Страница 315: ...d removes the Transmit ASCII port control instructions AWA and AWT from the ASCII queue Addressing Modes and File Types can be used as shown below TIP For MicroLogix 1100 the ACL instruction can also be used to clear the DF1 communication buffers when the channel is configured for any of the DF1 communication drivers Select 0 for the channel number that is configured for DF1 and Yes for both the R...

Страница 316: ...ddressing Modes and File Types can be used as shown below 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 Parameter Data Files 1 Function Files CS Comms IOS I O DLS Data Log Address Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct In...

Страница 317: ...truction the rung must go from false to true AIC Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files Function Files CS Comms IOS I O DLS Data Log Address Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word...

Страница 318: ...nt POS may be smaller than String Length LEN if the length of the string sent is less than what was specified in the String Length LEN field Characters Sent POS can be greater than the String Length LEN if the appended characters or inserted values from in line indirection are used If the String Length LEN is greater than 82 the string written to the destination is truncated to 82 characters plus ...

Страница 319: ...on page 337 for a list of the error codes and recommended action to take AWT ASCII Write Instruction Type output Use the AWT instruction to write characters from a source string to an external device 1 The Control data file is the only valid file type for the Control Element AWA ASCII WRITE APPEND Channel Source I 1 10 Control 0 ST37 42 R6 23 String Length Characters Sent 25 0 EN DN ER Error 00 If...

Страница 320: ...rol data file See page 313 String Length LEN is the number of characters you want to write from the source string 0 to 82 If you enter a 0 the entire string is written This is word 1 in the control data file Characters Sent POS is the number of characters that the controller sends to an external device This is word 2 in the control data file Characters Sent POS is updated after all characters have...

Страница 321: ...nel 0 The Done bit DN is set and a value of 40 is present in the POS word of the ASCII control data file When an error is detected the error code is written to the Error Code Byte and the Error Bit ER is set See ASCII Instruction Error Codes on page 337 for a list of the error codes and recommended action to take AWT Instruction Valid Addressing Modes and File Types For definitions of the terms us...

Страница 322: ... only and resides in word 2 of the control data file Error displays the hexadecimal error code that indicates why the ER bit was set in the control data file See page 337 for error code descriptions Addressing Modes and File Types can be used as shown below TIP For information on the timing of this instruction see the timing diagram on page 336 EN DN ER ABL Ascii Test For Line Channel 0 Control R6...

Страница 323: ...e ACB instruction to determine the number of characters in the buffer On a false to true transition the controller determines the total number of characters and records it in the POS field of the control data file The channel configuration must be set to ASCII Entering Parameters Enter the following parameters when programming this instruction Channel is the number of the RS 232 port Channel 0 Con...

Страница 324: ...g to an integer word or long word value Entering Parameters Enter the following parameters when programming this instruction Source The contents of this location are converted to an integer value ACB Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files 1 Function Files CS Comms IOS I...

Страница 325: ...he controller status file ACI Instruction Valid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files 1 Function Files CS Comms IOS I O DLS Data Log Address Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Elemen...

Страница 326: ...e destination If the string length of Source A Source B or Destination is greater than 82 the ASCII String Manipulation Error bit S 5 15 is set and the Invalid String Length Error 1F39H is written to the Major Error Fault Code word S 6 ACN String Concatenate Source A ST10 11 Source B ST10 12 Dest ST10 10 ACN Execution Time for the ACN Instruction Controller When Instruction Is True False MicroLogi...

Страница 327: ...ll be the characters from the Index to the end of the Source string Destination is the string element ST where you want the extracted string stored Addressing Modes and File Types can be used as shown below AEX String Extract Source ST10 0 Index 1 Number 5 Dest ST10 3 AEX Execution Time for the AEX Instruction Controller When Instruction Is True False MicroLogix 1100 51 9 μs 0 11 μs character 0 87...

Страница 328: ...t the RS 232 Request to Send RTS handshake control line for a modem The controller uses the two masks to determine whether to set or reset the RTS control line or leave it unchanged The channel configuration must be set to ASCII Entering Parameters Enter the following parameters when programming this instruction Channel is the number of the RS 232 port Channel 0 AND Mask is the mask used to reset ...

Страница 329: ...ile Types can be used as shown below Instruction Operation This instruction executes on either a false or true rung However a false to true rung transition is required to set the EN bit to repeat the instruction Channel Status Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Handshake Control Line Setting reserved RTS CTS 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 Channel Status 0 0 1 F Word 2 of the Control Elemen...

Страница 330: ...to 82 This field is updated during the execution of the instruction and is read only This is word 2 in the control data file Error displays the hexadecimal error code that indicates why the ER bit was set in the control data file See page 337 for error code descriptions Addressing Modes and File Types can be used as shown below EN DN ER ARD ASCII Read Channel 0 Dest ST10 4 Control R6 3 String Leng...

Страница 331: ...hem in a string The Termination characters are specified via the Channel Configuration screen Entering Parameters Enter the following parameters when programming this instruction Channel is the number of the RS 232 port Channel 0 Destination is the string element where you want the string stored Control is the control data file See page 313 String Length LEN is the number of characters you want to...

Страница 332: ...d to the destination string The number of characters moved is stored in the POS word of the control data file The number in the Characters Read field is continuously updated and the Done bit DN is not set until all of the characters have been read Exception If the controller finds termination characters before done reading the Done bit DN is set and the number of characters found is stored in the ...

Страница 333: ...urce string begins If no match is found result is set equal to zero Addressing Modes and File Types can be used as shown below ASC String Search Source ST10 6 Index 5 String Search ST10 7 Result N7 1 0 ASC Execution Time for the ASC Instruction Controller When Instruction Is True False MicroLogix 1100r 45 18 μs 1 62 μs matching character 0 87 μs ASC Instruction Valid Addressing Modes and File Type...

Страница 334: ...ength and upper lower case characters If two strings are identical the rung is true if there are any differences the rung is false 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 I 1 10 ASC String Search Source ST38 40 Index 35 Stri...

Страница 335: ...alid Addressing Modes and File Types For definitions of the terms used in this table see Using the Instruction Descriptions on page 82 Parameter Data Files 1 Function Files CS Comms IOS I O DLS Data Log Address Mode Address Level O I S B T C R N F ST L MG PD RI RIX PLS RTC HSC PTO PWM STI EII BHI MMI LCD Immediate Direct Indirect Bit Word Long Word Element Source A Source B 1 The Control data file...

Страница 336: ...emicolon 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 1 2 6 3 4 5 1 5 2 6 3 4 Rung Condition Enable Bit EN Queue Bit EU Running Bit RN Done Bit Error Bit DN or ER ON OFF ON OFF ON OFF ON OFF ON OFF 1 rung goes true 2 instruction successfully...

Страница 337: ...to exceed 82 characters The appended characters are always applied to the output Error Code Description Recommended Action decimal hexadecimal 0 0x00 No error The instruction completed successfully None Required 3 0x03 The transmission cannot be completed because the CTS signal was lost Check the modem and modem connections 5 0x05 While attempting to perform an ASCII transmission a conflict with t...

Страница 338: ... number or a number greater than 82 Enter a valid string length and retry operation 13 0x0D The requested length in the Control field is invalid either a negative number or a number greater than 82 Enter a valid length and retry operation 14 0x0E Execution of an ACL instruction caused this instruction to abort None required 15 0x0F Communications channel configuration was changed while instruction...

Страница 339: ...CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 040 041 042 043 044 045 046 047 050 051 052 053 054 055 056 057 060 061 062 063 064 065 066 067 070 071 072 073 074 075 076 077 SP 0 1 2 3 4...

Страница 340: ...Publication 1763 RM001C EN P October 2009 340 ASCII Instructions Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 341: ...e Message on page 391 Configuring a Multi hop Remote Message on EtherNet IP Communication Channel on page 394 Configuring a MicroLogix 1100 CIP Generic Message via Ethernet OS Series B FRN 4 or later on page 21 62 MSG Instruction Error Codes on page 414 Special Function with MSG instruction OS Series B FRN 4 or later on page 416 The communication instructions read or write data to another station ...

Страница 342: ...en the next fifth message is processed the message request not the data is placed in the channel s communications queue The queue is a message storage area that keeps track of messages that have not been allocated a buffer The queue operates as a first in first out FIFO storage area The first message request stored in the queue is the message that is allocated a buffer as soon as a buffer becomes ...

Страница 343: ... Instructions 343 DF1 Half Duplex Master DF1 Half Duplex Slave DF1 Radio Modem Modbus RTU Master Ethernet For a description of valid communication protocols see Knowledgebase Quick Starts on page 539 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 344: ...umber of communications status bits The table on page 345 shows the available status file bits 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 SVC Service Communications Channel Select 1 SVC Execution Time for the SVC Instruction Controller When Rung Is 1 1 This value for the SVC instruc...

Страница 345: ...al Channel Status Block on page 58 for additional status information Application Example 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 Controller Channel Select Setting Channel s Serviced MicroLogix 1100 1h 0 2h 1 3h both Communication Status Bits Address Descripti...

Страница 346: ... message rung must be solved true before the message instruction can be processed The example below shows a message instruction 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 TIP You may program the SVC instruction unconditionally acros...

Страница 347: ...ent to the destination device depends on a number of issues including the selected channel s communication protocol the baud rate of the communications port the number of retries needed if any and the destination device s readiness to receive the message Message File Elements Sub Element Name Description Paramet er Size User Program Access 2 0 to 1 Reserved Word read only 2 Messaging Type 0 for PC...

Страница 348: ...N Word read only 20 Reserved Word read only 21 Internal message start time in seconds N Word read only 22 bits 15 08 Internal ERR Error Code bits 07 00 Internal Fail Code Note When CIP sub system cannot send a message due to some reason or reply contains error code error code is displayed via MSG instruction When messaging through CIP communication and non zero Status Code was received the low byt...

Страница 349: ...te r Size User Program Access 12 Reserved Y Word read only 13 MG11 0 TFN Target File Number Y Word read write 14 MG11 0 ELE Offset in elements into CIF Y Word read write 15 Reserved Y Word read only Message File Target Location Information Target Device 500CPU or PLC Sub Eleme nt Address Description Paramete r Size User Program Access 12 Target File Type Y Word read only 13 MG11 0 TF N Target File...

Страница 350: ... 13 MG11 0 TFN Modbus Target Data Address 1 Y Word read write 14 Reserved Y Word read write 15 Reserved Y Word read only Message File Target Location Information Target Device CIP Generic The MicroLogix 1100 OS Series B only Sub Element Name Description Paramete r Size User Program Access 12 Target Class Y Word read only 13 Target Instance Y Word read write 14 CIP Send Data Count Y Word read write...

Страница 351: ...MG11 0 0 EN Enable 1 MSG enabled 0 MSG not enabled N bit read write 9 to 14 Reserved N bit read write 8 MG11 0 0 TO Time Out 1 MSG time out by user 0 no user MSG time out N bit read write 1 to 7 Reserved N bit read write 0 MG11 0 0 BK Break Connection 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 N bit read write efesot...

Страница 352: ...rget N bit read only 13 MG11 0 0 DN Done 1 MSG completed successfully 0 MSG not complete N bit read only 12 MG11 0 0 ER Error 1 error detected 0 no error detected N bit read only 11 Reserved N bit read only 10 MG11 0 0 EW Enabled and Waiting 1 MSG Enabled and Waiting 0 MSG not Enabled and Waiting N bit read only 1 to 9 Reserved N bit read only 0 MG11 0 0 R For PCCC Messaging Range 1 Local 0 Remote...

Страница 353: ...ion from processor control You can create your own timeout routine by monitoring the EW and ST bits to start a timer 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 Address Data Format Range Type User Program Access MG11 0 TO Binary On or Off Control Read Write e...

Страница 354: ... actually waiting for a reply from the target device Enable EN The Enable Bit EN is set when rung conditions go true and the MSG is enabled The MSG is enabled when the command packet is built and put into one of the MSG buffers or the request is put in the MSG queue It remains set until the message transmission is completed and the rung goes false You may clear this bit when either the ER or DN bi...

Страница 355: ...hat the MSG instruction is being initiated on is configured for either of these two drivers the Start Bit ST is set when the message has been successfully transmitted Break Connection BK 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 suc...

Страница 356: ...e order in which the message instructions were enabled When a buffer becomes available the first message in the queue is placed into the buffer and the EW bit is set 1 Once the EN bit is set 1 it remains set until the entire message process is complete and either the DN ER or TO bit is set 1 The MSG Timeout period begins timing when the EN bit is set 1 If the timeout period expires before the MSG ...

Страница 357: ...he MG file is set 1 and a code is placed in the MG file to inform you of an error When a valid message instruction is loaded into a message buffer the EN and EW bits for this message are set 1 The controller then exits the end of scan REF or SVC portion of the scan The controller s background communication function sends the messages to the target nodes specified in the message instruction Dependi...

Страница 358: ...et node sends a reply packet The reply packet contains one of the following responses successful write request successful read request with data failure with error code At the next end of scan REF or SVC instruction following the target node s reply the controller examines the message from the target device If the reply is successful the DN bit is set 1 and the ST bit is cleared 0 If it is a succe...

Страница 359: ...nel 1 command One incoming channel 0 or channel 1 message reply One outgoing channel 0 or channel 1 message on the overflow queue When the Communications Servicing Selection bit is unchecked at the next execution of a Service Communications SVC instruction I O Refresh REF instruction or when it performs Communications Servicing whichever occurs first commands replies are processed as follows One i...

Страница 360: ...ng channel 0 or channel 1 MSG instructions at the next Service Communications SVC instruction I O Refresh REF instruction or when it performs Communications Servicing The Message Servicing Selection Channel 0 or channel 1 bit is applied by the controller when the Communications Servicing Selection Channel 0 or channel 1 bit is clear unchecked MSG Instruction Ladder Logic Enabling the MSG Instructi...

Страница 361: ...mote messages With a local message all devices are accessible without a separate device acting as a bridge Different types of electrical interfaces may be required to connect to the network but the network is still classified as a local network Remote messages use a remote network where devices are accessible only by passing or routing through a device to another network Remote networks are discus...

Страница 362: ... PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL AIC AIC AIC DH 485 Network SLC 5 04 PanelView 550 MicroLogix 1500 MicroLogix 1000 MicroLogix 1100 Personal Computer AIC AIC DANGER DANGER DANGER DANGER DANGER A B PanelView DANGER DNI DNI DNI DNI DeviceNet Network Master PanelView 550 Micr...

Страница 363: ...g 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 RS 232 DF1 Half Duplex Protocol MicroLogix 1500 Slave SLC 5 04 Slave MicroLogix 1000 Slave SLC 5 03 with 1747 KE Interface Module Slave MicroLogix 1100 Slave Modem 0000 B3 0 0 EN DN ER MSG Read Write Message MSG File ...

Страница 364: ...hannel 0 and Channel 1 messaging Channel 0 is the RS 232 RS 485 port and Channel 1 is the Ethernet port If Channel 0 is selected with that channel configured for Modbus RTU Master then the next line will display Modbus Command Otherwise the next line displays Communication Command efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 365: ...arget device is compatible with and supports the SLC 500 command set all MicroLogix controllers sending data 485CIF Read 1 1 See Important note below The target device is compatible with and supports the 485CIF PLC2 reading data 485CIF Write 1 The target device is compatible with and supports the 485CIF PLC2 sending data PLC5 Read The target device is compatible with and supports the PLC5 command ...

Страница 366: ... device Supported Modbus commands include Modbus Command Types Modbus Command Used For 01 Read Coil Status reading bits 02 Read Input Status reading bits 03 Read Holding Registers reading words 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 wor...

Страница 367: ...File Type must both be Floating Point Output O Input I Bit B Timer T Counter C Control R Integer N Floating Point F 1 Long Word L String ST 2 3 Real Time Clock RTC 4 2 485CIF write to 485CIF only for MicroLogix 1100 OS Series A FRN 3 or earlier 3 MicroLogix 1100 OS Series B FRN 4 or later 4 500CPU write RTC to Integer or RTC to RTC only TIP Only Bit B and Integer N file types are valid for Modbus ...

Страница 368: ...e You cannot cross file types when sending messages For example you cannot read a timer into an integer file and you cannot write counters to a timer file The only exceptions to this rule are that long integer data can be read from or written to bit or integer files and RTC files can be written to integer files TIP Input output string and RTC file types are not valid for read messages TIP The tabl...

Страница 369: ...and 2 are read only 15 is write only B N commands 3 4 and 16 multi register 120 Modbus register elements 120 words Commands 3 and 4 are read only 16 is write only 1 MicroLogix 1100 Series B FRN 4 or later 2 Message Type must be 500CPU or PLC5 The Local File Type and Target File Type must both be Floating Point 3 MicroLogix 1100 OS Series A FRN3 Message Type File Type Element Size Maximum Number of...

Страница 370: ...n the Ethernet Message Setup dialog box It is assigned by the processor and is determined by adding the Channel 1 MSG Connection Timeout to the MSG Reply Timeout then adding 15 seconds This value can be modified by changing one or both of the timeout values in the channel configuration screen for channel 1 The modified message timeout applies to all Ethernet MSG instructions MSG timeout for channe...

Страница 371: ...rocessors use word offset PLC 5 and Logix processors use byte offset Modbus MB Data Address 1 65536 Modbus addressing is limited to 16 bits per memory group each with a range of 1 to 65 536 There are four memory groups one for each function coils generally addressed as 0xxxx contacts 1xxxx input registers 3xxxx holding registers 4xxxx Coils and contacts are addressed at the bit level Coils are out...

Страница 372: ...ress This is the destination device s node number if the devices are on a DH 485 DeviceNet using 1761 NET DNI DF1 or Modbus network TIP Modbus protocol may not be consistently implemented in all devices The Modbus specification calls for the addressing range to start at 1 however some devices start addressing at 0 The Modbus Data Address in the Message Setup Screen may need to be incremented by on...

Страница 373: ...adio 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 Local Messaging Examples Five examples of local messaging are shown in this section 500CPU message type 485CIF message type PLC5 message type Modbus RTU Message type EtherNet IP Message type A summary of the mess...

Страница 374: ...ite Multiple Registers Data Table Address For a Read this is the starting address which receives data Valid file types are B T C R ST 3 N and L for Modbus commands B and N only For a Write this is the starting address which is sent to the target device Valid file types are O I B T C R N L ST 1 3 and RTC 1 2 for Modbus commands B and N only Size in elements Defines the length of the message in elem...

Страница 375: ... C R N L RTC 1 and ST 3 Data Table Offset 485CIF message types This is the word offset value in the common interface file byte offset for PLC device in the target processor which is to send the data MB Data Address Specifies the Modbus address in the target device Valid range is from 1 to 65 536 Local Slave Node Address Specifies the node number of the device that is receiving the message Valid ra...

Страница 376: ...d out Valid File Type Combinations Valid transfers between file types are shown below for MicroLogix messaging Example 2 Local Read from a 485CIF Message Instruction Setup Local Data Types Communication Type Target Data Types O 1 I 1 B N L 1 Output and input data types are not valid local data types for read messages read write O I S B N L T read write T C read write C R read write R RTC 2 2 500CP...

Страница 377: ...e the message completes error bit MG11 0 ER is set indicating that the message timed out Valid File Type Combinations Valid transfers between file types are shown below for MicroLogix messaging Local Data Types Communication Type Target Data Types O 1 I 1 B N L 1 Output and input data types are not valid local data types for read messages read write 485CIF T read write 485CIF C read write 485CIF R...

Страница 378: ...ds elapse before the message completes error bit MG11 0 ER is set indicating that the message timed out Valid File Type Combinations Valid transfers between file types are shown below for MicroLogix messaging Local Data Types Communication Type Target Data Types O 1 I 1 B N L 1 Output and input data types are not valid local data types for read messages read write O I S B N L T read write T C read...

Страница 379: ...creen and set the Driver to Modbus RTU Master For more information on Channel Configuration see Modbus RTU Master Configuration on page 525 Message Setup Screen Rung 0 shows a standard RSLogix 500 message MSG instruction preceded by conditional logic 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 moni...

Страница 380: ...ire a word address Size in Elements Size in elements defaults to 1 For coil input commands 1 2 5 and 15 elements are in bits For register commands 3 4 6 and 10 elements are in words Target Device Message Timeout Message timeout is specified in seconds If the target does not respond within this time period the message instruction will generate a specific error see MSG Instruction Error Codes on pag...

Страница 381: ... 1100 Message Setup Screen Rung 0 shows a standard RSLogix 500 message MSG instruction preceded by conditional logic 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 efesotomasyon ...

Страница 382: ...s seven different types of communication commands If the target device supports any of these command types the controller should be capable of exchange data with the device You can use one of the seven kinds of message commands 500CPU 485CIF PLC5 and CIP Generic 1 Refer to the previous examples for the usage of each command 1 MicroLogix 1100 OS Series B FRN 4 or later efesotomasyon com Allen Bradl...

Страница 383: ... be modified by changing one or both of the timeout values in the channel configuration screen for channel 1 The modified message timeout applies to all Ethernet MSG instructions Routing Information File The Routing Information RI File stores the path for reaching the destination node Each RI File Element consists of Sub Elements 0 through 19 as shown in the following table To reach another MicroL...

Страница 384: ...r normal Multi Hop MSG 17 0x11 for Remote Multi Hop MSG for a DH Network 1 High word of 32 bit target IP address 1 1 IP address is stored in network byte order big endian order For example IP address 10 121 30 11 will be stored as 0x0a791e0b Then the IP address will be stored as described in the table below 2 Low word of 32 bit target IP address 3 8 to 15 Internal Object Identifier IOI size in wor...

Страница 385: ...or a controller connected to Ethernet via a 1761 NET ENI then simply enter in the device s IP address in the To Address column as shown below under the MultiHop tab For more information on routing through a ControlLogix gateway refer to Configuring a Multi hop Remote Message on EtherNet IP Communication Channel on page 394 If the target device is a ControlLogix FlexLogix or CompactLogix controller...

Страница 386: ...ace s IP address of the 1756 ENET module 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 backplane slot number of the ControlNet Interface module 0 16 for 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 ...

Страница 387: ...e data to target device SLC5 0x 1756 L1 The following message setup screen is used to send local PLC5 write to the 1756 L1 via 1756 ENBT module 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 388: ...DH 485 node 17 is configured for passthru operation Devices that are capable of remote messaging and are connected on either network can initiate read or write data exchanges with devices on the other network based on each device s capabilities In this example node 12 on DH 485 is a MicroLogix 1100 The MicroLogix 1100 can respond to remote message requests from nodes 40 or 51 on the DH network and...

Страница 389: ... TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL AIC AIC AIC DH 485 Network SLC 5 04 PanelView 550 MicroLogix 1100 MicroLogix 1000 MicroLogix 1200 SLC 5 04 AIC AIC SLC 5 04 PLC 5 DH Network No...

Страница 390: ...ernet Networks A B PanelView TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CA...

Страница 391: ...iguration shown below is for the MicroLogix 1100 at node 12 on the DH 485 network This message reads five elements of data from the SLC 5 04 node 51 on the DH network starting at address N 50 0 The SLC 5 04 at Node 23 of the DH network is configured for passthru operation TIP The MicroLogix 1100 capabilities are the same as the MicroLogix 1200 or MicroLogix 1500 in this example efesotomasyon com A...

Страница 392: ...DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL AIC AIC AIC DH 485 Network SLC 5 03 PanelView 550 MicroLogix 1100 MicroLogix 1000 MicroLogix 1200 SLC 5 04 AIC AIC SLC ...

Страница 393: ...f the target device is not remote capable SLC 500 SLC 5 01 SLC 5 02 and MicroLogix 1000 Series A B and C the remote bridge address is required Remote Station Address This variable is the final destination address of the message instruction In this example integer file 50 elements 0 to 4 of the SLC 5 04 on Link ID 100 at node 63 octal receives data from the MicroLogix 1100 controller at node 12 on ...

Страница 394: ... user defined number between 1 and 65 535 All devices that can initiate remote messages and are connected to the local network must have the same number for this variable Configuring a Multi hop Remote Message on EtherNet IP Communication Channel A user can configure a multi hop remote message in the RSLogix500 Message Setup screen efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 395: ...l s an ENET module a ControlLogix chassis Gateway and a DHRIO module In order for the message to pass through the network a MultiHop MSG must be setup and a DHRIO Routing table must exist 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 1...

Страница 396: ...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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 397: ...appear Right click on the Backplane and left click on Edit Module Make sure that the Back plane Link ID is set to 20 Right click on the 1756 DHRIO module and left click on Edit Module Make sure that CH A s Link ID is set for 7 and CH B s Link ID is set for 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 cor...

Страница 398: ...ft click on Add Module 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 399: ...ess the Insert key and enter in the backplane slot numbers of the DHRIO module 0 16 under the To Address fields 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 Make sure that the From Port for the DHRIO module is set for Channel A ef...

Страница 400: ...1100 Ethernet to SLC 5 03 DH485 via ENET DHRIO and 1785 KA5 bridge device OS Series B FRN 4 or later The following illustrates the MicroLogix 1100 OS Series B CH1 Ethernet sending a remote message to a SLC5 03 processor DH Node 51 The remote message will passthru an ENET module a ControlLogix chassis Gateway a DHRIO module and a 1785 KA5 bridge device In order for the message to pass through the n...

Страница 401: ...RSWho window to browse the DH485 network you must configure the 1785KA5 bridge in the ControlLogix Gateway Configuration software 1756gtwy Follow the example below for the configuration steps To go from a DHRIO module through a 1785 KA5 bridge device to a 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 ...

Страница 402: ...ect Add Module Select the DH Bridge Enter the 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 403: ... 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 Make sure that the From Port for the DHRIO module is set for Channel B Enter in the destination Link ID DH address of target processor under the To Address Press the Insert key to add another hop Double click on the From Device and select Remote DH DH DH 48...

Страница 404: ... Ethernet message setup screen works the same as for a remote DH 485 message Selecting remote in the selectable local remote field shows two new fields Remote Station Address and Remote Bridge Link ID Also following set up is needed in RSLinx side for MicroLogix 1100 unsolicited MSG communication with OPC client Remote Bridge Link ID 15 dec Remote Station Address 63 dec Chan 1 Network Link ID 0 So...

Страница 405: ...ommunications Instructions 405 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 406: ...130 KA for the Bridge Device Select DH for the Remote Network Type and Local ID is set to 15 dec Local KA5 is set to 63 dec 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 efesotomasyon com Allen Bradley Rockwell pl...

Страница 407: ...ommunications Instructions 407 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 408: ...100 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 409: ... The MicroLogix 1100 OS Series B only supports CIP Generic messages over ethernet port This section describes how to configure a CIP Generic message when you are use Ethernet communication channel 1 of the MicroLogix 1100 The Network Configuration is shown below The RSLogix Message Setup Screen is shown below This screen is used to setup This Controller Target Device and Control Bits Descriptions ...

Страница 410: ... Extended Routing Information File The CIP generic communication command requires an extended routing information file type RIX to store the longer path information for CIP generic message types 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 e...

Страница 411: ...vice This value changes based on the Service type that has been selected When user select a Service type other than Custom this is a read only box If user select Custom in the Service type box then user need to specify a service code in this box 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...

Страница 412: ...shall always refer to the instance associated with the interface over which the request was received The attribute ID 5 identifies TCP IP network interface configuration parameters 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 startin...

Страница 413: ...ue to some reason or reply contains error code error code is shown via MSG instruction Error Code 0xE0 is stored in Word 18 of MG file Internal 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...

Страница 414: ...rs 15H Local channel configuration parameter error exists 16H Target or Local Bridge address is higher than the maximum node address 17H Local service is not supported 18H Broadcast is not supported 20H PCCC Description Host has a problem and will not communicate 21H Bad MSG file parameter for building message 30H PCCC Description Remote station host is not there disconnected or shutdown 37H Messa...

Страница 415: ...CCC Description Illegal Address Format symbol is 0 or greater than the maximum number of characters support by this device E6H PCCC Description Illegal Address address does not exist or does not point to something usable by this command E7H Target node cannot respond because length requested is too large E8H PCCC Description Cannot complete request situation changed file size for example during mu...

Страница 416: ...ate with a module F8H PCCC Description The 1771 module response was not valid size checksum etc F9H PCCC Description Duplicated Label FAH Target node cannot respond because another node is file owner has sole file access FBH Target node cannot respond because another node is program owner has sole access to all files FCH PCCC Description Disk file is write protected or otherwise inaccessible off l...

Страница 417: ...001B EN P April 2007 Communications Instructions 417 General MSG Setup Screen to change IP Address MultiHop Setup Screen to change IP Address Setup String Data File efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 418: ...File Power cycle is required 1 Ethernet Subnet Mask Writable by an element of String File Changes Subnet Mask in Ethernet Communication File Disables BOOTP DHCP flags in Ethernet Communication File Power cycle is required 2 Ethernet Gateway Address Writable by an element of String File Changes Default Gateway Address in Ethernet Communication File Disables BOOTP DHCP flags in Ethernet Communicatio...

Страница 419: ...n 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 TIP If you sent a message with Data Table Offset 0 1 or 3 to change IP Address Subnet Mask or Gateway Address respectably these addresses will be applied after power cycle...

Страница 420: ...April 2007 420 Communications Instructions SMTP Client Enable Bit Setup Screen SMTP Configuration Setup Screen The following is an explanation of parameters to be configured efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 421: ...SMTP server TO Address 0 email TO address 0 To Address must be written as an email style TO Address 1 email TO Address 1 To Address must be written as an email style TO Address 2 email TO Address 2 To Address must be written as an email style TO Address 3 email TO Address 3 To Address must be written as an email style TO Address 4 email TO Address 4 To Address must be written as an email style TO ...

Страница 422: ...provides an example of how the MSG Instruction would be configured to be used 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 423: ...ring File is an email body If Size in Element is 1 the contents of email body is filled to No Body Message Timeout Cannot edit Data Table Offset Valid value is 100 to 109 for SMTP messaging Basically Data Table Offset in MSG configuration setup screen is used to direct the internal virtual offsets You can configure the listed parameter setting by sending a String File Data to these offsets Data Ta...

Страница 424: ...red in Word 22 of MG file When messaging through SMTP communication and the low byte is 0xDD the high byte of this sub element contains detailed Fail Code returned by the SMTP sub system The element values of Fail Codes are shown below to 108 Send email to SMTP TO address 8 configured in SMTP configuration File Used to trigger the SMTP message 109 Send email to SMTP TO address 9 configured in SMTP...

Страница 425: ...hentication Flag is enabled MicroLogix 1100 sends encoded Username and Password There are several Authentication methods login plain cram md5 and etc But MicroLogix 1100 supports only the login method Base64 encoding is used to login to SMTP server Sending email in User Fault Routine When the controller mode is changed to User Fault mode if users want to send email user fault routine must be defin...

Страница 426: ...Publication 1763 RM001B EN P April 2007 426 Communications Instructions Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 427: ...n page 435 Retrieval Tools on page 442 Information for Creating Your Own Application on page 443 The following reasons may help you choose which type of memory to use All the recipe data is stored into the controller s memory module Because the recipe data is stored in Data Log Queue memory it does not consume user program space If you are not using the data logging function it allows you more mem...

Страница 428: ...ransfers data between the recipe database and the specified data locations Addressing Modes and File Types are shown in the following table 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 RCP Instruction Valid Addressing Modes and File Types For definitions of the terms used in...

Страница 429: ...our ladder program Name This is a descriptive name for the RCP file Do not exceed 20 characters Description This is the file description optional Location where recipe data is stored applies to all recipe files This allows you to designate a memory location for your RCP files User Program Cannot be used Data Log Queue Recipe data is stored in the data log memory space max 64K bytes 3 Enter the RCP...

Страница 430: ...n below 5 Change the Current Recipe from 0 to 1 Notice the addresses were duplicated but the data was not 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 431: ... File 0 Recipe number 0 is executed loading the following values to create Yellow paint N7 0 500 N7 1 500 N7 2 0 T4 0 PRE 500 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 T4 0 PRE 500 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 432: ...from a RCP file to data table addresses However note that by changing the RCP file operation from Load to Store values can be loaded by ladder logic into the recipe database for each Recipe number Calculation of Consumed Memory The consumed memory in this example can be calculated by the following equation Consumed memory size for Recipe File 0 Data Field per a recipe Number of Recipes 10 3 bytes ...

Страница 433: ...ocessor has 128K bytes 128 x 1024 of additional memory for data logging purposes Within this memory you can define up to 256 0 to 255 data logging queues Each queue is configurable by size maximum number of records stored and by length each record is 1 to 80 characters The length and the maximum number of records determine how much memory is used by the queue You can choose to have one large queue...

Страница 434: ...210 4375 Record 2 01 10 2000 21 00 00 2275 103455 225 8150 4335 Record 3 01 10 2000 21 30 00 2380 103455 223 8195 4360 Record 4 01 10 2000 22 00 00 2293 103456 218 8390 4375 Record 5 01 10 2000 22 30 00 2301 103455 231 8400 4405 Record 6 01 10 2000 23 00 00 2308 103456 215 8100 4395 Record 7 01 10 2000 23 30 00 2350 103457 208 8120 4415 Record 8 01 11 2000 00 00 00 2295 103457 209 8145 4505 Record...

Страница 435: ...he maximum formatted string does not exceed 80 characters The following table can be used to determine the formatted string length Record Field Memory Consumption Date 2 bytes Time 2 bytes N7 11 2 bytes L14 0 4 bytes T4 5 ACC 2 bytes I1 3 0 2 bytes B3 2 2 bytes Integrity Check 2 bytes Total 18 bytes Queue 5 Time Delimiter TAB Time N7 11 I1 3 0 I1 2 1 Record 0 20 00 00 TAB 2315 TAB 8190 TAB 4465 Re...

Страница 436: ...he 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 Data Memory Consumed Formatted String Size delimiter 0 bytes 1 character word 2 bytes 6 characters long word 4 bytes 11 characters date 2 bytes 10 characters time 2 bytes 8 characters Data Time N7 11 I1 3 0 I1 2 1 Characters 8 1 6 1 6 1 6 Record Field...

Страница 437: ...to configure the data log queue s Access to this function is provided via the RSLogix 500 Project tree 2 The Data Log Que window appears Double click on Data Log Configuration 3 The Data Log Que dialog box appears as shown below Use this dialog box to enter the queue information Double click Configuration to access Data Log Configuration Appearance of Data Log Que Configuration window before creat...

Страница 438: ...ured Date Stamp if selected the date is recorded in mm dd yyyy format 1 1 If the real time clock is disabled and Date Stamp and Time Stamp are selected enabled the date is recorded as 00 00 0000 and the time as 00 00 00 Time Stamp if selected the time is recorded in hh mm ss format 1 Address to Log Enter the address of an item to be recorded and click on Accept to add the address to the Current Ad...

Страница 439: ... 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 DLG Data Log queue number 0 DLG Execution Time for the DLG Instruction Controller When Rung Is True False MicroLogix 1100 35 9 μs 2 5 μs data stamp 1 9 μs time stamp 1 9 μs word logged 4 3 μs long word logged 7 5 μs IMPORTANT You must configure...

Страница 440: ...one DN The Data Logging Done DN bit is used to indicate when the associated queue is full This bit is set 1 by the DLG instruction when the queue becomes full This bit is cleared when a record is retrieved from the queue To address this bit in ladder logic use the format DLS0 Q DN were Q is the queue number Data Logging Overflow OV The Data Logging Overflow OV bit is used to indicate when a record...

Страница 441: ...s this word in ladder logic use the format DLS0 Q RST where Q is the queue number DLS information can be used in the following types of instructions NOTE If a queue is full and another record is saved the oldest record is over written Queue behavior is the same as a FIFO stack first in first out If a queue is full and an additional record is saved the first record is deleted Instruction Type Opera...

Страница 442: ...ull terminated If the Real Time Clock module is disabled in the controller date is formatted as 00 00 0000 and time is formatted as 00 00 00 The Communications Device determines the number of sets of data that have been recorded but not retrieved See the Data Log Status File on page 440 The controller performs a the data integrity check for each record If the data integrity check is invalid a fail...

Страница 443: ...matted string length see equation below File Number Always set to zero 0 File Type Must be A5 hex Element Number Queue number Determines the queue to be read 0 to 255 Sub Element Number Always set to zero 0 Equation Record Field 1 Record Field 2 Record Field 3 Record Field 7 Formatted String Length Record Field Sizes Data Type Maximum Size Word 7 bytes characters Long Word 12 bytes characters Date...

Страница 444: ... Memory Module transfer to controller except for Memory Module autoload of the same program Full Queue when a queue is full new records are recorded over the existing records starting at the beginning of the file You can put the following rung in your ladder program to prevent this from happening Reply Structure SRC DST CMD 4f STS TNS DATA EXT STS Field Function Description SRC Source Node DST Des...

Страница 445: ...llows you to simulate pushbuttons or numeric entry devices By simply moving or copying data in and out of the bit and integer files you now can monitor and modify the parameters that your controller uses Making use of the new MicroLogix 1100 LCD Instruction your controller can directly interface with a local operator using your ladder logic The LCD Instruction executes under two modes of operation...

Страница 446: ...is mode is used to obtain numeric input from the user Bit integer or long integer file types can be used to provide this input The user can select User Display from the LCD menu The User Display screen will show the specified output data when the LCD Instruction is energized If DISPLAY WITH INPUT is set to YES the user can enter input using the LCD keypad to enter Bit Integer or Long Integer data ...

Страница 447: ...res that are used to provide control over LCD Keypad Trimpot A summary of the sub element is provided in the following table NOTE If the controller is in the run mode TBF TIF TMIN TMAX may not be changing those values can be available of changing only when program is downloaded LCD Function File Feature Address Data Format Type User Program Access CBS Customized Boot Message String File Address Of...

Страница 448: ...RR binary bit status read only ERN LCD Module Operation Error Number LCD 0 ERN word INT status read only TBF Target Bit File Number LCD 0 TBF word INT control read only TIF Target Integer File Number LCD 0 TIF word INT control read only JOG Jog data update Mode set LCD 0 JOG binary bit control read write TMIN Trimpot low value LCD 0 TMIN word INT control read only TMAX Trimpot high value LCD 0 TMA...

Страница 449: ...e LCD instruction is clear 0 No DN bit is set 1 immediately after its execution result is displayed on the LCD If the Display With Input bit is set 0 Yes DN bit is set 1 when the OK or ESC key is pressed LCD Display Operation Error Bit ERR LCD Display Operation Error Bit ERR bit indicates whether there is a Trimpot range error at each program download Whenever a program is downloaded the controlle...

Страница 450: ...t file is specified the Monitoring and Bit menus are available 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 Feature Address Data Format Type User Program Access ERN LCD Module Operation Error Number LCD 0 ERN word INT ...

Страница 451: ...enever you press the Up and Down keys When it is clear 0 the changes are applied only when you press the OK key after you have changed the value using the Up and Down keys There are three ways to change JOG bit Editing the LCD Function File with your RSLogix 500 programming tool Manipulating this bit using a ladder program Using the Advance Set and KeyIn Mode menus on the LCD Trimpot 0 Data TMIN T...

Страница 452: ...his status to LCD screen as U MSG status OK key in Customized Display OK OK is set when OK key is pressed This bit should be cleared so as to get the next key input Because once OK key is pressed this bit is set and latched until it is cleared by manually This OK bit is very useful for LCD instruction You can use this bit as any input of ladder logic when you program with several LCD instructions ...

Страница 453: ... keypad so it is just updated in U MSG screen CTU LCD Display LCD L2 Source A ST9 0 L2 Source B 0 L3 Source A ST9 1 L3 Source B 0 L4 Source A ST9 2 L4 Source B 0 Display With Input Setup Screen No Execution Time for the LCD Instruction Controller When Rung Is True False MicroLogix 1100 8 06 μs 0 87 μs Line 2 Operand 1 Operand 2 display area on the LCD Line 3 Operand 3 Operand 4 Line 4 Operand 5 Op...

Страница 454: ...value is less than zero minus sign is attached to the head of converted string Long data file L is limited to the Line 4 Source A operand only If you need to get long range data 2 147 483 648 2 147 483 647 from the keypad use the L data file The largest string size of each line is 12 characters If there are more than 12 characters in the string file the remaining characters except the first twelve...

Страница 455: ... and Line 3 strings and positions the cursor at Line 4 Then the user can input a desired value using the LCD keypad User input is applied when the OK key is pressed If the ESC key is pressed user input is cancelled and no operation is followed During user s input with the LCD keypad Line 2 and Line 3 displays are not updated Displaying Special Characters With the LCD instruction the LCD screen can...

Страница 456: ...Publication 1763 RM001C EN P October 2009 456 LCD LCD Information LCD Character Set LCD Font ASCII Code Hex Standard character efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 457: ...se ASCII Test Buffer for Line ABL 10 93 11 43 1 4 None None None ASCII Number of Characters in Buffer ACB 10 93 11 43 1 4 None None None Absolute Value ABS 9 62 0 87 1 4 9 71 0 87 ASCII String to Integer ACI 39 06 0 87 1 4 41 99 0 87 ASCII Clear Buffer ACL 61 46 0 87 2 0 None None None ASCII String Concatenate ACN 50 15 0 11 char 0 87 2 0 None None None Add ADD 13 44 0 87 2 0 13 34 0 87 ASCII Stri...

Страница 458: ... word 0 90 Convert from BCD FRD 29 87 0 87 1 4 None None None Gray Code GCD 29 06 0 87 1 4 None None None Greater Than or Equal To GEQ 8 96 0 87 1 4 9 09 0 87 Greater Than GRT 8 96 0 87 1 4 9 09 0 87 High Speed Load HSL 82 37 0 87 3 2 84 37 0 87 Immediate Input with Mask IIM 51 76 0 87 2 0 None None None Interrupt Subroutine INT 0 74 0 74 0 2 None None None Immediate Output with Mask IOM 43 59 0 8...

Страница 459: ...ID 39 34 36 93 2 0 None None None Pulse Train Output PTO 51 28 31 94 0 8 None None None Pulse Width Modulation PWM 51 90 33 68 0 8 None None None Reset Accumulator RAC None None None 40 81 0 87 I O Refresh REF see p 462 0 84 0 2 None None None Reset RES 1 31 0 87 0 8 None None None Return RET 1 68 0 84 0 2 None None None Real Time Clock Adjust RTA 4 37 4 09 0 2 None None None Retentive Timer On RT...

Страница 460: ...CD TOD 29 31 0 87 1 4 None None None Off Delay Timer TOF 2 68 2 68 DN 1 4 03 DN 0 0 8 None None None On Delay Timer TON 2 71 DN 1 4 06 DN 0 2 59 0 8 None None None User Interrupt Disable UID 9 28 0 87 0 8 None None None User Interrupt Enable UIE 9 28 0 87 0 8 None None None User Interrupt Flush UIF 23 78 0 87 0 8 None None None Examine if Closed XIC 1 5 1 45 0 8 None None None Examine if Open XIO ...

Страница 461: ...uction Execution Time Using Indirect Addressing Address Form Operand Time µs Address Form Operand Time µs Address Form Operand Time µs O 1 2 6 O 2 6 6 L 1 7 3 O 0 2 6 O 1 0 6 8 L 7 5 O 2 9 O 1 7 2 T4 DN 5 5 B3 1 7 O 0 7 1 T 1 DN 6 6 B 1 2 7 O 7 4 T DN 6 8 B 3 0 B3 2 5 5 T4 ACC 2 5 5 L8 2 0 B 1 2 6 6 T 1 ACC 2 6 6 L 1 2 9 B 2 6 8 T ACC 2 6 8 L 3 1 B3 1 5 8 T4 1 6 0 T4 not supported B3 6 2 T4 6 2 T ...

Страница 462: ...Communications Overhead 1 Worst Case 1100 µs Typical Case 400 µs Use this number if the communications port is configured but not communicating to any other device 150 µs Use this number if the communications port is in Shutdown mode 0 µs Pick one of the four numbers for Channel 0 Pick one of the four numbers for Channel 1 Communications Overhead Sub Total System Overhead Add this number if your s...

Страница 463: ... 09 1 08 1 07 1 07 1 06 1 06 1 01 DH 485 N A 1 14 1 10 N A N A N A N A N A 1 06 at 19 2K 1 09 at 9 6K Modbus 2 1 21 1 12 1 09 1 08 1 08 1 08 1 08 1 08 1 00 ASCII 2 1 52 1 33 1 24 1 20 1 19 1 18 1 18 1 17 1 00 Shut Down 1 00 1 00 1 00 1 00 1 00 1 00 1 00 1 00 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 ...

Страница 464: ...Publication 1763 RM001C EN P October 2009 464 MicroLogix 1100 Memory Usage and Instruction Execution Time Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 465: ...o work This is done by using the status file to set up control bits and monitor both hardware and programming device faults and other status information IMPORTANT Do not write to reserved words in the status file If you intend writing to status file data it is imperative that you first understand the function fully efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 466: ... 15L Node Address 481 S 15H Baud Rate 482 S 22 Maximum Scan Time 482 S 29 User Fault Routine File Number 482 S 30 STI Set Point 483 S 31 STI File Number 483 S 33 Channel 0 Communications 483 S 35 Last 100 µSec Scan Time 484 S 36 10 Data File Overwrite Protection Lost 485 S 37 RTC Year 485 S 38 RTC Month 485 S 39 RTC Day of Month 486 S 40 RTC Hours 486 S 41 RTC Minutes 486 S 42 RTC Seconds 487 S 53...

Страница 467: ...on Otherwise the bit remains cleared 0 Whenever this bit is set 1 the overflow trap bit S 5 0 is also set 1 When an STI High Speed Counter Event Interrupt or User Fault Routine interrupts normal execution of your program the original value of S 0 1 is restored when execution resumes Zero Flag This bit is set 1 when the result of a mathematical operation or data handling instruction is zero Otherwi...

Страница 468: ...ormat Range Type User Program Access S 1 0 to S 1 4 binary 0 to 1 1110 status read only S 1 0 to S 1 4 Mode ID Controller Mode Use by MicroLogix Controller 1 S 1 4 S 1 3 S 1 2 S 1 1 S 1 0 1100 0 0 0 0 0 0 remote download in progress 0 0 0 0 1 1 remote program mode 0 0 0 1 1 3 remote suspend mode operation halted by execution of the SUS instruction 0 0 1 1 0 6 remote run mode 0 0 1 1 1 7 remote tes...

Страница 469: ...s 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 Address Data Format Range Type User Program Access S 1 5 binary 1 status read only Address Data Format Range Type User Program Access S 1 6 binary 0 or 1 status read only efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 470: ...Or Default Program For this option to work you must set 1 this bit in the control program before downloading the program to a memory module When this bit it set in the memory module and power is applied the controller downloads the memory module program when the control program is corrupt or a default program exists in the controller The mode of the controller after the transfer takes place is det...

Страница 471: ... clear 0 Last State the mode at power up is dependent upon the position of the mode switch state of the Major Error Halted flag S 1 13 mode at the previous power down If Power Up Mode Behavior is set 1 Run the mode at power up is dependent upon the position of the mode switch state of the Major Error Halted flag S 1 13 Address Data Format Range Type User Program Access S 1 11 binary 0 or 1 control...

Страница 472: ...ode and the FAULT LED flashes MicroLogix 1100 Mode Switch Position at Power Up Major Error Halted Power Up Mode Behavior Mode at Last Power Down Power Up Mode Program False Don t Care Don t Care Program True Program w Fault Remote False Last State REM Download Download REM Program Program or Any Test mode REM Program REM Suspend or Suspend REM Suspend REM Run or Run REM Run Run Don t Care REM Run ...

Страница 473: ...on File on page 268 for more information ATTENTION If you clear the Major Error Halted bit S 1 13 when the controller mode switch is in the RUN position the controller immediately enters the RUN mode Address Data Format Range Type User Program Access S 1 14 binary 0 or 1 status read only Address Data Format Range Type User Program Access S 1 15 binary 0 or 1 status read write NOTE The First Scan b...

Страница 474: ... 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 Address 1 1 This bit can only be accessed via ladder logic It cannot be accessed via communications such as a Message instruction from another device Data Format Range Type User Program Access S 2 1 binary 0 or 1 control ...

Страница 475: ...7 word or 2 147 483 647 long word if the result is positive or 32 768 word or 2 147 483 648 long word if the result is negative To provide protection from inadvertent alteration of your selection program an unconditional OTL instruction at address S 2 14 to ensure the new math overflow operation Program an unconditional OTU instruction at address S 2 14 to ensure the original math overflow operati...

Страница 476: ...roLogix 1500 100 µs bit 0 0001 seconds bit The following table illustrates the differences Address Data Format Range Type User Program Access S 4 binary 0 to FFFF status read write Free Running Clock Cycle Times all Times are in Seconds Bit SLC 500 and MicroLogix 1000 MicroLogix 1100 MicroLogix 1200 and MicroLogix 1500 On Off Time Cycle Time On Off Time Cycle Time S 4 0 0 010 0 020 0 0001 0 0002 S...

Страница 477: ... BSR SQO SQC and SQL instructions are capable of generating this error When bit S 5 2 is set 1 it indicates that the error bit of a control word used by the instruction has been set If this bit is ever set upon execution of the END or TND instruction major error 0020H is generated To avoid this type of major error from occurring examine the state of this bit following a control register instructio...

Страница 478: ...h At power up if Load Always is set and the controller and memory module passwords do not match the Memory Module Password Mismatch bit is set 1 SeePassword Protection on page 45 for more information STI Lost This address is duplicated at STI 0 UIL SeeUsing the Selectable Timed Interrupt STI Function File on page 268 for more information Processor Battery Low This bit is set 1 when the battery is ...

Страница 479: ...ror Fault Code word S 6 Major Error Code 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 IMPORTANT Install a replacement battery immediately See your hardware manual for more information Address Data Format Range Type User Program Access S 5 13 binary 0 or 1 status rea...

Страница 480: ... Suspend mode The controller does not clear this value Use the SUS instruction with startup troubleshooting or as runtime diagnostics for detection of system errors Active Nodes Nodes 0 to 15 This address is duplicated in the Communications Status File CSx 0 27 SeeActive Node Table Block on page 69 for more information Address Data Format Range Type User Program Access S 7 word 32 768 to 32 767 st...

Страница 481: ...5 0 through CSx 0 5 7 SeeGeneral Channel Status Block on page 58 for more information Address 1 1 This bit can only be accessed via ladder logic It cannot be accessed via communications such as a Message instruction from another device Data Format Range Type User Program Access S 10 word 0 to FFFF status read only Address Data Format Range Type User Program Access S 13 low byte word 32 768 to 32 7...

Страница 482: ...st program cycle of the controller Resolution is 100 µs to 0 µs For example the value 9 indicates that 800 to 900 us was observed as the longest program cycle User Fault Routine File Number This register is used to control which subroutine executes when a User Fault is generated Address 1 1 This byte can only be accessed via ladder logic It cannot be accessed via communications such as a Message i...

Страница 483: ...ssed via ladder logic It cannot be accessed via communications such as a Message instruction from another device Data Format Range Type User Program Access S 30 word 0 to 65535 status read only Address 1 1 This bit can only be accessed via ladder logic It cannot be accessed via communications such as a Message instruction from another device Data Format Range Type User Program Access S 31 word 0 t...

Страница 484: ...ram cycle of the controller in 100 µs increments Address 1 1 This bit can only be accessed via ladder logic It cannot be accessed via communications such as a Message instruction from another device Data Format Range Type User Program Access S 33 2 binary 0 or 1 status read only Address 1 1 This bit can only be accessed via ladder logic It cannot be accessed via communications such as a Message in...

Страница 485: ... 500 Monitor address in function file to see online values RTC Month This address is duplicated in the Real Time Clock Function File at RTC 0 MON 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 Address Data Format Range Type User Program Access S 36 10 binary 0...

Страница 486: ...me 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 Address 1 1 This bit can only be accessed via ladder logic It cannot be accessed via communications such as a Message instruction from another device Data Format Range Type User Program Access S 39 word 1 to 31 status read ...

Страница 487: ...entifies the Catalog Number for the Operating System in the controller OS Series This register identifies the Series letter for the Operating System in the controller Address 1 1 This word can only be accessed via ladder logic It cannot be accessed via communications such as a Message instruction from another device Data Format Range Type User Program Access S 42 word 0 to 59 status read only Addr...

Страница 488: ...ctionality Type This register identifies the level of functionality of the user program in the controller Address Data Format Range Type User Program Access S 59 word 0 to 32 767 status read only Address Data Format Range Type User Program Access S 60 ASCII A to ZZ status read only Address Data Format Range Type User Program Access S 61 ASCII A to Z status read only Address Data Format Range Type ...

Страница 489: ...he controller Compiler Revision Release This register identifies the Release of the compiler which created the program in the controller Address Data Format Range Type User Program Access S 64 low byte byte 0 to 255 status read only Address Data Format Range Type User Program Access S 64 high byte byte 0 to 255 status read only efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 490: ...Publication 1763 RM001C EN P October 2009 490 System Status File Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 491: ...t Power Up bit S 1 8 is set in the status file You can also configure the controller to clear faults and go to RUN every time the controller is power cycled This is a feature that OEMs can build into their equipment to allow end users to reset the controller If the controller faults it can be reset by simply cycling power to the machine To accomplish this set the following bits in the status file ...

Страница 492: ...dule RAM integrity test failed Non User Re download or transfer the program Verify battery is connected Contact your local Rockwell Automation representative if the error persists 0002 UNEXPECTED RESET The controller was unexpectedly reset due to a noisy environment or internal hardware failure The default program is loaded Non User Refer to proper grounding guidelines and using surge suppressors ...

Страница 493: ...r Manual Contact your local Rockwell Automation representative if the error persists 000A OS MISSING OR CORRUPT The operating system required for the user program is corrupt or missing Non User Download a new OS using ControlFlash Contact your local Rockwell Automation representative for more information about available operating systems your controller 000B BASE HARDWARE FAULT The base hardware f...

Страница 494: ...de the OS using ControlFlash Contact your local Rockwell Automation representative for more information about available operating systems your controller 0020 MINOR ERROR AT END OF SCAN DETECTED A minor fault bit bits 0 7 in S 5 was set at the end of scan Recoverable Correct the instruction logic causing the error Enter the status file display in your programming software and clear the fault Enter...

Страница 495: ... to the accumulated or preset word of a timer make certain these values are not negative Reload the program and enter the Run mode 0035 ILLEGAL INSTRUCTION IN INTERRUPT FILE The program contains a Temporary End TND Refresh REF or Service Communication instruction in an interrupt subroutine STI EII HSC or user fault routine Non Recoverable Correct the program Re compile reload the program and enter...

Страница 496: ...figuration but did no match the actual base Non User Connect to the hardware that is specified in the user program or Reconfigure the program to match the attached hardware 0052 MINIMUM SERIES ERROR The hardware minimum series selected in the user program configuration was greater than the series on the actual hardware Non User Connect to the hardware that is specified in the user program or Recon...

Страница 497: ...ON ERROR The number of input or output image words configured in the user program exceeds the image size in the expansion I O module Non User Correct the user program I O configuration to reduce the number of input or output words and Re compile reload the program and enter the Run mode xx89 1 2 EXPANSION I O MODULE ERROR An expansion I O module generated an error Non User Refer to the I O status ...

Страница 498: ... configuration Cycle power 0x1F39 INVALID STRING LENGTH The first word of string data contains a negative zero or value greater than 82 Recoverable Check the first word of the string data element for invalid values and correct the data 1 xx indicates module number If xx 0 problem cannot be traced to a specific module 2 The xx in this error code means that the error occurs at the location of the la...

Страница 499: ... of the base unit series letter revision letter and firmware FRN number of the processor on bottom side of processor unit 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 NOTE You can also check the FRN by looking ...

Страница 500: ...Publication 1763 RM001C EN P October 2009 500 Fault Messages and Error Codes Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 501: ... Radio Modem Modbus RTU ASCII This appendix is organized into the following sections DH 485 Communication Protocol on page 502 DF1 Full Duplex Protocol on page 505 DF1 Half Duplex Protocol on page 506 DF1 Radio Modem Protocol on page 517 Modbus RTU Protocol on page 524 ASCII Driver on page 534 Ethernet Driver on page 536 See your controller s User Manual for information about required network devi...

Страница 502: ...pability token passing access control the ability to add or remove nodes without disrupting the network maximum network length of 1219 m 4000 ft The DH 485 protocol supports two classes of devices initiators and responders All initiators on the network get a chance to initiate message transfers To determine which initiator has the right to transmit a token passing algorithm is used The following s...

Страница 503: ...g are major configuration factors that have a significant effect on network performance number of nodes on the network addresses of those nodes baud rate The following sections explain network considerations and describe ways to select parameters for optimum network performance speed Refer to your programming software s documentation for more information Number of Nodes The number of nodes on the ...

Страница 504: ...t baud rate for a MicroLogix devices on the DH 485 network All devices must be at the same baud rate This rate is stored in the controller Communications Status file CS0 5 8 to CS0 5 15 Configure the baud rate via Channel Configuration using RSLogix 500 Select the Channel 0 tab Setting Maximum Node Address Once you have an established network set up and are confident that you will not be adding mo...

Страница 505: ...nt communication is required This type of protocol supports simultaneous transmissions between two devices in both directions DF1 protocol controls message flow detects and signals errors and retries if errors are detected When the system driver is DF1 Full Duplex the following parameters can be changed DF1 Full Duplex Configuration Parameters All MicroLogix 1100 Controller Parameter Options Progr...

Страница 506: ... after polling a DF1 half duplex slave is received acknowledged and re broadcast without being executed by the DF1 half duplex master It is treated like any other slave to slave command except that no acknowledgement is expected after re broadcast DF1 Half Duplex Slave Driver Broadcast Messages When a broadcast write command is initiated by a DF1 half duplex slave it is queued up just like any oth...

Страница 507: ... all the other queued up messages The minimum time to message to every responding slave station increases linearly with the number of slave stations that cannot respond If the Message based selection is allow slaves to initiate messages a slave station can initiate a message to the master station polled report by exception messaging or to another slave station slave to slave messaging The MSG comm...

Страница 508: ...r of completion will be based upon which slave station address comes up next in the poll list not the order in which the MSG instructions were executed and transmitted When a slave station receives a poll packet from the master station if it has one or more message packets queued up to transmit either replies to a command received earlier or MSG commands triggered locally in ladder logic the slave...

Страница 509: ...mine if any slave input or data changes have occurred Instead through user programming the slave station monitors its own inputs for a change of state or data which triggers a block of data to be written to the master station when the master station polls the slave About Slave to Slave Messaging If one slave station has a message to send to another it simply includes the destination slave station ...

Страница 510: ...e priority slave addresses each poll scan priority low to priority high and a subset of the normal slave address range The number of normal slave addresses to poll each poll scan is determined by the Normal Poll Group Size configuration parameter In order to poll all of the slave addresses each poll scan with equal priority you may define the entire slave address range in either the Priority Poll ...

Страница 511: ...e is triggered in ladder logic Once the read or write command has been transmitted the master waits the Reply MSG Timeout period and then polls that slave for a reply to its command 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 efesot...

Страница 512: ...g Half Duplex Modem RTS CTS Handshaking Full Duplex Modem RTS on No Handshaking 485 Network 1 No Handshaking Error Detection CRC BCC CRC Duplicate Packet Detect enabled disabled Detects and eliminates duplicate responses to a message Duplicate packets may be sent under noisy communication conditions if the sender s Message Retries are set greater than 0 enabled RTS Off Delay x20 ms 0 to 65535 can ...

Страница 513: ...a message it has transmitted before it retries the message or errors out the message instruction This timeout value is also used for the poll response timeout 50 Reply MSG Timeout x 20 ms 0 to 255 can be set in 20 ms increments only with MSG based Polling Modes Specifies the amount of time the master will wait after receiving an ACK to a master initiated MSG before polling the slave station for it...

Страница 514: ...ments of last scan through Priority Poll List Message Retry CSx 13 The number of message retries sent by the processor Undelivered Messages CSx 12 The number of messages that were sent by the processor but not acknowledged by the destination device Duplicate Messages Received CSx 18 The number of times the processor received a message packet identical to the previous message packet Bad Packets Rec...

Страница 515: ...d When valid Normal and or Priority Poll Ranges are defined if a slave responded the last time it was polled by the master the bit corresponding to its address is set 1 active if a slave didn t respond the last time it was polled by the master the bit corresponding to its address is cleared 0 inactive If you are using RSLogix 500 version 7 00 00 or higher you can view the active node table by clic...

Страница 516: ...etects and eliminates duplicate responses to a message Duplicate packets may be sent under noisy communication conditions if the sender s Message Retries are set greater than 0 enabled Poll Timeout x20 ms 0 to 65535 can be set in 20 ms increments Poll timeout only applies when a slave device initiates a MSG instruction It is the amount of time that the slave device waits for a poll from the master...

Страница 517: ...se For use with modems that are not ready to respond with CTS immediately upon receipt of RTS 0 Message Retries 0 to 255 Specifies the number of times the master device attempts to re send a message packet when it does not receive an ACK from the slave device For use in noisy environments where acknowledgements may become corrupted in transmission 3 Pre Transmit Delay x1 ms 0 to 65535 can be set i...

Страница 518: ...o modem node is executed by all of the other DF1 radio modem nodes that receive it No acknowledgement or reply is returned Unlike either DF1 Full Duplex or DF1 Half Duplex protocols DF1 Radio Modem protocol does not include ACKs NAKs ENQs or poll packets Data integrity is ensured by the CRC checksum Using the DF1 Radio Modem Using RSLogix 500 version 7 00 00 or higher the DF1 Radio Modem driver ca...

Страница 519: ...Channel 0 Configuration Parameters Parameter Options Programming Software Default Channel Channel 0 0 Driver DF1 Radio Modem Baud Rate 300 600 1200 2400 4800 9600 19 2K 38 4K 19 2K Parity none even none Node Address 0 to 254 decimal 255 is reserved for broadcast 1 Store and Forward File Number Store and Forward allows messages between two out of radio range nodes to be routed through one or more i...

Страница 520: ...bits corresponding to the addresses of those two other nodes must be set For instance if node 2 is used to Store Forward message packets between nodes 1 and 3 then both bits Bx 1 and Bx 3 where x is the configured data table file number would have to be set in the Store Forward Table file see Figure You can set bit 255 to enable Store Forward of broadcast packets as well IMPORTANT Once Store Forwa...

Страница 521: ...at originate from the receiving node should never be re transmitted Note 2 To prevent Node 2 from re transmitting a duplicate packet the link layer of Node 2 updates the duplicate packet table with the last 20 packets received Note 3 The link layer of Node 4 blocks the re transmission of a packet that is received with the SRC byte equal to the receiving node s station address Packets received that...

Страница 522: ...use it did not have available memory Undelivered Messages CSx 12 The number of messages that could not be sent by the processor due to bad modem handshake signals Duplicate Messages Received CSx 18 The number of times the processor received a message packet identical to the previous message packet Bad Packet Received CSx 16 The number of data packets received by the processor that had bad checksum...

Страница 523: ... transmission reception range and on a common receiving frequency either via a Simplex radio mode or via a single common full duplex repeater If so then go to question 3 to see if you can use the DF1 Radio Modem driver to set up a peer to peer radio network If not then you may still be able to use the DF1 Radio Modem driver by configuring intermediary nodes as Store Forward nodes 3 Do the radio mo...

Страница 524: ...sed to transfer information between the data files in the Modbus RTU Master and the Modbus RTU Slaves Refer to Chapter P for detailed information about configuring a MSG instruction for Modbus Communications Modbus addressing is limited to 16 bits per memory group each with a range of 1 to 65 536 There are four memory groups one for each function coils generally addressed as 0xxxx contacts 1xxxx i...

Страница 525: ...lers can be specifically configured to use up to six 256 word data table files for a total of 1536 Modbus Holding registers Modbus RTU Master Configuration Select the Modbus RTU Master from the Channel Configuration menu as shown below NOTE Modbus protocol may not be consistently implemented in the field The Modbus specification calls for the addressing range to start at 1 however some devices sta...

Страница 526: ...haking 485 Network The Protocol Control defaults are No Handshaking InterChar Timeout 0 Pre Transmit Delay 0 When the system driver is Modbus RTU Master the following communication port parameters can be changed NOTE 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 efesotomasyon com Allen Bradley Ro...

Страница 527: ...o the modem and when RTS is deactivated Gives the modem extra time to transmit the last character of a packet 0 RTS Send Delay x20 ms 0 to 65535 can be set in 20 ms increments Specifies the time delay between setting RTS until checking for the CTS response For use with modems that are not ready to respond with CTS immediately upon receipt of RTS 0 Pre Transmit Delay x1 ms 0 to 65535 can be set in ...

Страница 528: ... data files 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 NOTE The controller default is one data file of 256 registers The Expansion check box enables an additional five files and 1280 holding registers The five additional tables do not need to be individually defined ...

Страница 529: ...sses 30001 to 30256 range 3 to 255 0 no file 0 Holding Registers Read Write Modbus addresses 40001 to 40256 range 3 to 255 0 no file 0 RTS Off Delay x20 ms 0 to 65535 can be set in 20 ms increments 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 0 RTS Send Delay x2...

Страница 530: ...s 0 to 255 30501 to 30532 Modbus Communication Parameters Communication Status File 31501 to 31566 Read Only System Status File space Status S 2 words 0 to 65 40001 to 40256 Read Write Modbus Holding Register space Bit B or Integer N 3 to 255 words 0 to 255 40257 to 41280 1 Read Write Modbus Holding Register space Bit B or Integer N 3 to 255 words 0 to 255 of four Holding Register files 41501 to 4...

Страница 531: ...gle Holding Register 4 30521 Function Code 4 Message Counter Read Single Input Register 4 30522 Function Code 5 Message Counter Set Clear Single Output Coil 4 30523 Function Code 6 Message Counter Read Write Single Holding Register 4 30524 Function Code 8 Message Counter Run Diagnostics 4 30525 Function Code 15 Message Counter Set Clear for Block of Output Coils 4 30526 Function Code 16 Message Co...

Страница 532: ... 1 Broadcast is supported for this command 5 Write Single Holding Register 1 6 Echo Command Data 8 0 Clear Diagnostic Counters 8 10 Write Multiple Coils 1 15 Write Multiple Holding Registers 1 16 Supported Modbus Commands as a Modbus RTU Master Command Function Code decimal Subfunction Code decimal Read Coil Status 1 Read Input Status 2 Read Holding Registers 3 Read Input Registers 4 Write Single ...

Страница 533: ...y owned by another process 2 1 If Modbus Command is sent with a valid Broadcast address then no exception reply will be sent for Error Codes 2 through 11 2 See on page 530 for valid Modbus memory mapping Modbus Error Codes in Modbus RTU Master MSG Instruction Error Code Error Description Received Exception Code 81 Illegal Function The function code sent by the Master is not supported by the slave ...

Страница 534: ...tructions on page 309 for information on using the ASCII instructions You can also send ASCII string data to most attached devices that accept ASCII data characters 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 Communication...

Страница 535: ...ontroller echos three characters to the device backspace space and backspace This erases the previous character on the terminal In Printer Mode when a delete character is encountered the controller echos the slash character then the deleted character Enable the Echo parameter to use Delete Mode Ignore Echo When Echo Mode is enabled all of the characters received are echoed back to the remote devic...

Страница 536: ... Ethernet Ethernet Hardware Address The processor s Ethernet hardware address This value cannot be changed Ethernet Hardware Address IP Address 1 to 254 zero and 255 are reserved for broadcast purposes The processor s internet address You must specify the IP address to enable the processor to connect to the TCP IP network You can specify the address manually or enable BOOTP or DHCP located in the ...

Страница 537: ...will be automatically disabled Note If BOOTP is enabled you must have the BOOTP server running at all times because the processor requests its address to the BOOTP server at any time during its power up 1 enabled DHCP Enable enabled disabled DHCP Dynamic Host Configuration Protocol automatically assigns IP addresses to client stations logging onto a TCP IP network There is no need to manually assi...

Страница 538: ... default setting will be 10 Mbps half duplex 1 enabled Port Setting Auto Negotiate is enabled 10 100Mbps Full Duplex Half Duplex 100 Mbps Full or 100 Mbps Half Duplex 100 Mbps Full Duplex or 10 Mbps Full Duplex 100 Mbps Half Duplex or 10 Mbps Full Duplex 100 Mbps Full Duplex 100 Mbps Half Duplex 10 Mbps Full Duplex 10 Mbps Half Duplex Only Auto Negotiate is disabled 100 Mbps Full Duplex Forced 100...

Страница 539: ...Interrupt STI on page 551 17503 Quick Start Real Time Clock RTC on page 554 17558 Quick Start User Interrupt Disable UID on page 555 18465 Quick Start RTC Synchronization Between Controllers on page 556 18498 Quick Start Data Logging DLG on page 559 17444 Quick Start Pulse Train Output PTO NOTE The PWM function is only available when using the BBB models of the MicroLogix 1100 Locate the Function ...

Страница 540: ...celerating and 100 pulses will be used for Decelerating PTO 0 OUT Select Destination Output for pulses Output O 0 2 or O 0 3 PTO 0 OF Output Frequency Frequency of pulses 0 to 20 000 Hz Data less then zero and greater then 20 000 generates a PTO error PTO 0 TOP Total Output Pulses Determines total number of pulses to be generated by the controller PTO 0 ADP Accel Decel Pulses How many of the total...

Страница 541: ...bit has been activated Once the EH bit is set the instruction will generate a PTO error of 1 hard stop detected In order to clear this error the PTO instruction must be scanned on a false rung of logic and the EH bit must be off To change the Total Output Pulses Generated in a working program a new value can be moved into PTO 0 TOP by using the MOV command Important Note Once the PTO has been init...

Страница 542: ...arameters as the Minimum Configuration required for the PWM to generate a waveform at the specified frequency PWM 0 OUT Select Destination Output for pulses Output O 0 2 or O 0 3 PWM 0 OFS Output Frequency Frequency of the PWM 0 to 20 000 Hz PWM 0 DC PWM Duty Cycle Controls the output signal of the PWM 1 to 1000 DC 1000 100 Output ON Constant no waveform DC 0750 075 Output ON 025 Output OFF DC 050...

Страница 543: ...frequency of 250Hz and a 50 Duty Cycle The following ladder logic will need to be entered into File 2 By toggling Bit B3 0 the PWM can be activated 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 544: ...r the Minimum Configuration required for the HSC to count pulses Note There is no additional ladder logic required to enable the High Speed Counter In other words there is no HSC instruction needed for the ladder logic program HSC 0 PFN Program File Number defines which subroutine is executed when the HSC 0 accumulated count equals the High or Low preset or passes through Overflow or Underflow The...

Страница 545: ...HSC will jump to subroutine file 3 The HIP is set for 5000 pulses in this example Also once the HIP is reached the HSC will then reset HSC 0 ACC to zero 0 and start counting again Important It is assumed that the user has connected a device to I 0 0 to generate pulses Note The following ladder logic does not need to be entered into File 2 however this allows for easy viewing of the accumulated cou...

Страница 546: ... for the MOD parameter TROUBLESHOOTING 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 DC COM VAC O 0 VDC VAC O 1 VDC VAC O 2 VDC VAC O 3 VDC VAC O 4 VDC VAC O 5 VDC NOT USED NOT USED L1 L2 N 100 240 VAC DC OU...

Страница 547: ...ilters as needed Problem 2 The HSC instruction does not accumulate counts and the Error Code ER shows a value of 1 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 efesotomasyon com Allen Bradley Rockwell pl...

Страница 548: ...buffer availability the most current data will be sent not the data that was available at the time the message instruction was first scanned true How quickly a message is actually sent or received to by a destination device depends on a number of issues including the selected channels communication protocol baud rate of the communications port number of retries destination devices readiness to rec...

Страница 549: ...he ML1100 will need to be configured as Node 1 and the other processor as node 4 The processor at node 1 will contain the ladder logic below and transfer data from it s N7 0 Integer file to the processor at node 4 s N7 0 Integer file Since N7 0 is the source file for this example data must be entered into this register for node 1 For this example Locate N7 0 in the ML1500 Node 1 and enter the valu...

Страница 550: ... is DF1 protocol 19 200 Kbaud the ML1000 must be configured to match See Below Micrologix 1000 Channel Configuration Important Note Do not connect to ML1000 directly using a 1761 CBL AM00 cable Important Note After the ladder logic has been entered into the ML1100 and the ML1000 channel configuration has been changed in order for this example to function connect the controllers using a 1761 CBL PM...

Страница 551: ...number entered is greater then 63 then a fault may occur with an error stating that the extended I O bit S 0 8 was not set In this case clear the fault go offline set bit S 0 8 and re download the ladder program The above example uses the DF1 Full Duplex protocol This is a point to point or One Device to One Device protocol using this protocol no other devices can be connected To create a network ...

Страница 552: ...n the subroutine file there is an ADD instruction simply adding the value of 1 to N7 0 each time the sub routine is scanned STI 0 PFN Program File Number defines which subroutine is executed when the SPM value has timed out The Integer number entered must be a valid sub routine program file 3 to 255 STI 0 AS Auto Start defines if the STI function will automatically start when the MicroLogix 1500 e...

Страница 553: ... Error Code 1 Invalid File Number for PFN has been entered Notes on using Interrupt bits 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 If the AS bit is not set then the TIE bit must be set through the ladder logic in order for the interrupt to execute T...

Страница 554: ... has a built in real time clock Getting Started Locate the Function Files under Controller in RSLOGIX 500 v7 00 00 or later and select the RTC tab See Below Values can be entered for the Year Month Day Hour Minute and 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 T...

Страница 555: ...enable an interrupt the UIE bit must be set to a one 1 or a UIE instruction must be used The following table indicates the types of interrupts disabled by the UID RTC 0 BL The Battery Low bit will be set 1 when the battery is low This means that the battery will fail in less than 14 Days after which the RTC data may become invalid At this time replace battery The RTC uses the same battery that the...

Страница 556: ...bit is not set then the TIE bit must be set through the ladder logic in order for the interrupt to execute The User Interrupt Enable bit UIE determines if the interrupt executes or not 18465 Quick Start RTC Synchronization Between Controllers The following example illustrates a message write from an SLC 5 03 or higher processor to a Micrologix 1100 processor with RTC that has been enabled This exa...

Страница 557: ...nnections using DH 485 however DF1 Full or Half Duplex Ethernet IP will also work 1 Configure the SLC s Channel 0 port for DH 485 protocol 2 Enter the following ladder logic into the SLC processor TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL TERM A B COM SHLD CHS GND TX TX PWR TX DC SOURCE CABLE EXTERNAL ESC OK Additional MicroLogix 1200 1500s 24vdc 1747 CP3 MicroLogix 1100 efes...

Страница 558: ...C each time the SLC processor is powered up and placed into the RUN mode or each time the Time Synchronization Bit B3 0 0 is enabled 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 559: ...ked queue The size of memory where queues are stored is 128K bytes this is independent of the rest of the processor memory The Data logging feature allows the capture or storage of application data as a record for later retrieval Each record is stored in a user configured battery backed queue The size of the queue is 128K bytes independent of the rest of the processor memory Configuring the DLG in...

Страница 560: ...To delete queues simply select the queue with the mouse and press the delete key on the keyboard 4 Double Click on Data Log configuration to open the Configuration window 5 Complete the Data Log Queue as shown below The Number of records and Addresses selected were arbitrary for this example efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 561: ...he Date and Time stamp are to be used If an RTC module is disabled the data for these fields will contain zeros 6 Click OK when completed 7 Click OK and accept the Data Log Queue window 8 Once the N10 file has been created enter the following values for each 9 Download the program to your MicroLogix 1100 10 Go On Line 11 Toggle the Data Logging Enable B3 0 0 bit Off to On a total of 5 times efesot...

Страница 562: ... MicroLogix 1100 communications are configured for 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 ATTENTION If any other software package such as RSLINX has control of the comp...

Страница 563: ...t see 5 records verify your Data Logging Enable bit was toggled 5 times causing the 5 entries to be recorded in the Queue 6 Select Read Log This will retrieve the data from the ML1100 controller FYI Data CANNOT be viewed in the Data Log Utility The utility only allows retrieval of the data stored in the Queues and creates an off line file Once the Read Log has completed the following screen will a...

Страница 564: ... note of the filename about to be created and the directory it is being saved to for later reference 9 Using Microsoft Excel open the data file that was created FYI If you are unable to locate your file in Excel remember Files of type must be changed to 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 reada...

Страница 565: ...eate your own software application for retrieving the data stored in the processors Data Logging queue is shown Q2 Can the MicroLogix 1100 controller automatically send the information stored in the Data Logging queue directly to a printer A2 No To retrieve the data either the free Data Logging Utility software must be used or a custom application must be created by the user If the data does not n...

Страница 566: ...e HyperTerminal for direct connection to the PC COMM port the modem is connected to Make sure the HyperTerminal connection is configured for 9600 baud 4 Save configuration as DataLog 5 Send the following dial out string using HyperTerminal to dial the modem and establish the connection AT C1DT Phone number of destination Modem then press enter your modem will respond CONNECT 9600 Once the connecti...

Страница 567: ...as been shutdown 2 2 Start HyperTerminal Do not re connect 3 3 Open the previously configured Datalog 4 Type to place modem in command mode Do not press the ENTER KEY Your modem will respond OK 5 Type ATH 6 Press Enter This will send the disconnect command to modem efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 568: ...Publication 1763 RM001C EN P October 2009 568 Knowledgebase Quick Starts Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 569: ...ries A controller does not support 40kHz PTO and PWM Only MicroLogix 1100 Series B controller supports 40kHz PTO and PWM with any version of RSLogix500 PTO and PWM function file changes in Series B Controller In a prior version of RSLogix500 version 7 10 or lower the frequency elements PTO OF PTO OFS PTO JF PWM OF pWM OFS of PTO and PWM function files are treated as signed 16 bit 32768 32767 and M...

Страница 570: ...rkaround should be used such as copying PTO PWM frequencies to long integer before manipulation RSLogix500 display issues The difference of PTO PWM between Series A and Series B is the maximum output frequency The Series A supports up to 20kHz for PTO PWM output frequency and the Series B supports up to 40kHz In other words Series A PTO PWM output frequency range is in signed 16 bit range 32768 32...

Страница 571: ...ries B Project of RSLogix500 version 7 2 or higher ML1100 Series A 1 ML1100 Series B Display issues may occur 2 Display issues may occur 2 1 During Donwload If OF or JF value is set over 20000 then MicroLogix 1100 Series A will report an error before running the PTO or PWM instruction 2 During Upload To set the OF or JF value over 32767 a negative decimal value or hex value should be entered For e...

Страница 572: ...h a specific value using the EQU NEQ or MEQ instruction a user can not put the specific value over 32767 because these variables are unsigned 16 bit value in this instruction To solve this issue 2 s complement notation or hexadecimal value should be used 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 88B...

Страница 573: ...LEQ GRT GEQ and LIM instruction work as signed value but JF OF OFS of PTO PWM are unsigned 16 bit variable at MicroLogix 1100 Series B controller Therefore these instructions could cause undesired results when JF OF and OFS of PTO PWM values are greater than 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 r...

Страница 574: ...y CPW instruction before the execution of these instructions as shown below ADD SUB MUL Instruction 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 575: ... wants to set that value to x2 twice using the MUL instruction If S2 14 is cleared and 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 576: ...ries 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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 577: ...s 12768 because DIV instruction recognize 9C40h as 25536 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 NEG ABS Instruction The operands of NEG and ABS instructions work as signed value but JF OF OFS of PTO PWM are unsigned 16 bit variable at MicroLogix 1100 Series B Therefore these in...

Страница 578: ...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 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 579: ... 215 Each position can be 0 or 1 in the processor memory A 0 indicates a value of 0 a 1 indicates the decimal value of the position The equivalent decimal value of the binary number is the sum of the position values Positive Decimal Values The far left position will always be 0 for positive values As indicated in the figure this limits the maximum positive decimal value to 32767 All positions are ...

Страница 580: ...1000 0010 0011 214 213 212 211 25 21 20 215 16384 8192 4096 2048 32 2 1 32768 30755 32768 2013 An often easier way to calculate a value is to locate the last 1 in the string of 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 1x214 16384 1x213 8192 1x212 4096 1x211 2048 1x210 1...

Страница 581: ...right Example Hexadecimal number 218A has a decimal equivalent value of 8586 1x214 16384 1x213 8192 1x212 4096 1x211 2048 1x210 1024 1x29 512 1x28 256 1x27 128 1x26 64 1x25 32 1x24 16 1x23 8 1x22 4 1x21 2 1x20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 32767 1x215 32768 This position is always 1 for negative numbers HEX 0 1 2 3 4 5 6 7 8 9 A B C D E F Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 163 162 1...

Страница 582: ...ative number because it exceeds the maximum positive value of 32767 To calculate its value subtract 164 the next higher power of 16 from 56950 56950 65536 8586 2x163 8192 1x162 256 8x161 128 10x160 10 2 1 8 A 8586 Hexadecimal 2 1 8 A 8586 Binary 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 8586 8192 1x213 256 1x28 128 1x27 10 1x23 1x21 Binary 1 1 0 1 1 1 1 0 0 1 1 1 0 1 1 0 8586 Hexadecimal D E 7 6 56950 negat...

Страница 583: ... set 1 will pass data from a source to a destination Reset bits 0 will not In the example below data in bits 0 7 of the source word is passed to the destination word Data in bits 8 15 of the source word is not passed to the destination word Source Word 1 1 1 0 1 0 0 1 1 1 0 0 1 0 1 0 Mask Word 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 Hex...

Страница 584: ...Publication 1763 RM001C EN P October 2009 584 Number Systems Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 585: ...N release note for details System Related RTC information is still retained even when the firmware is upgraded Ethernet communication speed is improved compared to the earlier firmware versions Serial Communications Related The following functionality is added to the OS Series B FRN 4 firmware DF1 Half Duplex Master driver DF1 Half Duplex Slave driver This driver supports direct communication thro...

Страница 586: ...Timeout feature for the inbound and outbound connections If any packet does not exist on the Ethernet IP connection during the configured Inactivity Timeout the session is closed Supports Execute DH Ethernet messaging for the outbound connections If Ethernet MSG instruction is configured as Remote DH message is generated This is also used as Unsolicited messaging via Ethernet Port Supports CIP Gen...

Страница 587: ... feature is used the restriction of the outbound connection number 16 for the outbound connection can be removed But Ethernet performance could be degraded Refer to the following working cases for Ethernet messages Case I If there is any other message for the same connection on the Ethernet buffer CIP3 connection and session are not closed Case II If there is any other CIP3 Connection on the same ...

Страница 588: ... Channel 0 and Channel 1 All MSG commands and replies SLC5 485CIF PLC5 Read Write support ST file type All incoming commands and replies SLC5 485CIF PLC5 Read Write support ST file type Embedded IO Configuration Related The following features are supported in the OS Series B FRN 4 firmware Supports the frequency of the HSC High Speed Counter up to 40 KHz Supports the frequency of the PTO PWM up to...

Страница 589: ...ix 1100 Firmware Changes in OS Series B FRN 4 589 the Series B project Channel Configuration IO configuration RIX file PTO and PWM function file MSG instruction running in the Series B processor efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 590: ...Publication 1763 RM001C EN P October 2009 590 MicroLogix 1100 Firmware Changes in OS Series B FRN 4 Notes efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 591: ...nterchange A standard for defining codes for information exchange between equipment produced by different manufacturers The basis of character sets used in most microcomputers a string of 7 binary digits represents each character baud rate The speed of communication between devices Baud rate is typically displayed in K baud For example 19 2K baud 19 200 bits per second bit The smallest unit of mem...

Страница 592: ...rol profile The means by which a controller determines which outputs turn on under what conditions counter A device that counts the occurrence of some event CPU Central Processing Unit 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 monitor...

Страница 593: ...llers embedded I O is all I O residing at slot 1 and higher encoder 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 FET Field Effect Transistor DC output capable of high speed operation FIFO First In First Out The order that data i...

Страница 594: ...ntroller input scan The controller reads all input devices connected to the input terminals inrush current The temporary surge of current produced when a device or circuit is initially energized instruction A mnemonic defining an operation to be performed by the processor A rung in a program consists of a set of input and output instructions The input instructions are evaluated by the controller a...

Страница 595: ...D 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 low byte Bits 0 to 7 of a word logic A general term for digital circuits or programmed instructions to perform required decision making and computational functions Master Control Relay MCR A hard wired relay that can be de ene...

Страница 596: ... relay is de energized or deactivated They are open when the relay is energized or the switch is activated normally open Contacts on a relay or switch that are open when the relay is de energized or the switch is deactivated They are closed when the relay is energized or the switch is activated off delay time The OFF delay time is a measure of the time required for the controller logic to recogniz...

Страница 597: ...oller 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 online When a device is scanning controlling or when a programming device is communicating with the controller operating voltage For inputs the voltage range needed for the input to be in the On state For outputs the allow...

Страница 598: ...logic program is processed and the Output Image is updated programming device Programming package used to develop ladder logic diagrams protocol The rules of data exchange via communications read To acquire data For example the processor reads information from other devices via a read message relay An electrically operated device that mechanically switches electrical circuits relay logic A represe...

Страница 599: ...r false If a path of true logic exists the outputs are made true energized If all paths are false the outputs are made false de energized RTU Remote Terminal Unit save To save a program to a computer hard disk scan The scan is made up of four elements input scan program scan output scan and housekeeping scan time The time required for the controller to complete one scan sinking A term used to desc...

Страница 600: ...elays and overhead true The status of an instruction that provides a continuous logical path on a ladder rung upload Data is transferred from the controller to a programming or storage device watchdog timer A timer that monitors a cyclical process and is cleared at the conclusion of each cycle If the watchdog runs past its programmed time period it causes a fault write To send data to another devi...

Страница 601: ...2 P 313 timing diagram P 336 ASCII integer to string instruction P 316 ASCII number of characters in buffer instruction P 323 ASCII protocol parameters P 311 ASCII read characters instruction P 330 ASCII read line instruction P 331 ASCII string compare instruction P 334 ASCII string concatenate P 326 ASCII string extract P 327 ascii string manipulation error B 479 ASCII string search instruction P...

Страница 602: ...ction P 223 copy word instruction P 222 count down instruction P 177 count up instruction P 177 counters counter file P 174 counter file and status bits P 175 definition G 592 how counters work P 174 CPU central processing unit definition G 592 CPW instruction P 222 CS function file P 57 P 71 CTD instruction P 177 CTU instruction P 177 D data file download protection P 42 data file overwrite prote...

Страница 603: ...559 HSC Quick Start E 544 MSG Quick Start E 548 PTO Quick Start E 539 PWM Quick Start E 542 RTC Quick Start E 554 RTC Synchronization Quick Start E 556 STI Quick Start E 551 user interrupt disable UID Quick Start E 555 exclusive OR instruction P 215 executing mode G 593 execution time MicroLogix 1500 instructions A 457 expansion I O 1 15 analog I O configuration 1 18 discrete I O configuration 1 1...

Страница 604: ... instruction P 255 immediate input with mask instruction P 255 immediate output with mask instruction P 257 in line indirection P 336 input and output instructions P 255 input device G 594 input filter selection modified status bit B 479 input filtering 1 25 input scan G 594 input output status file P 79 inrush current G 594 instruction G 594 instruction execution time A 457 instruction set defini...

Страница 605: ...master control reset instruction P 252 math instructions P 187 math overflow selection bit B 475 math register status B 481 maximum scan time status B 482 MCR instruction P 252 memory P 36 clearing controller memory P 46 memory mapping MicroLogix 1200 I O 1 16 memory module boot status bit B 478 memory module compare bit B 474 memory module information function file P 54 fault override P 55 functi...

Страница 606: ...64 OTE instruction P 161 OTL instruction P 162 OTU instruction P 162 outgoing message command pending status bit B 484 output device G 597 output instruction P 161 output latch instruction P 162 output scan G 597 output unlatch instruction P 162 overflow flag B 467 overflow trap status bit B 477 P password protection P 45 PCCC G 597 PD data file P 281 PID analog I O scaling P 299 application examp...

Страница 607: ...just instruction P 53 recipe P 427 recipe instruction P 427 REF instruction P 258 refresh instruction P 258 related publications P 34 relay G 598 relay logic G 598 relay type instructions P 159 remote messages P 388 remote packet support D 504 RES instruction P 178 reserved bit G 598 reset accumulated value instruction P 119 reset instruction P 178 restore G 598 RET instruction P 251 retentive dat...

Страница 608: ...point status B 483 string data file P 312 STS instruction P 264 SUB instruction P 193 subroutine label instruction P 250 subtract instruction P 193 SUS instruction P 251 suspend code status B 480 suspend file status B 480 suspend instruction P 251 SVC instruction P 344 swap instruction P 238 SWP instruction P 238 T temporary end instruction P 251 terminal G 600 throughput G 600 timer accuracy P 17...

Страница 609: ... interrupt disable instruction P 265 user interrupt enable instruction P 266 user interrupt flush instruction P 267 user memory P 37 user program functionality type status B 488 W watchdog scan time B 475 write G 600 X XIC instruction P 159 XIO instruction P 159 XOR instruction P 215 Z zero flag B 467 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 610: ...Publication 1763 RM001C EN P October 2009 610 efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 611: ...quencer Load 14 246 DIV Divide 9 194 SQO Sequencer Output 14 243 DLG Data Log Instruction 21 439 SQR Square Root 9 199 ENC Encode 1 of 16 to 4 10 203 STS Selectable Timed Start 17 264 END Program End 15 252 SUB Subtract 9 193 EQU Equal 8 181 SUS Suspend 15 251 FFL First In First Out FIFO Load 13 230 SWP Swap 13 238 FFU First In First Out FIFO Unload 13 232 TND Temporary End 15 251 FLL Fill File 13...

Страница 612: ...2009 MSG Message 20 346 STI Selectable Timed Interrupt 17 268 MUL Multiply 9 194 ES Ethernet Status 2 71 MVM Masked Move 12 219 Instruction Description Page Instruction Description Page efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 613: ...rity all provided information is easy to understand 1 2 3 How can we make things clearer Other Comments You can add additional comments on the back of this form Your Name Your Title Function Would you like us to contact you regarding your comments Location Phone ___No there is no need to contact me ___Yes please call me ___Yes please email me at _______________________ ___Yes please contact me via...

Страница 614: ...CESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST CLASS MAIL PERMIT NO 18235 CLEVELAND OH POSTAGE WILL BE PAID BY THE ADDRESSEE PLEASE FASTEN HERE DO NOT STAPLE PLEASE REMOVE efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 615: ...efesotomasyon com Allen Bradley Rockwell plc servo drive ...

Страница 616: ... com Installation Assistance If you experience a problem with a hardware module within the first 24 hours of installation please review the information that s contained in this manual You can also contact a special Customer Support number for initial help in getting your module up and running New Product Satisfaction Return Rockwell tests all of its products to ensure that they are fully operation...

Отзывы: