AMX NETLINX PROGRAMMING LANGUAGE Manual page 82

Programming language
Table of Contents

Advertisement

Event Handlers
LEVEL_EVENT[DEVICE,LEVEL] or LEVEL_EVENT[([DEVLEV[ ])]
{
}
It contains the information shown in the table below.
Level Objects
Property Name
Level.Input
Level.Input.Device
Level.Input.Device.Number INTEGER Device number
Level.Input.Device.Port
Level.Input.Device.System
Level.Input.Level
Level.SourceDev
Level.SourceDev.Number
Level.SourceDev.Port
Level.SourceDev.System
Level.Value
The numeric value is stored either as a floating-point number or integer, as appropriate; but the value can
be assigned to a variable of any numeric type.
Existing Axcess code:
DEFINE_START
.
.
CREATE_LEVEL TEMP, 1, TEMP_LEVEL
.
.
DEFINE_PROGRAM
.
.
IF (TEMP_LEVEL >= COOL_POINT)
{
}
ELSE IF (TEMP_LEVEL <= HEAT_POINT)
{
}
.
.
66
// level event handler
Type
Description
DEVLEV
Device + Level that caused the event to occur
DEV
Device
INTEGER Device port
INTEGER System number
INTEGER Level number
DEV
Source Device of Level Event
INTEGER Source Device Number
INTEGER Source Device Port
INTEGER Source Device System
Numeric
Level value
ON[RELAY,FAN]
OFF[RELAY,FAN]
NetLinx Programming Language Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents