User Manual

12/06 AWB2724-1584GB
Description of important
functions / function blocks
77
FUNCTION_BLOCK Disp_DisplayPage (* Display of a screen *)
...
TYPE DISP_ATTRIBUT :
( DISP_ATTR_NORMAL := 0,
DISP_ATTR_REVERSE,
DISP_ATTR_BLINK ) := DISP_ATTR_NORMAL;
END_TYPE
VAR_INPUT
xEnable: (* TRUE: Activate display *)
xEnableInput: (* TRUE: Activate Entry *)
byNoOfElements: (* Number of elements for this screen 1 - 12*)
aElementDescription:ARRAY [1..12]
OF DISP_ElementDescription:
(* See DISP_ElementDescription*)
END_VAR
VAR_OUTPUT
byError
END_VAR
(* Return values:*) *
(* 0: OK, all elements are displayed*)
(* 1 - 12: error on display of the element “n” or see DISP_ERROR_INVALID_NO_OF_ELEMENTS*)
TYPE DISP_ElementDescription : (* Description of one display element *)
STRUCT
xEnable : (* TRUE Default setting: Element is displayed; FALSE: Display frozen*)
xInputEnable : (* FALSE: Display of element, see figure 88; TRUE: Display (initialisation) value,
Entry possible*)
sName : (* Symbolic element name *)
byLine : (* Display element in line 1 - 4 *)
byColumn: (* Display element in column 1 - 16 *)
eFont : (* Font, only elements of type STRING ! See DISP_FONTS*)
byDigits : (* Number of characters, only for numerical elements*)
byPrecision : (* Number of characters after decimal point, only for numerical elements *)
diMinInputValue#: (* Min value for entry value, only for numerical elements *)
diMaxInputValue#: (* Max value for entry value, only for numerical elements *)
eAttribut: (* Element properties normal, reverse, flashing. See DISP_ATTRIBUT*)
xInputActiv#: (* TRUE: If inputs xEnable and xEnableInput of the FB Disp_DisplayPage = TRUE*)
xInputDone#: (* TRUE: After completing value entry by pressing the
“OK” button. Must be reset by user to FALSE!*)
eError (* See DISP_ERROR*)
END_STRUCT
END_TYPE
END_VAR
# Active if xInputEnable = TRUE
(* Returnvalues: *)
(* DISP_ERROR_NO_ERROR, OK, no error *)
(* DISP_ERROR_INVALID_LINE, outside of value range: 1 - 4 *)
(* DISP_ERROR_INVALID_COLUMN, outside of value range: 1 - 4 *)
(* DISP_ERROR_ELEMENT_NOT_FOUND,
Element not found*)
(* DISP_ERROR_ELEMENT_NOT_FOUND, Element not found*)