StickOS
DI-159 PLC Hardware Manual
20 while 1 do
30 let square = !square
let square = 0
40 sleep 500 ms
<Ctrl-C>
STOP at line 40!
>
trace off
> _
Again, press
<Ctrl-C>
to stop the program.
Note that almost all statements that can be run in a program can also be run in "immediate"
mode, at the command prompt. For example, after having run the above program, the "square"
variable (and dtin0 pin) remain configured, so you can type:
>
print "square is now", square
square is now 0
>
let square = !square
>
print "square is now", square
square is now 1
> _
This also demonstrates how you can examine or manipulate variables (or pins!) at the com-
mand prompt during program debug.
61
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...