Resetting the simulator, Using debug mode – Echelon LonPoint Application and Plug-In User Manual

Page 139

Advertising
background image

The LonPoint Application and Plug-in Guide

10-37

The Current Schedule field indicates what daily
schedule is currently being used. You can manually
set the schedule by clicking on the Manual
Schedule

button as described in Overriding the

Event Schedule later in this chapter.

Condition Status

Displays the status of the events defined in the Edit
Schedules tab. For example, if you have defined
evtOccupied ON and evtOccupied OFF events in your
schedule, and evtOccupied is selected in the
Condition Status list, the last evtOccupied event was
an evtOccupied ON event. If evtOccupied is cleared,
the last evtOccupied event was an evtOccupied OFF
event.

State Machine

Displays the current state of the state machine. The
current state is displayed in the Current State
field.

When debugging, additional information is displayed
showing the value of each condition as it is being
evaluated by the state machine. Debugging is
described in Using Debug Mode later in this chapter.

Outputs

Displays the simulated output values for the mode
network variable output and the 16 digital output
network variables (any or all of which can be named
in the Name I/O tab). These values may change each
time the state changes.

Resetting the Simulator

You can reset the simulator at any time to simulate resetting the SCH-10
module. You must always reset the simulator prior to using any of the other
simulator features. To reset the simulator, click the Reset Simulator button on
the Simulate tab. The Current State at the bottom of the tab should be the
initial state that you selected for the state machine on the Edit State Machine
tab.

Using Debug Mode

You can single step the evaluation of conditions by the state machine. This is
useful for debugging a state machine. To single step evaluation, follow these
steps:

1. Click the Change Mode button. A new Eval Next Cond button is displayed

to the right of the Change Mode button; the last condition evaluated by the
state machine is displayed in the Last Condition Evaluated field; and
the value of the condition when it was evaluated is displayed in the Value
field.

2. Press the Run to Next Event or Update Inputs button.

Advertising