StickOS
DI-159 PLC Hardware Manual
Loading and Storing Programs
The "current program" has no name and is saved and run by default. In addition to the current
program, StickOS can load and store two named BASIC programs in the DI-159. Named pro-
grams are simply copies of the current program that can be retrieved at a later time, but are
otherwise unaffected by all other StickOS commands than these.
To display the list of currently stored named programs, use the command:
dir
To store the current program under the specified name, use the command:
save
name
To load a named stored program to become the current program, use the command:
load
name
To purge (erase) a stored program, use the command:
purge
name
Examples
>
10 dim a
>
20 while 1 do
>
30 let a = a+1
>
40 endwhile
>
dir
>
save spinme
>
dir
spinme
>
new
>
list
end
>
load spinme
>
list
10 dim a
20 while 1 do
30 let a = a+1
40 endwhile
end
>
purge spinme
>
dir
> _
29
Содержание DI-159
Страница 51: ...StickOS DI 159 PLC Hardware Manual 4 is even _ 51...
Страница 76: ...DI 159 Block Diagram 76...
Страница 77: ...Dimensional Drawing 77...