Data Sheet

dScript
dScript User Manual v2.15
Program structure
All dScript programs are single page, single file programs. They begin with all the declarations
needed, followed by the program instructions.
The declarations are used to give meaningful names to all the variables and I/O ports that you
will be using.
The instruction section contains all the code to make your application work, the starting point
for your code is the label "main". It need not be the first label, but you must include it
somewhere in your code.
Declarations
This section is used to declare the variables and I/O you are going to use.
An example:
string s1[100]
serialport LCD05 1 10 90
Instructions
main: s1 = " Hello World"
s1[0] = 12
s1[1] = 19
s1[2] = 4
LCD05.Write(s1,0,s1.Length)
done: goto done
Your program must have a "main" label as this is where program execution starts. It need not
be the first label in the program.
Comments
Comments may be added to your program in order to document what you are doing.
A comment begins with a semicolon ;
All characters from the ; until the end of the line are ignored by the compiler, they are not
downloaded to the board and do not take up program or data space.
Comments are highlighted in green within the editor.
Copyright © 2016, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
8