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
Summary of Contents for DI-159
Page 51: ...StickOS DI 159 PLC Hardware Manual 4 is even _ 51...
Page 76: ...DI 159 Block Diagram 76...
Page 77: ...Dimensional Drawing 77...