Schematic

MicroBasic Scripting
196 Advanced Digital Motor Controller User Manual V1.8, August 28, 2017
Comments
A comment is a piece of code that is excluded from the compilation process. A comment
begins with a single-quote character. Comments can begin anywhere on a source line,
and the end of the physical line ends the comment. The compiler ignores the characters
between the beginning of the comment and the line terminator. Consequently, comments
cannot extend across multiple lines.
‘Comment goes here till the end of the line.
Boolean
True and False are literals of the Boolean type that map to the true and false state, re-
spectively.
Numbers
Micro Basic supports only integer values ranged from -2,147,483,648 (0x80000000) to
2,147,483,647 (0x7FFFFFFF).
Numbers can be preceded with a sign (+ or -), and can be written in one of the following
formats:
Decimal Representation
Number is represented in a set of decimal digits (0-9).
120 5622 504635
Are all valid decimal numbers.
Hexadecimal Representation
Number is represented in a set of hexadecimal digits (0-9, A-F) preceded by 0x.
0xA1 0x4C2 0xFFFF
Are all valid hexadecimal numbers representing decimal values 161, 1218 and
65535 respectively.
Binary Representation
Number is represented in a set of binary digits (0-1) preceded by 0b.
0b101 0b1110011 0b111001010
Are all valid binary numbers representing decimal values 5, 115 and 458 respectively.
Strings
Strings are any string of printable characters enclosed in a pair of quotation marks. Non
printing characters may be represented by simple or hexadecimal escape sequence. Micro
Basic only handles strings using the Print command. Strings cannot be stored in variable
and no string handling instructions exist.
Simple Escape Sequence
The following escape sequences can be used to print non-visible or characters: