![]() |
ALPHA-VISION® Functions of Data Object Server: Obj_GetFlag |
Obj_GetFlag(OBJ_1,Value,40);
The value of data object ‘OBJ_1’ is checked against the mask 40
(bit 3 & 5).
For the return value the lowest mask-bit becomes bit 0, any other
bits keep their relation to that bit.
Possible returned values for the above example are:
0 – neither bit 3 nor bit 5 of OBJ_1 is set
1 – bit 3 is set
4 – bit 5 is set
5 – bits 3 and 5 are set