Defining state transitions, The lonpoint application and plug-in guide 10-15 – Echelon LonPoint Application and Plug-In User Manual

Page 117

Advertising
background image

The LonPoint Application and Plug-in Guide

10-15

Following is an example bubble diagram. This diagram defines five states and
the transitions between them.

stOff

stOccupied

stUnoccupied

stEmergency

stWarmup

cndSystemOn

cndSystemOff

cndSystemOff

cndSystemOff

cndEndWarmup

cndStartWarmup

cndEmergency

cndOccupied

cndUnoccupied

cndEmergency

cndCancelEmergency

cndSystemOff

cndEmergency

Defining State Transitions

A state transition defines the rules for changing from one state to a second state,
and also defines the outputs from the State Machine functional block when the
transition is followed. The State Machine functional block continues to send the
defined outputs on the network at the configured heartbeat rate until the next
transition is followed.

For each state transition, you will specify an exit condition. An exit condition is
an expression that defines the rules for changing to the specified next state. You
will define these expressions in the next section. You must define an exit
condition for every transition defined in your state machine bubble diagram;
however, the same exit condition may be used for multiple transitions as long as
the transitions originate from different states. If multiple exit conditions become
true at the same time, only the first exit condition that evaluates to true will
affect the state machine.

For each state transition, you will also specify the network variable outputs from
the State Machine functional block for the transition. You will specify values for

Advertising