Level Events - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

.
.
Each event handler contains several imbedded data objects that pass data values into the event handler
code.

Level Events

Level Events are triggered by a level change on a particular device. This eliminates constantly evaluating
a level against a previous value. In Axcess, a level would need to be created in the
section and a conditional statement would appear in mainline to evaluate and update the level. The
format for the
LEVEL_EVENT[<device>,<level>]
{
}
Existing Axcess code:
DEFINE_START
.
.
CREATE_LEVEL TEMP, 1, TEMP_LEVEL
.
.
DEFINE_PROGRAM
.
.
IF (TEMP_LEVEL >= COOL_POINT)
{
}
ELSE IF (TEMP_LEVEL <= HEAT_POINT)
{
OFF[RELAY,FAN]
}
NetLinx Level Event:
LEVEL_EVENT [ TEMP, 1 ]
{
}
LEVEL.VALUE
object eliminates the need to create a level for the
NetLinx Programming Language Reference Guide
is:
LEVEL_EVENT
(* level event handler *)
ON[RELAY,FAN]
IF (LEVEL.VALUE >= COOL_POINT)
{
ON[RELAY,FAN]
}
ELSE IF (LEVEL.VALUE <= HEAT_POINT)
{
OFF[RELAY,FAN]
is an embedded object value in the
NetLinx Programming Overview
statement. The
LEVEL_EVENT
device.
TEMP
DEFINE_START
LEVEL.VALUE
27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents