Allows a value expressed in hexadecimal to be subtracted from a variable of type INT.
Sintassi |
bit_mask_remove name value |
---|---|
name |
Name of the variable to subtract the value to |
value |
Value subtracted from the variable. Must be written in hexadecimal, with "0x" in front |
Note |
WARNING: This Instruction is handled directly by the RDE environment. It is not recommended to use it from task or rule. |
Example usage: From RDE project -> General -> Definitions -> Bit mask, we add these three definitions: •axis_mask, impose value 0x0000FFFF •axis_mask, add bit 0x00010000 •axis_mask, remove bit 0x000010 Once the configuration is generated, in the file cfgdef.i3 we will have:
From the program we then have available the variable axis_mask of type INT, initialized to the value 0x0001FFEF
|