Owner manual

OpenLNS Programmer's Reference 379
Syntax
newTypeSpec = interface.CreateTypeSpec(objectType)
Element
Description
newTypeSpec
newTypeSpec is the newly created
TypeSpec object.
interface
The Interface object to be acted on.
objectType
The type of the TypeSpec object to be
created. The possible values for this
element, which are specified in the
ConstTypeSpecObjectType constant,
are as follows:
0 lcaTypeSpecNv
The type applies to network variables.
2 TypeSpecLmo
This type applies to LonMark objects
or functional blocks (SFPTs and
UFPTs).
2 TypeSpecFb
An alias for TypeSpecLmo.
Note: An appropriate exception will
be thrown if the object type is not
valid.
The newly created TypeSpec object
will be initialized with its ProgramId
property set to match the ProgramId
property of the AppDevice or
DeviceTemplate object that contains
the Interface object.
All of the TypeSpec object’s
properties should be changed before
calling the Lookup method.
Added to API
OpenLNS.
DownloadConfigProperties
Summary
Downloads the configuration property values stored in an
AppDevice object into the physical application device
associated with the AppDevice object.
There is no functional difference between calling the
DownloadConfigProperties method on a specific AppDevice,
and calling the DownloadConfigProperties method on the
Interface property contained by that AppDevice.
This method requires that the device being loaded be in a
configured state. Furthermore, if you are setting the
configuration property values to their default values (the
downloadOptions element sets the