Function Block Description - OpPrty
The OpPrty function block is used to assign a priority to the different pumps or VSDs available in a system.
The function block can process 2 different types of priority:
othe operating hours of each VSD or pump in order to help to keep the number of operating hours at relatively the same level for the different VSDs / pumps,
oa user-defined priority table that allows you to define preferences for the different VSDs / pumps.
The table describes the input/output variable of the function block:
Input/Output |
Data Type |
Description |
---|---|---|
iq_stAlrmCtrl |
stAlrmCtrl |
Structure used for alarm handling. Refer to the structure data type description. |
The table describes the input variables to the function block:
Input |
Data Type |
Description |
---|---|---|
i_xRele |
BOOL |
Activates (TRUE) or stops (FALSE) the execution of the function block. |
i_siNb |
SINT |
Defines the number of pumps or VSDs that are installed in the system. Range: 1...8 |
i_audiOpHr |
ARRAY [0..3] of UDINT |
This array is a table listing the operating hours of the pumps or VSDs (maximum of 8). The operating hour values are provided by the following function blocks: oFsPumpCtrl for FS pumps oVsPumpCtrl for VS pumps oVsdCtrl for VSDs |
i_stUsrTbl |
stUsrTbl |
The user-defined priority table is defined as input. Refer to the structure data type description. |
i_esiPrtyMode |
esiPrtyMode |
Defines the type of priority that is used. Range: oesiPrtyMode.Op (=0) oesiPrtyMode.User (=1) Refer to the structure data type description. |
The table describes the output variable from the function block:
Output |
Data Type |
Description |
---|---|---|
q_asiPrty |
ARRAY [0..8] of SINT |
This array is a table listing the pumps or VSDs in the order according to the calculated priority. Refer to the structure data type description. |