Methods – Echelon OpenLNS User Manual
Page 324
OpenLNS Programmer's Reference
287
•
•
Methods
The
DeviceTemplates
object contains the following methods
.
•
•
•
•
Add
Summary
Defines a new
DeviceTemplate
object needs to be explicitly created with this method only if
that
is going to be initialized by importing an
external interface file (.XIF and .XFB extensions).
If the
is to be initialized over the network
from a device, the
is created automatically by
the Object Server (see the
object for more information).
Availability
Local, full, and lightweight clients.
Syntax
devTemplateObject = devTemplatesColl.Add
(devTemplateName, programType)
Element
Description
devTemplateObject
object.
devTemplatesColl
object.
devTemplateName
A String containing the name of the
device template.
programType
The type of program associated
with this device template as an
integer.
The enumerated values for this
value, which are contained in the
ConstProgramTypes
constant, are
as follows:
0 lcaProgramTypeSource
The application program is defined
by a Neuron C source file.
1 lcaProgramTypeXif
The application program is defined
by an external interface (.XIF
extension) file.
2 lcaProgramTypeFromDevice