Dataq DI-159 User Manual page 32

Table of Contents

Advertisement

DI-159 PLC Hardware Manual
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
StickOS

Advertisement

Table of Contents
loading

Table of Contents