Echelon LNS User Manual

Page 104

Advertising
background image

LNS Programmer's Guide

90

Initialize the Object Server and

create the network. Make sure

that the application has specified

a network interface, and then

open the new network’s System

object. See Chapter 4 for more

information on these tasks.

Choose task:

Create or select the Subsystem

object that will contain the newly

discovered device:

MySubsystems.Add()

MySubsystems.Item()

Remove the device from the

collection

MyAppDevices.Remove()

Install the newly discovered devices on the

Subsystem, as described in the Installing

Devices section below.

Add each new device to connections as

your network design requires. For detailed

information on creating connections, see the

Connecting Devices section in Chapter 6 of

this document.

Find each new device that has been

installed on the system, as described in the

Discovering When New Devices Have Been

Attached to the System section below.

Determine if any devices have been

detached from the network, as described in

Determining When Devices are Detached or

Replaced section below.

Define device templates for the devices you

plan on installing:

MyDeviceTemplates.Add()

MyDeviceTemplate.Import()

Use the Replace() or

ReplaceEx() method to

replace the device.

Device detached….

Device replaced….

Make sure that the system management mode is set to propagate

device configuration updates:

MySystem.Mgmt = lcaMgmtModePropagateConfigUpdates

Figure 5.5 Automatic Installation Tasks

Advertising