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

The text of a manual · part 1 of 39

Series 90-30/20/Micro PLC CPU Instruction Set Reference Manual: Front, pages 1 to 9

Pages 1 to 9 of 337, from Series 90-30/20/Micro PLC CPU Instruction Set Reference Manual

The original document is the PDF (4.4 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 GE Fanuc IC692CPU211D / IC692MDR541C, Fanuc IC692CPU211D / IC692MDR541C, GE IC692CPU211D / IC692MDR541C and GE Fanuc IC693CPU311X

Page 1

GE Fanuc Automation Programmable Control Products

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual GFK-0467M

May 2002

Page 2

GFL-002

Warnings, Cautions, and Notes as Used in this Publication Warning Warning notices are used in this publication to emphasize that hazardous voltages, currents, temperatures, or other conditions that could cause personal injury exist in this equipment or may be associated with its use. In situations where inattention could cause either personal injury or damage to equipment, a Warning notice is used.

Caution Caution notices are used where equipment might be damaged if care is not taken.

Note Notes merely call attention to information that is especially significant to understanding and operating the equipment.

This document is based on information available at the time of its publication. While efforts have been made to be accurate, the information contained herein does not purport to cover all details or variations in hardware or software, nor to provide for every possible contingency in connection with installation, operation, or maintenance. Features may be described herein which are not present in all hardware and software systems. GE Fanuc Automation assumes no obligation of notice to holders of this document with respect to changes subsequently made. GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein. No warranties of merchantability or fitness for purpose shall apply. The following are trademarks of GE Fanuc Automation North America, Inc. Alarm Master CIMPLICITY CIMPLICITY 90–ADS CIMSTAR Field Control GEnet

Genius Helpmate Logicmaster Modelmaster Motion Mate ProLoop

PROMACRO PowerMotion PowerTRAC Series 90 Series Five Series One

Series Six Series Three VersaMax VersaPro VuMaster Workmaster

©Copyright 1989–2002 GE Fanuc Automation North America, Inc. All Rights Reserved.

Page 3

Preface

This manual describes the system operation, fault handling, and Logicmaster 90™ programming instructions for the Series 90™-30, Series 90-20 and Series 90 Micro programmable logic controllers. Series 90-30 PLCs, Series 90-20 PLCs, and Series 90 Micro PLCs are members of the Series 90 family of programmable logic controllers from GE Fanuc Automation.

Revisions to This Manual •

Added the model 374 CPU, which supports connection to an Ethernet network through two built-in 10BaseT/100BaseTx auto-negotiating full-duplex Ethernet ports. Models 364 (release 9.10 and later) and 374 are the only Series 90-30 CPUs that support Ethernet Global Data. Note that the CPU374 is supported only by the Windows®-based programmers.

•

Other corrections and clarifications as necessary.

Related Publications Logicmaster™ 90 Series 90™-30/20/Micro Programming Software User’s Manual (GFK-0466).

VersaPro™ Programming Software User’s Guide (GFK-1670) CIMPLICITY® Machine Edition Getting Started (GFK-1868) Series 90™-30 Programmable Controller Installation Manual (GFK-0356) Series 90™-20 Programmable Controller Installation Manual (GFK-0551) Series 90™-30 I/O Module Specifications Manual (GFK-0898) Series 90™ Programmable Coprocessor Module and Support Software User’s Manual (GFK-0255) Series 90™ PCM Development Software (PCOP) User’s Manual (GFK-0487) CIMPLICITY™ 90-ADS Alphanumeric Display System User’s Manual (GFK-0499) CIMPLICITY™ 90-ADS Alphanumeric Display System Reference Manual (GFK-0641) Series 90™-30 and 90-20 PLC Hand-Held Programmer User’s Manual (GFK-0402) Power Mate APM for Series 90™-30 PLC - Standard Mode User’s Manual (GFK-0840) Power Mate APM for Series 90™-30 PLC - Follower Mode User’s Manual (GFK-0781) Motion Mate™ DSM302 for Series 90™-30 PLCs User’s Manual (GFK-1464) Series 90™-30 High Speed Counter User’s Manual (GFK-0293) Series 90™-30 Genius Communications Module User’s Manual (GFK-0412) GFK-0467M iii

Page 4

Preface Series 90™-30 Genius™ Bus Controller User’s Manual (GFK-1034) Series 90™-70 FIP Bus Controller User’s Manual (GFK-1038) Series 90™-30 FIP Remote I/O Scanner User’s Manual (GFK-1037) Field Control™ Distributed I/O and Control System Genius™ Bus Interface Unit User’s Manual (GFK-0825) Series 90™ Micro Programmable Logic Controller User’s Manual (GFK-1065) Series 90™ PLC Serial Communications User’s Manual (GFK-0582)

iv

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual–May 2002

GFK-0467M

Page 5

Contents Chapter 1

Introduction .........................................................................................................1-1

Chapter 2

System Operation ................................................................................................2-1 Section 1: PLC Sweep Summary......................................................................2-2 Standard Program Sweep .................................................................................................. 2-2 Sweep Time Calculation............................................................................................. 2-7 PLC Sweep Details..................................................................................................... 2-8 PCM Communications with the PLC (Models 331 and Higher).............................. 2-12 Digital Servo Module (DSM) Communications with the PLC....................................... 2-13 Standard Program Sweep Variations .............................................................................. 2-13 Constant Sweep Time Mode .................................................................................... 2-13 PLC Sweep When in STOP Mode ........................................................................... 2-14 Communication Window Modes.............................................................................. 2-14 Keylock Switch on 35x, 36x and 37x Series CPUs: Change Mode and Flash Protect ... 2-15

Section 2: Program Organization and User References/Data.....................2-17 Subroutine Blocks........................................................................................................... 2-18 Examples of Using Subroutine Blocks..................................................................... 2-18 How Blocks Are Called............................................................................................ 2-19 Execution Sequence in Programs Containing Subroutines ...................................... 2-19 Periodic Subroutines................................................................................................. 2-20 User References .............................................................................................................. 2-20 Nicknames ................................................................................................................ 2-22 Transitions and Overrides......................................................................................... 2-22 Retentiveness of Data ............................................................................................... 2-22 Data Types ...................................................................................................................... 2-23 System Status References ............................................................................................... 2-24 Function Block Structure ................................................................................................ 2-27 Format of Ladder Logic Relays................................................................................ 2-27 Format of Program Function Blocks (Instructions)................................................. 2-27 Function Block (Instruction) Parameters ........................................................................ 2-29 Power Flow In and Out of a Function ...................................................................... 2-30

Section 3: Power-Up and Power-Down Sequences.......................................2-32 Power-Up ........................................................................................................................ 2-32 Power-Down ................................................................................................................... 2-35

Section 4: Clocks and Timers .........................................................................2-36 Elapsed Time Clock........................................................................................................ 2-36 Time-of-Day Clock......................................................................................................... 2-36 Watchdog Timer ............................................................................................................. 2-37 Elapsed Power Down Timer ........................................................................................... 2-37 Constant Sweep Timer .................................................................................................... 2-37 Time-Tick Contacts ........................................................................................................ 2-38 GFK-0467M v

Page 6

Contents Section 5: System Security................................................................................2-39 Passwords........................................................................................................................ 2-39 Privilege Level Change Requests ................................................................................... 2-40 Locking/Unlocking Subroutines ..................................................................................... 2-40 Permanently Locking a Subroutine .......................................................................... 2-40

Section 6: Series 90-30, 90-20, and Micro I/O System..................................2-41 Series 90-30 I/O Modules ............................................................................................... 2-42 I/O Data Formats............................................................................................................. 2-44 Default Conditions for Series 90-30 Output Modules .................................................... 2-44 Diagnostic Data............................................................................................................... 2-45 Global Data ..................................................................................................................... 2-45 Genius Global Data .................................................................................................. 2-45 Ethernet Communications ........................................................................................ 2-45 Series 90-20 I/O Modules......................................................................................... 2-46 Configuration and Programming .................................................................................... 2-46

Chapter 3

Fault Explanation and Correction .....................................................................3-1 Section 1: Fault Handling ..................................................................................3-2 Alarm Processor................................................................................................................ 3-2 Classes of Faults ............................................................................................................... 3-2 System Reaction to Faults................................................................................................. 3-3 Fault Tables ................................................................................................................ 3-3 Fault Action................................................................................................................ 3-4 Fault References................................................................................................................ 3-4 System Status References ................................................................................................. 3-4 Additional Fault Effects.................................................................................................... 3-5 PLC Fault Table Display................................................................................................... 3-5 I/O Fault Table Display..................................................................................................... 3-5 Accessing Additional Fault Information........................................................................... 3-6

Section 2: PLC Fault Table Explanations........................................................3-7 Fault Actions..................................................................................................................... 3-8 Loss of, or Missing, Option Module .......................................................................... 3-8 Reset of, Addition of, or Extra, Option Module......................................................... 3-8 System Configuration Mismatch................................................................................ 3-9 Option Module Software Failure.............................................................................. 3-10 Program Block Checksum Failure............................................................................ 3-10 Low Battery Signal................................................................................................... 3-10 Constant Sweep Time Exceeded .............................................................................. 3-11 Application Fault ...................................................................................................... 3-11 No User Program Present ......................................................................................... 3-12 Corrupted User Program on Power-Up .................................................................... 3-12 vi

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual–May 2002

GFK-0467M

Page 7

Contents Password Access Failure .......................................................................................... 3-12 PLC CPU System Software Failure ......................................................................... 3-13 Communications Failure During Store..................................................................... 3-15

Section 3: I/O Fault Table Explanations ........................................................3-16 Loss of I/O Module......................................................................................................... 3-16 Addition of I/O Module .................................................................................................. 3-17

Chapter 4

Relay Functions ...................................................................................................4-1 Using Contacts .................................................................................................................. 4-1 Using Coils ....................................................................................................................... 4-2 Normally Open Contact, | | - ........................................................................................ 4-3 Normally Closed Contact, |/| - ..................................................................................... 4-3 Coil, ( ) - ...................................................................................................................... 4-3 Example...................................................................................................................... 4-3 Negated Coil, (/) - ........................................................................................................ 4-4 Example...................................................................................................................... 4-4 Retentive Coil, (M) - ................................................................................................... 4-4 Negated Retentive Coil, (/M) - .................................................................................... 4-4 Positive Transition Coil, (↑) - ..................................................................................... 4-4 Negative Transition Coil, (↓) - .................................................................................... 4-5 Example...................................................................................................................... 4-5 SET Coil, (S), ............................................................................................................ 4-5 RESET Coil, (R) - ....................................................................................................... 4-5 Example...................................................................................................................... 4-6 Retentive SET Coil, (SM) - ......................................................................................... 4-6 Retentive RESET Coil, (RM) - ................................................................................... 4-6 Links ................................................................................................................................. 4-7 Example...................................................................................................................... 4-7 Continuation Coils ( - - - <+>) and Contacts (<+> - - - ).......................................... 4-8

Chapter 5

Timers and Counters...........................................................................................5-1 Function Block Data Required for Timers and Counters.................................................. 5-1 ONDTR............................................................................................................................. 5-3 Parameters .................................................................................................................. 5-4 Valid Memory Types.................................................................................................. 5-4 Example...................................................................................................................... 5-5 TMR.................................................................................................................................. 5-5 Parameters .................................................................................................................. 5-6 Valid Memory Types.................................................................................................. 5-6 Example...................................................................................................................... 5-7 OFDT ................................................................................................................................ 5-8 Parameters .................................................................................................................. 5-9

GFK-0467M

Contents vii

Page 8

Contents Valid Memory Types................................................................................................ 5-10 Examples .................................................................................................................. 5-10 UPCTR............................................................................................................................ 5-11 Parameters ................................................................................................................ 5-11 Valid Memory Types................................................................................................ 5-12 Examples .................................................................................................................. 5-12 DNCTR ........................................................................................................................... 5-13 Parameters ................................................................................................................ 5-13 Valid Memory Types................................................................................................ 5-14 Examples .................................................................................................................. 5-14 Inventory Count Examples ....................................................................................... 5-15

Chapter 6

Math Functions....................................................................................................6-1 Standard Math Functions (ADD, SUB, MUL, DIV) ........................................................ 6-2 Parameters .................................................................................................................. 6-3 Valid Memory Types.................................................................................................. 6-3 Math Function Examples............................................................................................ 6-4 Math Functions and Data Types................................................................................. 6-5 Example...................................................................................................................... 6-6 MOD (INT, DINT) ....................................................................................................... 6-7 Parameters .................................................................................................................. 6-7 Valid Memory Types.................................................................................................. 6-8 Example...................................................................................................................... 6-8 SQRT (INT, DINT, REAL) .......................................................................................... 6-9 Parameters .................................................................................................................. 6-9 Valid Memory Types................................................................................................ 6-10 Examples .................................................................................................................. 6-10 Trig Functions (SIN, COS, TAN, ASIN, ACOS, ATAN) .......................................... 6-11 Parameters ................................................................................................................ 6-12 Valid Memory Types................................................................................................ 6-12 Example.................................................................................................................... 6-12 Logarithmic/Exponential Functions (LOG, LN, EXP, EXPT) ....................................... 6-13 Parameters ................................................................................................................ 6-13 Valid Memory Types................................................................................................ 6-14 Example.................................................................................................................... 6-14 Radian Conversion (RAD, DEG)................................................................................ 6-15 Parameters ................................................................................................................ 6-15 Valid Memory Types................................................................................................ 6-15 Example.................................................................................................................... 6-16

Chapter 7

Relational Functions............................................................................................7-1 Standard Relational Functions (EQ, NE, GT, GE, LT, LE).............................................. 7-2 viii

Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual–May 2002

GFK-0467M

Page 9

Contents Parameters .................................................................................................................. 7-2 Expanded Description ................................................................................................ 7-3 Valid Memory Types.................................................................................................. 7-3 Example...................................................................................................................... 7-3 RANGE (INT, DINT, WORD)..................................................................................... 7-4 Parameters .................................................................................................................. 7-5 Valid Memory Types.................................................................................................. 7-5 Example 1................................................................................................................... 7-5 Example 2................................................................................................................... 7-6

Chapter 8

Bit Operation Functions .....................................................................................8-1 AND and OR (WORD)..................................................................................................... 8-3 Parameters .................................................................................................................. 8-3 Valid Memory Types.................................................................................................. 8-4 Example...................................................................................................................... 8-4 XOR (WORD) .................................................................................................................. 8-5 Parameters .................................................................................................................. 8-5 Valid Memory Types.................................................................................................. 8-6 Example of an Alarm Circuit Using an XOR............................................................. 8-6 NOT (WORD) .................................................................................................................. 8-7 Parameters .................................................................................................................. 8-7 Valid Memory Types.................................................................................................. 8-7 Example...................................................................................................................... 8-7 SHL and SHR (WORD).................................................................................................... 8-8 Parameters .................................................................................................................. 8-9 Valid Memory Types.................................................................................................. 8-9 Example...................................................................................................................... 8-9 ROL and ROR (WORD)................................................................................................. 8-10 Parameters ................................................................................................................ 8-10 Valid Memory Types................................................................................................ 8-11 Example.................................................................................................................... 8-11 BTST (WORD)............................................................................................................... 8-12 Parameters ................................................................................................................ 8-12 Valid Memory Types................................................................................................ 8-13 Example.................................................................................................................... 8-13 BSET and BCLR (WORD)............................................................................................. 8-14 Parameters ................................................................................................................ 8-14 Valid Memory Types................................................................................................ 8-15 Examples .................................................................................................................. 8-15 BPOS (WORD)............................................................................................................... 8-16 Parameters ................................................................................................................ 8-16 Valid Memory Types................................................................................................ 8-17

GFK-0467M

Contents ix