Beckhoff CX2100­09x4 Uživatelský manuál Strana 25

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 87
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 24
Productoverview
(*getnaviswitch*)
eNaviSwitchCx2:=F_CXNaviSwitchUSB(Taster);
ThebuttoncanbeaccessedfromthePLCprogramthroughthebuttonvariable.AsimpleCASEstatement
canthenbeusedtoevaluatetheswitch,andthedesiredfunctioncanbeinitiated,e.g.:
CASETasterOF
4:ACTION:=UP;
8:ACTION:=DOWN;
16:ACTION:=LEFT;
32:ACTION:=RIGHT;
64:ACTION:=SELECT;
END_CASE;
Inthiscase,"ACTION"isanewlydefinedENUMtype.Itisalsopossibleforthedesiredactiontobe
activatedimmediately.
Thesumofthenumericalvaluesisusedforthecombinedfunctions.Inotherwords,UP(4)andRIGHT(32)
wouldbe4+32=36.Valuesare:{UP(4),DOWN(8),LEFT(16),RIGHT(32)andENTER(64)}.Inthisway
onlyusefulcombinationsarepossible.
CX210009x4 25Version1.1
Zobrazit stránku 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 86 87

Komentáře k této Příručce

Žádné komentáře