17.3.2 _BitClear
Syntax
_BitClear( H, bit )
Beschreibung
_BitClear setzt innerhalb der Variablen H das Bit bit auf Null.
Argumente
H
bit
Beispiel
main()
{
}
17.3.3 _BitMove
Syntax
_BitMove( H2 , bit2, H1, bit1 )
Beschreibung
Kopiert das Bit mit der Nummer bit1 von IPOS
mer bit2 von IPOS
ben unverändert. Die Bitstellen einer Variablen besitzen die Nummern 0 bis 31. Das
niederwertigste Bit hat die Nummer 0.
Argumente
H2
bit2
H1
bit1
Beispiel
main()
{
}
17.3.4 _BitMoveNeg
Syntax
_BitMoveNeg( H2 , bit2, H1, bit1 )
Beschreibung
Kopiert das Bit mit der Nummer bit1 von IPOS
mer bit2 von IPOS
und alle anderen Bits von H2 bleiben unverändert. Die Bitstellen einer Variablen besit-
zen die Nummern 0 bis 31. Das niederwertigste Bit hat die Nummer 0.
Argumente
H2
bit2
H1
bit1
Handbuch – IPOSplus®
Variablenname
konstanter Ausdruck für Bitposition
_BitClear( H100, 3 );
plus®
-Variable h2. Alle Bits von H1 und alle anderen Bits von H2 blei-
Name der Ziel-Variable
Nummer des Ziel-Bits
Name der Quell-Variable
Nummer des Quell-Bits
_BitMove( H1, 3,H2, 4 );
_BitMove( H1, 1,H1, 0 );
plus®
-Variable H2, wobei das Bit dabei negiert wird. Alle Bits von H1
Name der Ziel-Variable
Nummer des Ziel-Bits
Name der Quell-Variable
Nummer des Quell-Bits
Compiler – Funktionen
Standardfunktionen
// löscht Bit 3 in H100
plus®
-Variable H1 in das Bit mit der Num-
// kopiert H1.3 = H2.4
// kopiert H1.1 = H1.0
plus®
-Variable H1 in das Bit mit der Num-
n
n
kVA
kVA
17
f
f
i
i
P
Hz
Hz
P
209