Professional Documents
Culture Documents
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 2 of 14
Reference:
-For information about input processing items and output processing items, the FUNC_VAR POU can
handle, refer to"nInput Processing in Different NPAS POU" in "Input Processing", "nOutput Processing
Applicable to Each Model of POU" in "Output Processing", respectively.
-For details on the input processing, see "Input Processing".
-For details on the output processing, see"Output Processing".
-For details on the alarm processing, see"Alarm Processing".
The FUNC_VAR POU converts the value of an input signal using its calculation algorithm (line-
segment function) and setup parameters.
In the output processing of the FUNC_VAR POU, it is possible to perform "CPV pushback. "
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 3 of 14
nCalculation Algorithm
The POU performs a calculation that converts input signals, which are represented along the X
axis of the selected line-segment graph, so they are represented along the Y axis.
The calculation output is determined by multiplying the converted values by gain (GAIN), as
shown in the formula below.
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 4 of 14
nSet Parameters
The parameters of the Variable Line-Segment NPAS POU (FUNC_VAR) are shown as follows.
The Y-coordinate range is set by the read-back from the output destination or an engineering
parameter.
Line-segment coordinates can be set from operation and monitoring functions or other NPAS
POU.
Set the X-axis coordinate line-segment function in the continues increasing direction. When the
setting does not allow the X coordinate to increase strictly, the function assumes that the
function is represented by the solid line shown in the figure below.
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 5 of 14
nAction Example
The following figure shows an example of the variable line-segment function with six segments.
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 6 of 14
nCPV Pushback
The CPV pushback is a function used to prevent a sudden change in an output value to the
process control output when the status of a cascade connection is changed from open to close.
If the FUNC_VAR POU is connected by means of cascade connection and the cascade connection
is opened, the calculation input value (RV) is calculated back based on a calculation output value
(CPV) obtained from a downstream NPAS POU via tracking, thereby making the upstream NPAS
POU track the value.
The CPV pushback operates only when the output value tracking is set to [Yes].
In the CPV pushback of the FUNC_VAR POU, the value RV is obtained by calculating the x-axis
coordinate while using the value obtained by dividing CPV by GAIN as the input on the y-axis.
If GAIN is 0, the CPV pushback calculation is bypassed and the calculation input value (RV)
retains the previous value.
Reference:
For details on the CPV pushback, see"CPV Pushback".
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 7 of 14
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 8 of 14
nInput/Output Parameters
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 9 of 14
Table: Access parameters (All data items listed below have RETAIN/OPC.)
Access Data type Writable Description Range Initial
parameter value
MODE DWORD ü(ü) Block mode - AUT
ALRM DWORD -(-) Alarm status - NR
AF DWORD -(ü) Alarm detection specification - FFFFFFFF
AOFS DWORD -(ü) Alarm masking specification - 0
AOF BOOL ü(ü) Alarm batch suppression 0(AON) 0(AON)
1(AOF)
RV REAL -(ü) Calculation input value SL to SH SL
(Same as RAW)
RAW CData_REAL -(-) Input value raw data SL to SH -
CPV CData_REAL ü(ü) Calculation output value CSL to CSH(*1) CSL
PVCAL BOOL ü(ü) Calibration switch 0(NCL) 0(NCL)
1(CAL)
GAIN REAL ü(ü) Gain - 1.000
SECT INT ü(ü) Number of segments 1-30 1
PLOT(*2) FUNC_DEF ü(ü) Line-segment data(Input value SL to SH SL
X) (Same as RAW)
Line-segment data(Output value CSL to CSH CSL
Y) (Same as CPV)
DCPV CData_REAL -(-) PV difference ±(CSH-CSL) 0.0
*1: CPV (CSL to CSH) is the range linked to the RB_IN connection destination or specified by an
engineering parameter.
*2: Engineering volume conversion is performed for members of structural data. The object members are
"Y, Y". The format for setting of or reference to line graph data is PLOT[n].X for the input value X and
PLOT[n].Y for the output value Y.
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function P... Page 10 of 14
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function P... Page 11 of 14
Table: Engineering parameters (All data items listed below have RETAIN/OPC.)
Engineering Data type Writable Description Range Initial value
parameter
_CPV_RANGE_HI REAL ü CPV range high limit Numerical value of max 7 100.0
value digits, including sign and
decimal point
_CPV_RANGE_LO REAL ü CPV range low limit value Numerical value of max 7 0.0
digits, including sign and
decimal point
_CPV_UNIT STRING(8) ü CPV engineering unit - '%'
_CTL_CYCLE TIME ü Control period 0 (Batch-set) 0 (Batch-set)
N (N: Between scan cycle
and 64 sec.)
_MVTRK_ACT_SW BOOL ü Output value tracking 0 (No) 0 (No)
switch 1 (Yes)
_CLP_ACT_SW BOOL ü Clamp switch 0 (No) 1 (Yes)
1 (Yes)
_CTL_VEL_SW BOOL ü Output action switch 0 (Position based) 0 (Position
1 (Velocity based) based)
_CPV_LMT_BYPASS_SWBOOL ü CPV limitation bypass 0 (limitation) 0 (limitation)
(*1) switch 1 (bypass)
COMMENT STRING(32) ü Comment -
*1: _CPV_LMT_BYPASS_SW do not have OPC. This data cannot be displayed by OPC interface.
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function P... Page 12 of 14
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function P... Page 13 of 14
nUse example
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024
Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function P... Page 14 of 14
file:///C:/YOKOGAWA/FCN-FCJ/LogicDesigner/Libraries/SD_NPASPOU_PF/POE/NPA... 1/4/2024