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

  • 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 21
Function library LenzePLCToolBox.lib
Functions/function blocks
2.14 L_TBResetBitOfWord
2−14
L
LenzePLCToolBox.lib EN 1.5
2.14 L_TBResetBitOfWord
WORD L_TBResetBitOfWord (wInput, byBitNr)
This function resets a single bit in a value of type "word" to "0".
L_TBResetBitOfWord
0
15
wInput
byBitNr
0
0...15
Reset
Transfer parameters
Identifiers Data type Info/possible settings
wInput Word Value in which a bit is to be reset to 0".
byBitNr Byte No. (0 ... 15) of the bit to be reset.
Return value: Word
Value Meaning
0 ... 65535 Value of type "word" resulting from the reset bit.
Example
Calling the function in ST:
wValue := 105 (* wValue = 105 dec = 01101001 bin *)
wValue := L_TBResetBitOfWord(wValue, 3); (* reset bit 3 *)
(* wValue = 97 dec = 01100001 bin *)
Zobrazit stránku 21
1 2 ... 17 18 19 20 21 22 23 24 25 26

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

Žádné komentáře