Defining the state machine – Echelon LonPoint Application and Plug-In User Manual

Page 131

Advertising
background image

The LonPoint Application and Plug-in Guide

10-29

Defining the State Machine

The Edit State Machine tab, shown in the following figure, allows you to define
the state names and transitions for the State Machine functional block.

The Current State field is used to enter new state names, and to select a state to
define. The state table, contained in the Define Transitions from the
Current State

frame, allows you to define the state transitions from the state

selected in the Enter or Select State field. The state table contains 3
columns. The first, Exit Condition, allows you to list the conditions, created
in this tab and defined in the Edit Conditions tab, that will cause the state
machine to change states from the selected state. Select the conditions from the
Exit Conditions

list. Each condition may only be used once in the table for

an individual state. When the specified exit condition evaluates to True, the
state machine will read the other two columns in the row. The Next State
column determines what state the machine will be put into when the given
condition is True. The Mode_Out column determines what mode value will be
sent to the Mode_Out network variable of the State Machine functional block
when the exit condition is true. The Digital Outputs for Selected Row
list determines what values will be sent to each of the scheduler’s digital outputs
when the exit condition evaluates as true.

To define the state and exit condition names, follow these steps:

1. Select the Edit State Machine tab.

Advertising