Syntax
define <name> = <value>;
|
|
|
|
|
|
:The name of the constant. |
|
:The value assigned to the constant. Note only Integer values can be used. |
|
define my_value = 50;
int myvar;
main {
set_val(XB1_RT, my_value); //Set RT / R2 to 50
myvar = my_value; //myvar equals 50
if(myvar >= my_value) { //If myvar is greater than or equal to 50
//Do Something
}
if(get_val(XB1_LT) > my_value) { //If LT / L2 is greater than 50
//Do Something
}
}
|
|
define my_value = 50;
main {
my_value = 70; //This will produce a compiler error
}
|