User Manual

12/06 AWB2724-1584GB
Description of important
functions / function blocks
75
Description of important functions / function blocks
FUNCTION Disp_EnableDisplay: BOOL (*Changing Status display <-> Entry/output mode*)
About xDisableESCKey:
Pressing the ESC button (requirement: ESC button must be
enabled) with Entry/output mode active will activate the Status
display. You can disable the ESC button by setting the input
xDisableESCKey to TRUE.
If the “Enable” input is set back to FALSE, the Status display of the
PLC will be displayed again.
FUNCTION Disp_RegisterVariable : BOOL (* Define an IEC variable as display variable *)
50 variables can be used. If you need more, this must be defined
via the “Disp_CreateVariableList” function.
VAR_INPUT
xEnable: (* FALSE: Status display, TRUE: Entry/output mode *)
xDisableESCKey: (*Enabling of ESC button on local display and MFD-CP4:
FALSE: Enable
TRUE: Button disabled *)
END_VAR
(* Return value: TRUE
*)
VAR_INPUT
sName: (* Symbolic name of display variable *)
dwAddress: (* Address of associated IEC variable *)
eVarTyp: (* Data type of the associated IEC variable, see DISP_VARTYP*)
END_VAR
(* Return values:*)
(* TRUE: Display variable successfully registered*)
(* FALSE: Variable list full *)
TYPE DISP_VARTYP :
( DISP_TYP_USINT := 0,
DISP_TYP_UINT,
DISP_TYP_UDINT,
DISP_TYP_SINT,
DISP_TYP_INT,
DISP_TYP_DINT,
DISP_TYP_BYTE,
DISP_TYP_WORD,
DISP_TYP_DWORD,
DISP_TYP_STRING ) := DISP_TYP_UINT;
END_TYPE