Product Overview

Table Of Contents
FlexStat (General) 17 Application Guide, Rev S
Custom Programming
NOTE: Be sure to CAREFULLY READ ALL of the following Custom
Programming sections before aempting 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 sec-
tions, 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
congured through the FlexStat’s context-sensitive display. Beyond
these standard congurations, 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 assumes familiarity with those software packages—for addi-
tional instructions 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 Reseing the FlexStat
section in the FlexStat Operation Guide!
CB Programs
PROG1:
PROG2: RUNNING
PROG3: RUNNING
PROG4: RUNNING
PROG5: RUNNING
PROG6: HALTED
PROG7: IDLE
RUNNING
PROGRAM #1
SETPOINTS & MODES
AUTO-RUN:
CHANGE: READY
STATE: RUNNING
HALT REASON: NORMAL
HALT DESC:
OUT OF SERVICE: FALSE
TRUE
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 ve programs can be viewed in the Control Basic
Programs Reference document available on the KMC web site. Because
of rmware upgrades and dierences between models, the program-
ming in any particular FlexStat may be dierent 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 nd all terms of interest.
NOTE: Customized programs are the responsibility of the user. KMC
Controls does not provide support for such programs.