Custom Programming
NOTE: Be sure to CAREFULLY READ ALL of the following Custom
Programming sections before attempting to custom program a
FlexStat!
NOTE: Customized programs are the responsibility of the user. KMC
Controls does not provide support for such programs.
NOTE: For additional custom applications not covered in these
sections, see KMC's Digital Designer's Guide (SP-022) and
adapt programs for other controllers for use in the FlexStat.
General
The FlexStat has a library of built-in applications and options that are
configured through the FlexStat's context-sensitive display. Beyond these
standard configurations, the following are samples of custom changes
that can be added to a FlexStat using BACstage (ver. 2.4.0.26 or later) or
TotalControl (ver. 2.0.5 or later). (The information in this section as-
sumes familiarity with those software packages—for additional instruc-
tions on BACstage or TotalControl, see the respective Help system.)
The FlexStat uses Next Generation Control Basic (see the TotalControl or
BACstage Help system for more information).
NOTE: If the custom program should automatically run after a restart,
Auto-Run should be set to True in the FlexStat menu or from
BACstage or TotalControl. See also the Resetting the FlexStat
section in the
FlexStat Operation
CB Programs
PROG1:
RUNNING
PROG2: RUNNING
PROG3: RUNNING
PROG4: RUNNING
PROG5: RUNNING
PROG6: HALTED
PROG7: IDLE
FlexStat (General)
Guide!
PROGRAM #1
SETPOINTS & MODES
AUTO-RUN:
TRUE
CHANGE: READY
STATE: RUNNING
HALT REASON: NORMAL
HALT DESC:
OUT OF SERVICE: FALSE
Viewing the Control Basic Programs
FlexStat (read-only) programs 1 through 5 contain Control Basic code
for:
• Program 1: Setpoints and Modes
• Program 2: Fan Control
• Program 3: Valve and Staging Control
• Program 4: Damper Control
• Program 5: Safeties
Sample code in the five programs can be viewed in the Control Basic
Programs Reference document available on the KMC web site. Because
of firmware upgrades and differences between models, the program-
ming in any particular FlexStat may be different from the programming
shown in that document!
To examine the code in a particular FlexStat, copy the code and paste it
into a text editor or print it. In BACstage, print by selecting the printer
icon, which automatically prints to the default printer. TotalControl
prints from the File menu.
Use the search function to find all terms of interest.
NOTE: Customized programs are the responsibility of the user. KMC
Controls does not provide support for such programs.
8
Application Guide, Rev L