Lenze DDS Function library PLCToolBox Manuel d'utilisateur Page 11

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 26
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 10
Function library LenzePLCToolBox.lib
Functions/function blocks
2.3 L_TBConvBitsToDword
2−3
L LenzePLCToolBox.lib EN 1.5
2.3 L_TBConvBitsToDword
DWORD L_TBConvBitsToDword (bBit0, bBit1, bBit2, bBit3,
bBit4, bBit5, bBit6, bBit7,
bBit8, bBit9, bBit10, bBit11,
bBit12, bBit13, bBit14, bBit15,
bBit16, bBit17, bBit18, bBit19,
bBit20, bBit21, bBit22, bBit23,
bBit24, bBit25, bBit26, bBit27,
bBit28, bBit29, bBit30, bBit31)
This function converts 32 single bit values into a value of type "double word".
L_TBConvBitsToDword
bBit0
bBit1
bBit2
bBit31
Double word (32 bits)
Transfer parameters
Identifiers Data type Info/possible settings
bBit0 Bool Bit 0 (valency: 2
0
)
bBit1 Bool Bit 1 (valency: 2
1
)
bBit2 Bool Bit 2 (valency: 2
2
)
... ... ...
bBit31 Bool Bit 31 (valency: 2
31
)
Return value: Double word
Value Meaning
0 ... 4294967295 Value of type double word" corresponding to the transmitted bit values.
Example
Calling the function in ST:
dwResult := L_TBConvBitsToDword(0, 1, 1, 0, 1, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0);
(* dwResult = 406 *)
Vue de la page 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 25 26

Commentaires sur ces manuels

Pas de commentaire