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 39

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

Pages 10 to 17 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 10

Contents Example.................................................................................................................... 8-17 MSKCMP (WORD, DWORD)....................................................................................... 8-18 Parameters ................................................................................................................ 8-19 Valid Memory Types................................................................................................ 8-19 Example 1 – MSKCMP Instruction ......................................................................... 8-20 Example 2 - Fault Detection with a Masked Compare Function.............................. 8-21

Chapter 9

Data Move Functions ..........................................................................................9-1 MOVE (BIT, INT, WORD, REAL) ................................................................................. 9-2 Parameters .................................................................................................................. 9-3 Example 1 - Overlapping Addresses (only for CPUs 311-341) ................................ 9-4 Example 2 – for all CPUs........................................................................................... 9-4 BLKMOV (INT, WORD, REAL) .................................................................................... 9-5 Parameters .................................................................................................................. 9-5 Valid Memory Types.................................................................................................. 9-6 Example...................................................................................................................... 9-6 BLKCLR (WORD)........................................................................................................... 9-7 Parameters .................................................................................................................. 9-7 Valid Memory Types.................................................................................................. 9-7 Example...................................................................................................................... 9-7 SHFR (BIT, WORD) ........................................................................................................ 9-8 Parameters .................................................................................................................. 9-9 Valid Memory Types.................................................................................................. 9-9 Example 1................................................................................................................. 9-10 Example 2................................................................................................................. 9-10 BITSEQ (BIT) ............................................................................................................ 9-11 Control Block Memory Required for a Bit Sequencer ............................................. 9-12 Parameters ................................................................................................................ 9-13 Valid Memory Types................................................................................................ 9-13 Example.................................................................................................................... 9-14 COMMREQ.................................................................................................................... 9-15 Command Block....................................................................................................... 9-15 Parameters ................................................................................................................ 9-16 Valid Memory Types................................................................................................ 9-16 Example.................................................................................................................... 9-17

Chapter 10

Table Functions .................................................................................................10-1 ARRAY_MOVE (INT, DINT, BIT, BYTE, WORD) .................................................... 10-2 Arrays and Data Elements Defined .......................................................................... 10-2 Index Numbers ......................................................................................................... 10-2 The Array Move Instruction..................................................................................... 10-2 Parameters ................................................................................................................ 10-4 x

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

GFK-0467M

Page 11

Contents Valid Memory Types................................................................................................ 10-4 Example 1................................................................................................................. 10-5 Example 2................................................................................................................. 10-5 Example 3................................................................................................................. 10-6 Search Functions............................................................................................................. 10-7 Parameters ................................................................................................................ 10-8 Valid Memory Types................................................................................................ 10-8 Example 1................................................................................................................. 10-9 Example 2............................................................................................................... 10-10

Chapter 11

Conversion Functions........................................................................................11-1, >BCD-4 (INT) ............................................................................................................ 11-2 Parameters ................................................................................................................ 11-2 Valid Memory Types................................................................................................ 11-2 Example.................................................................................................................... 11-2, >INT (BCD-4, REAL) ............................................................................................ 11-3 Parameters ................................................................................................................ 11-3 Valid Memory Types................................................................................................ 11-3 Example 1 – BCD4 to Integer ................................................................................. 11-4 Example 2 – Real to Integer ..................................................................................... 11-4, >DINT (REAL)........................................................................................................... 11-5 Parameters ................................................................................................................ 11-5 Valid Memory Types................................................................................................ 11-5 Example.................................................................................................................... 11-6, >REAL (INT, DINT, BCD-4, WORD) ..................................................................... 11-7 Parameters ................................................................................................................ 11-7 Valid Memory Types................................................................................................ 11-7 Example 1 - Integer to Real Conversion .................................................................. 11-8 Example 2 – Double Integer to Real Conversion ..................................................... 11-8, >WORD (REAL) ........................................................................................................ 11-9 Parameters ................................................................................................................ 11-9 Valid Memory Types................................................................................................ 11-9 Example – Real to Word Conversion..................................................................... 11-10 TRUN (INT, DINT)...................................................................................................... 11-11 Parameters .............................................................................................................. 11-11 Valid Memory Types.............................................................................................. 11-11 Example 1 – Truncate Real to Integer with Output Coil for CPU352.................... 11-12 Example 2 – Truncate Real to Double Integer with Output Coil for CPU352....... 11-12

Chapter 12

Control Functions..............................................................................................12-1 CALL .............................................................................................................................. 12-2 Example.................................................................................................................... 12-2

GFK-0467M

Contents xi

Page 12

Contents DOIO............................................................................................................................... 12-3 Parameters ................................................................................................................ 12-4 Valid Memory Types................................................................................................ 12-4 Input Example 1 ....................................................................................................... 12-5 Input Example 2 ....................................................................................................... 12-5 Output Example 1..................................................................................................... 12-6 Output Example 2..................................................................................................... 12-6 Enhanced DO I/O Function for 331 and Later CPUs ..................................................... 12-7 SER (Sequential Event Recorder)................................................................................... 12-8 Parameters ................................................................................................................ 12-9 Valid Memory Types................................................................................................ 12-9 Function Control Block .......................................................................................... 12-10 Status Extra Data States.......................................................................................... 12-12 SER Data Block Format ......................................................................................... 12-13 SER Operation........................................................................................................ 12-13 Sampling Modes..................................................................................................... 12-14 SER Function Block Trigger Timestamp Formats ................................................. 12-17 SER Example ......................................................................................................... 12-18 END .............................................................................................................................. 12-23 Example.................................................................................................................. 12-23 MCRN/MCR................................................................................................................. 12-24 Overview of MCR and MCRN............................................................................... 12-24 CPU Compatibility ................................................................................................. 12-25 Nesting an MCRN .................................................................................................. 12-25 MCR Operation ...................................................................................................... 12-26 Parameters .............................................................................................................. 12-26 Differences Between MCR/MCRN and JUMP...................................................... 12-27 Example 1............................................................................................................... 12-28 Example 2............................................................................................................... 12-29 ENDMCRN/ENDMCR ................................................................................................ 12-30 Example.................................................................................................................. 12-30 JUMP ............................................................................................................................ 12-31 Examples ................................................................................................................ 12-32 LABEL.......................................................................................................................... 12-33 Example.................................................................................................................. 12-33 COMMENT .................................................................................................................. 12-34 SVCREQ....................................................................................................................... 12-35 SVC REQ Overview............................................................................................... 12-36 SVCREQ #1: Change/Read Constant Sweep Timer ............................................. 12-38 SVCREQ #2: Read Window Values ..................................................................... 12-41 SVCREQ #3: Change Programmer Communications Window Mode and Timer Value12-43 SVCREQ #4: Change System Comm Window Mode and Timer Value .............. 12-45 xii

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

GFK-0467M

Page 13

Contents SVCREQ #6: Change/Read Number of Words to Checksum.............................. 12-47 SVCREQ #7: Change/Read Time-of-Day Clock .................................................. 12-49 SVCREQ #8: Reset Watchdog Timer ................................................................... 12-53 SVCREQ #9: Read Sweep Time from Beginning of Sweep................................. 12-54 SVCREQ #10: Read Folder Name ........................................................................ 12-55 SVCREQ #11: Read PLC ID ................................................................................ 12-56 SVCREQ #12: Read PLC Run State ..................................................................... 12-57 SVCREQ #13: Shut Down (Stop) PLC................................................................. 12-58 SVCREQ #14: Clear Fault Tables......................................................................... 12-59 SVCREQ #15: Read Last-Logged Fault Table Entry ........................................... 12-60 SVCREQ #16: Read Elapsed Time Clock ............................................................ 12-64 SVCREQ #18: Read I/O Override Status.............................................................. 12-65 SVCREQ #23: Read Master Checksum ................................................................ 12-66 SVCREQ #24: Reset Smart Module ..................................................................... 12-67 SVCREQ #26/30: Interrogate I/O ......................................................................... 12-68 SVCREQ #29: Read Elapsed Power Down Time ................................................. 12-69 SVCREQ #45: Skip Next Output & Input Scan.................................................... 12-70 SVCREQ #46: Fast Backplane Status Access....................................................... 12-71 SVCREQ #48: Reboot After Fatal Fault Auto Reset ............................................ 12-77 SVCREQ 49 Auto Reset Statistics ......................................................................... 12-79 PID ................................................................................................................................ 12-80 Parameters .............................................................................................................. 12-81 Valid Memory Types.............................................................................................. 12-81 PID Parameter Block.............................................................................................. 12-82 Operation of the PID Instruction ............................................................................ 12-84

Appendix A

Instruction Timing ............................................................................................. A-1 CPU Boolean Execution Times............................................................................... A-15 Instruction Sizes for CPUs 350 - 374 ...................................................................... A-15

Appendix B

Interpreting Fault Tables .................................................................................. B-1 PLC Fault Table............................................................................................................... B-1 Example..................................................................................................................... B-2 I/O Fault Table................................................................................................................. B-8

Appendix C

Instruction Mnemonics ...................................................................................... C-1

Appendix D

Key Functions ..................................................................................................... D-1

Appendix E

Using Floating-Point Numbers.......................................................................... E-1 Floating-Point Numbers .............................................................................................E-1 Real Number Terminology.........................................................................................E-2

GFK-0467M

Contents xiii

Page 14

Contents Internal Format of Floating-Point Numbers ...............................................................E-3 Values of Floating-Point Numbers.............................................................................E-4 Entering and Displaying Floating-Point Numbers .....................................................E-5 Errors in Floating-Point Numbers and Operations .....................................................E-6

Appendix F xiv

Programming Software Comparison................................................................ F-1

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

GFK-0467M

Page 15

Contents

Figure 2-1. PLC Sweep.................................................................................................................................. 2-3 Figure 2-2. Programmer Communications Window Flow Chart................................................................. 2-10 Figure 2-3. System Communications Window Flow Chart......................................................................... 2-11 Figure 2-4. PCM Communications with the PLC........................................................................................ 2-12 Figure 2-5. Power-Up Sequence................................................................................................................. 2-33 Figure 2-6. Time-Tick Contact Timing Diagram ........................................................................................ 2-38 Figure 2-7. Series 90-30 I/O Structure ....................................................................................................... 2-41 Figure 2-8. Series 90-30 I/O Modules ......................................................................................................... 2-42 Figure 12-1. Example of Pre-Trigger SER Sampling (for 512 Samples) ................................................. 12-15 Figure 12-2. Example of Mid-Trigger SER Sampling (for 512 Samples)................................................ 12-15 Figure 12-3. Post-Trigger SER Sampling (for 512 samples)................................................................... 12-16 Figure 12-4. Independent Term Algorithm (PIDIND) ............................................................................. 12-89

GFK-0467M

Contents xv

Page 16

Contents

Table 2-1. Sweep Time Contribution ........................................................................................................... 2-4 Table 2-2. I/O Scan Time Contributions (in milliseconds) for Series 90-30 35x, 36x and 37x CPUs.......... 2-5 Table 2-3. I/O Scan Time Contributions (in milliseconds) for the Series 90-30 CPU311 through CPU341 2-6 Table 2-4. Register References.................................................................................................................... 2-20 Table 2-5. Discrete References.................................................................................................................... 2-21 Table 2-6. Data Types ................................................................................................................................. 2-23 Table 2-7. System Status References........................................................................................................... 2-24 Table 2-8. Series 90-30 I/O Modules - Continued....................................................................................... 2-43 Table 2-8. Series 90-30 I/O Modules - Continued....................................................................................... 2-44 Table 3-1. Fault Summary ............................................................................................................................. 3-3 Table 3-2. Fault Actions ............................................................................................................................... 3-4 Table 4-1. Types of Contacts....................................................................................................................... 4-1 Table 4-2. Types of Coils ............................................................................................................................ 4-2 Table 12-1. Function Control Block for SER Example............................................................................ 12-19 Table 12-2. Sample Contents for SER Example....................................................................................... 12-21 Table 12-3. Data Block for SER Control Block Example ........................................................................ 12-21 Table 12-4. Service Request Functions .................................................................................................... 12-35 Table 12-5. Parameter Block for Read Extra Data Function .................................................................... 12-72 Table 12-6. Parameter Block for Write Data Function............................................................................. 12-73 Table 12-7. Parameter Block for Read/Write Data Function ................................................................... 12-74 Table 12-8. Error Codes ........................................................................................................................... 12-75 Table 12-9. Parameter Block for Reboot after Fatal Fault ....................................................................... 12-78 Table 12-10. Return Status Definitions for Reboot after Fatal Fault........................................................ 12-78 Table 12-11. Parameter Block for Auto Reset Statistics .......................................................................... 12-79 Table 12-12. Return Status Definitions for Auto Reset Statistics ............................................................ 12-79 Table 12-13. PID Parameters Overview ................................................................................................... 12-82 Table 12-13. PID Parameters Overview - Continued ............................................................................... 12-83 Table 12-14. PID Parameter Details......................................................................................................... 12-85 Table 12-14. PID Parameter Details - Continued ..................................................................................... 12-86 Table 12-14. PID Parameter Details - Continued ..................................................................................... 12-87 Table A-1. Instruction Timing, Standard Models....................................................................................... A-2 Table A-1. Instruction Timing, Standard Models-Continued...................................................................... A-3 Table A-1. Instruction Timing, Standard Models-Continued..................................................................... A-4 Table A-1. Instruction Timing, Standard Models-Continued...................................................................... A-5 Table A-2. Instruction Timing, 35x-36x Models......................................................................................... A-6 Table A-2. Instruction Timing, 35x-36x Models-Continued....................................................................... A-7 xvi

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

GFK-0467M

Page 17

Contents Table A-2. Instruction Timing, 35x-36x Models-Continued....................................................................... A-8 Table A-2. Instruction Timing, 35x-36x Models-Continued....................................................................... A-9 Table A-3. SER Function Block Timing ................................................................................................... A-10 Table A-4. Instruction Timing, 37x Models .............................................................................................. A-11 Table A-43. Instruction Timing, 37x Models-Continued .......................................................................... A-12 Table A-4. Instruction Timing, 37x Models-Continued ............................................................................ A-13 Table A-4. Instruction Timing, 37x Models-Continued ............................................................................ A-14 Table B-1. PLC Fault Groups...................................................................................................................... B-4 Table B-2. PLC Fault Actions ..................................................................................................................... B-5 Table B-3. Alarm Error Codes for PLC CPU Software Faults.................................................................... B-5 Table B-4. Alarm Error Codes for PLC Faults............................................................................................ B-6 Table B-5. PLC Fault Data – Illegal Boolean Opcode Detected ................................................................. B-7 Table B-6. PLC Fault Time Stamp .............................................................................................................. B-7 Table B-7. I/O Fault Table Format Indicator Byte ...................................................................................... B-9 Table B-8. I/O Reference Address............................................................................................................... B-9 Table B-9. I/O Reference Address Memory Type....................................................................................... B-9 Table B-10. I/O Fault Groups.................................................................................................................... B-10 Table B-11. I/O Fault Actions ................................................................................................................... B-11 Table B-12. I/O Fault Specific Data .......................................................................................................... B-11 Table B-13. I/O Fault Time Stamp ............................................................................................................ B-12 Table E-1. General Case of Power Flow for Floating-Point Math Operations.............................................E-8

GFK-0467M

Contents xvii