Baixe DESENHOS DE INSTRUMENTOS e outras Manuais, Projetos, Pesquisas em PDF para Física, somente na Docsity!
Function Blocks Instruction Manual – Library A
IV
Table of Contents
V
TABLE OF CONTENTS
Introduction ............................................................................................................................................... III
Definitions.................................................................................................................................................. IX
Table of Contents
- Chapter 1 - Introduction to Function Block Application 1. Abreviations............................................................................................................................................. XIII
- Overview 1.
- Function Block 1.
- Transducer Block 1.
- Resource Block 1.
- Function Block Definitions 1.
- Function Block Linkages 1.
- Link with Function Block executing in DFI302 1.
- Information Access 1.
- Function Block Application Structure 1.
- Block Object 1.
- Block Parameters 1.
- Parameter Identifiers .................................................................................................................................................................1.
- Parameter Storage 1.
- Parameter Usage 1.
- Parameter Relationships 1.
- Parameter Status 1.
- Composition of Status 1.
- Process Variable Calculation 1.
- Setpoint Calculation 1.
- Output Calculation 1.
- Cascade Control 1.
- Mode Parameter 1.
- Scaling Parameters 1.
- Modbus Scale Conversion...................................................................................................................................... 1.
- Fault State Handling 1.
- Fault State Active 1.
- Alarms and Events – Alert Processing 1.
- Simulation 1.
- CHANNEL configuration 1.
- Block Instantiation 1.
- Order of Parameters during Download 1.
- Data Type and Data Structure Definition 1.
- Block Structure – DS- 64 1.
- Value & Status - Floating Point Structure – DS- 65 1.
- Value & Status - Discrete Structure – DS- 66 1.
- Scaling Structure – DS- 68 1.
- Mode Structure – DS- 69 1.
- Access Permissions – DS- 70 1.
- Alarm Float Structure – DS- 71 1.
- Alarm Discrete Structure – DS- 72 1.
- Event Update Structure – DS- 73 1.
- Alarm Summary Structure – DS- 74 1.
- Simulate - Floating Point Structure – DS- 82 1.
- Simulate - Discrete Structure – DS- 83 1.
- Test Structure – DS- 85 1.
- Discrete Structure – DS- 159 1.
- Discrete Structure – DS- 160 1.
- Manufacturer Specific Data Structure 1.
- Scaling Conversion Structure - DS- 256 1.
- Scaling Conversion Structure with Status - DS- 257 1.
- Scaling Locator Structure - DS- 258 1.
- Scaling Locator Structure with Status- DS- 259 1.
- Modbus Variable Locator Structure - DS- 260 1.
- Modbus Variable Locator Structure with Status- DS- 261 1.
- FF Parameter ID Structure - DS- 262 1. VI
- Slave Address Structure - DS- 263 1.
- Chapter 2 - Block Library 2.
- Description of Block Types 2.
- Block Type Availability and Initial Block Set 2.
- Table with the Function Blocks Execution Time 2.
- Resource 2.
- Transducer Blocks 2.
- DIAG – Diagnostics Transducer Block 2.
- DSP - Display Transducer 2.
- HC – Hardware Configuration Transducer 2.
- IDShell Transducer Block 2.
- Input Transducer Blocks 2.
- LD292 / LD302 - Pressure Transducer.................................................................................................................................... 2.
- DT302 - Concentration/Density Transmitter 2.
- TT302 - Temperature Transducer 2.
- IF302 - Current Fieldbus Transducer 2.
- TP302 – Position Fieldbus Transducer 2.
- TEMP – DF45 Temperature Transducer .................................................................................................................................2.
- Input Function Blocks 2.
- AI - Analog Input...................................................................................................................................................................... 2.
- DI - Discrete Input 2.
- MAI - Multiple Analog Input 2.
- MDI - Multiple Discrete Input 2.
- PUL – Pulse Input 2.
- Control and Calculation Function Blocks 2.
- PID - PID Control..................................................................................................................................................................... 2.
- EPID - Enhanced PID Control 2.
- APID – Advanced PID Control 2.
- ARTH - Arithmetic 2.
- SPLT-Splitter 2.
- CHAR - Signal Characterizer 2.
- INTG - Integrator 2.
- AALM - Analog Alarm ............................................................................................................................................................2.
- ISEL - Input Selector .............................................................................................................................................................2.
- SPG - Setpoint Ramp Generator/ ..........................................................................................................................................2.
- ESPG – Enhanced Setpoint Ramp Generator ......................................................................................................................2.
- TIME – Timer and Logic ........................................................................................................................................................2.
- LLAG - Lead Lag ...................................................................................................................................................................2.
- OSDL - Output Signal Selector and Dynamic Limiter ............................................................................................................2.
- DENS - Density .....................................................................................................................................................................2.
- CT – Constant .......................................................................................................................................................................2.
- FFET - Flip-Flop and Edge Trigger........................................................................................................................................2.
- AEQU – Advanced Equations ...............................................................................................................................................2.
- PRED – Smith Predictor ........................................................................................................................................................2.
- TF – Transfer Function ..........................................................................................................................................................2.
- LCF – Liquid Correction Factors............................................................................................................................................2.
- Modbus Function Blocks 2.
- MBCF – ModBus Configuration .............................................................................................................................................2.
- MBCS – ModBus Control Slave ............................................................................................................................................2.
- MBSS – ModBus Supervision Slave .....................................................................................................................................2.
- MBCM – ModBus Control Master ..........................................................................................................................................2.
- MBSM – ModBus Supervision Master ...................................................................................................................................2.
- Output Function Blocks 2.
- AO - Analog Output ...............................................................................................................................................................2.
- DO - Discrete Output .............................................................................................................................................................2.
- MAO - Multiple Analog Output ...............................................................................................................................................2.
- MDO - Multiple Discrete Output.............................................................................................................................................2.
- STEP – Step Output PID .......................................................................................................................................................2.
- Output Transducer Blocks 2.
- FR302 – Fieldbus Relay ........................................................................................................................................................2.
- FY302 – Fieldbus Positioner Transducer ..............................................................................................................................2.
- FP302 - Fieldbus Pressure Transducer.................................................................................................................................2. VII
- FI302 – Fieldbus Current Transducer....................................................................................................................................2.
- Flexible Function Block 2.
- HART Function Blocks.......................................................................................................................................... 2. - HCFG Block ..........................................................................................................................................................................2. - HIRT Block ............................................................................................................................................................................2. - HVT Block .............................................................................................................................................................................2. - HI302-I - Configuring the MAI/AI block ..................................................................................................................................2. - HI302-O - Configuring the MAO/AO block .............................................................................................................................2. - Calibrating the analog HI302circuits ......................................................................................................................................2. - Calibration of the HI302-I (GLL1205) ....................................................................................................................................2. - Calibration of the HI302-O (GLL1194)...................................................................................................................................2. - HIRT - HART IDENTIFICATION INFORMATION AND REAL TIME DATA ...........................................................................2. - HCFG - HART Configuration Transducer Block ....................................................................................................................2. - HVT - HART VARIABLE TEMPLATE ....................................................................................................................................2. - HCD - HART Commands Definition ......................................................................................................................................2. - HWPC - HART WRITEABLE-PARAMETER TO COMMAND CORRELATION .....................................................................2. - HBC – HART Bypass Communication ..................................................................................................................................2.
- Block Options 2. - Resource Block Bit Strings ....................................................................................................................................................2. - IO_OPTS ...............................................................................................................................................................................2. - CONTROL_OPTS .................................................................................................................................................................2. - STATUS_OPTS ....................................................................................................................................................................2. - ALARM_SUM and ACK_OPTION .........................................................................................................................................2. - PID_OPTS ............................................................................................................................................................................2. - INTEG_OPTS........................................................................................................................................................................2. - INVERT_OPTS .....................................................................................................................................................................2. - INPUT_OPTS ........................................................................................................................................................................2. - OSDL_OPTS .........................................................................................................................................................................2. - MO_STATUS_OPTS.............................................................................................................................................................2. - MO_OPTS (Profile Rev. 0 – FB700) .....................................................................................................................................2. - MO_OPTS (Profile Rev. 1 – DFI302) ....................................................................................................................................2.
- Hardware Configuration Block Options 2.2
- MODULE_STATUS_R0_3 ....................................................................................................................................................2.
- MODULE_STATUS_R4_7 ....................................................................................................................................................2.
- MODULE_STATUS_R8_11 ..................................................................................................................................................2.
- MODULE_STATUS_R12_14 ................................................................................................................................................2.
- Chapter 3 - Examples 3.
- Simple Control Application 3.
- Cascade Control 3. - Corresponding Configuration 3. - Parameterization 3.
- Ratio Control 3. - Corresponding Configuration 3. - Parameterization 3.
- Feedforward Control 3. - Corresponding Configuration 3. - Parameterization 3.
- Split Range Control 3. - Corresponding Configuration 3. - Parameterization 3.
- Level Control 3. - Corresponding Configuration 3. - Parameterization 3.
- Rate Control Loop with Lead - Lag 3. - Corresponding Configuration 3. - Parameterization 3.
- Flow Compensation Configuration with Totalization 3. - Corresponding Configuration 3. - Parameterization 3.
- Hydrostatic Tank Gauging 3. - Corresponding Configuration 3. - Parameterization 3.
Function Blocks Instruction Manual – Library A
VIII
Combustion Control with Double Cross Limits ................................................................................................... 3. 15
Corresponding Configuration .................................................................................................................................................. 3. 16 Parameterization ..................................................................................................................................................................... 3. 16
3 Element Boiler Level/Feedwater Control ........................................................................................................... 3. 18
Corresponding Configuration .................................................................................................................................................. 3. 19 Parameterization ..................................................................................................................................................................... 3. 19
Function Blocks Instruction Manual – Library A
X
Term Description
Download Function which consists of loading data from the client to the server.
Primary Input
Input parameter which is critical for the operation of the control or calculation function block. The value of the primary input can be reflected in the parameter of the process variable.
Schedule Order of the function block execution.
Data Structure
A set, whose elements need to be of the same data type and each one can be referenced uniquely by an identification
Event Instantaneous occurrence that is important to schedule the algorithm execution.
Execution
Process of executing an operation sequence for an algorithm.
Feed forward Process antecipation.
Interface
Limit shared between two function units, defined by the function characteristics, common physic interconnection characteristics, signal characteristics, and other adequated characteristics
Interoperability
Capacity to operate multiple equipment, regardless of the manufacturer, in the same system, without losing the functionality.
Invocation Process of starting the sequence execution od specific operations for an algorithm.
Link Connection between two devices. Target Mode Mode reached by user for the block acts.
Multi-Variable Container (MVC)
Object in the Function Block Application Process refered to a group of Function Block parameters defined by user, that can be one or more function blocks in the equipment.
Action Object (action) Object that supports object instantiation and exclusion (blocks or links) in the resource.
Input Parameter
Block parameter that has data structure of value and status elements that can be updated through link for the output parameter.
Output Parameter
Block parameter which has data structure of value and status elements that can be updated through the block algorithm.
Container Parameter
Block parameter that is accessible in the communication network but can not be connected to the input or output parameter. The value of the parameter can be used in the block algorithm or written by the block algorithm.
Resource
Internal function unit of the equipment that has the control, independent of the operation, and provides characteristics needed for scheduling and execution of application algorithms (resource).
Resource block
Block which consists of internal parameters that provide the interface for common resource characteristics or information.
Defenitions
XI
Term Description
Primary Output
Output parameter which depends on the mode parameter, reflects the results of the block algoritm execution or the input value given by user.
Shedding The shedding occurs when one or other non fieldbus interface provides data periodically for the algorithm.
Time stamp Date and time register (hour:minute:milisecond) for the alert occurrence.
Block Type Common qualities for all type instantiations. The PID block is a block type, for example.
Data Type Value set for a set of allowed operations.
Engineering Unit Terms of data measuring, such as Celsius degrees, Pound, grams and others.
Upload This function allows transmit data from server to client.
View
Data structure with the maping associtated to the sub set of block parameters. It is used for optimization of reading parameters.
BLOCK.PARAMETER
Definition used to indicate the block and the parameter associated, for example: DIAG.BEHAVIOR.
Abreveiations
XIII
ABREVIATIONS
- AI (Analog Input)
- AO (Analog Output)
- Cas (Cascade Mode)
- DCS (Distributed Control System)
- DD (Device Description)
- DI (Discrete Input)
- DO (Discrete Output)
- DS (Data Structure)
- EU (Engineering Unit)
- FB (Function Block)
- FF: Fieldbus Foundation
- IA (Initialization Acknowledge): status when the block is in Cascade mode
- IMan (Initialization Manual): status when the block is in Cascade mode
- IR (Initialization Request): status when the block is in Cascade mode
- LO (Local Override)
- NI (Not invited)
- RCas (Remote Cascade Mode): status when the block is in Cascade mode
- Rout (Remote Output Mode): status when the block is in Cascade mode
Function Blocks Instruction Manual – Library A
XIV
Function Blocks Instruction Manual – Library A
Link with Function Block executing in DFI
Any function block executing in DFI302 may be linked to any other function block being executed in other device connected to any of four H1 channels available.
Information Access
Function block information may be grouped for access depending on how it is to be used. The following four groups are defined for access purposes:
- Dynamic operation data.
- Static operation data.
- All dynamic data, and
- Other static data.
To support access of operator interface information during function block execution, two levels of network access are defined, one for operational traffic and one for background traffic. Operator interface traffic is transferred as background traffic to prevent it from interfering with the operation of time-critical function blocks.
Function Block Application Structure
Function block applications are modeled as a set of function blocks coordinated to execute a related set of operations. This set of operations collectively provides a single, higher level control function.
Function block model is real-time algorithm that transforms input parameters into output parameters. Their operation is controlled through the setting of control parameters.
Interoperation between function blocks is modeled by linking an input parameter of one function block to an output parameter of another. Function blocks can be bound together within and across devices. Interfaces between function blocks located in the same function block application are locally defined. Those interfaces between function blocks in different devices use the communication services.
To support function block operation, the function block architecture also provides transducer and resource blocks, and display objects.
Function Block Application Process represents the function block application as an integrated set of these components accessed to its network interface.
Block Object
A block object represents a logical processing unit composed of a set of input, processing, and control parameters and an associated algorithm.
Each block is identified by its Tag which is defined to be unique throughout the control system at one plant site. Block tags are defined as strings with a maximum length of 32 characters.
During system operation, a short hand reference, known as a numeric index is used for block access purposes. A block’s numeric index is unique only within the function block application where it exists.
The algorithm of a block is identified by its type and the revision level of its type. This information indicates how the execution of the algorithm is affected by control parameters.
Block Parameters
Parameters define the inputs, outputs, and control data for a block. Their relationship to each other and to the block algorithm is shown below.
Introduction to Function Block Application
Parameter Identifiers Parameter names are unique within a block. Within a system, a parameter can be unambiguously identified by qualifying its name with the tag of its block. This construction is referred to as “Tag.Parameter”.
The Tag.Parameter construct is used to obtain the index of a parameter. This is the second way of identifying a parameter.
Parameter Storage Parameters may be classified as dynamic, static, or non-volatile. The value of parameter may need to be restored after a power failure based on its classification:
Dynamic - a parameter whose value is calculated by the block algorithm and therefore does not need to be restored after a power failure.
Static - a parameter which has a specific configured value that must be restored by a device after power failure. An Interface or temporary devices may write to static parameter on an infrequent basis. Static parameter values are normally tracked by a configuration device. To support tracking changes in static parameter, the associated block’s static revision parameter will be incremented and an update event will be generated each time a static parameter value is modified.
Non-volatile - a parameter whose value is written on a frequent basis and the last saved value must be restored by the device after a power failure.
The classification of a parameter will determine the manner is which the parameter is stored within a device.
NOTE
The concepts of Non-Volatile (N) and Dynamic (D) parameters are only applied for transmitters. For controllers, the Dynamic and Non-Volatile parameters will be recovered after the Power Up.
Parameter Usage Parameters are defined for a block for a specific purpose. Each is defined for use as an input, an output, or a control parameter. Control parameters are also referred to as “contained” parameters because they may not be linked with parameters in other blocks. Each type of usage is defined as follows:
Contained A contained parameter is a parameter whose value is configured, set by an operator, higher level device, or calculated. It may not be linked to another function block input or output. The mode parameter is an example of a contained parameter common to all blocks.
Output An output parameter is a parameter that may be linked to an input parameter of another function block. Output parameters contain status. The output status indicates the quality of the parameter value and the mode of the block when it was generated.
The value of an output parameter may not be obtained from a source external to the block. It may be generated by the block algorithm, but does not have to be.
The values of certain output parameters are dependent on the value of the mode parameter of the block. These output parameters may be referred to as mode-controlled output parameters.
Blocks whose purpose is to generate a single output contain one parameter designed as the primary output parameter. Primary outputs are used by other blocks for control or calculation purposes. These blocks also contain secondary output parameters such as alarm and event parameters that play a supporting role to the primary output parameter.
Input An input parameter obtains its value from a source external to the block. An input parameter may be linked to an output parameter of another function block. Its value may be used by the algorithm of the block.
Input parameter values are accompanied by status. When an input parameter is linked to an output parameter, the status will be provided as the status of the output parameter. When it is not linked to
Introduction to Function Block Application
Composition of Status
The Status has the following composition:
The quality, sub-status, and limit components of status are defined as follows:
Quality - The quality used will be determined by the highest priority condition: 0 = Bad 1 = Uncertain 2 = Good (Non-cascade) 3 = Good (Cascade)
Sub status - Sub-status values in the status attribute are defined as shown in the following table.
Limit - The following limit conditions will be always available in the status attribute. 0 = Not limited 1 = Low limited 2 = High limited 3 = Constant
Examples:
0xC1 (in hexadecimal) is “Good-Cascade Non Specific and Low Limited” status
0xCF (in hexadecimal) is “Good-Cascade Not invited and Constant” status 0x4E (in hexadecimal) is “Uncertain Initial Value and High Limited” status
Quality Sub-status Hex value
Not in cascade
Forward path of cascade
Backward path of cascade Bad 0 = Non-specific 0x00 X X X Bad 1 = Configuration Error 0x04 X X X Bad 2 = Not Connected 0x Bad 3 = Device Failure 0x0c X X X Bad 4 = Sensor Failure 0x10 X X X Bad 5 = No Communication, with last usable value 0x Bad 6 = No Communication, with no usable value 0x Bad 7 = Out of Service (highest priority) 0x1c
Quality Sub-status Hex value
Not in cascade
Forward path of cascade
Backward path of cascade Uncertain 0 = Non-specific 0x40 X Uncertain 1 = Last Usable Value 0x44 X Uncertain 2 = Substitute 0x48 X Uncertain 3 = Initial Value 0x4c X Uncertain 4 = Sensor Conversion not Accurate 0x50 X Uncertain 5 = Engineering Unit Range Violation 0x54 X Uncertain 6 = Sub-normal 0x58 X
Quality SubStatus Limits
MSB LSB
Function Blocks Instruction Manual – Library A
Quality Sub-status Hex value
Not in cascade
Forward path of cascade
Backward path of cascade GoodNC 0 = Non-specific (lowest priority) 0x80 X GoodNC 1 = Active Block Alarm 0x84 X GoodNC 2 = Active Advisory Alarm 0x88 X GoodNC 3 = Active Critical Alarm 0x8c X GoodNC 4 = Unacknowledged Block Alarm 0x90 X GoodNC 5 = Unacknowledged Advisory Alarm 0x94 X GoodNC 6 = Unacknowledged Critical Alarm 0x98 X
Quality Sub-status Hex value
Not in cascade
Forward path of cascade
Backward path of cascade GoodC 0 = Non-specific 0xc0 X X
GoodC 1 = Initiate Acknowledge(IA) 0xc4 X
GoodC 2 = Initiate Request(IR) 0xc8 X
GoodC 3 = Not Invited (NI) 0xcc X
GoodC 4 = Not Selected(NS) 0xd0 X
GoodC 6 = Local Override(LO) 0xd8 X
GoodC 7 = Fault State Active(FSA) 0xdc X
GoodC 8 = Initiate Fault State (IFS) 0xe0 X
Example: Conversion from the Enumerations to Number
The following formula is used to obtain the enumeration number of a determinate status attribute:
Decimal Value Status = 64Quality + 4 Sub-Status + Limit
For example, considering the following status:
“Uncertain - Initial Value - High Limited” Where: Quality = “uncertain” = 1 Sub-Status = “Initial Value” = 3 Limit = “High Limited “= 2 Applying the formula: Decimal Value Status = 64 * 1 + 4 * 3 + 2 = 78 (in decimal) or 0x4E (in Hexadecimal)
Example: Conversion from Number to Enumerations
There are many forms to convert the enumerate number to the status string. Below is shown two forms to do this.
The number is expressed in binary as:
Hex Value Status = 78 = 0x4E = 01001110 (in binary) Dividing this binary number in quality, sub-status and limit fields: Quality = 01 = 1 = “Uncertain” Sub-Status = 0011 = 3 = “Initial Value” Limit = 10 = 2 = “High Limited”
The corresponding status is “Uncertain - Initial Value - High Limited”.
The user must use the value of status in decimal format.
Decimal Value Status = 78