107
C-Control Pro Mega Series
5.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
Interpreter. 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 "Demo Programs" which was installed along
with the design interface. There example solutions can be found for almost every field of purpose of
the C-Control Pro Module.
The following chapters offer a systematical introduction to syntax and semantics of C-Control Pro
BASIC.
5.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)
End Sub
Projects
A program can be separated into several files which are combined in a project (see
Management). In addition to these project files
to offer functions used by the program.
//
the answer to anything
Libraries
can be added to the project which are able
Project
© 2008 Conrad Electronic
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers