User Manual
CM2U8567E / 04.1999 VISONIK DCS Functions and System Messages VVS18 Siemens Building Technologies
2-38 Function CB Landis & Staefa Division
If the contents of an error message is insufficient for finding an error it is advisable to
insert "break points" at critical points in the relative program in order to check variables
of interest.
This is done by writing a STOP statement at a suitable point in the Task. Whenever
STOP is reached the program will halt.
Now, in IMMEDIATE MODE any current variable value can be listed with instruction
LIST VAR or other operations can be started.
If at that point everything is in order the STOP statement is removed and another one
inserted at the next suspected Task line. The program is then continued with RESTART
,n (n=line number).
Another possibility is the incorporation of PRINT commands at critical program points to
print out certain important data. This enables, in a relatively refined way, the tracing of
how a program runs.
COLBAS Trace
Using Trace the running of a COLBAS Task can be checked out.
COLBAS Trace is enabled through Task variable TSKTRC by setting it to a value
between 1..15. This value corresponds to the output terminal on which the relative listing
should be made.
To disable Trace TSKTRC must be reset to 0.
When Trace is enabled the following information is listed after execution of every
COLBAS statement:
1. Task number, time and "trace",
2. Current line number
3. The relative executed instruction and
4. The variables whose values are changed by this instruction.
1 -- Example with Task 24
100 TSKTTY=1; TSKTRC=TSKTTY ;-- Trace on with TSKTRC=1
110 TSKPRP=2
120 DIM XY(10),YZ(10)
130 FOR I=1 TO 10; XY(I)=0; YZ(I)=0; NEXT I
...
...
...
The following listing appears on output terminal T1 as defined by
TSKTTY=1 in Task 24:
TSK24 10:00:00 trace 110 LET TSKPRP=2
TSK24 10:00:00 trace 120 DIM XY(10,1)
TSK24 10:00:00 trace 120 DIM YZ(10,1)
TSK24 10:00:01 trace 130 FOR I=1
TSK24 10:00:01 trace 130 LET XY(1,1)=0
TSK24 10:00:02 trace 130 LET YZ(1,1)=0
TSK24 10:00:02 trace 130 NEXT I=2
...
...
...