Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1.33
Page 1 of 17
The General-Purpose Calculation Blocks (CALCU, CALCU-C) are used when defining arbitrary calculation
algorithms.
Figure 1.33-1
The following tables show the connection types and connection destinations of the I/O terminals of GeneralPurpose Calculation Blocks (CALCU, CALCU-C).
Table 1.33-1 Connection Types and Connection Destinations of the I/O Terminals of General-Purpose
Calculation Block (CALCU)
Connection type(*1)
I/O terminal
Data
Data Condition
reference setting
testing
Connection destination(*1)
Status
Terminal Process
manipulation connection
I/O
Software
I/O
Function
block
Calculation
input
Q01
nth
to
calculation
Q07
input
IN
OUT
Calculation
output
J01
to
J03
nth
calculation
output
SUB
Auxiliary
output
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
*1:
Page 2 of 17
x: Connection available
Blank: Connection not available
: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link
block (ADL).
Table 1.33-2 Connection Types and Connection Destinations of the I/O Terminals of General-Purpose
Calculation Block with String I/O (CALCU-C)
Connection type(*1)
I/O terminal
Data
Data Condition
reference setting
testing
Connection destination(*1)
Status
Terminal Process
manipulation connection
I/O
Software
I/O
Function
block
Calculation
input
Q01
nth
to
calculation
Q03
input
Q04
nth
to
calculation
Q07
input
IN
OUT
Calculation
output
J01
nth
calculation
output
J02
to
J03
nth
calculation
output
SUB
Auxiliary
output
*1:
x: Connection available
Blank: Connection not available
: Connection is available only when connecting to a switch block (SW-33, SW-91) or inter-station data link
block (ADL).
SEE
ALSO
The medium-speed scan period can only be used for the FFCS series, KFCS2, KFCS, LFCS2, and LFCS.
For more information about the types of input processing, output processing, and alarm processing
possible for the CALCU and CALCU-C blocks, refer to:
1.3.1, "Input Processing, Output Processing, and Alarm Processing Possible for Each Calculation Block"
For more information about the input processing, refer to:
3, Input Processing in the Function Blocks Overview (IM 33K03E21-50E)
For more information about the output processing, refer to:
4, Output Processing in the Function Blocks Overview (IM 33K03E21-50E)
For more information about the alarm processing, refer to:
5, Alarm Processing - FCS in the Function Blocks Overview (IM 33K03E21-50E)
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 3 of 17
The CALCU and CALCU-C blocks perform special input processing when an abnormal calculation input value
is detected.
The CALCU and CALCU-C blocks perform computation using arbitrarily defined calculation algorithms and
their setup parameters.
The calculation error alarm check, which is one of the alarm checks performed by the CALCU and CALCU-C
blocks, is specific to these two function blocks.
SL= CPV scale low limit; SH= CPV scale high limit
In CENTUM-XL system, the In/Out data of general-purpose calculation blocks are normalized values. In
CENTUM VP system, the In/Out data of general-purpose calculation blocks can be either normalized values
or engineering unit data values according to the designation on the builder. Designating to use the
normalized In/Out data of general-purpose calculation blocks can retain consistency when migrating a
CENTUM-XL calculations to CENTUM VP system.
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 4 of 17
Compensationcomputing Type
All-detection Type
Non-detecting Type
*1:
*2:
*3:
*4:
CPV data
status
RV
RV1 to
RV7 (*2)
Calculation
processing
BAD
BAD
NR
(*3)
BAD
Normal
QST
NR
(*3)
NR (*3)
Normal
NR (*3)
BAD
BAD
BAD
BAD
NR
(*3)
NR (*3)
Normal
NR (*3)
Do not communicate.
Normal
NR (*3)
Do not communicate.
RV
Do not communicate.
The following processing is performed if the data status of a calculation output value (CPV) becomes a bad
data value (BAD) or a questionable data value (QST) according to the specification of the calculation input
value error detection.
If the data status of a calculation output value (CPV) becomes a bad data value (BAD)
The calculation processing is aborted, the value immediately before the error is retained and the
connected destination of OUT terminal will hold this retained previous value. The previous good CPV is
held and accessible from SUB terminal. If CPV overshoot is set to the block, the data from the OUT
terminal is not affected by the CPV change caused by main calculation input (RV) abnormality. However,
the CPV after overshoot can be accessed using SUB terminal.
If the data status of a calculation output value (CPV) becomes a questionable data value (QST)
The calculation input values (RV, RVn) retain the values immediately before the error generation. The
calculation processing is continued using these values and the calculation output value (CPV) is updated.
Relationship of CALCU and CALCU-C Block's Data Status of Input (RVn) and Data Status of
Compensation-computing Type
RV
RV1 to
RV7 (*3)
Calculation
processing
QST is
passed
QST is not
passed
BAD
BAD
BAD
BAD
Normal
QST
QST
QST
QST
Normal
QST
NR
QST
NR
Normal
QST
NR
NR
QST
Normal
NR
NR
NR
NR
Normal
NR
NR
BAD
BAD
BAD
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
All-detection Type
Non-detecting Type
*1:
*2:
*3:
TIP
SEE
ALSO
Page 5 of 17
BAD
BAD
BAD
QST
QST
Normal
QST
NR
QST
NR
Normal
QST
NR
NR
QST
Normal
QST
NR
NR
NR
Normal
NR
NR
Normal
NR
NR
Notice that when this option is checked, the closing processing of trend data and the closing data of
report, the quality flag of OPC may be affected.
For more information about the closing processing of trend data, refer to:
" Closing Data Processing Based on Data Status" in 1.7.2, "Structure of the Closing Processed Data "
in the Human Interface Stations Reference Vol.2 (IM 33K03F22-50E)
For more information about the closing data of report, refer to:
" Detailed Format Design Closed-Topic Dialog Box Detail Definition Sheet" in 2.4.2, "Detailed
Format Design Closing Data" in the Optional Functions Reference (IM 33K03N10-50E)
For more information about the quality flag of OPC, refer to:
"z Setting Quality Flag Tables" in " HIS Setup Window" in 1.2 "Engineering Related to OPC" in the
Optional Functions Reference (IM 33K03N10-50E)
Calculation Algorithm
The General-Purpose Calculation Blocks (CALCU, CALCU-C) execute algorithms that are defined using the
general-purpose calculation expression description language.
The calculation input values, calculated output values and set parameters of the General-Purpose Calculation
Block (CALCU) all use double-precision floating-point data type.
The calculation input values (RV4 to RV7) and calculated output values (CPV2, CPV3) of the General-Purpose
Calculation Block with String I/O (CALCU-C) all use string data type. When data of other function block is
referred or set using element symbols and a description of data items without specifying I/O terminal
connections in a calculation expression description, terminal connections of the specified I/O data are
performed automatically during compiling. The I/O terminals used here are different from those connected in
the Function Block Detail Builder.
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 6 of 17
The input signals that are directly specified in the calculation expression description become the target of
calculation input error detection.
SEE
ALSO
For more information about the general-purpose calculation expression description language, refer to:
1.47, "General-Purpose Arithmetic Expressions"
Up to eight input terminal connections and four output terminal connections can be defined on the
Function Block Detail Builder.
Up to 24 input data and 12 output data can be referred or set as the element symbols and data items in a
calculation expression.
However, for using alphanumeric strings in CALCU-C, a maximum of 6 character strings and 6 numeric
strings can be used.
Data of other FCS cannot be used in an arithmetic/logic calculation expression.
Set Parameters
The parameters of the General-Purpose Calculation Blocks (CALCU, CALCU-C) are shown as follows.
Calculation parameters 1 to 4 (P01 to P 04)
Engineering unit data values.
Calculation parameters 5 to 8 (P05 to P08)
Engineering unit data values in the case of General-Purpose Calculation Block (CALCU).
A string data of up to 16 standard-width characters or 8 double-width characters can be used for the
General-Purpose Calculation Block with String I/O (CALCU-C).
SEE
ALSO
For more information about suppressing the system alarms on calculation error, refer to:
" Suppress System Alarm when CALCU Calculation Error Occurs : FFCS Series/KFCS2/LFCS2" in
1.33, "General-Purpose Calculation Blocks (CALCU, CALCU-C)"
For more information about the description of calculation errors and the calculation error handling, refer
to:
1.47.7, "Error Handling"
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 7 of 17
SEE
ALSO
SEE
ALSO
Range
Default
-----
O/S
(AUT)
Alarm status
-----
NR
AFLS
-----
-----
AF
Alarm detection
specification
-----
-----
AOFS
Alarm masking
specification
-----
-----
RV
-----
RAW
-----
MODE
Block mode
ALRM
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 8 of 17
RV1 to RV7
-----
RAW1 to
RAW7
-----
CPV
SL
SUM
Totalizer value
CPV1 to
CPV3
-----
P01 to P08
Calculation parameters 1
to 8
-----
EERL
-----
ERRC (*3)
Error code
-----
OPMK
Operation mark
0 to 64
UAID
User application ID
-----
*1:
*2:
*3:
(*2)
The table below shows the data items of the General-Purpose Calculation Block with String I/O (CALCU-C):
Table 1.33-6
Data Item
Range
Default
-----
O/S
(AUT)
Alarm status
-----
NR
AFLS
-----
-----
AF
Alarm detection
specification
-----
-----
AOFS
Alarm masking
specification
-----
-----
RV
-----
RAW
-----
RV1 to RV3
-----
RAW1 to
RAW3
-----
RV4 to RV7
16Byte
NULL
CPV
SL
SUM
Totalizer value
CPV1
16Byte
NULL
CPV2 to
CPV3
-----
P01 to P04
Calculation parameters 1
to 4
-----
P05 to P08
Calculation parameters 5
to 8
16Byte
NULL
MODE
Block mode
ALRM
(*2)
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
EERL
-----
ERRC (*3)
Error code
-----
OPMK
Operation mark
0 to 64
UAID
User application ID
-----
*1:
*2:
*3:
SEE
ALSO
Page 9 of 17
For more information about valid block modes for CALCU block and CALCU-C block, refer to:
1.3.2, "Valid Block Modes for Each Calculation Block"
Even though the I/O normalization is specified on the builder, the CENTUM-XL
calculation expressions are not free from problems. After the CENTUM-XL migration,
the application debugging is necessary.
z In Data Normalization
The input engineering unit data (RV) of a calculation block can be normalized before used in the calculation.
When normalizing the RV, the range of the general-purpose calculation block will be ignored but the range of
the block connected to IN terminal or Q01 to Q07 terminal will be used. The normalization is performed with
the following formula:
RVN = (RV SLi) / (SHi SLi)
RVN: After normalization
RV: Before normalization (Engineering Unit Data)
SHi: Scale high-limit of the connected data
SLi: Scale low -limit of the connected data
For the data item, such as DV or DL, that is differentiated from other data items, the normalization is
performed with the following formula:
RVN = RV / (SHi SLi)
RVN:
RV:
SHi:
SLi:
After normalization
Before normalization
Scale high-limit of the connected data
Scale low -limit of the connected data
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 10 of 17
Formula
number
Range
SH:SL
SSH:SSL
MSH:MSL
SH:SL (Difference)
SSH:SSL (Difference)
DSH:DSL
RVN = (RV - DSL) / (DSH - DSL) CPV = CPVN (DSH - DSL) + DSL
DSH:DSL (Difference)
MSH1:MSL1
10
MSH1:MSL1
(Difference)
11
MSH2:MSL2
12
MSH2:MSL2
(Difference)
z Input Limitation
If Normalization of Input/Output Signal is defined with Yes, the input data will be restricted as follows:
If the connected data or referenced data is a non-difference type data.
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 11 of 17
The data value will be restricted within the range of SH and SL-(SH-SL).
(SH/SL: Range of the connected or referenced data)
If the connected data or referenced data is a difference type data.
The data value will be restricted within the range between positive and negative of (SH-SL).
(SH/SL: Range of the connected or referenced data)
However, the values beyond the limitation can be visualized on Tuning View.
z Output Limitation
If Normalization of Input/Output Signal is defined with Yes, the output will be restricted as follows:
CPV
The data value will be restricted within the range of SH and SL-(SH-SL).
(SH/SL: Range of the CPV)
If the connected data or referenced data is a non-difference type data.
The data value will be restricted within the range of SH and SL-(SH-SL).
(SH/SL: Range of the connected or manipulated data)
If the connected data or referenced data is a difference type data.
The data value will be restricted within the range between positive and negative of (SH-SL).
(SH/SL: Range of the connected or manipulated data)
However, the values after limitation can be visualized on Tuning View.
Range
Fomula
number
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
PVI
PVI-DV
PID
PI-HLD
PID-BSW
ONOFF
ONOFF-E
ONOFF-G
ONOFF-GE
PID-TP
PD-MR
PI-BLEND
PID-STC
MLD
MLD-PVI
MLD-SW
Page 12 of 17
HH / LL / PH / PL / PV / PVP
SH:SL
VL
SH:SL (Difference)
SH:SL
DL / DV / VL
SH:SL (Difference)
SH:SL
MSH:MSL
DB / DL / GW / VL / DV
SH:SL (Difference)
SH:SL
MSH:MSL
DB / DL / GW / VL / DV
SH:SL (Difference)
SH:SL
MSH:MSL
DL / LK / VL / DV
SH:SL (Difference)
BIAS
MSH:MSL (Difference)
SH:SL
MV / PMV / RMV
MSH:MSL
DL / VL / DV
SH:SL (Difference)
SH:SL
MV / PMV / RMV
MSH:MSL
DL / VL / DV
SH:SL (Difference)
SH:SL
MV / PMV / RMV
MSH:MSL
DB / DL / VL / DV
SH:SL (Difference)
SH:SL
MV / PMV / RMV
MSH:MSL
DB / DL / VL / DV
SH:SL (Difference)
SH:SL
MSH:MSL
DB / DL / GW / VL / DV
SH:SL (Difference)
SH:SL
MSH:MSL
DL / VL / DV
SH:SL (Difference)
SH:SL
MSH:MSL
RP
MSH:MSL (Difference)
DL / VL / DV
DSL:DSH (Difference)
SH:SL
MSH:MSL
DB / DL / GW / VL / DV
SH:SL (Difference)
MH / ML / MV / OPHI / OPLO
MSH:MSL
HH / LL / PH / PL / PV / PVP
SH:SL
MH / ML / MV / OPHI / OPLO
MSH:MSL
VL
SH:SL (Difference)
SSH:SSL
MSH:MSL
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 13 of 17
BIAS / RP
SSH:SSL (Difference)
MC-2
ANSP / FV / PH / PL
SH:SL
MC-2E
ANSP / FV / PH / PL
SH:SL
MC-3
ANSP / FV / PH / PL
SH:SL
MC-3E
ANSP / FV / PH / PL
SH:SL
HH / LL / PH / PL / PV / PVP
SH:SL
SSH:SSL
MSH:MSL
VL
SH:SL (Difference)
RP
SSH:SSL (Difference)
BIAS
MSH:MSL (Difference)
MSH:MSL
LL / PH / PL / PV
SH:SL
MSH:MSL
LL / PH / PL / PV
SH:SL
MSH:MSL
SSH:SSL
MSH:MSL
DL / DMVM / DMVP / DV
SSH:SSL (Difference)
PV / RV1-3
SH:SL
PV / RV1-3
SH:SL
MSH:MSL
HH / LL / PH / PL / PV / PVP / RV1-2 / SV
SH:SL
DL / DV / VL
SH:SL (Difference)
CSV / SV
SSH:SSL
PV
SH:SL
SSH:SSL
MSH:MSL
RP
MSH:MSL (Difference)
MSH:MSL
RP
MSH:MSL (Difference)
SSH:SSL
MV1
MSH1:MSL1
RP1
MSH1:MSL1
(Difference)
10
MV2
MSH2:MSL2
11
RP2
MSH2:MSL2
(Difference)
12
PH / PV
SH:SL
DL
SH:SL (Difference)
Irrelevant to normalization
SH:SL
DL / DV
SH:SL (Difference)
SH:SL
DL / DV
SH:SL (Difference)
SH:SL
RATIO
PG-L13 (*1)
BSETU-2
BSETU-3
VELLIM
SS-H/M/L
AS-H/M/L
SS-DUAL
FOUT
FFSUM
XCPL
SPLIT
PTC
ALM-R
SLCD
SLPC
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 14 of 17
SLMC
DL / DV
SH:SL (Difference)
SMST-111
SH:SL
SMST-121
PH / PL / PV
SH:SL
PH / PL / PV
SH:SL
SSH:SSL
DL
SH:SL (Difference)
SBSD
PH / PL / PV
SH:SL
SLBC
PH / PL / PV
SH:SL
PV
SH:SL
RSV / SV
SSH:SSL
DV
SH:SL (Difference)
PV
SH:SL
SMRT
SLCC
STLD
*1:
Calculation Blocks
Table 1.33-9
Model name
Range
Fomula number
ADD
CPV
SH:SL
MUL
CPV
SH:SL
DIV
CPV
SH:SL
AVE
CPV
SH:SL
SQRT
CPV
SH:SL
EXP
CPV
SH:SL
LAG
CPV
SH:SL
INTEG
CPV
SH:SL
LD
CPV
SH:SL
RAMP
CPV
SH:SL
LDLAG
CPV
SH:SL
DLAY
CPV
SH:SL
DLAY-C
CPV
SH:SL
AVE-M
CPV / PREV
SH:SL
AVE-C
CPV / PREV
SH:SL
FUNC-VAR
CPV
SH:SL
TPCFL
CPV
SH:SL
ASTM1
CPV
SH:SL
ASTM2
CPV
SH:SL
AND
Irrelevant to normalization
OR
Irrelevant to normalization
NOT
Irrelevant to normalization
SRS1-S
Irrelevant to normalization
SRS1-R
Irrelevant to normalization
SRS2-S
Irrelevant to normalization
SRS2-R
Irrelevant to normalization
WOUT
Irrelevant to normalization
OND
Irrelevant to normalization
OFFD
Irrelevant to normalization
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
TON
Irrelevant to normalization
TOFF
Irrelevant to normalization
GT
Irrelevant to normalization
GE
Irrelevant to normalization
EQ
Irrelevant to normalization
BAND
Irrelevant to normalization
BOR
Irrelevant to normalization
BNOT
Irrelevant to normalization
CALCU
CPV
SH:SL
CALCU-C
CPV
SH:SL
Table 1.33-10
Page 15 of 17
Model name
Range
Fomula number
SW-33
Irrelevant to normalization
SW-91
Irrelevant to normalization
DSW-16
CPV / SD01-16
SH:SL
DSW-16C
Irrelevant to normalization
DSET
SV / SVH / SVL
SH:SL
SH:SL
VL
SH:SL (Difference)
BDSET-1L
DT01-DT16
BDSET-1C
Irrelevant to normalization
BDSET-2L
DT01-DT16 / NX01-NX16
BDSET-2C
Irrelevant to normalization
BDA-L
DT01-DT16
BDA-C
Irrelevant to normalization
DSET-PVI
1 to 12
1 to 12
1 to 12
Faceplate Blocks
Table 1.33-11
Model name
INDST2
Range
Fomula number
PV / SV / SVH / SVL
SH:SL
SV / SVH / SVL
SH:SL
MH / ML / MV
MSH:MSL
PV / SV / SVH / SVL
SH:SL
MH / ML / MV
MSH:MSL
BSI
Irrelevant to normalization
PBS5C
Irrelevant to normalization
PBS10C
Irrelevant to normalization
PV / SV / SVH / SVL
SH:SL
MH / ML / MV
MSH:MSL
INDST2S
INDST3
HAS3C
SFC Blocks
Table 1.33-12
Model name
Range
Fomula number
_SFCSW
Irrelevant to normalization
_SFCPB
Irrelevant to normalization
PV / SV / SVH / SVL
SH:SL
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
_SFCAS
MH / ML / MV
MSH:MSL
Page 16 of 17
Model name
Range
Fomula number
_UTSW
Irrelevant to normalization
_UTPB
Irrelevant to normalization
PV / SV / SVH / SVL
SH:SL
MH / ML / MV
MSH:MSL
_UTSW-SN
Irrelevant to normalization
_UTPB-SN
Irrelevant to normalization
PV / SV / SVH / SVL
SH:SL
MH / ML / MV
MSH:MSL
_UTAS
_UTAS-SN
Model name
FSBSET
BLEND
Range
Fomula number
SH:SL
MV / OPHI / OPLO
MSH:MSL
DL1 / DL2 / DV
SH:SL (Difference)
SH:SL
FF Faceplate Blocks
Table 1.33-15
Model
name
Range
Fomula
number
FF-AI
HH / LL / OUT_V / PH / PL / PV
SH:SL
FF-DI
Irrelevant to normalization
FF-CS
MSH:MSL
SH:SL
MSH:MSL
DH
SH:SL
(Difference)
SH:SL
MSH:MSL
DH
SH:SL
(Difference)
SH:SL
MSH:MSL
FF-DO
Irrelevant to normalization
FF-OS
CSV / SV
SSH:SSL
FF-SC
OUT1_V / OUT2_V
SH:SL
FF-IT
CPV
SH:SL
FF-IS
CPV
SH:SL
FF-MDI
Irrelevant to normalization
FF-PID
FF-RA
FF-AO
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014
Page 17 of 17
FF-MDO
Irrelevant to normalization
FF-MAI
Irrelevant to normalization
FF-MAO
Irrelevant to normalization
SEE
ALSO
In CENTUM-XL, the calculation blocks do not have digital filter and totalization features.
file:///C:/Program%20Files%20(x86)/Yokogawa/IA/iPCS/Products/CENTUMVP/Pro... 25/12/2014