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
|
ContentsGFK-2950C February 2018 v4.11 Program Flow Functions ..................................................................................................... 2014.11.1 Argument Present ................................................................................................................................................. 2024.11.2 Call ............................................................................................................................................................................... 2034.11.3 Comment .................................................................................................................................................................. 2064.11.4 JumpN ........................................................................................................................................................................ 2074.11.5 Master Control Relay/End Master Control Relay ...................................................................................... 2084.11.6 Wires ........................................................................................................................................................................... 2104.12 Relational Functions ............................................................................................................ 2114.12.1 Compare .................................................................................................................................................................... 2124.12.2 Equal, Not Equal, Greater or Equal, Greater Than, Less or Equal, Less Than ................................. 2134.12.3 EQ_DATA ................................................................................................................................................................... 2144.12.4 Range .......................................................................................................................................................................... 2154.13 Timers ...................................................................................................................................... 2164.13.1 Timed Contacts ...................................................................................................................................................... 2164.13.2 Timer Function Blocks ......................................................................................................................................... 2174.13.3 Standard Timer Function Blocks...................................................................................................................... 228Chapter 5 Function Block Diagram (FBD) ............................................................................................. 2335.1 Note on Reentrancy ............................................................................................................. 2345.2 Advanced Math Functions .................................................................................................. 2355.2.1 EXPT Function ......................................................................................................................................................... 2375.3 Bit Operation Functions ...................................................................................................... 2385.3.1 Logical AND, Logical OR, and Logical XOR.................................................................................................... 2405.3.2 Logical NOT .............................................................................................................................................................. 2425.4 Comments .............................................................................................................................. 2435.4.1 Text Block .................................................................................................................................................................. 2435.5 Comparison Functions......................................................................................................... 2445.5.1 Equal, Not Equal, Greater or Equal, Greater Than, Less or Equal, Less Than ................................. 2465.6 Control Functions ................................................................................................................. 2475.7 Counters .................................................................................................................................. 2495.8 Data Move Functions ........................................................................................................... 2505.8.1 Fan Out ...................................................................................................................................................................... 2545.8.2 Move Data ................................................................................................................................................................. 2555.9 Math Functions ...................................................................................................................... 2575.9.1 Overflow .................................................................................................................................................................... 2585.9.2 Add............................................................................................................................................................................... 2595.9.3 Divide .......................................................................................................................................................................... 2605.9.4 Modulus ..................................................................................................................................................................... 261 PreviousNext |