210
Manual – IPOSplus®
17
Standard functions
Compiler – Functions
Example
main()
{
_BitMoveNeg( H1, 3,H2, 4 ); // copies H1.3 = NOT (H2.4)
_BitMoveNeg( H1, 1,H1, 0 ); // copies H1.1 = NOT (H1.0)
}
17.3.5 _BitSet
Syntax
_BitSet( H, bit )
Description
Within the IPOS
plus®
variable h, _BitSet sets the bit with the number bit to one.
Key points
H
Variable name
bit
Constant expression with the number of the bit to be set
Example
main()
{
_BitSet( H100, 3 ); // sets bit 3 in H100
}
17.3.6 _Copy
Syntax
_Copy( H2 , H1, no.)
Description
Copies the number (no.) of consecutive variables as a variable block. H1 specifies the
name of the first source variable, H2 the name of the first target variable. A maximum of
10 variables can be copied.
Key points
H2
Name of the first target variable
H1
Name of the first source variable
no
Constant expression for the number of IPOS
plus®
variables to copy
Example
main()
{
_Copy( H1,H5, 3 ); // copy H1 = H5, H2 = H6, H3 = H7
}
17.3.7 _FaultReaction
Syntax
_FaultReaction( fnr, r )
Description
This command can be used to program the system response to a unit fault. As such, the
command must be carried out before the fault occurs. The argument specifies the fault
and the corresponding response if this fault occurs.
All fault responses in the fault list in the operating instructions or the system manual that
have a dot in column P can be programmed as fault responses.
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n