User Manual

CM2N8887en / 26.02.01 Siemens Building Technologies
2/4 Landis & Staefa Division
The following diagram shows a simplified program structure in the BPS.
TSK 255
TSK n (1 .. 199)
PROC X
10 .........................................
20 .........................................
.. .........................................
.. .........................................
... .........................................
PROC Y
10 ......................
20 ......................
... ......................
TSK n (200 .. 255)
TSK 203
Header
.......................................
Program part
Variable table
....................
Variable table
........................................
........................................
Procedures
8887Z02en
Tasks
The program elements shown above are:
Element Explanation
General
information on
the task
A task (TSK) is an independent program unit in a COLBAS program.
Tasks can be:
Individually generated, edited, and deleted.
Processed parallel and independently from one another, and
started and stopped by other tasks.
Exchanged among each other and with the process data.
Each COLBAS task contains the following parts:
Header with the general task specifications and the variable
declaration.
Program part with the individual instructions.
Variable table with the task variables (current values).
TSK 1..199 Tasks freely available for the plant operating program, whereby
certain task numbers are intended for certain tasks such as:
TSK 5 for plant coordination.
TSK 10, TSK 20, TSK 30, etc. for the individual plants.
TSK 160 for outputting local fault messages.
TSK 200..255 Tasks reserved for: Data exchange and reports, time switch
programs and catalogs, telephony, POP card operation, COLBAS
procedures (TSK 255).
These tasks are not accessible, with few exceptions such as: Basic
tasks TSK 201 .. 203 to operate the BPS using COLBAS
instructions in immediate mode via TTY1 .. TTY3.
Procedure A COLBAS procedure is an independent program unit with its own
table of variables. The COLBAS procedure library contains
procedures for a large number of routine tasks such as:
Fan control.
Control of recirculated air dampers.
Room temperature cascade control for temperature or humidity.
Fault message printouts.
etc.
Procedures must be called by the superposed task.
Program structure
Process and
instrumentation
diagram
Program elements