Warning – Remote Processing CAMBASIC User Manual
Page 12

Concepts - 6
A U T O R U N O P E R A TI O N
Once a program has been stored in nonvolatile memory, it can autorun on power – up.
P R O T EC T IN G Y O U R P R O G R AM S
You can cause your progr am to be completely hidden so that it cannot be viewed by unauthorized people. Once hidden,
the program cannot be m odified or listed.
T h e pr o c ed u r e i s v e r y s im p le . J us t m a k e t he f ol lo w in g li ne th e fi r st in y ou r p ro g r am .
10 . . .
The three periods tell the runtime executor that the contents are to be hidden.
WARNING:
Once hidden, the proce ss cannot be reversed. W e made it that way so that programs would truly be
protected. Before hiding a progr am, save a copy on disk.
VARIABLES
More than 25, 000 unique variables may be defined for use in CAM BASIC progr ams. Variable names may be up to 40
character s long. In or der to maxim ize speed, the first and last character s and the length are significant. Variables m ust
begin with an alpha character. T hey may contain numbers, the underline character and the period.
T I M E _ OU T
MOTOR_ON
START_PRE_HEAT
RELA Y_1
The length of an array variable name is not used. PUM P(n) and PP(n) ar e seen as the same variable and will return the
same value.
The variables A% through Z% are “ pre– compiled”. This gives them two special advantages not shared with the rest of
the variables. They ar e not cleared to zero on power– up, reset or when chaining programs. They also execute about
5 0 % f as te r in a n a v er a g e p r o gr a m .
NOTE:
Variables with “% ” as the second character m ay only be used for simple variables, and not array or
string variables.
There are simple, arr ay and string variables. The “ $” is used when defining a string variable. Different type variables
may have the same name. For example:
A
A%
A$
A(0)
Variables m ay contain keywor ds, as long as the ke yword is not first. Keyword s may be imb edded in variable nam es.