Rockwell / Allen-Bradley PLC-2/30 Programming Manual (Pdf)
Total Page:16
File Type:pdf, Size:1020Kb
Full-service, independent repair center -~ ARTISAN® with experienced engineers and technicians on staff. TECHNOLOGY GROUP ~I We buy your excess, underutilized, and idle equipment along with credit for buybacks and trade-ins. Custom engineering Your definitive source so your equipment works exactly as you specify. for quality pre-owned • Critical and expedited services • Leasing / Rentals/ Demos equipment. • In stock/ Ready-to-ship • !TAR-certified secure asset solutions Expert team I Trust guarantee I 100% satisfaction Artisan Technology Group (217) 352-9330 | [email protected] | artisantg.com All trademarks, brand names, and brands appearing herein are the property o f their respective owners. Find the Rockwell / Allen-Bradley 1772-LSP at our website: Click HERE PLCĆ2/30 Programmable Controller Programming and Operations Manual Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com Important User Information Because of the variety of uses for this equipment and because of the differences between this solid state equipment and electromechanical equipment, the user of and those responsible for applying this equipment must satisfy themselves as to the acceptability of each application and use of the equipment. In no event will Allen-Bradley Company, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment. The illustrations, charts, and layout examples shown in this manual are intended solely to illustrate the text of this manual. Because of the many variables and requirements associated with any particular installation, Allen-Bradley Company, Inc. cannot assume responsibility or liability for actual use based upon the illustrative uses and applications. No patent liability is assumed by Allen-Bradley Company, Inc. with respect to use of information, circuits, equipment or software described in this text. Reproduction of the contents of this manual, in whole or in part, without written permission of the Allen-Bradley Company, Inc. is prohibited. 1988 Allen-Bradley Company, Inc. PLC is a registered trademark of Allen-Bradley Company, Inc. WARNING: Warnings tell readers where people may be hurt if procedures are not followed properly. CAUTION: Cautions tell them where machinery may be damaged or economic loss can occur if procedures are not followed properly. A Warning or Caution alerts you to: a possible trouble spot what causes the trouble to occur the result of an improper action how to avoid the situation Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com Table of Contents Introduction. 1Ć1 1.0 Introduction to This Manual. 1Ć1 1.1 General. 1Ć1 1.2 Capabilities . 1Ć3 1.2.1 Complementary I/O . 1Ć4 1.2.2 Data Highway Compatibility . 1Ć4 1.2.3 Industrial Terminal Compatibility . 1Ć4 1.3 Additional Publications . 1Ć5 1.4 Terms Used in This Manual. 1Ć6 Hardware Considerations. 2Ć1 2.0 General. 2Ć1 2.1 Mode Select Switch . 2Ć1 2.2 Memory Write Protect. 2Ć2 2.3 RunĆTime Errors. 2Ć3 2.4 Processor Diagnostic Indicators. 2Ć4 2.5 PowerĆUp Recovery. 2Ć5 2.6 Switch Group Assembly. 2Ć5 2.6.1 Last State Switch . 2Ć6 2.6.2 I/O Rack Number. 2Ć6 2.7 Industrial Terminal. 2Ć7 2.8 Local System Structure. 2Ć7 2.9 Remote System Structure. 2Ć8 2.10 Local/Remote System Structure. 2Ć9 2.11 Hardware Addressing Modes. 2Ć10 2.12 Auxiliary Power Supplies. 2Ć10 2.12.1 1771ĆP2 Auxiliary Power Supply. 2Ć10 2.12.2 1777ĆP2 Auxiliary Power Supply. 2Ć11 2.12.3 1771ĆP3, ĆP4, and ĆP5 Slot Power Supplies. 2Ć11 2.12.4 1771ĆP7 Power Supply. 2Ć11 2.12.5 1771ĆPSC Power Supply Chassis. 2Ć11 Data Table. 3Ć1 3.0 General. 3Ć1 3.1 Memory Structure. 3Ć1 3.2 Memory Organization. 3Ć2 3.2.1 Data Table. 3Ć2 3.2.2 User Program. 3Ć16 3.2.3 Message Storage Area. 3Ć17 3.3 Hardware/Program Interface. 3Ć17 3.3.1 Image Tables. 3Ć17 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com ii Table of Contents 3.3.2 Instruction Address. 3Ć18 3.3.3 Fundamental Operation. 3Ć21 3.4 Data Table Documentation Forms. 3Ć23 3.4.1 Data Table Word Map (1024 Word). 3Ć23 3.4.2 Data Table Map (128 Word). 3Ć24 3.4.3 Data Table Word Assignments (64 Word). 3Ć25 3.4.4 Data Table Bit Assignments . 3Ć26 3.4.5 Sequencer Table Bit Assignments . 3Ć27 3.4.6 I/O Assignments . 3Ć28 3.4.7 Timer/Counter Assignments. 3Ć29 3.4.8 Data Storage Assignments. 3Ć29 Introduction to Programming . 4Ć1 4.0 General. 4Ć1 4.1 Notational Conventions . 4Ć1 4.2 Ladder Diagram Logic. 4Ć2 4.3 RelayĆType Instructions. 4Ć3 4.3.1 Examine Instructions. 4Ć3 4.3.2 Output Instructions . 4Ć5 4.3.3 Branch Instructions. 4Ć9 4.3.4 Ending a Program. 4Ć12 4.3.5 Programming RelayĆType Instructions. 4Ć13 4.4 Operating Instructions. 4Ć14 4.4.1 Addressing. 4Ć15 4.4.2 Help Directories. 4Ć15 4.4.3 Searching. 4Ć16 4.4.4 Editing . 4Ć19 4.4.5 OnĆLine Programming. 4Ć23 4.4.6 Clearing Memory. 4Ć30 4.5 Program Recommendations. 4Ć32 Timer and Counter Instructions. 5Ć1 5.0 General. 5Ć1 5.1 Timer Instructions. 5Ć2 5.1.1 Timer OnĆDelay Instruction. 5Ć3 5.1.2 Timer OffĆDelay Instruction. 5Ć5 5.1.3 Retentive Timer Instruction. 5Ć6 5.1.4 Retentive Timer Reset Instruction. 5Ć8 5.1.5 Timer Accuracy for 10ms Timers. 5Ć8 5.2 Counter Instructions. 5Ć8 5.2.1 UpĆCounter Instruction. 5Ć9 5.2.2 Counter Reset Instruction. 5Ć11 5.2.3 DownĆCounter Instruction. 5Ć12 5.2.4 Scan Counter Instruction. 5Ć13 5.3 Cascading Timers or Counters. 5Ć14 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com Table of Contents iii 5.4 Programming Timer and Counter Instructions. 5Ć14 5.5 Scan Time and Instruction Execution Times. 5Ć17 5.5.1 Scan Time. 5Ć17 5.5.2 Program for Determining Scan Time. 5Ć18 5.6 Instruction Execution Time. 5Ć19 5.6.1 Relay Type, Timer and Counter, Data Manipulations, Arithmetic, Output Override and I/O Update, Jump, and Subroutine Instructions. 5Ć19 5.6.2 WordĆtoĆFile, Sequencers, FIFO, Word and Bit Shifts, File Diagnostic, File Search, and Block Transfer Instructions. 5Ć20 5.6.3 FileĆtoĆFile Move and File Complement . 5Ć22 5.6.4 Logic Instructions FileĆtoĆFile AND, OR, XOR . 5Ć23 Data Manipulation Instructions. 6Ć1 6.0 General. 6Ć1 6.1 Data Transfer Instructions. 6Ć2 6.1.1 Get Instruction . 6Ć2 6.1.2 Put Instruction . 6Ć3 6.2 Data Comparison Instructions. 6Ć4 6.2.1 Les and Equ Instructions. 6Ć4 6.2.2 Get Byte and Limit Test Instructions. 6Ć7 6.2.3 Get Byte-Put Instruction . 6Ć8 6.3 Programming Data Manipulation Instructions. ..