StickOS
DI-159 PLC Hardware Manual
Running Programs
To run the BASIC program currently loaded in memory, use the command:
run
Alternately, to run the program starting at a specific line number, use the command:
run
line
To stop a running BASIC program, press:
<
Ctrl-C
>
To continue a stopped BASIC program, use the command:
cont
Alternately, to continue a stopped BASIC program from a specific line number, use the com-
mand:
cont
line
To set the autorun mode for the saved BASIC program, use the command:
autorun
(
on
|
off
)
This takes effect after the next DI-159 PLC reset.
To display the autorun mode for the saved BASIC program, use the command:
autorun
If the autorun mode is on, when the DI-159 PLC is reset, it will start running the saved BASIC
program automatically.
Note that any unsaved changes to the BASIC program will be lost if the DI-159 PLC is reset
or loses power.
Examples
>
10 dim a
>
20 while 1 do
>
30 let a = a+1
27
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...