8 Fonctions
VAR CONSTANT
NO_BUTTONS
BUTTON_BACK
BUTTON_MENU
BUTTON_UP
BUTTON_DOWN
ALL_BUTTONS
END_VAR
BitField := ALL_BUTTONS; (* All buttons (keys) are locked for manual operation. *)
Return := SetButtonLock(BitField);
BitField := BUTTON_UP + BUTTON_DOWN; (* Only UP and DOWN are locked. *)
Return := SetButtonLock(BitField);
BitField := NO_BUTTONS; (* No buttons (keys) are locked for manual operation. *)
Return := SetButtonLock(BitField);
SetButtonState
Actionne les touches de l'appareil (une à la fois uniquement). (La valeur de retour n'a pas de significa-
tion.)
Exemple :
VAR
Return
BitField
END_VAR
VAR CONSTANT
BUTTON_BACK
BUTTON_MENU
BUTTON_UP
BUTTON_DOWN
END_VAR
BitField := BUTTON_BACK; (* The BACK key is operated. *)
Return := SetButtonState(BitField);
48
:UINT:=
0;
(* reset *)
:UINT:=
1;
:UINT:=
2;
:UINT:=
4;
:UINT:=
8;
:UINT:=
15;
:BOOL;
:UINT; (* see VAR CONSTANT *)
:UINT:=
1;
:UINT:=
2;
:UINT:=
4;
:UINT:=
8;