Event Handlers
65
NetLinx Programming Language Reference Guide
The following table lists the information contained in data objects:
The
event number
is a number associated with a command, error condition or the device ID
associated with an online/offline event. The numeric value is stored as either a floating-point
number or integer, as appropriate; the value can be assigned to a variable of any numeric type.
This field could be a value associated with a command event or error condition.
Text
associated with the event
is associated with a command, string, or error notification. It
can also be the device ID string in the case of an online/offline event.
The following table shows the fields that contain relevant information for data or notifications received
via Internet protocol (IP):
Not all fields in the
DATA
object apply to all types of events. The following table lists the fields and the
corresponding events. An 'X' indicates that the field applies (or could apply) to the given event.
Level events
The level object is available to the level event handler as a local variable. Level events are triggered by a
level change on a particular device. This eliminates having to constantly evaluate a level against a
previous value. In Axcess, a level needs to be created in the
DEVICE_START
section and then a
conditional statement appears in the mainline to evaluate and update the level. The format of the
LEVEL_EVENT
is:
Data Objects
Property Name
Type
Description
Data.Device
DEV
Device
Data.Device.Number
INTEGER
Device number
Data.Device.Port
INTEGER
Device port
Data.Device.System
INTEGER
System number
Data.Number
LONG
Event number
Data.SourceDev
DEV
Source Device of Data Event
Data.SourceDev.Number INTEGER
Source Device Number
Data.SourceDev.Port
INTEGER
Source Device Port
Data.SourceDev.System
INTEGER
Source Device System
Data.Text
CHAR Array
Text associated with the event
Data Objects Received Via the Internet Protocol (IP)
Property Name Type
Description
Data.SourceIP
CHAR Array
IP address of the client/source application
Data.SourcePort
LONG
Server/source port number
Data Object Fields
Property Name Command String OnLine OffLine OnError
Data.Device
X
X
X
X
X
Data.Number
X
X
X
Data.Text
X
X
X
X
X
Data.SourceIP
X
X
X
X
X
Data.ServerIP
X
X
X
X
X
Data.SourcePort
X
X
X
X
X
Содержание NETLINX PROGRAMMING LANGUAGE
Страница 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Страница 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Страница 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Страница 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Страница 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Страница 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Страница 114: ...Mainline 98 NetLinx Programming Language Reference Guide FIG 1 Message and Mainline Processing in the NetLinx System...
Страница 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Страница 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Страница 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Страница 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...