Lenze DDS Function library PLCToolBox Uživatelský manuál Strana 24

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 26
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 23
Function library LenzePLCToolBox.lib
Functions/function blocks
2.16 L_TBSetBitOfDword
2−16
L
LenzePLCToolBox.lib EN 1.5
2.16 L_TBSetBitOfDword
DWORD L_TBSetBitOfDword (dwInput, byBitNr)
This function sets a single bit in a value of type "double word" to "1".
L_TBSetBitOfDword
0
31
dwInput
byBitNr
1
0...31
Set
Transfer parameters
Identifiers Data type Info/possible settings
dwInput Double word Value in which a bit is to be set to 1".
byBitNr Byte No. (0 ... 31) of the bit to be set.
Return value: Double word
Value Meaning
0 ... 4294967295 Value of type "double word" resulting from the set bit.
Example
Calling the function in ST:
dwValue := 97 (* dwValue = 97 dec = 01100001 bin *)
dwValue := L_TBSetBitOfDword(dwValue, 3); (* set bit 3 *)
(* dwValue = 105 dec = 01101001 bin *)
Zobrazit stránku 23
1 2 ... 19 20 21 22 23 24 25 26

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

Žádné komentáře