Echelon LNS User Manual

Page 96

Advertising
background image

LNS Programmer's Guide

82

Open the network and system to be commissioned:

Set MyNetworks=ObjectServer.Networks

Set MyNetwork=MyNetworks.Item(“MyNetwork”)

MyNetwork.Open()

Specify a network interface, open the system, and set the system

management mode to lcaMgmtModePropagateConfigUpdates :

Set MySystems = MyNetwork.Systems

Set MySystem = MySystems.Item(1)

Set MyNSD.NetworkInterface = MyNetworkInterface

MySystem.Open()

MySystem.MgmtMode = lcaMgmtModePropagateConfigUpdates

Acquire the AppDevices collection for the subsystem

containing the AppDevice objects you have defined.

Perform the following steps for each device, until all devices

have been commissioned:

Bring the device online by setting the State property

of each AppDevice object to

lcaStateCnfgOnline.

MyDevice.State = lcaStateCnfgOnline

Make sure the device has

been asssigned a Neuron ID,

and then optionally load the

device’s application:

MyDevice.LoadEx()

More devices to be

commissioned?

Yes

Synchronize the device configuration properties, and commission the

device. Perform these operations within the same transaction:

MySystem.StartTransaction()

MyDevice.DownloadConfigProperties()

MyDevice.CommissionEx()

MySystem.EndTransaction()

Figure 5.3 Engineered Mode Installation Tasks - Commissioning Phase

The following section describes the steps depicted in figure 5.3 in more detail:

1. If the database was defined on a different PC, copy the database and import it into

the PC being used for the commissioning phase. For details on how you can perform

these tasks, see Chapter 10, LNS Database Management.

Advertising