Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 2 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Table of Contents

Pages 5 to 14 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

The original document is the PDF (5.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1785-L20B and Allen-Bradley 1785-L40B

Page 5

Table of Contents

Preface

Purpose of This Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1 Related PLC-5 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1 Terms Used in This Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-2 Manual Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-3

Chapter 1 Understanding Your Programmable Controller

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Lay Out the System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Identifying Controller Components . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 PLC-5/11, -5/20, and -5/26 Controller Front Panels . . . . . . . . . 1-3 PLC-5/40, -5/46, -5/60, -5/80, and -5/86 Controller Front Panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 PLC-5/20E Controller Front Panel . . . . . . . . . . . . . . . . . . . . . . 1-6 PLC-5/40E and -5/80E Controller Front Panels . . . . . . . . . . . 1-7 PLC-5/40L and -5/60L Controller Front Panels . . . . . . . . . . . 1-8 Programming Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10 Using a Controller Channel as a Remote I/O Scanner . . . . . . . . . . 1-11 Using a Controller Channel as a Remote I/O Adapter . . . . . . . . . . 1-12 Using a PLC-5/40L, -5/60L Programmable Controller as an Extended-Local I/O Scanner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14

Chapter 2 Selecting and Placing I/O

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Selecting I/O Modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Guidelines for Selecting I/O Modules . . . . . . . . . . . . . . . . . . . . 2-2 Selecting I/O Module Density . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Placing I/O Modules in a Chassis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3

Chapter 3 Placing System Hardware

1

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 Determining the Proper Environment . . . . . . . . . . . . . . . . . . . . . . . . 3-1 Protecting Your Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Preventing Electrostatic Discharge . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Laying Out Your Cable Raceway. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 Categorize Conductors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 Route Conductors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 Laying Out Your Backpanel Spacing . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 Chassis Dimensions (Series B) . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 I/O Chassis and External Power Supply Dimensions . . . . . . . 3-6 Grounding Your System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6

Publication 1785-UM012D-EN-P - July 2005

Page 6

Table of Contents

2

Chapter 4 Addressing I/O and Controller Memory

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 I/O Addressing Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 Choosing an Addressing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 Addressing Block-Transfer Modules. . . . . . . . . . . . . . . . . . . . . . . . . . 4-7 Addressing Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7 Assigning Racks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8 Understanding PLC-5 Controller Memory . . . . . . . . . . . . . . . . . . . . 4-10 Understanding Data Storage (Data-Table Files) . . . . . . . . . . . . 4-11 Addressing File Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13 Understanding Program-File Storage . . . . . . . . . . . . . . . . . . . . . 4-15 Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16 Specifying I/O Image Addresses . . . . . . . . . . . . . . . . . . . . . . . . 4-16 Specifying Logical Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17 Specifying Indirect Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18 Specifying Indexed Addresses. . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20 Specifying Symbolic Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21 Optimizing Instruction Execution Time and Controller Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22 Effectively Using I/O Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-24

Chapter 5 Communicating with Controller-Resident I/O

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Introduction to PLC-5 Controller Scanning . . . . . . . . . . . . . . . . . . . . 5-1 Program Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 Transferring Data to Controller-Resident I/O. . . . . . . . . . . . . . . . . . 5-3 Transferring Discrete Data to Controller-Resident I/O . . . . . . . 5-3 Transferring Immediate I/O Requests . . . . . . . . . . . . . . . . . . . . . 5-3 Transferring Block-Transfer Data to Controller-Resident I/O . 5-4 Configuring the System for Controller-Resident I/O . . . . . . . . . . . . 5-4

Chapter 6 Communicating with Remote I/O

Publication 1785-UM012D-EN-P - July 2005

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 Selecting Devices That You Can Connect . . . . . . . . . . . . . . . . . . . . . 6-2 Introduction to Remote I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 Designing a Remote I/O Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 Configuring a Controller Channel as a Scanner . . . . . . . . . . . . . . . . . 6-6 Define an I/O Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7 Specify Channel Configuration Information . . . . . . . . . . . . . . . . 6-7 Specify the Scan List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9 Communicating to a Remote I/O Node Adapter . . . . . . . . . . . . . . 6-11 Troubleshooting Remote I/O Communication Difficulties . . . 6-12 Transferring Block Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13 Block-Transfers of Remote I/O Data . . . . . . . . . . . . . . . . . . . . . . . 6-15 Block-Transfer Sequence with Status Bits . . . . . . . . . . . . . . . . . . . . 6-17

Page 7

Table of Contents

3

Block-Transfer Programming Considerations . . . . . . . . . . . . . . . . . 6-19 General Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-19 For Controller-Resident Local Racks . . . . . . . . . . . . . . . . . . . . . 6-20 Monitoring Remote I/O Scanner Channels . . . . . . . . . . . . . . . . . . . 6-21 Monitoring transmission retries . . . . . . . . . . . . . . . . . . . . . . . . . 6-21 Addressing the I/O Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-24

Chapter 7 Communicating with a PLC-5 Adapter Channel

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 Configuring Communication to a PLC-5 Adapter Channel . . . . . . . 7-2 Specify an Adapter Channel’s Communication Rate, Address, and Rack Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 Specify the Discrete Transfer Configuration Files . . . . . . . . . . . . 7-5 Programming Discrete Transfers in Adapter Mode . . . . . . . . . . . . . 7-10 Programming Block-Transfers of Data to an Adapter Channel . . . 7-10 Configure Block-Transfer Requests . . . . . . . . . . . . . . . . . . . . . . 7-11 Examples of Block-Transfer Ladder Logic Effects of Programming Block-Transfers to an Adapter-Mode Controller Channel on Discrete Data Transfer . . . . . . . . . . . . . 7-15 Monitoring the Status of the Adapter Channel . . . . . . . . . . . . . 7-17 Monitoring the Status of the Supervisory Controller. . . . . . . . . 7-18 Monitoring Remote I/O Adapter Channels . . . . . . . . . . . . . . . . . . . 7-19

Chapter 8 Communicating with Extended-Local I/O

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 Selecting Devices That You Can Connect . . . . . . . . . . . . . . . . . . . . . 8-1 Cabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Addressing and Placing I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Transferring Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4 Discrete Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5 Transferring Block Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-6 Calculating Block-Transfer Completion Time . . . . . . . . . . . . . . . 8-7 Considerations for Extended-local Racks. . . . . . . . . . . . . . . . . . . 8-8 Configuring the Controller as an Extended-Local I/O Scanner . . . . 8-9 Monitoring Extended-Local I/O Status . . . . . . . . . . . . . . . . . . . . . . 8-12

Chapter 9 Communicating with Devices on a Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1 Selecting Devices That You Can Connect . . . . . . . . . . . . . . . . . . . . . 9-1 DH+ Link

Link Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 Configuring the Channel for DH+ Communication . . . . . . . . . . . . . 9-3 Using the Global Status Flag File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 Monitoring DH+ Communication Channels . . . . . . . . . . . . . . . . . . . 9-7 Monitoring Data Sent with Acknowledgment . . . . . . . . . . . . . . . 9-8 Monitoring Data Sent without Acknowledgment . . . . . . . . . . . 9-10 Publication 1785-UM012D-EN-P - July 2005

Page 8

Table of Contents

4

Monitoring General Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-11 Estimating DH+ Link Performance . . . . . . . . . . . . . . . . . . . . . . . . . 9-12 Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-13 Size and Number of Messages . . . . . . . . . . . . . . . . . . . . . . . . . . 9-13 Message Destination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-14 Internal Processing Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-15 Average DH+ Link Response Time Test Results . . . . . . . . . . . 9-16 Application Guidelines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-17

Chapter 10 Communicating with Devices on a Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1 Choosing Between RS-232C, RS-422A, and RS-423 . . . . . . . . . . . . 10-1 Serial Link

Configuring the Controller Serial Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2 Using Channel 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2 User Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2 System Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2 Master Station to Remote Station Communication Methods . . 10-4 Polling Inactive Priority Stations. . . . . . . . . . . . . . . . . . . . . . . . . 10-5 Changing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-5 Cabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-5 Configuring Channel 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6 Configure Channel 0 for DF1 Point-to-Point . . . . . . . . . . . . . . 10-6 Configure Channel 0 as a Slave Station . . . . . . . . . . . . . . . . . . . 10-9 Configure Channel 0 as a Master Station . . . . . . . . . . . . . . . . . 10-12 Configure Channel 0 for User Mode (ASCII Protocol). . . . . . 10-18 Configure Channel 0 for a Communication Mode Change. . . 10-21 Monitoring Channel 0 Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-22 Using the System Mode Status Display . . . . . . . . . . . . . . . . . . 10-22 Using the User Mode (ASCII) Status Display . . . . . . . . . . . . . 10-24

Chapter 11 Communicating with Devices on an Ethernet Network

Publication 1785-UM012D-EN-P - July 2005

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-1 Media and Cabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-1 Assigning Your IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2 Network Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2 Configuring Channel 2 for Ethernet Communication . . . . . . . . . . . 11-2 Manually Configuring Channel 2 . . . . . . . . . . . . . . . . . . . . . . . . 11-2 Using BOOTP to Enter Configuration Information. . . . . . . . . 11-5 Editing the BOOTPTAB Configuration File. . . . . . . . . . . . . . . 11-7 Using Advanced Ethernet Functions . . . . . . . . . . . . . . . . . . . . . . . . 11-9 Using Broadcast Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-9 Using Subnet Masks and Gateways . . . . . . . . . . . . . . . . . . . . . 11-11 Manually Configuring Channel 2 for Controllers on Subnets . 11-12

Page 9

Table of Contents

5

Using BOOTP to Configure Channel 2 for Controllers on Subnets . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-13 Using Domain Name Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-15 Using the Embedded Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . 11-16 Generating User Provided Web Pages . . . . . . . . . . . . . . . . . . . 11-22 Importing User Page Files to the PLC-5 Controller . . . . . . . . 11-26 Using Multihop Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-29 Multihop Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-30 Comparing Multihop and Non-Multihop Messages Over Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-32 Communicating with ControlLogix Devices . . . . . . . . . . . . . . . . . 11-32 TCP/IP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-32 Interpreting Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-33 Interpreting Ethernet Status Data . . . . . . . . . . . . . . . . . . . . . . . . . . 11-34 Monitoring general Ethernet status . . . . . . . . . . . . . . . . . . . . . 11-35 Monitoring Ethernet commands. . . . . . . . . . . . . . . . . . . . . . . . 11-36 Monitoring Ethernet replies . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-36 Ethernet PLC-5 Performance Considerations . . . . . . . . . . . . . . . . 11-37 Performance: Host to Ethernet PLC-5 Controller. . . . . . . . . . 11-37 Performance: Ethernet PLC-5 Controller to Ethernet PLC-5 Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-38

Chapter 12 Protecting Your Programs

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-1 About Passwords and Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-2 Defining Privilege Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-3 Assigning a Privilege Class to a Channel or Offline File . . . . . . . . . 12-4 Assigning a Privilege Class to a Node . . . . . . . . . . . . . . . . . . . . . . . . 12-4 Assigning Read/Write Privileges to a Program File . . . . . . . . . . . . . 12-5 Assigning Read/Write Privileges to a Data File . . . . . . . . . . . . . . . . 12-5

Chapter 13 Programming Considerations

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-1 Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-1 Forcing Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-1 Forcing SFC Transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-2 Extended Forcing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-2 Increased Program Scan Time . . . . . . . . . . . . . . . . . . . . . . . . . . 13-4 I/O Force Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-4 Using Protected Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-5 Using Selectable Timed Interrupts (STIs) and Controller Input Interrupts (PIIs) . . . . . . . . . . . . . . . . . . . . 13-5 Setting Up and Using Extended Forcing . . . . . . . . . . . . . . . . . . . . . 13-5 Step 1 - Select Which Group of Data You Want to Force . . . . 13-6

Publication 1785-UM012D-EN-P - July 2005

Page 10

Table of Contents

6

Step 2 - Use the Programming Software to Enter or Edit the Data You Want to Force in the Extended Force Configuration Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-7 Step 3 - Use the Programming Software to Enter Force Values for the Specified Data Table Files . . . . . . . . . . . . 13-8 Step 4 - Enable or Disable the Forces . . . . . . . . . . . . . . . . . . . . 13-8 Using Extended Forcing with Time-Critical Applications. . . . . 13-8 Using Special Programming Routines . . . . . . . . . . . . . . . . . . . . . . . 13-10 Priority Scheduling for Interrupts and MCPs . . . . . . . . . . . . . . . . . 13-11 Program Execution States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-12 Influencing Priority Scheduling. . . . . . . . . . . . . . . . . . . . . . . . . 13-14 Defining and Programming Interrupt Routines . . . . . . . . . . . . . . . 13-15

Chapter 14 Preparing Power-Up Routines

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-1 Setting Power-Up Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-1 Allowing or Inhibiting Startup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-2 Defining a Controller Power-Up Procedure. . . . . . . . . . . . . . . . . . . 14-2

Chapter 15 Preparing Fault Routines

Publication 1785-UM012D-EN-P - July 2005

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-1 Understanding the Fault Routine Concept . . . . . . . . . . . . . . . . . . . . 15-1 Responses to a Major Fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-1 Understanding Controller-Detected Major Faults . . . . . . . . . . . . . . 15-2 Fault in a Controller-Resident or Extended-Local I/O Rack . . 15-3 Fault in a Remote I/O Chassis . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3 Defining a Fault Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-4 Defining a Watchdog Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-5 Avoiding Multiple Watchdog Faults . . . . . . . . . . . . . . . . . . . . . . 15-6 Programming a Fault Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-6 Setting an Alarm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-7 Clearing a Major Fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-7 Changing the Fault Routine from Ladder Logic . . . . . . . . . . . . 15-9 Using Ladder Logic to Recover from a Fault. . . . . . . . . . . . . . 15-10 Block-Transfers in Fault Routines . . . . . . . . . . . . . . . . . . . . . . 15-11 Testing a Fault Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-11 Monitoring Faults. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-11 Monitoring Major/Minor Faults and Fault Codes . . . . . . . . . . 15-12 Interpreting Major Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-12 Interpreting Minor Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-12 Monitoring Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-13

Page 11

Table of Contents

7

Chapter 16 Using Main Control Programs

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-1 Selecting Main Control Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-1 Understanding How the Controller Interprets MCPs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-2 Configuring MCPs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-3 Monitoring MCPs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-5

Chapter 17 Using Selectable Timed Interrupts Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-1 Using a Selectable Timed Interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . 17-1 Writing STI Ladder Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-1 STI Application Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-2 Block-Transfers in Selectable Timed Interrupts (STIs) . . . . . . . 17-2 Defining a Selectable Timed Interrupt . . . . . . . . . . . . . . . . . . . . . . . 17-3 Monitoring Selectable Timed Interrupts . . . . . . . . . . . . . . . . . . . . . . 17-4

Chapter 18 Using Processor Input Interrupts

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-1 Using a Processor Input Interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . . 18-1 Writing PII Ladder Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-2 PII Application Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-2 Block-Transfers in Processor Input Interrupts (PIIs) . . . . . . . . 18-3 Design Considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-4 Defining a Controller Input Interrupt. . . . . . . . . . . . . . . . . . . . . . . . 18-5 Monitoring Controller Input Interrupts . . . . . . . . . . . . . . . . . . . . . . 18-6

Appendix A System Specifications

Controller Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory and Channel Specifications. . . . . . . . . . . . . . . . . . . . . . Memory Backup Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EEPROM Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A-1 A-2 A-4 A-5

Appendix B Processor Status File

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1 S:0 - S:2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1 S:3-10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-3 S:11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-4 S:12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-5 S:13-S:24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-9 S:26-S:35 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-10 S:36-S:78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-11 S:79-S:127 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-12

Publication 1785-UM012D-EN-P - July 2005

Page 12

Table of Contents

8

Appendix C Maximizing System Performance

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1 Program Scan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1 Effects of False Logic versus True Logic on Logic Scan Time. . C-2 Effects of Different Input States on Logic Scan Time . . . . . . . . C-2 Effects of Different Instructions on Logic Scan Time . . . . . . . . C-3 Effects of Using Interrupts on Logic Scan Time . . . . . . . . . . . . . C-3 Effects of Housekeeping Time . . . . . . . . . . . . . . . . . . . . . . . . . . . C-4 Editing While in Remote Run Mode . . . . . . . . . . . . . . . . . . . . . . C-4 Putting Block-Transfer Modules in Controller-Resident Chassis C-5 Using Global Status Flag Files . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5 Calculating Throughput. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5 Input and Output Modules Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-6 I/O Backplane Transfer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-6 Remote I/O Scan Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-6 Communication Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7 Number of Rack Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7 Block-Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-8 Calculating Worst-Case Remote I/O Scan Time . . . . . . . . . . . . . C-9 Optimizing Remote I/O Scan Time. . . . . . . . . . . . . . . . . . . . . . . C-9 Controller Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-11 Example Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-12 Performance Effects of Online Operations . . . . . . . . . . . . . . . . . . . C-12 Effect of Inserting Ladder Rungs at the 56K-word Limit . . . . . . . . C-13 Using Program Control Instructions. . . . . . . . . . . . . . . . . . . . . . . . . C-14 Using JMP/LBL Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . C-14 Using FOR/NXT Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . C-14

Appendix D Instruction Set Quick Reference

Publication 1785-UM012D-EN-P - July 2005

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-1 Relay Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-2 Timer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-3 Counter Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-4 Compare Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-5 Compute Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-7 Logical Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-14 Conversion Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-15 Bit Modify and Move Instructions . . . . . . . . . . . . . . . . . . . . . . D-16 File Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-17 Diagnostic Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-19 Shift Register Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-20 Sequencer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-21 Program Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . D-22 Process Control, Message Instructions. . . . . . . . . . . . . . . . . . . D-25 Block Transfer Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . D-25

Page 13

Table of Contents

9

ASCII Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-27 Bit and Word Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-30 File, Program Control, and ASCII Instructions . . . . . . . . . . . . D-32

Appendix E Switch Setting Reference

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-1 Controller Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-2 Switch 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-2 Switch 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-3 I/O Chassis Backplane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-4 PLC-5 Controller in the I/O Chassis . . . . . . . . . . . . . . . . . . . . . . E-4 1771-ASB Remote I/O Adapter or 1771-ALX Extended-Local I/O Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-5 I/O Chassis Configuration Plug . . . . . . . . . . . . . . . . . . . . . . . . . . E-6 Remote I/O Adapter Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-7 (1771-ASB Series C and D) without Complementary I/O . . . . . E-7 (1771-ASB Series C and D) I/O Rack Number without Complementary I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-8 Extended-Local I/O Adapter Module . . . . . . . . . . . . . . . . . . . . . . . . E-9 (1771-ALX) Switch SW1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-9 (1771-ALX) Configuration Plug . . . . . . . . . . . . . . . . . . . . . . . . . E-10

Appendix F Troubleshooting

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1 PLC-5 Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-2 General Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-2 Controller Communication Channel Troubleshooting . . . . . . . . F-4 Extended-Local I/O Troubleshooting . . . . . . . . . . . . . . . . . . . . . F-5 Ethernet Status Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-5 Ethernet Transmit LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-6 Remote I/O System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-6 Troubleshooting Guide for the 1771-ASB Series C and D Adapter Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-6 Troubleshooting Guide for the 1771-ASB Series C and D Adapter Module (continued) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-8 Extended-Local I/O System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-9 Troubleshooting Guide for the 1771-ALX Adapter Module . . . F-9 Unexpected Operation when Entering Run Mode. . . . . . . . . . . . . . . F-9 Instructions with Unique Prescan Operations . . . . . . . . . . . . . . F-10 Suggested Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-11

Publication 1785-UM012D-EN-P - July 2005

Page 14

Table of Contents

10

Appendix G Cable Reference

Index

Publication 1785-UM012D-EN-P - July 2005

Using This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-1 Channel 0 Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-1 Serial Cable Pin Assignments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-2 Connecting Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-3 Programming Cable Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . G-5 Ethernet Cable Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-9