Key to the diagram
BACKGROUND task giving way to the CLOCK task
The
1
BACKGROUND
interrupted at the next
The
2
BACKGROUND
CLOCK
The
3
BACKGROUND
BACKGROUND task giving way to the ENCODER and CLOCK tasks
4
ENCODER
The
5
CLOCK
The CLOCK task is completed when the ENCODER task has finished.
The
6
CLOCK
until interrupted by the next
When the ENCODER task has finished the next CLOCK period has not
7
arrived. The BACKGROUND task runs until interrupted by the next
CLOCK task.
User-defined sub-routines
User-defined sub-routines are written by the user and are used in
conjunction with the
User-defined sub-routines can be given any name and can be inserted
anywhere in a program. (Note that the task name is case
The following sub-routine has the same function as the Sawtooth
given in Chapter 3 Getting Started. The name given to the sub-routine is
: : .
RAMP
BACKGROUND{
Loop:
CALL RAMP:
GOTO Loop:
}
RAMP: {
#1.21=0
DO WHILE #1.21<1000
#1.21=#1.21+1
LOOP
}
4-10
DPL programming
task waits while the
task.
CLOCK
task continues running until next interrupted by the
task.
task ends.
and
timing periods begin.
CLOCK
task runs until it is interrupted by the next
task ends, leaving time for the
ENCODER
instruction (see
CALL
task runs, and is then
CLOCK
ENCODER
task to run
BACKGROUND
task.
in Chapter 7 Reference).
CALL
case-sensitive
-sensitive.)
Sawtooth program
Issue code: 70nu2
task.
UD70
Need help?
Do you have a question about the UD70 and is the answer not in the manual?