Elmo HARmonica, HARSFEN0602 software manual System Commands

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 34
Image 34

HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

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.4System 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.

32

Page 34
Image 34
Elmo HARmonica, HARSFEN0602 software manual System Commands