BECKHOFF CX1100-000x User Manual

Page 24

Advertising
background image

Product overview

22

Embedded PC

e_CX1100_NaviSwitch_MIDDLE_TOPLEFT

Further details on the function can be read in the TwinCAT documentation. The function can be used in a program as
follows: (The declaration and linking are as given in the example above)

CASE F_CXNaviSwitch(Taster) OF

e_CX1100_NaviSwitch_IDLE

:;

(* do nothing *)

e_CX1100_NaviSwitch_MIDDLE

:call_select;

(* select item *)

e_CX1100_NaviSwitch_TOP

:call_prev_item; (* previous menue item *)

e_CX1100_NaviSwitch_RIGHT

:call_inc_value; (* increase value *)

e_CX1100_NaviSwitch_BOTTOM

:call_next_item; (* next menue item *)

e_CX1100_NaviSwitch_LEFT

:call_dec_value; (* decrease value *)

END_CASE;

Further evaluation of the switch inputs is then done later in the program.

Advertising