
Productoverview
(*getnaviswitch*)
eNaviSwitchCx2:=F_CXNaviSwitchUSB(Taster);
ThebuttoncanbeaccessedfromthePLCprogramthroughthebuttonvariable.AsimpleCASEstatement
canthenbeusedtoevaluatetheswitch,andthedesiredfunctioncanbeinitiated,e.g.:
CASETasterOF
4:ACTION:=UP;
8:ACTION:=DOWN;
16:ACTION:=LEFT;
32:ACTION:=RIGHT;
64:ACTION:=SELECT;
END_CASE;
Inthiscase,"ACTION"isanewlydefinedENUMtype.Itisalsopossibleforthedesiredactiontobe
activatedimmediately.
Thesumofthenumericalvaluesisusedforthecombinedfunctions.Inotherwords,UP(4)andRIGHT(32)
wouldbe4+32=36.Valuesare:{UP(4),DOWN(8),LEFT(16),RIGHT(32)andENTER(64)}.Inthisway
onlyusefulcombinationsarepossible.
CX210000x422 Version1.0
Comentários a estes Manuais