Transcription of GE Fanuc Automation
1 GE Fanuc AutomationProgrammable Control ProductsSeries 90 -70 PLCCPU Instruction SetReference ManualGFK-0265 JJanuary 2000 GFL-002 Warnings, Cautions, and Notesas Used in this PublicationWarningWarning notices are used in this publication to emphasize that hazardous voltages,currents, temperatures, or other conditions that could cause personal injury exist in thisequipment or may be associated with its situations where inattention could cause either personal injury or damage toequipment, a Warning notice is notices are used where equipment might be damaged if care is not merely call attention to information that is especially significant to understanding andoperating the document is based on information available at the time of its publication. While effortshave been made to be accurate, the information contained herein does not purport to cover alldetails or variations in hardware or software, nor to provide for every possible contingency inconnection with installation, operation, or maintenance.
2 Features may be described hereinwhich are not present in all hardware and software systems. GE Fanuc Automation assumes noobligation of notice to holders of this document with respect to changes subsequently Fanuc Automation makes no representation or warranty, expressed, implied, or statutorywith respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, orusefulness of the information contained herein. No warranties of merchantability or fitness forpurpose shall following are trademarks of GE Fanuc Automation North America, MasterGeniusProLoopSeries ThreeCIMPLICITYH elpmatePROMACROV ersaMaxCIMPLICITY 90-ADSL ogicmasterSeries FiveVersaProCIMSTARM odelmasterSeries 90 VumasterField ControlMotion MateSeries OneWorkmasterGEnetPowerTRACS eries Six Copyright 1989-2000 GE Fanuc Automation North America, Rights ReservedPrefaceGFK-0265 JiiiThis manual describes the system operation, fault handling, and Logicmaster 90-70 programminginstructions for the Series 90 -70 programmable controller.
3 The Series 90-70 PLC is a member ofthe Series 90 family of programmable logic controllers from GE Fanuc to This ManualThe following changes have been made to this manual to reflect feature changes, corrections, andupdates to existing information: References made to CPX and CGR model CPUs, where appropriate, throughout the ````` Value for Constant Sweep timer corrected (chapter 2, pg. 2-46). Note added after Table 2-18 regarding CPU Mode switch and description of privilegelevel 1 updated in table. (chapter 2, page 2-79) Description of System Faults updated (chapter 3, pg. 3-2) Chapters 4 through 12 contain information that was presented in a single chapter (Chapter4) in previous versions. This information has been divided into separate chapters toimprove access to the programming instruction descriptions.
4 Appendix A, CPU Performance Data, tables revised (all information not available, will beadded to a future version) Paragraph added , beginning with Each Ethernet Global .. , page A-24 Section titled Relative CPU Test Performance added at end of Appendix A Other corrections and clarifications as necessaryContent of This ManualChapter 1. Introduction: provides an overview of the Series 90-70 PLC system and the Series90-70 instruction 2. System Operation: describes certain system operations of the Series 90-70 PLCsystem. This includes a discussion of the PLC system sweep sequences, the system power-up andpower-down sequences, clocks and timers, security, I/O, and fault handling. It also includesgeneral information for a basic understanding of programming ladder 3. Fault Explanations and Correction: provides troubleshooting information for aSeries 90-70 PLC system.
5 It explains fault descriptions in the PLC fault table and fault categoriesin the I/O fault 4 12. Series 90-70 Instruction Set: describes programming instructions availablefor Series 90-70 PLCs. These chapters correspond to the main program function 90 -70 PLC CPU Instruction Set reference Manual January 2000 GFK-0265 JAppendix A. CPU Performance Data: lists the memory size in bytes and the execution time inmicroseconds for each programming instruction. Memory size is the number of bytes required bythe function in a ladder diagram application program. Appendix A also contains timinginformation for other PLC tasks which, when used in conjunction with the instruction timings, canbe used to predict CPU sweep times. Refer to Appendix F for IEEE format when dealing withfloating-point math B.
6 Interpreting Fault Tables: describes how to interpret the message structure formatwhen reading the fault tables using Logicmaster 90-70 C. Instruction Mnemonics: lists mnemonics that can be typed to displayprogramming instructions while searching or editing a program. Provides a worksheet for use indetermining the total number of bytes of user data used and how much is still available for the D. Memory Allocation: provides a worksheet for determining the total number ofbytes of user data used and how much is still available for the user E. Key Functions: lists the special keyboard assignments used for the Logicmaster F. Using Floating-Point Numbers: describes special considerations for usingfloating-point math PublicationsLogicmaster 90-70 Programming Software User s Manual (GFK-0263).
7 Logicmaster 90-70 Important Product Information (GFK-0350).Series 90 -70 Programmable Controller Installation Manual (GFK-0262).Series 90 Programmable Coprocessor Module and Support Software User s Manual(GFK-0255) .Series 90 PCM Development Software (PCOP) User s Manual (GFK-0487).C Programmer s Toolkit for Series 90 -70 PLCs User s Manual (GFK-0646).Series 90 Sequential Function Chart Programming Language User s Manual (GFK-0854).MegaBasic Programming Language reference Manual (GFK-0256).CIMPLICITY 90-ADS Alphanumeric Display System User s Manual (GFK-0499).CIMPLICITY 90-ADS Alphanumeric Display System reference Manual (GFK-0641).Alphanumeric Display Coprocessor Module Data Sheet (GFK-0521).Series 90 -70 Genius I/O System User s Manual (GEK-90486-1).Series 90 -70 Genius I/O Analog and Discrete Blocks User s Manual (GEK-90486-2).
8 Workmaster II PLC Programming Unit Guide to Operation (GFK-0401).Series 90 -70 Genius Bus Controller User s Manual (GFK-0398).Series 90-70 FIP Bus Controller User s Manual (GFK-1038).Guidelines for the Selection of Third-Party VME Modules (GFK-0448).Series 90 Ethernet Communications User s Manual (GFK-0868).Series 90 MAP Communications User s Manual (GFK-0869).TCP/IP Ethernet Communications for the Series 90 PLC User's Manual (GFK-1541)ContentsGFK-0265 JviiChapter 1 1-1 Software 1-1 Terminology Used in This 1-1 Fault 1-2 Hardware Configuration .. 1-2 Using This Manual .. 1-2 Chapter 2 System Operation .. 2-1 Section 1: Basic PLC Sweep 2-2 Basic PLC Sweep .. 2-4 Input Scan .. 2-4 Application Program Task Execution (Logic Window).. 2-5 Output 2-5 Programmer Communications 2-6 System Communications 2-7 Background 2-7 Window 2-8 Data Coherency in Communications Windows.
9 2-8 CPU Sweep in STOP 2-9 PLC Sweep Modes .. 2-10 Section 2: User reference 2-11 Indirect References .. 2-11 User reference Size and 2-14%G User References and CPU Memory 2-15 Genius Global Data .. 2-15 Transitions and Overrides .. 2-16 Retentiveness of Logic and Data .. 2-16 Data Scope .. 2-18 Data Types .. 2-19 System Status References .. 2-20 Other References .. 2-25 Section 3: Program Organization ..2-27 Ladder Logic Programming .. 2-28 Main Block .. 2-29 Blocks .. 2-30 Examples of Using Blocks ..2-30 How Blocks Are Subroutine 2-35 Parameterized Subroutine Blocks and Local Data .. 2-35 How Parameterized Subroutine Blocks Are 2-36 ContentsviiiSeries 90 -70 PLC CPU Instruction Set reference Manual January 2000 GFK-0265 JReferencing Formal Parameters Within a Parameterized Subroutine Block.
10 2-37 Restrictions on Formal Parameters within a Parameterized Subroutine 2-38 BIT Type Parameters in PSBs .. 2-38 External Blocks .. 2-39 How External Blocks Are Called .. 2-39 External Blocks and Local 2-40 Local Data Initialization .. 2-40 Standalone C 2-41 Data 2-41 Input/Output Specifications ..2-42 Standalone C Programs and Local Data .. 2-44 Local Data Initialization ..2-44 Referencing I/O Specification Data Within a Standalone C 2-45 Data Coherency of I/O LD vs. Standalone C Programs .. 2-46 Differences in Operation: LD and Standalone C Programs .. 2-46 Retentiveness of Data ..2-47 Interrupt of Status 4: PLC Sweep Modes and Program Scheduling Sweep Mode .. 2-48 Constant Sweep Mode .. 2-49 Constant Window 2-50 Microcycle Sweep 2-51 Microcycle Sweep Mode Output Scan 2-53 Output Scan Estimation for Pre-Release CPUs.