Schematic

MicroBasic Language Reference
Advanced Digital Motor Controller User Manual 197
Sequence Description
\’ Single quote
\” Double quote
\\ Backslash
\0 Null
\a Alert
\b Backspace
\f Form feed
\n New line
\r Carriage return
\t Horizontal tab
\v Vertical tab
Hexadecimal Escape Sequence
Hexadecimal escape sequence is represented in a set of hexadecimal digits (0-9,
A-F) preceded by \x in the string (such as \x10 for character with ASCII 16).
Since a hexadecimal escape sequence can have a variable number of hex digits,
the string literal \x123” contains a single character with hex value 123. To create
a string containing the character with hex value 12 followed by the character 3, one
could write “\x00123”.
So, to represent a string with the statement “Hello World!” followed by a new line, you
may use the following syntax:
“Hello World!\n”
Blocks and Labels
A group of executable statements is called a statement block. Execution of a statement
block begins with the first statement in the block. Once a statement has been executed,
the next statement in lexical order is executed, unless a statement transfers execution
elsewhere.
A label is an identifier that identifies a particular position within the statement block that
can be used as the target of a branch statement such as GoTo, GoSub or Return.
Label declaration statements must appear at the beginning of a line. Label declaration
statements must always be followed by a colon (:) as the following:
Print_Label:
Print(“Hello World!”)
Label name should start with alphabetical character and followed by zero or more alphanu-
meric characters or underscore. Label names cannot start with underscore. Labels names
cannot match any of Micro Basic reserved words.