User Manual

Siemens Building Technologies VISONIK DCS Functions and System Messages VVS18 CM2U8567E / 04.1999
Landis & Staefa Division Function CB 2-37
The above program searches the Statistics Register STA for point messages (defined
by MTYP=0) related to address $177'020, covering the last two days and prints the
various messages found.
Variable STA together with an attribute is to be regarded as a "normal" variable.
However, it cannot be used in an INPUT statement but can only be read or printed with
a PRINT statement.
2.6.7 Error Handling with COLBAS
It is perhaps unavoidable that at some stage during the input or execution of a COLBAS
Task certain errors may occur.
COLBAS has the capability of indicating errors more or less in clear text so that location
and correction of errors are possible.
Errors may be split into two groups:
1) Input errors and
2) Programming errors
INPUT ERRORS
are indicated immediately after terminating an input line.
Lines with errors are not saved. The relative Task reports with a repeat of the Task
prompt.
COLBAS marks any input error position with a "^--" character.
TSK1 : 100 XY:=(2+A1)/(5+SIN(PI/4) <CR>
^-- ")" expected
TSK1 :
PROGRAMMING ERRORS
are first reported at the time of Task execution.
Errors of this kind are marked and handled differently in IMMEDIATE MODE to those in
DEFERRED MODE.
In the first case error text is printed out after an arrow "-->", then the relative Task
reports with a repeat of its Task prompt.
In the second case a "proper" error message is given on Task terminal TSKTTY and
the Task involved is stopped.
Immediate mode
TSK0 : SCR 500 <CR>
--> Error 6 = Illegal Task¢
TSK0 :
Deferred mode
TSK35 : 100 RUN 500
RUN ok!
TSK35 08:15:22 Error 6 = Illegal Task¢ at line 100
Aid to Error Finding ("debugging")
Explanation:
Remarks: