Contents - Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Chapter 1 Introduction
- Revisions in this Manual
- PACSystems Programming and Configuration
- PACSystems Documentation
- Chapter 2 Program Organization
- Structure of a PACSystems Application Program
- How Blocks Are Called
- Types of Blocks
- Figure 2: Block Call with Parameters
- Figure 3: Defining Member Variables for a User-Defined Function Block
- Figure 4: Creating a User-Defined Function Block
- Figure 7: Calling an External Block in Ladder Logic
- Local Data
- Parameter Passing Mechanisms
- Languages
- Figure 12: Illustration of Function Block Diagram
- Controlling Program Execution
- Interrupt-Driven Blocks
- Interrupt Handling
- Timed Interrupts
- Interrupt Block Scheduling
- Chapter 3 Program Data
- Variables
- Symbolic Variables
- I/O Variables
- Arrays
- Reference Memory
- Bit (Discrete) References
- User Reference Size and Default
- Genius Global Data
- Transitions and Overrides
- Retentiveness of Logic and Data
- Data Scope
- System Status References
- S References
- SA, %SB, and %SC References
- Fault References
- How Program Functions Handle Numerical Data
- Floating Point Numbers
- User Defined Types (UDTs)
- UDT Limits
- UDT Operational Notes
- Operands for Instructions
- Word-for-Word Changes
- Chapter 4 Ladder Diagram (LD) Programming
- Advanced Math Functions
- Exponential/Logarithmic Functions
- Square Root
- Trig Functions
- Inverse Trig – ASIN, ACOS, and ATAN
- Bit Operation Functions
- Data Lengths for the Bit Operation Functions
- Bit Position
- Bit Sequencer
- Bit Set, Bit Clear
- Bit Test
- Logical AND, Logical OR, and Logical XOR
- Logical NOT
- Masked Compare
- Rotate Bits
- Shift Bits
- Coils
- Graphical Representation of Coils
- Set Coil, Reset Coil
- Transition Coils
- Contacts
- Continuation Contact
- Fault Contact
- High and Low Alarm Contacts
- No Fault Contact
- Normally Closed and Normally Open Contacts
- Transition Contacts
- Control Functions
- Do I/O
- Edge Detectors
- Drum
- For Loop
- Mask I/O Interrupt
- Read Switch Position
- Scan Set IO
- Suspend I/O
- Suspend or Resume I/O Interrupt
- Conversion Functions
- Convert Angles
- Convert UINT or INT to BCD4
- Convert DINT to BCD8
- Convert BCD4, UINT, DINT, or REAL to INT
- Convert BCD4, INT, DINT, or REAL to UINT
- Convert BCD8, UINT, INT, REAL or LREAL to DINT
- Convert BCD4, BCD8, UINT, INT, DINT, and LREAL to REAL
- Convert REAL to LREAL
- Truncate
- Counters
- Down Counter
- Up Counter
- Data Move Functions
- Array Size
- Array Size Dimension Function Blocks
- Block Clear
- Block Move
- BUS_ Functions
- Communication Request (COMMREQ)
- Data Initialization
- Data Initialize ASCII
- Data Initialize Communications Request
- Data Initialize DLAN
- Move
- Move Data
- Move Data Explicit
- Move From Flat
- Move to Flat
- Shift Register
- Size Of
- Swap
- Data Table Functions
- Array Move
- Array Range
- FIFO Read
- FIFO Write
- LIFO Read
- LIFO Write
- Search
- Sort
- Table Read
- Table Write
- Math Functions
- Overflow
- Absolute Value
- Divide
- Modulus
- Multiply
- Scale
- Subtract
- Program Flow Functions
- Argument Present
- Call
- Comment
- JumpN
- Master Control Relay/End Master Control Relay
- Wires
- Relational Functions
- Compare
- Equal, Not Equal, Greater or Equal, Greater Than, Less or Equal, Less Than
- EQ_DATA
- Range
- Timers
- Timer Function Blocks
- Standard Timer Function Blocks
- Chapter 5 Function Block Diagram (FBD)
- Note on Reentrancy
- EXPT Function
- Comments
- Comparison Functions
- Fan Out
- Negate
- Type Conversion Functions
- Convert WORD to INT
- Convert WORD to UINT
- Convert DWORD to DINT
- Convert INT or UINT to WORD
- Convert DINT to DWORD
- Chapter 6 Service Request Function
- Operation of SVC_REQ Function
- Function Block Diagram
- SVC_REQ 1: Change/Read Constant Sweep Timer
- To read the current timer state and value without changing either
- SVC_REQ 2: Read Window Modes and Time Values
- SVC_REQ 3: Change Controller Communications Window Mode
- To disable the Backplane Communications window
- SVC_REQ 5: Change Background Task Window Mode and Timer Value
- SVC_REQ 6: Change/Read Number of Words to Checksum
- SVC_REQ 7: Read or Change the Time-of-Day Clock
- SVC_REQ 8: Reset Watchdog Timer
- SVC_REQ 9: Read Sweep Time from Beginning of Sweep
- SVC_REQ 10: Read Target Name
- SVC_REQ 11: Read Controller ID
- SVC_REQ 12: Read Controller Run State
- SVC_REQ 13: Shut Down (STOP) CPU
- SVC_REQ 14: Clear Controller or I/O Fault Table
- SVC_REQ 15: Read Last-Logged Fault Table Entry
- SVC_REQ 16: Read Elapsed Time Clock
- SVC_REQ 17: Mask/Unmask I/O Interrupt
- SVC_REQ 18: Read I/O Forced Status
- SVC_REQ 19: Set Run Enable/Disable
- SVC_REQ 20: Read Fault Tables
- Non-Extended Formats
- Extended Formats
- SVC_REQ 21: User-Defined Fault Logging
- SVC_REQ 22: Mask/Unmask Timed Interrupts
- SVC_REQ 23: Read Master Checksum
- SVC_REQ 24: Reset Module
- SVC_REQ 25: Disable/Enable EXE Block and Standalone C Program Checksums
- SVC_REQ 29: Read Elapsed Power Down Time
- SVC_REQ 32: Suspend/Resume I/O Interrupt
- SVC_REQ 45: Skip Next I/O Scan
- SVC_REQ 50: Read Elapsed Time Clock
- SVC_REQ 51: Read Sweep Time from Beginning of Sweep
- SVC_REQ 56: Logic Driven Read of Nonvolatile Storage
- Parameter Block
- SVC_REQ 57: Logic Driven Write to Nonvolatile Storage
- Erase Cycles
- Fragmentation
- Equality
- Parameter Block for SVC_REQ 57
- Chapter 7 PID Built-In Function Block
- Operands of the PID Function
- Operands for FBD Version of PID Function Block
- Reference Array for the PID Function
- Reference Array Parameters
- Operation of the PID Function
- Time Interval for the PID Function
- PID Algorithm Selection (PIDISA or PIDIND) and Gain Calculations
- Derivative Term
- CV Bias Term
- Sample Period and PID Function Block Scheduling
- Determining the Process Characteristics
- Setting Tuning Loop Gains
- Setting Loop Gains Using the Ziegler and Nichols Tuning Approach
- Ideal Tuning Method
- PID Example
- Figure 17: PID Example Logic
- Language Overview
- Operators
- Structured Text Syntax
- Statement Types
- Assignment Statement
- Function Call
- RETURN Statement
- IF Statement
- CASE Statement
- FOR ... DO Statements
- WHILE Statement
- REPEAT Statement
- ARG_PRES Statement
- Exit Statement
- Chapter 9 Diagnostics
- Fault Handling Overview
- Fault Actions and Fault Action Configuration
- Using the Fault Tables
- Figure 19: Detail Information for Controller Fault Entry
- I/O Fault Table
- Figure 21: I/O Fault Table Fault Entry Detail Display
- System Handling of Faults
- System Fault References
- Using Fault Contacts
- Using Point Faults
- Controller Fault Descriptions and Corrective Actions
- Loss of or Missing Rack (Group 1)
- Loss of or Missing Option Module (Group 4)
- Reset of, Addition of, or Extra Option Module (Group 8)
- System Configuration Mismatch (Group 11)
- System Bus Error (Group 12)
- CPU Hardware Failure (Group 13)
- Module Hardware Failure (Group 14)
- Option Module Software Failure (Group 16)
- Program or Block Checksum Failure (Group 17)
- Battery Status (Group 18)
- Constant Sweep Time Exceeded (Group 19)
- CPU Over-Temperature (Group 24)
- Corrupted User Program on Power-Up (Group 130)
- Password Access Failure (Group 132)
- CPU System Software Failure (Group 135)
- Communications Failure During Store (Group 137)
- Non-Critical CPU Software Event (Group 140)
- I/O Fault Descriptions and Corrective Actions
- I/O Fault Categories
- Circuit Faults (Category 1)
- Loss of Block (Category 2)
- Addition of Block (Category 3)
- I/O Bus Fault (Category 6)
- Module Fault (Category 8)
- Addition of IOC (Category 9)
- IOC (I/O Controller) Software Fault (Category 11)
- Loss of or Missing I/O Module (Category 14)
- Extra Block (Category 17)
- GBC Software Exception (Category 21)
- Block Switch (Category 22)
- Diagnostic Logic Blocks (DLBs)
- DLB Operation
- Executing DLBs
- Diagnostic Logic Block (DLB) Example
- Figure 25: Drag DLB from Toolchest and Drop in Active Blocks Node
- Figure 28: Initialize Local Symbolic Variables
|
GFK-2950C February 2018 iTable of ContentsRX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950CTable of Contents ............................................................................................................................................... iTable of Figures ...............................................................................................................................................xiiChapter 1 Introduction ......................................................................................................................... 11.1 Revisions in this Manual ........................................................................................................... 21.2 PACSystems Programming and Configuration .................................................................. 31.3 Migrating Series 90 Applications to PACSystems ............................................................. 31.4 PACSystems Documentation ................................................................................................. 4Chapter 2 Program Organization ....................................................................................................... 52.1 Structure of a PACSystems Application Program ............................................................. 62.1.1 Blocks................................................................................................................................................................................62.1.2 Functions and Function Blocks ..............................................................................................................................62.1.3 How Blocks Are Called ...............................................................................................................................................72.1.4 Nested Calls ...................................................................................................................................................................72.1.5 Types of Blocks .............................................................................................................................................................82.1.6 Local Data .................................................................................................................................................................... 182.1.7 Parameter Passing Mechanisms ........................................................................................................................ 192.1.8 Languages .................................................................................................................................................................... 212.2 Controlling Program Execution ............................................................................................242.3 Interrupt-Driven Blocks .........................................................................................................252.3.1 Interrupt Handling .................................................................................................................................................... 262.3.2 Timed Interrupts ....................................................................................................................................................... 272.3.3 I/O Interrupts .............................................................................................................................................................. 272.3.4 Module Interrupts ..................................................................................................................................................... 272.3.5 Interrupt Block Scheduling .................................................................................................................................... 28Chapter 3 Program Data .....................................................................................................................293.1 Variables ....................................................................................................................................303.1.1 Mapped Variables ..................................................................................................................................................... 303.1.2 Symbolic Variables ................................................................................................................................................... 313.1.3 I/O Variables ............................................................................................................................................................... 323.1.4 Arrays ............................................................................................................................................................................ 343.1.5 Variable Indexes and Arrays ................................................................................................................................. 34
PreviousNext |