UD70
Issue code: 70nu2
3-4
Getting started
DO WHILE #1.21<1000
DO
WHILE
is a loop statement. In this example, it gives the program an
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 11 to parameter 1.21. Every time this command is
executed, 11 is added to the parameter value.
LOOP
LOOP
is the end expression for the Instruction
DO
WHILE
.
LOOP
tells
the program to go back to the line
DO
WHILE
and check that the
DO
WHILE
instruction remains true. When the value of #1.21 = 1000
#1.21 = 1000,
DO
WHILE
#1.21 < 1000
#1.21 < 1000 becomes false. The instructions between
DO
WHILE
and
LOOP
stop being repeated and the program goes to the
next line after the
LOOP
command.
GOTO Top:
GOTO
is a flow-control instruction. In this case, it tells the program to
go to the label Top:
Top:. This causes the program to run continuously.
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.
Содержание UD70
Страница 6: ......
Страница 14: ...UD70 Issue code 70nu2 2 6 Installation...
Страница 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Страница 98: ...UD70 Issue code 70nu2 7 22 Reference...
Страница 142: ...UD70 Issue code 70nu2 9 6 Diagnostics...