FlexStat (General) 23 Application Guide, Rev L
Customizing the Motion Sensor and Override
When the occupancy sensor function is disabled from the menu, the
built-in applications will not use it. Even then, however, the sensor input
(BI6) can be read and used in a custom program. An example Control
Basic program (for BACstage or TotalControl) that turns occupancy on
(or retriggers) for a set time aer the LAST detection (during a sched-
uled “o” time) is:
REM MOTION SENSOR OCCUPANCY CONTROL OPERATION CODE
ONLY
LOCALS MOTION_SENSOR
LOCALS OVERRIDE_TIMER
OVERRIDE_TIMER = AV16
IF OVERRIDE_TIMER <= 0 THEN
GOTO SKIP_OCC_CONTROL
ENDIF
IF MODELNUMBER > 11000 THEN
MOTION_SENSOR = BI6
IF MOTION_SENSOR THEN
START BV1@8
ENDIF
IF TIMEOFF( MOTION_SENSOR ) > ( OVERRIDE_TIMER *
3600 ) THEN
RLQ BV1@8
ENDIF
ENDIF
SKIP_OCC_CONTROL:
REM CONTINUE WITH ADDITIONAL CODE
NOTE: For this custom program to function, Occupancy Override time
in the System menu must not be set to 0.
NOTE: Unlike this custom program, the built-in program turns
occupancy on for a set time aer the FIRST detection (during
a scheduled “o” time). The built-in program is “non-
retriggering.”
NOTE: See important information about custom programming in
Custom Programming on page 8.
Enabling/Disabling the Sensor and Override Time
In relevant models, the motion sensor may be used to trigger occupancy
override. The sensor function is enabled or disabled from the Motion
Sensor menu (rmware version R1.2.0.6 and later).
During scheduled “o/unoccupied” times, the motion sensor (when
enabled) will start occupancy override (for 1 hour as a default) when it
detects motion. Occupancy override will end (with the default seing)
1 hour aer motion was FIRST detected. (This functions similarly to
the override when a setpoint change is detected at the FlexStat’s user
interface.) The timer length of occupancy override is congurable in the
System menu. For the built-in programs, if this number is set to 0, the
override state will last until the next schedule change.
NOTE: Firmware R1.0.0.0 and
earlier did not support this
sensor within the built-
in selectable programs.
Custom programming was
required.
MAINMENU
ABOUT
ADVANCED
ALARM
DATE/TIME
SCHEDULE
SETPOINTS
SYSTEM
MAINMENU
ADVANCED
ALARM
DATE/TIME
SCHEDULE
SETPOINTS
SYSTEM
TRENDVIEWER
SYSTEM
SYSTEMENABLE:AUTO
OCCOVRIDE(HRS):
INACTIVITY(SECS):60
DISPLAYBLANKING:NO
1.0
NOTE: The State eld in the Motion Sensor menu monitors whether
motion has been detected during the last scan of the motion
sensor input (BI6). Detected motion will momentarily show an
“occupied” state. This can be used during troubleshooting to
determine if motion is being detected.
ADVANCED
APPLICATION
CBPROGRAMS
COMMUNICATION
DATE/TIME
DEVICE
INPUTS
LIMITS
APPLICATION
DEGREESSCALE:°F
APP:FANCOIL
OPT:4-PIPE
ADDITIONALSETUP
ADDITIONALSETUP
FAN
HUMIDITY
MOTIONSENSOR
OPTIMUMSTART
SENSORS
VALVE
MOTIONSENSOR
OCCOVERRIDE:
STATE:OCCUPIED
STANDBY:DISABLE
ENABLE