Appendix J Control Buttons On the Front Panel
ViewPAC has built some buttons on its front panel. These buttons is useful in some applications. To get
the state of these buttons, please use the "EEP_B_R" function to read them. For example, user may
write a ST program as below to read the state of "F1" , "F2" , "F3" , "F4" , F5" and "F6" buttons.
(* "F1_btn" , "F2_btn", ..., "F6_btn" are declared as Boolean / Internal variables
The following EEP_B_R( ) returns True if the related button is pressed.
The following EEP_B_R( ) returns False if the related button is released.. *)
(* True means pressed, False means released *)
F1_btn := EEP_B_R( 16#A00F1 ) ;
F2_btn := EEP_B_R( 16#A00F2 ) ;
F3_btn := EEP_B_R( 16#A00F3 ) ;
F4_btn := EEP_B_R( 16#A00F4 ) ;
F5_btn := EEP_B_R( 16#A00F5 ) ;
F6_btn := EEP_B_R( 16#A00F6 ) ;
The "EEP_B_R( ADR_ )" definition for ViewPAC 's buttons:
ADR_ :
16#A00F1 (F1)
16#A00F4 (F4)
16#A0030 (0)
16#A0033 (3)
16#A0036 (6)
16#A0039 (9)
16#A006E (.)
16#A0008 (BackSpace)
16#A0025 (Left)
16#A0027 (Right)
Ap-30
, 16#A00F2 (F2)
,16#A00F5 (F5)
, 16#A0031 (1)
, 16#A0034 (4)
, 16#A0037 (7)
, 16#A000D (Enter)
, 16#A0010 (Shift)
,
, 16#A0026 (Up)
, 16#A0028 (Down)
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
, 16#A00F3 (F3)
, 16#A00F6 (F6)
, 16#A0032 (2)
, 16#A0035 (5)
, 16#A0038 (8)