DI-159 PLC Hardware Manual
StickOS
Additionally, while single-step mode is on, pressing <Enter> (essentially entering what would
otherwise be a blank command) is the same as the cont command.
To set the trace mode for the BASIC program, use the command:
trace
(
on
|
off
)
To display the trace mode for the BASIC program, use the command:
trace
While trace mode is on, the program will display all executed lines and variable modifications
while running.
Examples
>
10 dim a, sum
>
20 for a = 1 to 10000
>
30 let sum = sum+a
>
40 next
>
50 print sum
>
run
50005000
>
25 stop
>
run
STOP at line 25!
>
print a, sum
1 0
>
cont
STOP at line 25!
>
print a, sum
2 1
>
25 assert a != 5000
>
cont
assertion failed
STOP at line 25!
>
print a, sum
5000 12497500
>
cont
50005000
>
delete 25
>
trace
off
>
step
off
>
trace on
32
Содержание DI-159
Страница 51: ...StickOS DI 159 PLC Hardware Manual 4 is even _ 51...
Страница 76: ...DI 159 Block Diagram 76...
Страница 77: ...Dimensional Drawing 77...