CENTUM VP
REGULATORY AND CALCULATION CALCULATION FUNCTIONS
LESSON 4
OBJECTIVES OF THIS LESSON
In this lesson you will be learning how to:
1.
Show the the different types of of regulatory control and calculation function blocks.
2.
Define the different parts of the input input and output output signal processing functions. functions.
3.
Show and define the different types of signal signal wiring wiring for connecting instruments and I/O connections created on the control drawings.
4.
Show how a calculation block (CALCU) (CALCU) is created and a calculation is made in this this block.
CENTUM VP Engineering Engineerin g
1
TE 33M80N10-10EN-A 33M80N10- 10EN-A
CENTUM VP
REGULATORY AND CALCULATION CALCULATION FUNCTIONS
LESSON 4
PID Controller Block and Functions Terminal Connections
IN: Input from a field transmitter or data from another instrument. SET: Remote setpoint from another instrument. OUT: Output to a control device or to the SET terminal of another instrument. instrument. SUB: Output to the BIN of another another instrument. Used in feed forward. RL1/2: Reset signal input terminal. BIN: Compensation input terminal terminal TIN: Tracking input signal. TS1: Tracking switch input. input. INT: Interlock switch input. input.
SET
BIN
RL1
(VN)
RL2
TIN
(RLV1) (RLV2)
TS1
INT
(TSW)
Alarm processing
CSV
CAS AUT
SV
MAN RSV
MAN
RCAS IN
R AW
Input Processing
PV
CAS /AUT
Control computation processing ( PV,
Output processing
MV
OUT
ROUT
PV, MV MV,
MV)
RMV
SUB
Data Items
RSV: Remote setpoint from a supervisory computer.
TSW: Tracking switch RAW: Raw data input
CSV: Remote setpoint from another instrument. RMV: Remote manipulated variable. PV: Process variable. SV: Setpoint variable. MV: Manipulated variable. VN: For compensation; used in feed f orward.
RLV1/2: Reset limiter that limits increases or decreases in the output resulting from I control action
CENTUM VP Engineering Engineerin g
2
TE 33M80N10-10EN-A 33M80N10- 10EN-A
CENTUM VP
REGULATORY AND CALCULATION CALCULATION FUNCTIONS
LESSON 4
REGULATORY CONTROL BLOCKS Regulatory control control blocks mainly use analog inputs to implement control calculations for process monitoring or control. Instrument block types and where they are located in the builder are shown below: below: Regulatory Control Blocks Category
Block type
Description
Input indicators:
PVI PVI-DV
Process indicator block. Process indicator block with deviation alarm.
Controllers: Controllers :
PID PI-HLD PI-BSW ONOFF ONOFF-G PID-TP PD-MR PI-BLEND PID-STC
PID controller block. Sampling PI controller block. PID controller with batch switch. Two position ON/OFF controller block. Three position ON/OFF controller block. Time -proportioning ON/OFF controller block. PD controller block with manual reset. Blending PI controller controlle r block. Self-tuning PID controller block.
Manual loaders:
MLD MLD-PVI MLD-SW MC-2 MC-3
Manual loader block. Manual loader block with input indicator. Auto/manual station block. Two-position Two-position motor control block. Three-position motor control block.
Signal setters:
RATIO PG-L13 BSETU-2 BSETU-3
Ratio set block. 13 zone program set block. Batch set block for flow measurement. Batch set block for weight measurement.
Signal limiters:
VELLIM
Velocity limiter block.
Signal selectors:
SS-H/M/L SS-H/M/L AS-H/M/L AS-H/M/L SS-DUAL SS-DUAL
Signal selector block. Autoselector block. Dual signal selector block.
Signal distributors
FOUT FFSUM XCPL SPLIT
Cascade control signal distribution distribution block. Feed-forward control signal addition block. Non-interacting Non-interacting control output addition block. Split control signal distribution distribution block.
Pulse Count
Input
PTC
CENTUM VP Engineering Engineerin g
Pulse count input block
3
TE 33M80N10-10EN-A 33M80N10- 10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
SET
BIN
RL1
(VN)
RL2
TIN
(RLV1) (RLV2)
TS1
LESSON 4
INT
(TSW)
Alarm processing
CSV
CAS AUT
RSV
SV
MAN MAN
RCAS IN
Input Processing
RAW
PV
Control computation processing ( PV ,
PV MV, ,
CAS /AUT
Output processing
OUT
MV
ROUT MV)
RMV
SUB
Input signal processing
PV overshoot function
No Conversion
CAL BAD
CAL Input module
PV Analog input Square Root Extraction
Digital filter
CAL
Pulse Input Conversion
BAD
Integration
SUM
Communication Input Conversion
CENTUM VP Engineering
4
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
INPUT SIGNAL PROCESSING On a regulatory control function block the input signal is brought into the instrument (from the field or from another instrument) and then manipulated to fit the specific requirements of the loop. The common input processing functions are: Input Signal Conversion Linear: No conversion. Square root: 0.5% cutoff. Pulse input: 0-10,000Hz. Digital Filtering Auto filtering or 3 selectable filter types (.5, .75, and .875). Totalizer Time units of: Second, Minute, Hour, or Day (based upon the engineering units), 8 digits maximum. PV Overshoot Function If the input goes bad the PV displays either the last good input or the Hi or Low range limits. Calibration Manually set the PV in case of transmitter failure or calibration.
CENTUM VP Engineering
5
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
SET
BIN
RL1
(VN)
RL2
TIN
(RLV1) (RLV2)
TS1
LESSON 4
INT
(TSW)
Alarm processing
CAS
CSV
AUT RSV
SV
MAN MAN
RCAS IN
RAW
Input Processing
Control computation processing
PV
(PV,
PV, MV,
CAS /AUT
Output processing
OUT
MV
ROUT MV)
RMV
SUB
Output signal processing AUT/CAS/RCAS/PRD MH
Preset manipulated output
ML
AUT/CAS/RCAS/ROUT/PRD
SV MAN/ TRK PV
Control computation
MAN Output limiter
Output velocity limiter
TRK
+
MV +
+ TRK
ROUT
RMV
Output signal conversion
MVrb
Auxiliary output
Readback value from output destination
TIN
OUT
SUB
Output module
CENTUM VP Engineering
6
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
OUTPUT SIGNAL PROCESSING The previous page shows the signal flow through the output-processing portion of regulatory control function blocks. After the signal has gone through the input processing and the control calculations (PID) then it is ready for the output processing. The control calculation is limited by the output limiter and by the velocity limiter before the signal is displayed as the MV of the instrument on the faceplate. From that point the signal goes through a signal conversion, then to the output module, and then finally to the control element. Functions in the “Output Signal Processing Block” are: Output Limiter : Limits the function block’s output to the output module; this is displayed as the MH and ML on the tuning panel. Output Velocity Limiter : This function limits the rate of c hange in the output to avoid output bumps. Output Clamp: Refers to the inability to move the MV above or below the preset output limits. It displays on the instrument faceplate as CLP+ or CLP-. Preset Manipulated Variable: A preset MV (PMV) value can be specified for a function block then be activated by a sequence table based upon predefined set of conditions in the process. The loop will be forced to MAN when this function is used. The output can also be forced to 0% or 100% by a sequence table. Output Tracking: Output tracking function forces the MV of the control block to equal the value of the tracking input signal (TIN) that is coming from an external source or the value of the output’s destination (Cascade connection). Output Signal Conversion: Change the signal from analog to digital for ON/OFF control (depends upon the type of PID function block created). Analog Output: The MV signal to the analog output module generates the 4-20 mA (or 1-5 Vdc) to the control device in the field. The output has a function that makes the signal to the control device go to 106.25% on a full open and -17.19% on a full close. The output of the loop can be reversed (20-4 mA or 5-1 Vdc).
CENTUM VP Engineering
-17.19%
0.00%
100.00%
106.25%
1.25 mA
4.00 mA
20.00 mA
21.00 mA
7
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
BSET: Amount of product to be put into the vessel. SW: Command switch, used to start product flow (1).
SW
BSET
IN
Input Processing
Batch set pattern
PV
AUT
Output processing
MV
OUT
MAN SUM
%Z011101
CENTUM VP Engineering
%Z011102
8
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
BATCH SET BLOCK (BSETU-2) Another example of a regulatory control type instrument (Signal Setters) is the BSETU-2. This instrument is used in batch control applications such as filling reactors; the fill rate and the shutoff rate can be specified. This instrument’s flow rate is setup by defining its scaling (shown as the “Scale high”). •
The bar on the faceplate shows the amount of product put into the vessel.
Some of the definable items on the Tuning Panel are: •
The “BSET” register shows amount of product to be put into the vessel. This also defines the scaling on the faceplate.
•
The time to open (TU) or close (TD) the control valve in seconds
•
The point when the closing of the control valve should start is the “PLST” register. This number is the amount subtracted from the BSET which determines the trigger point. BSET = 2500 PLST = 200 Closing starts at “2300” ( BSET-PLST) at the “TD” rate.
To start a BSETU-2 •
The mode must be AUT.
•
Command switch SW=1.
CENTUM VP Engineering
9
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
Data Referencing Data Setting
P
MV
J02 J01 J03 SETUP
SV
BDSET-1
PID
TI100 PVI
MV
Terminal Connection
TIC100 IN
IN
LESSON 4
OUT S11
Process Connection
Terminal Connection
SUB
S12
VN
OUT-SW
OUT
TIC200 IN
SW-33
PID
S10 I
SET IN
FIC100
OUT
PID Process Connection %Z011107
%Z011109
%Z011108
TI200.PV
Link Blocks
PID function block Connection Terminal SET
CSV
BIN CAS AUT
RL1
RL2
(VN) (RLV1)(RLV2)
TIN
TS1
INT
(TSW)
SV
MAN RSV
IN
Input Processing
PV
Control Calculations
CAS /AUT
Data item Connection Terminal
Processing function
Data item
MAN
RCAS
Output Processing
MV
OUT
RMV ( PV,
PV, MV,
MV)
SUB
CENTUM VP Engineering
10
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
SIGNAL WIRING Wiring on a Control Drawing is based upon the data type and the instrument type involved. There are several different wiring types available for connecting instruments and the process. These different types of wiring are: Process Connection: Wiring to or from an I/O connection box. This tells which I/O point will be used for the specific tag. Terminal Connection: Connection between two connection terminals. As an example; from the “OUT” of a PID instrument to “SET” of a secondary instrument in a cascade configuration. Check the FCS configuration manual for all of the allowable terminal connections. Data Referencing: A data item can be taken from one instrument and used in another function block. To do this, the required data item will be named on the output of one block and connected to the IN (as an example) of another block. Data Setting: CS 3000 has software instruments that can be used to change certain data items or gather data from within another function block. As an example of what can be changed: P, I, D, HH, HI, LO, LL, MH, and ML. •
The specific tag number and data type to be changed is defined on the detail panel.
•
The actual data to load is defined on the “Tuning Panel”.
Shown below is a reference chart to showing examples of some allowable connections. This does not cover all possible combinations; please refer to the IM ’s for specific detail. Terminal
Connectable Items
IN
Input modules (%Z), Data types (PV, SV, MV, etc), Switches (SW-33, SW-91).
OUT
Output modules (%Z), SET terminal (cascade), Switches (SW-33, SW-91).
SET
OUT terminal of “Primary” instrument (cascade), Switches (SW-33, SW-91).
SUB
Connect to the VN register (feed forward).
CENTUM VP Engineering
11
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
Wiring
Link Block
CENTUM VP Engineering
12
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
DEFINING REGULATORY FUNCTION BLOCKS Select “Function Block” under an FCS and builder “drawings” will appear under “Opened Folder ”. Double-click on a drawing number to open its builder panel. •
There are 200 drawings available per FCS on CS3000.
Click on the “Function Block” icon to open the “Select Function Block” window. From here the user will select the category and sub-category to find a desired function block type.
EFFECTIVE CONNECTIONS “Output Connection” To secondary instrument “SET” terminal. FIC100.SET
SET TIC100
IN
OUT CASCADE
PID
“Set Value Input Connection” Tag where the “Set Point” gets its data. TIC100.OUT
SET FIC100
IN
OUT PID
“Input Connection”
%Z011101
“Input Connection”
“Output Connection”
%Z011102
%Z011109
Process Data I/O Connections Connections to the I/O modules is com pleted through the "Link Block" on the control drawing. The address of the module (%Zxxxxxx) or "User Defined Label" is entered into the box. Inter/Intra FCS Process Data Process data can be brought from one function block to another by using the "AREAIN" and "AREAOUT" link blocks. The "AREAIN" is used to bring process data from a function block in the same FCS to the "IN" (or "SET" of a cascade loop). The "AREAOUT" is used to bring process data from a function block in a different FCS to the "IN" (or "SET" of a cascade loop).
CENTUM VP Engineering
13
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
•Right Mouse Button •“Properties”
"Display/Hide Detailed Setting Item"
CENTUM VP Engineering
14
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
DETAIL SPECIFICATION PANEL Selecting the “Edit Function Block Detail” icon opens this panel. •
Selecting the right-hand mouse button displays a menu, select “Properties” to see a window where the most commonly changed data items, for the function block, are displayed.
•
To see all of the detail items available, select the “Show/Hide Detailed Setting Item” icon.
Items found on the “Show/Hide Detailed Setting Item” panel will vary, depending upon the function block created. The example used here is for a PID type instrument.
The detail specification panel is where the user will define: •
The loop’s input signal range.
•
If “Measure Tracking” is to be used.
•
Alarms.
•
Control algorithm (if it is a control instrument).
•
Pre-define detail items (P, I, HH, PH, etc) on the “Fixed Constant”.
CENTUM VP Engineering
15
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
General Structure of Arithmetic Calculation Blocks Input Processing
IN
R
Logic Operation
Gain
CP
OUT
Bias
Q01
RV1 Gain
RV
RV1 Bias
Some Auxiliary Calculation Blocks SW-91
OF
0
BDSET-1L
1
S11
2
S12
S 3
S13
Command switch
Batch data
J01
Batch data 2
J02
Batch data 3
J03
Batch data 4
J04
Batch data 16
J16
4
S14
5
S15
S10
6
S16
7
S17
S
8
S18
9
S19
Command switch
General purpose Calculation Block P01
IN
Q01
P08
R
Inpu Processing
Q07
RV1
OUT
CP
User defined Arithmetic/logic Operation
RV7 ( CPV
CPV1
Output Processing
J01
CPV2
J02
CPV3
J03
CPV)
SUB
CENTUM VP Engineering
16
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
CALCULATION FUNCTIONS Calculation function blocks are used to support regulatory control and sequence control functions, and provide general-purpose calculation functions for analog and contact signals. Calculation blocks are divided into six types depending upon the kind of calculations they perform: 1. Arithmetic Calculation Blocks: Each arithmetic calculation has a fixed number of I/O points and fixed calculation algorithm; it performs the basic arithmetic calculations for analog signals. Examples of these are: ADD
MUL
DIV
AVE
2. Analog Calculation Blocks: Each analog calculation block has a fixed number of I/O points and fixed calculation algorithm: it performs arithmetic calculation for analog signals. Examples of these are: SQRT LAG RAMP LDLAG DLAY AVE-M ASTM1
Square root First order lag Ramp block Lead/lag block Dead time block Moving average block ASTM (Old JIS)
EXP INTEG LD FUNC-VAR TPCFL AVE-C ASTM-2
Exponential block Integration block Derivative block Variable line-segment function block Temperature and pressure correction Cumulative average block (New JIS)
3. Calculation Auxiliary 1 Blocks: These blocks have the various functions to assist the control computation. Examples of these are: SW-33 DSW-16 SW-91 DSW-16C DSET DSET-PVI
Three pole, 3-position switch. Selector switch for 16 constant (numerical). One pole, 9 position switch. Selector switch for 16 constant (character string). Data set block. Data set block with PVI.
4. Batch Data Blocks: These blocks have functions to assist the setting or gathering of batch data. Examples of these are: BDSET-1L BDSET-1C BDSET-2L BDSET-2C BDA-L BDA-C
One batch data set block. One batch data set block (character string). Two batch data set block. Two batch data set block (character string). Batch data acquisition Batch data acquisition (character string).
5. General Purpose Calculation Blocks: Each general-purpose calculation block has a fixed number of I/O points and but allows the user to define the calculation algorithm. Examples of these are: CALCU General Purpose calculation block CALCU-C General Purpose calculation block with string I/O
CENTUM VP Engineering
17
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
CENTUM VP Engineering
18
LESSON 4
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
”CALCU” FUNCTION BLOCK The “CALCU” function block allows the user to create custom calculation to meet specific process needs. The previous page shows this calculation: 1 2 3 4 5 6 7 8 9
program alias A BL222-11.SH alias B BL222-11.SL alias Y FC222-11.SH alias Z FC222-11.SL float RANGE RANGE = (Y-Z) / (A-B) CPV = RV * RANGE end
“Alias” allows a tag’s data item to be known by another name (i.e.: BL222-11.SH becomes “A”) “Float” tells RANGE it will be floating-point data. “CPV” is the calculated process variable to be output by this instrument (CL222-11). “RV” is the data coming in through the “IN” terminal block after any input processing. ON-LINE MANUAL For more definition of the “CALCU” block, use the “On-line Manual”. •
Create the CALCU Block and, with it selected, click on the “Edit Function Block Detail” icon.
•
When the calculation window appears, select “Help”, then “Builder Definition Items”.
•
Maximize the on-line manual. On the left-hand side of the on-line manual page, select “Edit Calculation Script” icon just beneath the “General-Purpose Calculations”.
•
The menu at the right-hand side changes to display the different calculation data categories.
CENTUM VP Engineering
19
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
CENTUM VP Engineering
20
LESSON 4
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
BATCH DATA SET BLOCK (BDSET-1L) The batch data set block is used primarily in batch processes for adjusting parameters of control loops based upon a product recipe. The BDSET has 16 registers that are accessible from the tuning panel of the instrument. Batch Data Set blocks can be used for changing the values of: •
Setpoint (SV)
•
Manipulated variable (MV)
•
Alarm trip points (HH, PH, PL, LL, etc.)
•
P, I, or D
•
Batch settings for BSETU (BSET)
From a sequence table, the BDSET-1L can download either individual registers or all registers at once. An operator can download all registers at the same time.
FCS
HIS SETUP-1 Tuning Panel DT01 = 150 DT02 = 250 DT03 = 5000 DT04 = 1 . . . DT16
SETUP-1
J01 J02 J03 J04 . . . J16
SET SV
TIC100
P
IN
OUT
PID
SET BSET
RAW-MILK
SW
BSETU-2
IN
CENTUM VP Engineering
21
OUT
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
CENTUM VP Engineering
22
LESSON 4
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
REPORT PACKAGE A report package option is provided that has pre-defined reports built in that run on Excel� spreadsheets. When the report package is opened the user can select from a list of pre-defined reports that fits a specific need from “snap shots”, to shift and hourly reports, and reports that display trend data. When a report type is selected, data will be entered in to the block fields for: •
Tag name.
•
Tag data item.
•
Computer name (or operator station) to get data from.
The report is then assigned a unique name and loaded into the report database.
Running a Report The newly created report can be run from a programmable function k ey or by the operator station scheduler function, if data is required at a specific time.
CENTUM VP Engineering
23
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
REGULATORY CONTROL EXERCISE 1 This exercise will allow the user to create a cas cade PID control and connect the function blocks to the appropriate I/O modules. The loops will then be tested in the “Test Mode”. You may have to refer to previous chapters for more information! Be aware that the amount of “step by step” direction will gradually decrease as you progress through these exercises.
CREATING FUNCTION BLOCKS FOR EXERCISE 1 1.
Bring up “System View” and go to project “STUDENTV”.
2.
Click on “Function_Block” under FCS0101 and double click on “DR0001”, at the right hand side of the builder, to open the drawing panel.
3.
Select the “Function Block” icon and then click on the ”+” in front of “Regulatory Control Block”. Next open “Controllers” from the expanded list and select “PID” from the next list that appears. Select “OK” and then click on the Control Drawing Builder page to place the PID function block.
4.
Define the function block #1 as: •
5.
6.
Tag name: TC222A
With the function block selected (green), click the right mouse button and select “Properties”. Change the following items. •
Tag Comment: TEMP CONTROL
•
Range: 50.0-300.0
•
Engineering unit symbol: DEGF
•
Lvl : 3
Click again on the panel to create another PID block, define the block as: •
Tag Name: FC222A
•
Tag Comment: FLOW CONTROL
•
Range: 0-500
•
Engineering unit symbol: LB/H
•
Totalizer Time Unit: “HOUR”
•
Lvl: 3
CENTUM VP Engineering
24
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
7.
Next the connection to I/O will be defined. Select the “Function Block” icon again, and then open “Link Block”. Select “PIO” from the list that appears.
8.
Click on the drawing panel to place the first and define it as “%%AIN-001”.
NOTE: This is the “Label” you created for “%Z011101” in the Analog IOM definition in the previous chapter. 9.
Click on the drawing panel again to place the second link block. Define it as “%%AOT-009”.
10. Place another link block on the page and define it as “%%AIN-002”. 11. Now the function blocks must be connected to the I/O’s. Click on the “Draw Wiring” icon to activate that mode. 12. Click on an “X” on the “%%AIN-001” PIO box, the “X” will turn green. Double click on any of the “X’s” on TC222A; notice the connection is automatically defined as “IN”. Where you started and where you ended defined the direction of the signal flow. 13. Connect from “%%AIN-002” to FC222A. 14. Connect from FC222A to “%%AOT-009” to define the output. 15. For the “Cascade” connection, connect from TC222A to FC222A. Notice that the “OUT” of TC222A is shown as going to the “IN” of FC222A. Move the pointer on top of the “IN” and hold the right-hand mouse button, then select “Terminal Name”, “IO1”, and “SET”. 16. Click on “FC222A”, and then click on the “Edit Function Block Detail” icon. When the new window opens, scroll down and make the “Measurement Tracking” “MAN Mode”, “ Yes”. 17. Scroll down until “Fully-open, Tightly-shut ” displays; change it to “No”. •
Normally the output is set at “–17.19”. In this class, this will make the loops get IOP (Input Open) alarms because the loops have the output wired directly to the inputs. An output of –17.19% would generate the IOP (when not in Test Mode ) because it is below the alarm threshold.
18. Click on “File” and “Update” and then “exit”. 19. Save and, if there are no errors, exit from the control drawing builder.
Continuing the Exercise in Test Function Mode for “STUDENTV” The test function allows the user to test FCS builder files without having an operational system. The project’s name and FCS selected define which unit will be tested. 1.
At the top of the “System View” window, select “FCS” and “Test Function”. Click on “OK” on the next window to appear.
NOTE: As the test function starts the entire CENTUM VP screen now has a blue border, also an indication of being in test mode of a user-defined project. 2.
Wait until the “Test Function” window displays: “Completed Downloading Wiring” before proceeding. (It takes approximately 2 minutes from when the test function is started). At the bottom of the screen select the “Generation Message” icon to open its window. Click on the “Close” box.
3.
Minimize the test function window after the download completes.
CENTUM VP Engineering
25
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
Open the “Test Function” window at the bottom of the screen, then select “Tools”, and then “Wiring Editor ”. Now, select “File” and “Open”. When the new window appears, select the new drawing’s number and “Open”. Use the scroll bar to find “Lag” and enter “10” for both loops. Also make sure that “Bias” is 0. Click on “File” and “Save”. Make sure your drawing is selected on the next window to open and click on “OK”. NOTE: The “Wiring Editor ” is only used for control drawings that are simulating process connections. Using the “Lag” or “Delay”, as an example, you can simulate the process response for you loops.
Displaying the Graphic Blocks 1.
Under the STUDENTV Project, expand “HIS0164” and then highlight “Window”. Click on your righthand mouse button and select “Create New” and “Window” from the menus that appear. The “Create New Window” builder window appears.
2.
Select “Control (8 loop)” for the “Window Type” and change the “Window Name” to “TEMP-CTL”. Now, click on “OK”.
3.
“TEMP-CTL” now appears in the list of files under “Window”, double click on it to display the graphic builder panel.
4.
Click on the faceplate at the left-hand side to select it, now click your right-hand mouse button. When the new menu appears, click on “Properties”.
5. Under Winforms Control, click on Property Page. Define the tag name as “TC222A” and click “OK”. 6.
Now, click on the faceplate in position 2 and define its tag name as “FC222A”, and then “OK”.
7.
Save and exit from this builder.
8.
Minimize the “System View” window, and then click on “NAME” in the system message area. Enter “TEMP-CTL”.
9.
Click on TC222A, an arrow displays on its faceplate to show it is selected and open its “Tuning Window”.
10. When the tuning panel appears, scroll over to display “P” and “I”. Select and change P=150 and I=5. Now close this window. Make the same change to FC222A and then close its tuning panel. 11. On the window “TEMP-CTL”, put FC222A into “CAS”, and TC222A into “AUT”. Click on the box beneath TC222A and set the “SV” to 125. 12. Change TC222A’s setpoint by clicking on the SV arrow, and use the ramping arrows in the box that appears. 13. Put FC222A to “MAN” and ramp its MV up and down. What happened? ___Why? 14. Click on the “Clear All” icon in the “System Message Area”, and close the “Tool Box”.
CENTUM VP Engineering
26
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
REGULATORY CONTROL EXERCISE 2 The next exercise creates a level simulation where the user can define the tank level to be controlled by a level controller or a “ramp generator” that has a ramping profile configured into it.
Display “System View” again and open “DR0002” under “FCS0101” for “STUDENTV”. •
This drawing shows the loops that will be created and the connections that will be made in this exercise. Function Block Model name
Block type and Sub-type
AP222-11
PVI
Regulatory Control, Input Indicators
BL222-11
LAG
Regulatory Control, Analog Calculation
CL222-11
CALCU
General-Purpose Calculations
CL222-12
CALCU
General-Purpose Calculations
LC222-11
PID
Regulatory Control, Controllers
PG222-11
PG-L13
Regulatory Control, Signal Setters
XW222-11
SW-33
Regulatory Control, Auxiliary
FC222-11
PID
Regulatory Control, Controllers
Tag name
Remember : The order of function block creation is also the order of execution. Use the figure on the previous page for “wiring” after the blocks have been created. When you create the function blocks for this exercise the details listed below are based upon the instruments created in the order above.
1.
Define the first function block as: •
Model name: PVI
•
Tag name: AP222-11
•
Tag Comment: INDICATOR
CENTUM VP Engineering
27
TE 33M80N10-10EN-A
CENTUM VP 2.
3.
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
Define the next function block as: •
Model name: LAG
•
Tag Name: BL222-11
•
Tag Comment: LAG
Define the function block #3 as: •
Model name: CALCU
•
Tag name: CL222-11
•
Tag Comment: SCALE RANGE CONVERT 1
•
High Range: 50.0
•
Engineering unit symbol: M3/H
CREATING THE CALCULATION Using the On-Line Manuals for CALCU Function Block information 4.
5.
With the calculation block selected, click on the “Edit Function Block Detail” icon to open up the calculation builder. Now, do the following: •
Click on “Help”, and then “Builder Definition Item”. When “Adobe” opens the on-line manual, maximize the screen by clicking on the s ingle box in the upper right-hand corner of this new window.
•
Open up Function Block Detail Builder (on the left under Builder Items).
•
In the left-hand column click on “Edit Calculation Script” book icon and then select “Basics of Arithmetic Calculation Description”, in the right-hand window to take you to the beginning of its chapter.
•
Using the “Find” icon, enter “Alias Definition”. Double click on the 1 one found at the bottom of the page.
•
What does an “Alias” do?
•
Close the Adobe reader.
st
Go to the “Edit Function Block Detail” icon and enter the following calculation in CL222-11: program alias A BL222-11.SH alias B BL222-11.SL alias Y FC222-11.SH alias Z FC222-11.SL float RANGE RANGE=(Y-Z)/(A-B) CPV=RV*RANGE end •
6.
“Update” and exit from the calculation builder.
Define the next function block as:
CENTUM VP Engineering
28
TE 33M80N10-10EN-A
CENTUM VP
7.
REGULATORY AND CALCULATION FUNCTIONS
•
Model name: CALCU
•
Tag name: CL222-12
•
Tag Comment: SCALE RANGE CONVERT 2
LESSON 4
Now you will create the calculation to run inside of the CALCU block. •
Select “Edit Function Block Detail ” and enter the following calculation:
program alias A BL222-11.SH alias B BL222-11.SL alias Y LC222-11.SH alias Z LC222-11.SL float RANGE RANGE=(Y-Z)/(A-B) CPV=RV*RANGE end •
8.
“Update” and exit from the calculation.
Define the next function block as: •
Model name: PID
•
Tag name: LC222-11
•
Tag Comment: LEVEL CONTROL
•
Lvl: 3
•
Select “Edit Function Block Detail ” icon, then click on the “Show/Hide Detailed Setting Item” icon enter the following:
•
Under “Basic”, find “Measurement Tracking” set “MAN Mode”: Yes
•
Under “Output”, find “MV Display style”: Self
• •
Under “Output”, “MV Display style” find “MV Range High Limit”: 50.0 Under “Output”, “MV Display style” find “MV Engineering Unit Symbol”: M3/H
NOTE: This defines the output of this function block (MV) to be scaled the same as the f unction block it will control. •
“Update” and exit from the detail window.
CENTUM VP Engineering
29
TE 33M80N10-10EN-A
CENTUM VP 9.
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
Define the function block #6 as: •
Model name: PG-L13
•
Tag Name: PG222-11
•
Tag Comment: PROGRAM CONTROL
•
Lvl: 3
•
Select “Edit Function Block Detail ” icon, then click on the “Show/Hide Detailed Setting Item” icon enter the following:
•
Under “Basic”, find “Total Elapsed Time”: 500
•
Under “Control Calculation”, find “When Program Exit”: Quick Return.
•
Refer to the “PG-L13” in the “On-line Manual” to answer this next question:
Using the On-Line Manuals for PG-L13 Function Block Details 10. Click on “Help”, and then “Builder Definition Item”. When “Adobe” opens the on-line manual, maximize the screen. 11. Click on “Edit” in the upper left-hand corner of the Adobe page and then on “Find”, enter “D1.19” and enter. 12. Double click on the D1.19 section under the search result. This will take you to the top of the section on PG-L13. 13. Using the “Find” icon, enter “Quick Return”. Double click on “Quick Return Type” at the bottom. • •
What does “Quick Return” do? You will use this function again in a later exercise!
14. Close the Adobe reader. 15. Back on the PG-L13’s detail definition window define: •
Under “Output”, find “MV Display style”: Self
•
Under “Output”, “MV Display style” find “Range High Limit”: 50.0
•
Under “Output”, “MV Display style” find “Engineering Unit Symbol”: M3/H
•
“Update” and exit from the detail window.
16. Define the function block #7 as: •
Model name: SW-33
•
Tag name: XW222-11
•
Tag Comment: SWITCH
•
Lvl: 3
CENTUM VP Engineering
30
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
17. Define the function block #8 as: •
Model name: PID
•
Tag name: FC222-11
•
Tag Comment: FLOW CONTROL
•
High Range: 50.0
•
Engineering unit symbol: M3/H
•
Totalizer Time Unit: HOUR
•
Lvl: 3
•
Select “Edit Function Block Detail ” icon.
•
Under “Basic”, find “Totalizer Low-Input Cut Value ”: .5%
• •
“Measure Tracking” for “MAN Mode”: Yes “Update” and exit from the detail window.
Now the function blocks must be wired together, using the On-Line Manuals let’s look for more details. •
•
On the control drawing, click on “Help”, and then “Builder Definition Item”. When “Adobe” opens the on-line manual, maximize the screen. Under Control Drawing scroll down and click on “Wiring”. The on-line manual now displays information on wiring; use the scroll arrow to view this information. Close the Adobe reader.
18. Use the figure below as the guide for wiring the function blocks together. •
NOTE: When you are connecting the XW 222-11 to FC222-11, the “S10” terminal name does not show up on the right mous e button menu. You will have to type in “S10”.
19. Now, go to “File” on “DR0002” and select “Save”. If there are no errors, exit this drawing. 20. Close the window.
CENTUM VP Engineering
31
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
CREATING OPERATION DISPLAYS Creating a Control Window 1.
Click on “Window” under “HIS0164” . Now, on “System View” window click on “File”, followed by “Create New” and “Window” from the menus that appear. The “Create New Window” builder window appears.
2.
Select “Control (8 loop)” for the “Window Type” and change the “Window Name” to “TANK5-CG”. Now, click on “OK”.
3.
“TANK5-CG” now appears in the list of files under “Window”, double click on “TANK5-CG” to display its builder panel.
4.
Click on the faceplate at the left-hand side to select it, now click your right-hand mouse button. When the new menu appears, click on “Properties”.
5.
Under “Winforms Control” in the “Property Page”, the “Instrument Diagram” window appears, define the tag name as “XW222-11” and “Apply”.
6.
Now, click on the faceplate in position 2 and define its tag name as “LC222-11”, then “Apply”.
7.
•
Define position #3 as “FC222-11”.
•
Define position #4 as “PG222-11”.
•
Define position #5 as “AP222-11”.
•
Define position #6 as “BL222-11”.
•
Define position #7 as “CL222-11”.
•
Define position #8 as “CL222-12”.
Save and Exit from this builder.
Creating an Overview Window 1.
Highlight “Window” under HIS0164, right click and choose “Create New” and “Window”.
2.
When “Create New Window” appears, change: • • • •
“Window Type” to “Overview” “Window Name” to “TANK5-OV” “Window Comment” to “TANK 5 CONTROLS” Now click on “OK”
3.
When the “TANK5-OV” window appears open the graphic builder panel.
4.
Select the box in the upper left-hand corner, then click the right-hand button and select “Properties”
5.
Click on the “Overview” tab. Make the “Type” as “Comment”, and change the “Comment” box to say “TANK 5 CONTROLS”. “First Line” = “Comment”. •
6.
This defines what will appear in this box when the builder is loaded.
Under the Function Tab, change “Function Type” to “Call Window”, make “Window Name” = “Graphic”. Change “Parameter ” to be “TANK5-OV”, and close. •
The window name defines the panel type to display when the operator selects this box, and the parameter defines which window (if necessary).
CENTUM VP Engineering
32
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
7.
Select the second box down on the left-hand side under “Function Tab”, make the “Function Type” a “Call Window”, make the “Window Name” be “Graphic”, and “Parameter ” to be “TANK5-CG”. Click on “Overview” on this builder window and change the “Type” to “View Name”. Change “View Name” to “TANK5-CG” and “First Line Display Type” to “View Name”. Check box on “Use HIS Display Font”. Now close window.
8.
Select the third box down on the left-hand side under over view, change the “Type” to “Tag Name”, and “Tag Name” to “FC222-11”. Select “Function” and “Function Type” = Call Window, “Window Name” to “Tuning”, and “Parameter ” to “FC222-11”. Click on close.
9.
Now, define the 4 and 5 boxes to display, and go to, the tuning panels for “LC222-11”, and “PG22211”. “Save” and Exit from the overview’s graphic builder.
th
th
NOTE: WARNINGS WILL APPEAR FOR THE UNDEFINED BOXES. 10. On “HIS0164” open the “CONFIGURATION” folder. 11. Select “TR0001”, and define the “properties” as “Continuous and Rotary Type ” and “1 Second” sampling. 12. Now, display “TR0001”, “Group01” and define the “Acquisition Data” for pens: •
#1: “PG222-11.SV”,
•
#2: “PG222-11.MV”,
•
#3: “FC222-11.PV”,
•
#5 “FC222-11.SUM”, with the limits of 0 to 30000, and defined as “Totalizer Value”.
13. "Save" and exit from this trend. 14. Define “TR0002” sampling period for “Continuous and Rotary” and 10 seconds. Also define the “Acquisition Data” using the tags and data items in the previous step. This trend group would be called up with the name of "TG0201". 15. "Save" and Exit from this trend. Trend Point Closing 1.
Assign these new tags to TR0003, Group 1 on “HIS0164” . In chapter 2 we defined the trend block to sample all assigned data at a 1-minute rate.
2.
Define the actual closing process, select “View” at the top of the window followed by “ Closing definition” from the menu that appears. New boxes will appear to the right hand side of the screen. Use the scroll bar to bring these boxes into the window.
3.
Click on “Monthly” for all of the pens being used (“Hourly” and “Daily” are selected by default), and then "Save" and Exit. This will save all of the s ettings defined in the previous steps.
NOTE: Remember we previously set up the “Closing Process” for “HIS0164” in chapter 2, page 20.
CENTUM VP Engineering
33
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
Manipulating the Function Blocks 1.
Click on “NAME” in the “System Message Area”, and enter “TANK5-OV”. When the window appears try selecting the boxes and see where you go.
2.
Display “TANK5-CG”, click on the box beneath XW222-11 to display its data entry window. Enter “1” to connect LC222-11’s OUT to FC222-11’s SET.
3. Select FC222-11 and change its mode to “AUT”. Select the box beneath its faceplate and change the SV data to “30.0”. 4.
Click on BL222-11, and then select “Tuning” from the “Window Call Menu”.
5.
Click on “I” (first order lag time) and enter “10.0” in the data entry window, then close the tuning panel and return to “TANK5-CG”.
6.
Click on FC222-11, then, display its ”Tuning Window”. •
Change the mode to “CAS”.
•
Click on “Operation Mark” icon and assign one of the operation marks.
7.
Close “FC222-11” tuning window.
8.
Display PG222-11’s “Tuning Window” and c hange the following data items: •
X02=30, X03=60, X04=90, X05=120, X06=150, X07=180, X08=210, X09=240
•
Y01=5, Y02=15, Y03=15, Y04=35, Y05=35, Y06=25, Y07=25, Y08=10
Reminder: The “X” registers define time for “ZONES”. A zone is the time the output goes from the Y register setting at the beginning of the zone to the Y register setting at the end of the zone. •
EXAMPLE: Zone #1 starts at X01 (time 0) and ends at X02. The output will ramp from 5 (Y01) to 15 (Y02) during that period.
9. Change PG222-11’s mode to “CAS” then close the tuning panel and return to “TANK5-CG”. •
NOTE: The PG-L13 uses the mode of “CAS” to continually run through its profile. W hen it is put into the mode of “AUT” then it will run 1 time and then go to “MAN”.
10. Change XW222-11 switch position to “2” and watch the operation of FC222-11. 11. Change PG222-11’s mode to “MAN”, and then display its Tuning panel. What happened to the output? 12. Change PG222-11’s mode back to “CAS” then display “TG0101” and watch the trend data change.
Saving the Tuning Parameters under “Test Function” The tuning parameters, for a tag, are all of the changeable items on a tuning window at an engineering level. When a project’s FCS is downloaded the last saved tuning parameters are the ones that are used. 1.
Make sure all “Control Drawings” are closed.
2.
On the “System View” window “Tools” and “Tuning Parameter Saving”.
3.
When the “Tuning parameter save continuously” window, select the “Tuning Parameter Save” button.
4.
Click “OK” on the next window that appears.
5.
Close the both tuning parameter saving windows after the save has completed.
CENTUM VP Engineering
34
TE 33M80N10-10EN-A
CENTUM VP
REGULATORY AND CALCULATION FUNCTIONS
LESSON 4
REPORT PACKAGE Opening the “Report Package” and creating a “Snap shot” report. 1.
On the left- side menu, click on the “Tool Button Tool Box ” and under the “Call View” tab select “Logging Report Package”. Excel� will open then select “Enable Macros” and the Report opens.
2.
Select “Report Tab” from the top menu, under “File”, chose “Open report”. A menu now appears listing the predefined report templates. Now, open the template for “01 SnapshotReport”.
Modifying the report. 1.
When the report opens, click on the cell displaying “@TAG001”. Now, under “Menu Commands”, under “Report”, choose “Data Assignment” on the next menu and a new window will open.
2.
To set the first report cell up, enter “PG222-11” in the “Tag” box. Next put “MV” in the “Item” box.
3.
At the top of the assignment window is a scroll bar with 1/36 displayed at its right-hand side. Click on the right-hand arrow to display cell 2/36.
4.
Assign the PV for FC222-11 and LC222-11 to the next two cells. Remember to “Read Datainf ” as you assign each cell.
5.
Select “OK” when you have finished capturing these settings.
6.
To name this report, select “File” and “Save As”. Enter a name for your report (make the name all one word!) in the window that opens.
7.
After the report has been saved, click on “File” again and the “Close Report”. This will take you back to the main report page.
Loading the Report 1.
To make this new report available, click on “File” and “Load” on the “Report Package” page. When the new window appears, scroll down and click on your report’s name.
2.
To make this an active report, click on the “>>” icon to place the report’s name into the “Master ” list and then “Exit”. •
3.
Reminder: If you modify a report, you MUST reload the report into the master list to over-write the old report.
Minimize the report display; the report is now ready to be run.
CENTUM VP Engineering
35
TE 33M80N10-10EN-A