Onnodeconnchangeevent – Echelon OpenLNS User Manual

Page 747

Advertising
background image

OpenLNS Programmer's Reference

710

Syntax

OnNetworkVariableUpdate

(monitorTag As Long, value as

Variant, dataUpdateInfo As Object)

Element

Description

monitortag

The monitor tag value assigned to

the network variable.

value

Current data value of the network

variable.

dataUpdateInfo

The DataValue object for this

update.

Added to API

Prior to LNS Release 3.0.

OnNodeConnChangeEvent

Summary

This event is generated whenever a connection is created or

modified, or whenever the ConnectDescTemplate used by a

connection is modified.

You can enable this event with the

BeginNodeConnChangeEvent

method. You can disable this

event with the

EndNodeConnChangeEvent

method.

Once you have enabled this event, it will be fired whenever

an application invokes the

Connect

method to create or

modify a connection, or whenever an application invokes the

Disconnect

method to remove a connection. It will also be

fired whenever the

ConnectDescTemplate

used by a

connection is modified.

When adding a new connection or removing a connection,

this event will be genereated once for the connection’s hub,

and once for each target that has been added to the

connection. When adding or removing a subset of targets

from a connection, this event will be generated once for each

of the affected targets. When this event is generated for a

connection hub, the value of the TargetDeviceHandle element

will match the value of the hubDeviceHandle element, and

the value of the TargetNvMtIndex element will match the

value of the HubNvMtIndex element.

Syntax

OnNodeConnChangeEvent

(NetworkHandle as Long,

System

Handle as Long, EventTag as Integer, TargetDeviceHandle as

Long, Version as Integer, ObjectChangeType as Integer,

TargetNvMtIndex as Integer, HubDeviceHandle as Long,

HubNvMtIndex as Long)

Element

Description

NetworkHandle

The Handle of the Network object

containing the modified connection.

System

Handle

The Handle of the System

object

containing the modified connection.

EventTag

Obsolete.

Advertising