Allows a value expressed in hexadecimal to be added to a variable of type I32.
Syntax |
bit_mask_add name value |
---|---|
name |
Name of the int variable to sum the value to |
value |
Value added to 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 of use: 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
|