DO WHILE #1.21<1000
DO WHILE
instruction to repeat the following block of code while the value of
parameter 1.21 is less than 1000.
#1.21=#1.21+1
This line adds the value 1 1 to parameter 1.21. Every time this command is
executed, 1 1 is added to the parameter value.
LOOP
LOOP
the program to go back to the line
WHILE
WHILE
WHILE
next line after the
GOTO Top:
GOTO
go to the label Top:
Note
The label name must be specified using a colon[:].
} Closing brace
Instructions within braces belong to the defined Task. Closing-braces
work in conjunction with opening-braces. In this example, the
opening- and closing-braces work in conjunction with the Task
BACKGROUND
3.3
Creating a DPL file using the DPL Toolkit
This section shows how to write, compile and download the example
DPL program for the Unidrive.
Opening the DPL Toolkit
In Windows 3.xx Program Manager, or Windows 95 Start menu, click on:
The DPL
DPL Toolkit
Toolkit window appears. At the top of the window are a menu bar
and toolbar.
3-4
Getting started
is a loop statement. In this example, it gives the program an
is the end expression for the Instruction
instruction remains true. When the value of #1.21 = 1000
#1.21 < 1000 becomes false. The instructions between
#1.21 < 1000
and
stop being repeated and the program goes to the
LOOP
command.
LOOP
is a flow-control instruction. In this case, it tells the program to
Top:. This causes the program to run continuously.
. .
.
DO WHILE
LOOP
and check that the
DO WHILE
#1.21 = 1000,
Issue code: 70nu2
tells
DO
DO
DO
UD70
Need help?
Do you have a question about the UD70 and is the answer not in the manual?