You are on page 1of 14

Arithmetic Calculation POU->NPAS_FUNC_VAR (Variable Line-segment Function POU) Page 1 of 14

NPAS_FUNC_VAR (Variable Line-segment Function POU)


NPAS_FUNC_VAR is used to convert the values represented by input signals based on a line-
segment function.
The line-segment function to be used can be switched during operation and monitoring. Any
appropriate unequally-divided line-segment function can be selected for use in the input signal
conversion.
The following figure shows the blocks that make up the Variable Line-segment Function POU.

FIGURE: Block diagram of the Variable Line-segment Function POU

Function of Variable Line-segment NPAS POU (NPAS_FUNC_VAR)


Calculation Algorithm
Set Parameters
Action Example
CPV Pushback
Input/Output Parameters
Access Parameters (Access Parameter Connection Supported)
Structure of the Line-segment Data (FUNC_DEF)
Engineering Parameters (Access Parameter Connection not Supported)
Interfaces of the POU
Use 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 POU) Page 2 of 14

nFunction of Variable Line-segment NPAS POU (NPAS_FUNC_VAR)


The FUNC_VAR POU performs input processing, calculation processing, output processing, and
alarm processing.
The only processing timing available for the FUNC_VAR POU is a periodic startup.

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".

lCalculation Processing of Variable Line-segment NPAS POU


(NPAS_FUNC_VAR)

The FUNC_VAR POU converts the value of an input signal using its calculation algorithm (line-
segment function) and setup parameters.

lOutput Processing Specific to Variable Line-segment NPAS POU


(NPAS_FUNC_VAR)

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.

-Number of segments (SECT): A numeric value between 1 and 30.


-X-axis coordinate (input): Set the engineering unit input signal after input signal conversion.
X01 to X31 (1 to Number of line-segment divisions + 1)
-Y-axis coordinate (output): Set the engineering unit calculated output value (CPV).
Y01 to Y31 (1 to Number of line-segment divisions + 1)

The Y-coordinate range is set by the read-back from the output destination or an engineering
parameter.

l When the read-back input RB_IN is connected


The Y-coordinate range (CS1_CSH) coincides with the range at the output destination. For
cases when FUNC_VAR POU is used in a cascade connection etc.
l When the read-back input RB_IN is not connected
The Y-coordinate range (CS1-CSH) becomes the range specified by the engineering
parameter (_CPV_RANGE_HI,C_CPV_RANGE_LO,C_CPV_UNIT). When FUNC_VAR POU is
used for the input signal etc.
The default is 0.0 to 100.0%.

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.

FIGURE: Action When Line-Segment Function Setting Error Occurs

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.

FIGURE: Example of a 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

nCPV Limit Operation


The calculation output value (CPV) will be limited to 0.0%-100.0% on a regularized basis, then
outputted to OUT. If the application required, the limit operation can be bypassed by setting the
engineering parameter (_CPV_LMT_BYPASS_SW) to TRUE. Then, the calculation output value
(CPV) will be outputted directly without the limit operation.
In consideration of safe operation, the limit operation should be activated.

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

Table: Input/Output parameters of the Variable Line-segment Function POU


Parameter Data type Attribute Description
RB_IN CData_REAL INPUT Read back value input from the output destination
IN CData_REAL INPUT Calculation input
RB_OUT CData_REAL OUTPUT Read back output in response to the calculation input
OUT CData_REAL OUTPUT Output value
ENG_RW SD_NPENG_FUNC_VAR IN_OUT Engineering parameter setting
PRM_RW SD_NPPRM_FUNC_VAR IN_OUT Access parameter reference setting

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

nAccess Parameters (Access Parameter Connection Supported)

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

nStructure of the Line-segment Data (FUNC_DEF)


FUNC_DEF: Array of 31 data structures (FUNC_POINT)
FUNC_POINT: Data structure storing line-segment point data

FIGURE: Structure of the line-segment point data

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

nEngineering Parameters (Access Parameter Connection not


Supported)

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

nInterfaces of the POU

FIGURE: Interfaces of the NPAS_FUNC_VAR POU

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

lIn case of use for the input signal

lIn case of use for the cascade signal

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

You might also like