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
Содержание DI-159
Страница 51: ...StickOS DI 159 PLC Hardware Manual 4 is even _ 51...
Страница 76: ...DI 159 Block Diagram 76...
Страница 77: ...Dimensional Drawing 77...