![]() |
ALPHA-VISION® DataObject dependent Actions: Obj_SetFlag |
Obj_SetFlag("TEST_1", Status,26,6)
The status of the DataObject "TEST_1" is masked by 26(Bits 1, 3, 4);
Only those bits may be modified !
The status-value to be set(6) is shifted to the left until its bit 0
is congruent with the lowest bit of the mask that is set (Bit 1).
Any bit congruent with the mask(Bits 1, 3, 4) is taken over;
any other stays unchanged.
Actual status 11110000 (240) 11110100 (244) Value to set 00000110 (6) 00000110 (6) Mask 00011010 (26) 00011010 (26) moved Value 00000110 00000110 after taking over the bits 11101000 (232) 11101100 (236)