UD70
Issue code: 70nu2
7-4 Reference
User-defined task
User-defined tasks are sub-routines written by the user and are used in
conjunction with the CALL instruction (see
CALL
instruction later in this
section).
User-defined tasks can be given any name and can be defined anywhere in
the program.
Example
Note that this task is named RAMP:.
BACKGROUND{
Loop:
CALL RAMP:
GOTO Loop:
}
RAMP: {
#1.21=0
DO WHILE #1.21<1500
#1.12=#1.21+1
LOOP
}
Case
sensitivity
The name for the sub-routine is case sensitive. If the CALL instruction in the
preceding example is written as CALL ramp ramp, the program will not be
compiled since the word rampramp should be in upper-case letters. Note that
the compiler error that is displayed will be as follows:
Undefined reference to
_0103ramp.
NOTES task
This is a pseudo task that is ignored by the compiler. The writer of the
program can use the NOTES task for information for the user.
Example
NOTES{
You can put your documentation here.
}
CONST section
The CONST section is used to define constant arrays data and is not a Task.
See Variables in Chapter 4 DPL Programming.