beautypg.com

Lonworks point addressing, Mode 1, Mode 2 – Contemporary Control Systems BASview User Manual

Page 46

background image

TD110500-0MC

46

LonWorks Point Addressing

LonWorks addressing supports three separate modes:

Mode 1

Mode 1 is the standard mode and can be used with the majority of LonWorks points.

The format is:

1,NVindex,SNVT

NVindex = The Network Variable Index of the point.

SNVT = The Standard Network Variable Type of the point.

Example:

1,15,9
Mode=1, NV index=15, SVNT=9 (count_inc)

Mode 2

Mode 2 is the most flexible, but also the most complicated. It is used to access non-standard data
structures, or individual elements of standard data structures.

Many systems will not need to use this addressing mode and it can usually be ignored because most
points can be imported with a point scan or an XIF file import.

The format is:

2,NVindex,SNVT,Offset,DataType,[Extra]

NVindex = The Network Variable Index of the point.

SNVT = The Standard Network Variable Type to use when converting the data.

Offset = This is the offset (starting at 0) of the data within the data structure returned by the device

DataType = The raw data type of the data. See below for a list of supported data types.

[Extra] = Extra data required only if the data type is ASCII/International String or

BitField

Supported data types are:

0 = Unsigned Short Integer

— 1 byte

1 = Signed Sort Integer

— 1 byte

2 = unsigned Long Integer

— 2 bytes

3 = Signed Long Integer

— 2 bytes

4 = Floating Point Number

— 4 bytes

5 = ASCII String

— Maximum length specified in "Extra" parameter

6 = Signed 32-bit Integer

— 4 bytes

7 = BitField

— 1 byte bit mask specified in "Extra" parameter

8 = Date

— 4 byte date (year,month,day)

9 = Time

— 3 byte time (hour,minute,second)

10 = TimeStamp

— 7 byte time stamp (year,month,day,hour,minute,second)

11 = International String

— Not currently supported. Treated as an ASCII string.

12 = Object

— Any other type of data

13 = Unsigned 32-bit Integer

— 4 bytes