GE PACSystems RX7i User manual

GE
Automation & Controls
For Public Disclosure
Programmable Control Products
RX7i, RX3i and RSTi-EP CPU Programmer's Reference
Manual GFK-2950C
PACSystems*
RX7i, RX3i and RSTi-EP
CPU Programmer's
Reference Manual
GFK-2950C
February 2018

Legal Information
Warnings, Cautions, and Notes as Used in this Publication GFL-002
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.
These instructions do not purport to cover all details or variations in equipment, nor to provide for
every possible contingency to be met during installation, operation, and maintenance. The
information is supplied for informational purposes only, and GE makes no warranty as to the accuracy
of the information included herein. Changes, modifications, and/or improvements to equipment and
specifications are made periodically and these changes may or may not be reflected herein. It is
understood that GE may make changes, modifications, or improvements to the equipment referenced
herein or to the document itself at any time. This document is intended for trained personnel familiar
with the GE products referenced herein.
GE may have patents or pending patent applications covering subject matter in this document. The
furnishing of this document does not provide any license whatsoever to any of these patents.
GE PROVIDES THE FOLLOWING DOCUMENT AND THE INFORMATION INCLUDED THEREIN AS-IS AND
WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
IMPLIED STATUTORY WARRANTY OF MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE.
* indicates a trademark of General Electric Company and/or its subsidiaries.
All other trademarks are the property of their respective owners.
©Copyright 2014-2018 General Electric Company.
All Rights Reserved
If you purchased this product through an Authorized Channel Partner, please contact the seller directly.

Contact Information
General Contact Information
Online technical support and GlobalCare
www.geautomation.com/support
Additional information
www.geautomation.com
Solution Provider
Technical Support
If you have technical problems that cannot be resolved with the information in this manual, please contact us
by telephone or email, or on the web at www.geautomation.com/support
Americas
Phone
1-800-433-2682
International Americas Direct Dial
1-780-420-2010 (if toll free 800 option is unavailable)
Customer Care Email
Primary language of support
English
Europe, the Middle East, and Africa
Phone
+800-1-433-2682
EMEA Direct Dial
+420-296-183-331 (if toll free 800 option is unavailable or if
dialing from a mobile telephone)
Customer Care Email
digitalsupport.emea@ge.com
Primary languages of support
English, French, German, Italian, Czech, Spanish
Asia Pacific
Phone
+86-400-820-8208
+86-21-3877-7006 (India, Indonesia, and Pakistan)
Customer Care Email
Primary languages of support
Chinese, Japanese, English

GFK-2950C February 2018 i
Table of Contents
RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
Table of Contents...............................................................................................................................................i
Table of Figures...............................................................................................................................................xii
Chapter 1 Introduction .........................................................................................................................1
1.1 Revisions in this Manual...........................................................................................................2
1.2 PACSystems Programming and Configuration ..................................................................3
1.3 Migrating Series 90 Applications to PACSystems.............................................................3
1.4 PACSystems Documentation .................................................................................................4
Chapter 2 Program Organization .......................................................................................................5
2.1 Structure of a PACSystems Application Program.............................................................6
2.1.1 Blocks................................................................................................................................................................................6
2.1.2 Functions and Function Blocks ..............................................................................................................................6
2.1.3 How Blocks Are Called...............................................................................................................................................7
2.1.4 Nested Calls ...................................................................................................................................................................7
2.1.5 Types of Blocks .............................................................................................................................................................8
2.1.6 Local Data ....................................................................................................................................................................18
2.1.7 Parameter Passing Mechanisms ........................................................................................................................19
2.1.8 Languages.................................................................................................................................................................... 21
2.2 Controlling Program Execution............................................................................................24
2.3 Interrupt-Driven Blocks .........................................................................................................25
2.3.1 Interrupt Handling....................................................................................................................................................26
2.3.2 Timed Interrupts .......................................................................................................................................................27
2.3.3 I/O Interrupts..............................................................................................................................................................27
2.3.4 Module Interrupts.....................................................................................................................................................27
2.3.5 Interrupt Block Scheduling....................................................................................................................................28
Chapter 3 Program Data.....................................................................................................................29
3.1 Variables ....................................................................................................................................30
3.1.1 Mapped Variables .....................................................................................................................................................30
3.1.2 Symbolic Variables ...................................................................................................................................................31
3.1.3 I/O Variables ...............................................................................................................................................................32
3.1.4 Arrays ............................................................................................................................................................................34
3.1.5 Variable Indexes and Arrays................................................................................................................................. 34

Contents
ii PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
3.2 Reference Memory ..................................................................................................................37
3.2.1 Word (Register) References .................................................................................................................................37
3.2.2 Bit (Discrete) References .......................................................................................................................................39
3.3 User Reference Size and Default .........................................................................................40
3.3.1 %G User References and CPU Memory Locations.......................................................................................40
3.4 Genius Global Data.................................................................................................................. 41
3.5 Transitions and Overrides.....................................................................................................42
3.6 Retentiveness of Logic and Data.........................................................................................43
3.7 Data Scope ................................................................................................................................ 44
3.8 System Status References ....................................................................................................45
3.8.1 %S References............................................................................................................................................................46
3.8.2 %SA, %SB, and %SC References .........................................................................................................................47
3.8.3 Fault References .......................................................................................................................................................49
3.9 How Program Functions Handle Numerical Data............................................................51
3.9.1 Data Types ...................................................................................................................................................................51
3.9.2 Floating Point Numbers..........................................................................................................................................53
3.10 User Defined Types (UDTs) ...................................................................................................55
3.10.1 Working with UDTs ..................................................................................................................................................55
3.10.2 UDT Properties...........................................................................................................................................................55
3.10.3 UDT Limits....................................................................................................................................................................56
3.10.4 RUN Mode Store of UDTs.......................................................................................................................................56
3.10.5 UDT Operational Notes ..........................................................................................................................................57
3.11 Operands for Instructions..................................................................................................... 58
3.12 Word-for-Word Changes....................................................................................................... 60
3.12.1 Exception: Symbolic Variables.............................................................................................................................60
Chapter 4 Ladder Diagram (LD) Programming .............................................................................61
4.1 Advanced Math Functions.....................................................................................................62
4.1.1 Exponential/Logarithmic Functions ..................................................................................................................63
4.1.2 Square Root.................................................................................................................................................................64
4.1.3 Trig Functions.............................................................................................................................................................65
4.1.4 Inverse Trig –ASIN, ACOS, and ATAN ...............................................................................................................66
4.2 Bit Operation Functions ........................................................................................................ 67
4.2.1 Data Lengths for the Bit Operation Functions ..............................................................................................68
4.2.2 Bit Position ..................................................................................................................................................................69
4.2.3 Bit Sequencer .............................................................................................................................................................70
4.2.4 Bit Set, Bit Clear.........................................................................................................................................................73

Contents
GFK-2950C February 2018 iii
4.2.5 Bit Test ..........................................................................................................................................................................74
4.2.6 Logical AND, Logical OR, and Logical XOR.......................................................................................................75
4.2.7 Logical NOT .................................................................................................................................................................77
4.2.8 Masked Compare......................................................................................................................................................78
4.2.9 Rotate Bits ...................................................................................................................................................................81
4.2.10 Shift Bits .......................................................................................................................................................................82
4.3 Coils.............................................................................................................................................84
4.3.1 Coil Checking ..............................................................................................................................................................84
4.3.2 Graphical Representation of Coils .....................................................................................................................85
4.3.3 Set Coil, Reset Coil....................................................................................................................................................86
4.3.4 Transition Coils ..........................................................................................................................................................87
4.4 Contacts.....................................................................................................................................91
4.4.1 Continuation Contact..............................................................................................................................................92
4.4.2 Fault Contact..............................................................................................................................................................93
4.4.3 High and Low Alarm Contacts .............................................................................................................................94
4.4.4 No Fault Contact .......................................................................................................................................................95
4.4.5 Normally Closed and Normally Open Contacts............................................................................................96
4.4.6 Transition Contacts.................................................................................................................................................. 97
4.5 Control Functions ................................................................................................................. 102
4.5.1 Do I/O.......................................................................................................................................................................... 103
4.5.2 Edge Detectors ....................................................................................................................................................... 106
4.5.3 Drum ........................................................................................................................................................................... 108
4.5.4 For Loop..................................................................................................................................................................... 112
4.5.5 Mask I/O Interrupt ................................................................................................................................................. 114
4.5.6 Read Switch Position............................................................................................................................................ 115
4.5.7 Scan Set IO ............................................................................................................................................................... 116
4.5.8 Suspend I/O.............................................................................................................................................................. 117
4.5.9 Suspend or Resume I/O Interrupt ................................................................................................................... 118
4.6 Conversion Functions .......................................................................................................... 119
4.6.1 Convert Angles........................................................................................................................................................ 120
4.6.2 Convert UINT or INT to BCD4 ............................................................................................................................ 121
4.6.3 Convert DINT to BCD8 ......................................................................................................................................... 122
4.6.4 Convert BCD4, UINT, DINT, or REAL to INT .................................................................................................. 123
4.6.5 Convert BCD4, INT, DINT, or REAL to UINT .................................................................................................. 125
4.6.6 Convert BCD8, UINT, INT, REAL or LREAL to DINT .................................................................................... 127
4.6.7 Convert BCD4, BCD8, UINT, INT, DINT, and LREAL to REAL .................................................................. 129
4.6.8 Convert REAL to LREAL ....................................................................................................................................... 131
4.6.9 Convert DINT to LREAL........................................................................................................................................ 131
4.6.10 Truncate .................................................................................................................................................................... 132

Contents
iv PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
4.7 Counters ..................................................................................................................................133
4.7.1 Data Required for Counter Function Blocks ............................................................................................... 133
4.7.2 Down Counter ......................................................................................................................................................... 135
4.7.3 Up Counter ............................................................................................................................................................... 136
4.8 Data Move Functions............................................................................................................138
4.8.1 Array Size .................................................................................................................................................................. 140
4.8.2 Array Size Dimension Function Blocks.......................................................................................................... 141
4.8.3 Block Clear................................................................................................................................................................ 143
4.8.4 Block Move................................................................................................................................................................ 144
4.8.5 BUS_ Functions....................................................................................................................................................... 145
4.8.6 Communication Request (COMMREQ) ......................................................................................................... 151
4.8.7 Data Initialization................................................................................................................................................... 156
4.8.8 Data Initialize ASCII............................................................................................................................................... 157
4.8.9 Data Initialize Communications Request..................................................................................................... 158
4.8.10 Data Initialize DLAN .............................................................................................................................................. 159
4.8.11 Move............................................................................................................................................................................ 160
4.8.12 Move Data................................................................................................................................................................. 162
4.8.13 Move Data Explicit ................................................................................................................................................. 163
4.8.14 Move From Flat ....................................................................................................................................................... 164
4.8.15 Move to Flat ............................................................................................................................................................. 166
4.8.16 Shift Register ........................................................................................................................................................... 168
4.8.17 Size Of......................................................................................................................................................................... 170
4.8.18 Swap............................................................................................................................................................................ 171
4.9 Data Table Functions............................................................................................................172
4.9.1 Array Move................................................................................................................................................................ 174
4.9.2 Array Range.............................................................................................................................................................. 176
4.9.3 FIFO Read.................................................................................................................................................................. 178
4.9.4 FIFO Write................................................................................................................................................................. 180
4.9.5 LIFO Read .................................................................................................................................................................. 182
4.9.6 LIFO Write................................................................................................................................................................. 183
4.9.7 Search......................................................................................................................................................................... 184
4.9.8 Sort .............................................................................................................................................................................. 186
4.9.9 Table Read ................................................................................................................................................................ 187
4.9.10 Table Write............................................................................................................................................................... 188
4.10 Math Functions ......................................................................................................................189
4.10.1 Overflow .................................................................................................................................................................... 190
4.10.2 Absolute Value........................................................................................................................................................ 191
4.10.3 Add............................................................................................................................................................................... 192
4.10.4 Divide .......................................................................................................................................................................... 194
4.10.5 Modulus ..................................................................................................................................................................... 196
4.10.6 Multiply ...................................................................................................................................................................... 197
4.10.7 Scale............................................................................................................................................................................ 199
4.10.8 Subtract ..................................................................................................................................................................... 200

Contents
GFK-2950C February 2018 v
4.11 Program Flow Functions ..................................................................................................... 201
4.11.1 Argument Present ................................................................................................................................................. 202
4.11.2 Call ............................................................................................................................................................................... 203
4.11.3 Comment .................................................................................................................................................................. 206
4.11.4 JumpN........................................................................................................................................................................ 207
4.11.5 Master Control Relay/End Master Control Relay ...................................................................................... 208
4.11.6 Wires........................................................................................................................................................................... 210
4.12 Relational Functions ............................................................................................................ 211
4.12.1 Compare.................................................................................................................................................................... 212
4.12.2 Equal, Not Equal, Greater or Equal, Greater Than, Less or Equal, Less Than................................. 213
4.12.3 EQ_DATA ................................................................................................................................................................... 214
4.12.4 Range.......................................................................................................................................................................... 215
4.13 Timers ...................................................................................................................................... 216
4.13.1 Timed Contacts ...................................................................................................................................................... 216
4.13.2 Timer Function Blocks ......................................................................................................................................... 217
4.13.3 Standard Timer Function Blocks...................................................................................................................... 228
Chapter 5 Function Block Diagram (FBD) ............................................................................................. 233
5.1 Note on Reentrancy ............................................................................................................. 234
5.2 Advanced Math Functions.................................................................................................. 235
5.2.1 EXPT Function ......................................................................................................................................................... 237
5.3 Bit Operation Functions...................................................................................................... 238
5.3.1 Logical AND, Logical OR, and Logical XOR.................................................................................................... 240
5.3.2 Logical NOT .............................................................................................................................................................. 242
5.4 Comments .............................................................................................................................. 243
5.4.1 Text Block.................................................................................................................................................................. 243
5.5 Comparison Functions......................................................................................................... 244
5.5.1 Equal, Not Equal, Greater or Equal, Greater Than, Less or Equal, Less Than................................. 246
5.6 Control Functions ................................................................................................................. 247
5.7 Counters.................................................................................................................................. 249
5.8 Data Move Functions ........................................................................................................... 250
5.8.1 Fan Out ...................................................................................................................................................................... 254
5.8.2 Move Data................................................................................................................................................................. 255
5.9 Math Functions...................................................................................................................... 257
5.9.1 Overflow .................................................................................................................................................................... 258
5.9.2 Add............................................................................................................................................................................... 259
5.9.3 Divide.......................................................................................................................................................................... 260
5.9.4 Modulus ..................................................................................................................................................................... 261

Contents
vi PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
5.9.5 Multiply ...................................................................................................................................................................... 262
5.9.6 Negate ........................................................................................................................................................................ 263
5.9.7 Subtract ..................................................................................................................................................................... 264
5.10 Program Flow Functions......................................................................................................265
5.11 Timers.......................................................................................................................................266
5.11.1 Built-in Timer Function Blocks.......................................................................................................................... 266
5.11.2 Standard Timer Function Blocks...................................................................................................................... 267
5.12 Type Conversion Functions.................................................................................................268
5.12.1 Convert WORD to INT .......................................................................................................................................... 270
5.12.2 Convert WORD to UINT ....................................................................................................................................... 271
5.12.3 Convert DWORD to DINT.................................................................................................................................... 272
5.12.4 Convert INT or UINT to WORD.......................................................................................................................... 273
5.12.5 Convert DINT to DWORD.................................................................................................................................... 274
Chapter 6 Service Request Function ......................................................................................................275
6.1 Operation of SVC_REQ Function........................................................................................276
6.1.1 Ladder Diagram ...................................................................................................................................................... 276
6.1.2 Function Block Diagram ...................................................................................................................................... 277
6.2 SVC_REQ 1: Change/Read Constant Sweep Timer ........................................................278
6.2.1 To disable Constant Sweep mode: ................................................................................................................. 278
6.2.2 To enable Constant Sweep mode and use the old timer value:.......................................................... 278
6.2.3 To enable Constant Sweep mode and use a new timer value:............................................................ 278
6.2.4 To change the timer value without changing the selection for sweep mode state:................... 278
6.2.5 To read the current timer state and value without changing either:................................................ 279
6.3 SVC_REQ 2: Read Window Modes and Time Values......................................................280
6.4 SVC_REQ 3: Change Controller Communications Window Mode..............................281
6.4.1 To disable the controller communications window: ............................................................................... 281
6.4.2 To re-enable or change the controller communications window mode: ........................................ 281
6.5 SVC_REQ 4: Change Backplane Communications Window Mode and Timer Value
282
6.5.1 To disable the Backplane Communications window:.............................................................................. 282
6.5.2 To enable the Backplane Communications window mode:.................................................................. 282
6.6 SVC_REQ 5: Change Background Task Window Mode and Timer Value ..................283
6.6.1 To disable the Background Task window:.................................................................................................... 283
6.6.2 To enable the Background Task window mode:........................................................................................ 283
6.7 SVC_REQ 6: Change/Read Number of Words to Checksum ........................................284
6.7.1 To read the word count: ...................................................................................................................................... 284
6.7.2 To set a new word count:.................................................................................................................................... 284

Contents
GFK-2950C February 2018 vii
6.8 SVC_REQ 7: Read or Change the Time-of-Day Clock .................................................... 286
6.8.1 Parameter Block Formats................................................................................................................................... 286
6.9 SVC_REQ 8: Reset Watchdog Timer ................................................................................. 294
6.10 SVC_REQ 9: Read Sweep Time from Beginning of Sweep ........................................... 295
6.11 SVC_REQ 10: Read Target Name........................................................................................ 296
6.12 SVC_REQ 11: Read Controller ID ....................................................................................... 297
6.13 SVC_REQ 12: Read Controller Run State......................................................................... 298
6.14 SVC_REQ 13: Shut Down (STOP) CPU............................................................................... 299
6.15 SVC_REQ 14: Clear Controller or I/O Fault Table........................................................... 300
6.16 SVC_REQ 15: Read Last-Logged Fault Table Entry........................................................ 301
6.17 SVC_REQ 16: Read Elapsed Time Clock............................................................................ 304
6.18 SVC_REQ 17: Mask/Unmask I/O Interrupt ...................................................................... 306
6.18.1 Masking/Unmasking Module Interrupts ....................................................................................................... 306
6.19 SVC_REQ 18: Read I/O Forced Status............................................................................... 308
6.20 SVC_REQ 19: Set Run Enable/Disable............................................................................... 309
6.21 SVC_REQ 20: Read Fault Tables ......................................................................................... 310
6.21.1 Non-Extended Formats....................................................................................................................................... 311
6.21.2 Extended Formats ................................................................................................................................................. 314
6.22 SVC_REQ 21: User-Defined Fault Logging ....................................................................... 319
6.23 SVC_REQ 22: Mask/Unmask Timed Interrupts .............................................................. 321
6.24 SVC_REQ 23: Read Master Checksum .............................................................................. 322
6.25 SVC_REQ 24: Reset Module................................................................................................. 323
6.26 SVC_REQ 25: Disable/Enable EXE Block and Standalone C Program Checksums . 324
6.27 SVC_REQ 29: Read Elapsed Power Down Time.............................................................. 325
6.28 SVC_REQ 32: Suspend/Resume I/O Interrupt ................................................................ 326
6.29 SVC_REQ 45: Skip Next I/O Scan ....................................................................................... 327
6.30 SVC_REQ 50: Read Elapsed Time Clock............................................................................ 328
6.31 SVC_REQ 51: Read Sweep Time from Beginning of Sweep......................................... 330

Contents
viii PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
6.32 SVC_REQ 56: Logic Driven Read of Nonvolatile Storage..............................................331
6.32.1 Discrete Memory.................................................................................................................................................... 331
6.32.2 Storage Disabled Conditions............................................................................................................................. 331
6.32.3 Maximum of One Active Instruction .............................................................................................................. 331
6.32.4 ENO and Power Flow To The Right ................................................................................................................. 331
6.32.5 Parameter Block..................................................................................................................................................... 332
6.33 SVC_REQ 57: Logic Driven Write to Nonvolatile Storage............................................335
6.33.1 Length of Data Written........................................................................................................................................ 335
6.33.2 Write Frequency..................................................................................................................................................... 335
6.33.3 Erase Cycles ............................................................................................................................................................. 336
6.33.4 Discrete Memory.................................................................................................................................................... 336
6.33.5 Retentiveness.......................................................................................................................................................... 336
6.33.6 Maximum of One Active Instruction .............................................................................................................. 336
6.33.7 Storage Disabled Conditions............................................................................................................................. 336
6.33.8 Error Checking......................................................................................................................................................... 336
6.33.9 Fragmentation ........................................................................................................................................................ 337
6.33.10 When nonvolatile storage is full.................................................................................................................... 337
6.33.11 Equality.................................................................................................................................................................... 338
6.33.12 Redundancy........................................................................................................................................................... 338
6.33.13 ENO and Power Flow to the Right ................................................................................................................ 338
6.33.14 Parameter Block for SVC_REQ 57................................................................................................................. 339
Chapter 7 PID Built-In Function Block....................................................................................................343
7.1 Operands of the PID Function ............................................................................................344
7.1.1 Operands for LD Version of PID Function Block ........................................................................................ 344
7.1.2 Operands for FBD Version of PID Function Block ..................................................................................... 345
7.2 Reference Array for the PID Function ..............................................................................346
7.2.1 Scaling Input and Outputs.................................................................................................................................. 346
7.2.2 Reference Array Parameters............................................................................................................................. 347
7.3 Operation of the PID Function ...........................................................................................353
7.3.1 Automatic Operation ........................................................................................................................................... 353
7.3.2 Manual Operation.................................................................................................................................................. 353
7.3.3 Time Interval for the PID Function .................................................................................................................. 354
7.4 PID Algorithm Selection (PIDISA or PIDIND) and Gain Calculations ........................355
7.4.1 Derivative Term ...................................................................................................................................................... 356
7.4.2 Error Term Mode .................................................................................................................................................... 356
7.4.3 Derivative Action on PV Bit ................................................................................................................................ 356
7.4.4 Combined Operation of Error Term and Derivative Action Modes.................................................... 356
7.4.5 CV Bias Term............................................................................................................................................................ 357
7.4.6 CV Amplitude and Rate Limits.......................................................................................................................... 357
7.4.7 Sample Period and PID Function Block Scheduling.................................................................................. 358

Contents
GFK-2950C February 2018 ix
7.5 Determining the Process Characteristics....................................................................... 359
7.6 Setting Tuning Loop Gains.................................................................................................. 360
7.6.1 Basic Iterative Tuning Approach...................................................................................................................... 360
7.6.2 Setting Loop Gains Using the Ziegler and Nichols Tuning Approach................................................ 361
7.6.3 Ideal Tuning Method ............................................................................................................................................. 362
7.7 PID Example ........................................................................................................................... 363
7.7.1 Reference Array Initialization using %M00006.......................................................................................... 363
Chapter 8 Structured Text (ST) Programming .................................................................................... 365
8.1 Language Overview .............................................................................................................. 365
8.1.1 Statements............................................................................................................................................................... 365
8.1.2 Expressions .............................................................................................................................................................. 365
8.1.3 Operators.................................................................................................................................................................. 366
8.1.4 Structured Text Syntax........................................................................................................................................ 367
8.2 Statement Types................................................................................................................... 368
8.2.1 Assignment Statement ....................................................................................................................................... 369
8.2.2 Function Call ............................................................................................................................................................ 370
8.2.3 RETURN Statement............................................................................................................................................... 373
8.2.4 IF Statement ............................................................................................................................................................ 374
8.2.5 CASE Statement..................................................................................................................................................... 375
8.2.6 FOR … DO Statements.......................................................................................................................................... 377
8.2.7 WHILE Statement.................................................................................................................................................. 379
8.2.8 REPEAT Statement................................................................................................................................................ 380
8.2.9 ARG_PRES Statement .......................................................................................................................................... 381
8.2.10 Exit Statement ........................................................................................................................................................ 382
Chapter 9 Diagnostics ............................................................................................................................... 383
9.1 Fault Handling Overview..................................................................................................... 384
9.1.1 System Response to Faults ............................................................................................................................... 384
9.1.2 Fault Tables.............................................................................................................................................................. 384
9.1.3 Fault Actions and Fault Action Configuration ............................................................................................ 385
9.2 Using the Fault Tables ......................................................................................................... 386
9.2.1 Controller Fault Table .......................................................................................................................................... 386
9.2.2 I/O Fault Table......................................................................................................................................................... 388
9.3 System Handling of Faults.................................................................................................. 390
9.3.1 System Fault References .................................................................................................................................... 391
9.3.2 Using Fault Contacts ............................................................................................................................................ 394
9.3.3 Using Point Faults.................................................................................................................................................. 396
9.3.4 Using Alarm Contacts .......................................................................................................................................... 396

Contents
x PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
9.4 Controller Fault Descriptions and Corrective Actions ................................................397
9.4.1 Controller Fault Groups....................................................................................................................................... 397
9.4.2 Loss of or Missing Rack (Group 1) ................................................................................................................... 398
9.4.3 Loss of or Missing Option Module (Group 4)............................................................................................... 399
9.4.4 Addition of, or Extra Rack (Group 5)............................................................................................................... 399
9.4.5 Reset of, Addition of, or Extra Option Module (Group 8) ....................................................................... 400
9.4.6 System Configuration Mismatch (Group 11) .............................................................................................. 401
9.4.7 System Bus Error (Group 12) ............................................................................................................................ 407
9.4.8 CPU Hardware Failure (Group 13) .................................................................................................................. 408
9.4.9 Module Hardware Failure (Group 14)............................................................................................................ 409
9.4.10 Option Module Software Failure (Group 16) .............................................................................................. 410
9.4.11 Program or Block Checksum Failure (Group 17)....................................................................................... 411
9.4.12 Battery Status (Group 18) .................................................................................................................................. 412
9.4.13 Constant Sweep Time Exceeded (Group 19).............................................................................................. 413
9.4.14 System Fault Table Full (Group 20) ................................................................................................................ 413
9.4.15 I/O Fault Table Full (Group 21) ......................................................................................................................... 413
9.4.16 User Application Fault (Group 22) .................................................................................................................. 414
9.4.17 CPU Over-Temperature (Group 24) ............................................................................................................... 416
9.4.18 Power Supply Fault (Group 25) ........................................................................................................................ 416
9.4.19 No User Program on Power-Up (Group 129) .............................................................................................. 416
9.4.20 Corrupted User Program on Power-Up (Group 130)............................................................................... 417
9.4.21 Window Completion Failure (Group 131).................................................................................................... 417
9.4.22 Password Access Failure (Group 132)........................................................................................................... 418
9.4.23 Null System Configuration for RUN Mode (Group 134).......................................................................... 418
9.4.24 CPU System Software Failure (Group 135) ................................................................................................. 419
9.4.25 Communications Failure During Store (Group 137) ................................................................................ 421
9.4.26 Non-Critical CPU Software Event (Group 140) .......................................................................................... 422
9.5 I/O Fault Descriptions and Corrective Actions ..............................................................424
9.5.1 Fault Extra Data...................................................................................................................................................... 424
9.5.2 I/O Fault Groups ..................................................................................................................................................... 424
9.5.3 I/O Fault Categories .............................................................................................................................................. 425
9.5.4 Circuit Faults (Category 1) ................................................................................................................................. 428
9.5.5 Loss of Block (Category 2) .................................................................................................................................. 433
9.5.6 Addition of Block (Category 3).......................................................................................................................... 434
9.5.7 I/O Bus Fault (Category 6) .................................................................................................................................. 435
9.5.8 Module Fault (Category 8).................................................................................................................................. 436
9.5.9 Addition of IOC (Category 9) ............................................................................................................................. 437
9.5.10 Loss of or Missing IO Controller (Category 10) .......................................................................................... 437
9.5.11 IOC (I/O Controller) Software Fault (Category 11)................................................................................... 438
9.5.12 Forced and Unforced Circuit (Categories 12 and 13) .............................................................................. 438
9.5.13 Loss of or Missing I/O Module (Category 14).............................................................................................. 439
9.5.14 Addition of I/O Module (Category 15)............................................................................................................ 439
9.5.15 Extra I/O Module (Category 16) ....................................................................................................................... 439
9.5.16 Extra Block (Category 17)................................................................................................................................... 440
9.5.17 IOC Hardware Failure (Category 18).............................................................................................................. 440
9.5.18 GBC Stopped Reporting Faults (Category 19)............................................................................................ 440

Contents
GFK-2950C February 2018 xi
9.5.19 GBC Software Exception (Category 21)........................................................................................................ 441
9.5.20 Block Switch (Category 22)................................................................................................................................ 442
9.5.21 Reset of IOC (Category 27) ................................................................................................................................ 442
9.6 Diagnostic Logic Blocks (DLBs) ......................................................................................... 443
9.6.1 DLB Operation......................................................................................................................................................... 444
9.6.2 Executing DLBs ....................................................................................................................................................... 446
9.6.3 Diagnostic Logic Block (DLB) Example .......................................................................................................... 450

Contents
xii PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
Table of Figures
Figure 1: Conditional Block Call_________________________________________________________________________________8
Figure 2: Block Call with Parameters ___________________________________________________________________________9
Figure 3: Defining Member Variables for a User-Defined Function Block _______________________________________ 11
Figure 4: Creating a User-Defined Function Block _____________________________________________________________ 12
Figure 5: Use of User-Defined Function Block in Ladder Logic _________________________________________________ 12
Figure 6: Display of Instance Data Structures _________________________________________________________________ 12
Figure 7: Calling an External Block in Ladder Logic ____________________________________________________________ 15
Figure 8: Relationship of %L & %P to Program Blocks _________________________________________________________ 18
Figure 9: Local Data (%L) Usage by Program Blocks __________________________________________________________ 18
Figure 10: Parameter Passing Example _______________________________________________________________________ 19
Figure 11: Explanation of Ladder Diagram Rung ______________________________________________________________ 21
Figure 12: Illustration of Function Block Diagram _____________________________________________________________ 22
Figure 13: Conflict Avoidance when using Interrupt-Driven Blocks_____________________________________________ 26
Figure 14: PID in Ladder Diagram ___________________________________________________________________________ 343
Figure 15: PID in Function Block Diagram____________________________________________________________________ 343
Figure 16: PID_IND Diagram_________________________________________________________________________________ 355
Figure 17: PID Example Logic________________________________________________________________________________ 364
Figure 18: Controller Fault Table Display ____________________________________________________________________ 386
Figure 19: Detail Information for Controller Fault Entry ______________________________________________________ 387
Figure 20: I/O Fault Table Display ___________________________________________________________________________ 388
Figure 21: I/O Fault Table Fault Entry Detail Display _________________________________________________________ 389
Figure 22: Diagnostic Logic Blocks (DLBs) assigned to Target in MPE
________________________________________ 444
Figure 23: Properties of Diagnostic Logic Block (DLB) ________________________________________________________ 446
Figure 24: DLB Heartbeat Setting____________________________________________________________________________ 446
Figure 25: Drag DLB from Toolchest and Drop in Active Blocks Node _________________________________________ 452
Figure 26: Set DLB Execution Mode to Sweep (Properties Tab) _______________________________________________ 452
Figure 27: Start DLB Execution ______________________________________________________________________________ 452
Figure 28: Initialize Local Symbolic Variables ________________________________________________________________ 453
Figure 29: DLB Icon and Status Bar after Execution has Commenced_________________________________________ 453
Figure 30: Data Watch for DLB Variables ____________________________________________________________________ 453

GFK-2950C February 2018 1
Chapter 1 Introduction
This manual contains general information about programming a PACSystems CPU. It also provides
detailed descriptions of specific programming requirements.
For a general introduction to the PACSystems family of products, including new features, product
overviews, and specifications, see PACSystems RX7i, RX3i and RSTi-EP CPU Reference Manual,
GFK-2222.
Programming Features are described in Chapter 2 through Chapter 8.
▪Elements of an Application Program: Chapter 2
▪Program Data: Chapter 3
▪Ladder Diagram (LD) instruction set reference: Chapter 4
▪Function Block Diagram (FBD) instruction set reference: Chapter 5
▪The Service Request Function: Chapter 6
▪The PID Function: Chapter 7
▪Structured Text (ST): Chapter 8
Diagnostics, including Fault Handling and Diagnostic Logic Blocks are described in Chapter 9.

Chapter 1. Introduction
2 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
1.1 Revisions in this Manual
Rev
Date
Description
C
Feb-
2018
Updated for CPE302 throughout.
Updated SVC_REQ 20 for newly-implemented feature that makes it possible to uniquely
identify remote PROFINET IO faults recorded in the IO Fault Table by Remote Rack,
Remote Slot, Remote Sub-Slot, and Device ID. Requires RX3i firmware version 9.40 or later.
B
Oct-
2017
Added Redundancy and FA_OK System Bits (%S) Section 3.8.1.
A
May-
2017
Changed the document Title and the contact information.
Updated the Titles of the GFK’s wherever applicable.
-
May-
2015
PACSystems RX7i and RX3i CPU Reference Manual GFK-2222U Chapters 5-11 & Chapter
14 form the content of this new manual, the PACSystems RX7i and RX3i CPU
Programmer’s Reference Manual,GFK-2950.
GFK-2222V and later versions defer to GFK-2950 for CPU programming content.

Chapter 1. Introduction
GFK-2950C February 2018 3
1.2 PACSystems Programming and Configuration
Proficy* Machine Edition (PME) programming software provides a universal engineering
development environment for all programming, configuration and diagnostics of PACSystems. A
PACSystems CPU is programmed and configured using the programming software to perform
process and discrete automation for various applications. The supported programming languages
are documented in this manual.
1.3 Migrating Series 90 Applications to PACSystems
The PACSystems control system provides cost-effective expansion of existing systems. Support for
existing Series 90 modules, expansion racks and remote racks protects your hardware investment.
You can upgrade on your timetable without disturbing panel wiring.
•The RX3i supports most Series 90-30 modules, expansion racks, and remote racks. For a list
of supported I/O, Communications, Motion, and Intelligent modules, see the PACSystems
RX3i System Manual, GFK-2314.
•The RX7i supports most existing Series 90-70 modules, expansion racks and Genius
networks. For a list of supported I/O, Communications, and Intelligent modules, see the
PACSystems RX7i Installation Manual, GFK-2223.
•Conversion of Series 90-70 and Series 90-30 programs preserves existing development
effort.
•Conversion of VersaPro and Logicmaster applications to Machine Edition allows smooth
transition to PACSystems.

Chapter 1. Introduction
4 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
1.4 PACSystems Documentation
PACSystems Manuals
PACSystems RX7i, RX3i and RSTi-EP CPU Reference Manual
GFK-2222
PACSystems RX7i, RX3i and RSTi-EP CPU Programmer’s Reference Manual
GFK-2950
PACSystems RX7i, RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual
GFK-2224
PACSystems TCP/IP Ethernet Communications Station Manager User Manual
GFK-2225
C Programmer’s Toolkit for PACSystems
GFK-2259
PACSystems Memory Xchange Modules User’s Manual
GFK-2300
PACSystems Hot Standby CPU Redundancy User Manual
GFK-2308
PACSystems Battery and Energy Pack Manual
GFK-2741
Proficy Machine Edition Logic Developer Getting Started
GFK-1918
Proficy Process Systems Getting Started Guide
GFK-2487
PACSystems RXi, RX3i, RX7i and RSTi-EP Controller Secure Deployment Guide
GFK-2830
PACSystems RX3i & RSTi-EP PROFINET I/O Controller Manual
GFK-2571
RX3i Manuals
PACSystems RX3i System Manual
GFK-2314
DSM324i Motion Controller for PACSystems RX3i and Series 90-30 User’s Manual
GFK-2347
PACSystems RX3i PROFIBUS Modules User’s Manual
GFK-2301
PACSystems RX3i Max-On Hot Standby Redundancy User’s Manual
GFK-2409
PACSystems RX3i Ethernet Network Interface Unit User’s Manual
GFK-2439
PACMotion Multi-Axis Motion Controller User’s Manual
GFK-2448
PACSystems RX3i PROFINET Scanner Manual
GFK-2737
PACSystems RX3i CEP PROFINET Scanner User Manual
GFK-2883
PACSystems RX3i Serial Communications Modules User’s Manual
GFK-2460
PACSystems RX3i Genius Communications Gateway User Manual
GFK-2892
PACSystems RX3i DNP3 Outstation Module IC695EDS001 User’s Manual
GFK-2911
PACSystems RX3i IEC 104 Server Module IC695EIS001User’s Manual
GFK-2949
RX7i Manuals
PACSystems RX7i Installation Manual
GFK-2223
PACSystems RX7i User's Guide to Integration of VME Modules
GFK-2235
Series 90-70 Genius Bus Controller User’s Manual
GFK-2017
Series 90 Manuals
Series 90-30 Genius Bus Controller User’s Manual
GFK-1034
Distributed I/O Systems Manuals
Genius I/O System User’s Manual
GEK-90486-1
Genius I/O Analog and Discrete Blocks User’s Manual
GEK-90486-2
In addition to these manuals, datasheets and product update documents describe individual
modules and product revisions. The most recent PACSystems documentation is available on the
GE Automation & Control support website http://geautomation.com/support.

GFK-2950C February 2018 5
Chapter 2 Program Organization
This chapter provides information about the operation of application programs in a PACSystems
CPU.
▪Structure of the Application Program
▪Controlling Program Execution
▪Interrupt-Driven Blocks
Other manuals for PACSystems RX7i
1
This manual suits for next models
2
Table of contents
Other GE Controllers manuals