Lets you initialize a variable of type INT to a value expressed in hexadecimal.
Syntax |
bit_mask_set name value |
---|---|
name |
Name of the INT variable that will be initialized |
value |
Value to which the variable is initialized. 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, 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
|