Instructions
192Compiler
© 2013 Conrad Electronic
4.3 BASIC
The second programming language for the C-Control Pro Mega Module is BASIC. The Compiler
translates the BASIC commands into a Bytecode which is then processed by the C-Control Pro In-
terpreter. The language volume of the BASIC dialect used here corresponds to a large extent to the
industry standard of the large software suppliers.
The following language constructs are missing:
Object oriented programming
Structures
Constants
Detailed program examples can be found in directory C-Control Pro Demos which was installed
along with the design interface. There example solutions can be found for almost every field of pur-
pose of the C-Control Pro Module.
The following chapters offer a systematical introduction to syntax and semantics of C-Control Pro
BASIC.
4.3.1 Program
A program consists of a number of instructions (such as e. g. "a=5;") which are distributed among
various Functions. The starting function, which must be present in every program, is the function
"main()". The following is a simplistic program able to print a number into the output window:
Sub main()
Msg_WriteInt(42) // the answer to anything
End Sub
Projects
A program can be separated into several files which are combined in a project (see Project Manage-
ment). In addition to these project files Libraries can be added to the project which are able to offer
functions used by the program.