Beckhoff CX2100­00x4 Manual do Utilizador Página 21

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 45
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 20
Productoverview
2.6 Button
2.6.1 Operatingprincipleofthebutton
TheCX11000xx4powersupplyunitsallhavefournavigationswitchesandanEnterbutton.Thebuttonscan
thereforebeusedtoinputfivebasicstates
Button Value Button Value
UP 4 RIGHT 32
DOWN 8 ENTER/SELECT 64
LEFT 16
Combinedinputs,suchasUP+RIGHTorUP+RIGHT+ENTERcanalsobeentered.Eachvalueismade
availableseparatelyasabooleanvalueandcanbelinkedinthePLC.
ThevaluesofthebuttoncanbeassessedasanumericalvalueviaaTwinCATfunction.Acombinationof
thebuttonscanalsobeassessedviathevalue.TheregistercanbeaccessedfromwithinaPLCprogram,
andthevaluecanbeassessed.ThisrequiresavariableoftypeUSINTfirsttobecreatedinthePLC
program.Thisisthencalledasaparameterinthe‘F_CXNaviSwitchUSB’function.Thecodefragmentshows
thedeclarationoftherequiredvariables.
PROGRAMMAIN
VAR
bUpAT%I*:BOOL;
bDownAT%I*:BOOL;
bLeftAT%I*:BOOL;
bRightAT%I*:BOOL;
bEnterAT%I*:BOOL;
bToggleAT%I*:BOOL;
Taster:USINT;(*alsSummenwert*)
eNaviSwitchCx2:E_CX2100_NaviSwitch;
END_VAR
CX210000x4 21Version1.0
Vista de página 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 44 45

Comentários a estes Manuais

Sem comentários