Elmo HARmonica Network Hardware User Manual


 
HARSFEN0602
The names of variables may include ASCII letters, digits (not leading) and underscores (not leading) only.
It’s case sensitive. The maximal variable name length is 12 characters.
A variable name cannot be a keyword.
The list of the keywords is as follows:
“int”,
“float“,
"if",
"else",
"elseif",
"for",
"while",
"switch",
"case",
"otherwise",
"break",
“end”,
“return”,
“function”,
“global”,
"keyboard",
"exit",
"virtual",
"all",
"reset",
"wait",
"until",
"goto",
“nargout”,
“halt”
The all keywords are case sensitive.
Variable name must be distinct from some function or label name.
After a program is compiled, all the program variables may be used within the command line.
For example, assume that a compiled program includes the following lines:
int ZEBRA,GIRAFA[3];
float GNU;
Then the expression
GNU=ZEBRA*GIRAFA[1]+2*sin(GIRAFA[2]);
is valid. Variables are case sensitive.
More about global and local variables see at the sections Automatic Variables
and Global Variables
5.3.6.4 System Commands
The Harmonica system commands are described at the Command Reference.
System commands description in this section is designed only to explain their use in user program.
System command has two-letter mnemonic notation (only English letters, case not sensitive).
For example,
ac = 100000
AC = 100000
Both these expressions have the same meaning, in spite of different notation.
Every command has the 16-bit flag, every bit of which defines any feature.
For example, the fourth bit (PostProcess flag) defines whether this command can be used to set value or not.
List of commands depends on the specified Harmonica.