Echelon LonWorks Network XML Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Software Echelon LonWorks Network XML. Echelon LonWorks Network XML User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk

Shrnutí obsahu

Strany 1 - User’s Guide

LonWorks® Network XML Programmer's Guide LonMaker®User’s Guidewww.echelon.com078-0333-01ALM-UG1 6/19/06 9:30 AM Page 1

Strany 2 - Chips or

2 Using the LonMaker XML Plug-in Introduction You can speed up your network design and ensure your devices are configured correctly by creating a cu

Strany 3 - Table of Contents

LONWORKS Network XML Programmer’s Guide 3 Tip: You can download an assembly provided by Echelon, named PlugInWrapper.dll, to expedite the developmen

Strany 4

4 Using the LonMaker XML Plug-in Defining Export Automation Properties You can define standard LNS Plug-in properties and the following export autom

Strany 5 - Preface

LONWORKS Network XML Programmer’s Guide 5 Property Name Type Description exported data. TemplateExport Long Specifies which device templates are t

Strany 6 - Content

6 Using the LonMaker XML Plug-in // *Insert export automation properties before invoking send command* // Option to export N

Strany 7

LONWORKS Network XML Programmer’s Guide 7 Defining Import Automation Properties You can define standard LNS Plug-in properties and the following imp

Strany 8

8 Using the LonMaker XML Plug-in // Option to suppress status and options dialog m_lmXml.XmlOptions = 0x01 | 0x02;

Strany 9

LONWORKS Network XML Programmer’s Guide 9 Tip: You can import two or more individual XML files to overcome order dependencies in your XML data that

Strany 10 - Introduction

10 Using the LonMaker XML Plug-in

Strany 11 - Exporting a LonMaker Network

LONWORKS Network XML Programmer’s Guide 11 2 Using the XML Schema This chapter provides an overview of the XML schema that defines the structure an

Strany 12

Echelon, LON, LONWORKS, LonTalk, Neuron, LONMARK, 3120, 3150, LNS, LonMaker, and the Echelon logo are trademarks of Echelon Corporation registered

Strany 13

12 Using the XML Schema XML Schema Overview The LonMaker XML plug-in includes an XML schema that defines the structure and content of a LonMaker net

Strany 14 - Invoking the Import Command

LONWORKS Network XML Programmer’s Guide 13 The applicable Action attributes and properties for each object element are detailed in the next section,

Strany 15

14 Using the XML Schema • Configuration properties • Targets • Extensions • Channels • Connection descriptions • Device templates • Component

Strany 16

LONWORKS Network XML Programmer’s Guide 15 RootSubsystem Y Y The LNS Subsystem that contains all of the objects reported in the XML file. If the

Strany 17

16 Using the XML Schema NV/message tag target definitions. See Targets for more information on using subsystem references. Properties Supported by

Strany 18

LONWORKS Network XML Programmer’s Guide 17 Example <Subsystem Handle="6" Action=”CREATE”> <Name>Sub

Strany 19 - Using the XML Schema

18 Using the XML Schema The possible values are as follows: 0 ConfiguredRouter 1 LearningRouter 2 RepeaterRouter 3 BridgeRouter 4 PermanentRepeater

Strany 20 - XML Schema Overview

LONWORKS Network XML Programmer’s Guide 19 PingClass Y Y An enumerated value indicating the expected movement of the router, which determines the f

Strany 21 - Handle Attribute

20 Using the XML Schema <Location>800600000000</Location> <Description/>

Strany 22 - Networks

LONWORKS Network XML Programmer’s Guide 21 image search path. If an application image is specified, the file exists, and the Commission attribute i

Strany 23 - Subsystems

LonWorks Network XML Programmer’s Guide iii Table of Contents Preface ...

Strany 24 - Properties

22 Using the XML Schema NeuronId Y Y On export, this property is only reported if the value is non-empty. On import, the value of this property

Strany 25 - Routers

LONWORKS Network XML Programmer’s Guide 23 is non-empty. Priority Y Y On export, the current value (specified manually or selected automatically) i

Strany 26

24 Using the XML Schema is to be assigned. Subnet/Name Y Y If you specify a subnet name or ID that differs from the current subnet, the import op

Strany 27 - Example

LONWORKS Network XML Programmer’s Guide 25 </Extensions> </FunctionalBlocks> </AppDevice&

Strany 28 - Application Devices

26 Using the XML Schema 3 Manf 4 ManfDevClass 5 ManfDevClassSubClass 6 ManfDevType Virtual functional blocks do not contain this property. IsDy

Strany 29

LONWORKS Network XML Programmer’s Guide 27 information. Example <FunctionalBlock Handle="1"> <Name>AI- 1</Name> <I

Strany 30

28 Using the XML Schema Example <FunctionalBlock Handle="2"> <Name>Analog Input[1]</Name> <IsVirtualFb ID="

Strany 31

LONWORKS Network XML Programmer’s Guide 29 approved functional profile, or by the user (in the case of a network variable not specified in those gui

Strany 32

30 Using the XML Schema Selector Y N Specifies the selector used for the NV alias. Value Y N To report NV values, you must specify the Export NV v

Strany 33 - Functional Blocks

LONWORKS Network XML Programmer’s Guide 31 Properties within Device Template Object Elements Supported by Function? Property Export Import Descripti

Strany 34

iv Preface Properties within Application Device Object Elements...28 Example...

Strany 35

32 Using the XML Schema definitions. See Targets for more information. Properties within Application Device Object Elements Supported by Function?

Strany 36 - Network Variables

LONWORKS Network XML Programmer’s Guide 33 <IsDynamic ID="0">False</IsDynamic> </MessageTag> Properties within Device Te

Strany 37

34 Using the XML Schema Dimension Y N The number of elements in the CP are reported. A value of 1 indicates a single element. A value greater t

Strany 38

LONWORKS Network XML Programmer’s Guide 35 Properties within Device Template Object Elements Supported by Function? Property Export Import Descript

Strany 39 - Message Tags

36 Using the XML Schema or override components of the referenced object. SubsystemName Y Y On export, the subsystem name is reported relative to

Strany 40

LONWORKS Network XML Programmer’s Guide 37 <ReferenceName>TargetSub</ReferenceName> <DeviceName>AO- 1</DeviceName>

Strany 41 - Configuration Properties

38 Using the XML Schema 4 R4 Floating point 5 R8 Floating point 6 CY Signed decimal: Unsigned decimal (high order 32 bits: l

Strany 42

LONWORKS Network XML Programmer’s Guide 39 assumed. Value/ Dimension/ NumberElements Y Y Applies to array values. Specifies the number of element

Strany 43 - Targets

40 Using the XML Schema 11 TP/RS485-1250 27 DC-78 28 DC-625 29 DC-1250 24 FO-20S 16 PL-20C-LOW 17 PL-20N-LOW 15 PL-20A 15

Strany 44 - Using References

LONWORKS Network XML Programmer’s Guide 41 reported. UseAuthenticationFlag Y Y An enumerated value indicating whether the NV/MT connection uses

Strany 45 - Extensions

LonWorks Network XML Programmer’s Guide v Preface This guide describes how to create and modify a LonMaker network using the LonMaker XML Plug-in.

Strany 46

42 Using the XML Schema of “None” is reported on export. ReceiverTimer Y Y An encoded integer. If you have not overridden the default receiver tim

Strany 47 - Channels

LONWORKS Network XML Programmer’s Guide 43 <PropertyOptions ID="64">ReceiveTimer</PropertyOptions> <PropertyOptions I

Strany 48 - Connection Descriptions

44 Using the XML Schema Classification/ ModelNo Y N Only reported if Format is 8 or 9. DeviceValidation Y Y An enumerated value indicating the le

Strany 49

LONWORKS Network XML Programmer’s Guide 45 </DeviceTemplate> Component Applications (Plug-Ins) Component Application objects are reported on

Strany 50

46 Using the XML Schema 4 Systems 5 Subsystem 6 Subsystems 7 AppDevice 8 AppDevices 9 Router 10 Routers 1

Strany 51 - Device Templates

LONWORKS Network XML Programmer’s Guide 47 69 PingIntervals 70 Application 71 TestInfo 72 DataPoint 73 FormatSpec 74 Monitor

Strany 52

48 Using the XML Schema 41 Replace 50 Register 51 Unregister 60 Recover 61 MonitorRecovery VersionNumber Y Y Specifi

Strany 53 - Attributes

LONWORKS Network XML Programmer’s Guide 49 //create Directory for XML file DirectoryInfo di = Directory.CreateDirectory(&qu

Strany 54

50 Using the XML Schema writer.WriteStartElement("IsVirtualFb"); writer.WriteAttributeString("ID&quo

Strany 55

LONWORKS Network XML Programmer’s Guide 51 writer.WriteEndElement(); // End NetworkVariable Element

Strany 56 - Programming Example

vi Preface Purpose This guide explains how to programmatically interface with the LonMaker XML Plug-in to update and create a LonMaker network. Audi

Strany 57

52 Using the XML Schema // End NetworkVariable Element writer.WriteEndElement(); // End NetworkVar

Strany 58 - 50 Using the XML Schema

LONWORKS Network XML Programmer’s Guide 53 //Option to create and specify location of import log m_lmXml.LogFileName = "

Strany 59

54 Using the XML Schema

Strany 60 - 52 Using the XML Schema

LONWORKS Network XML Programmer’s Guide 55 Appendix A LonWorks Network XML Schema This appendix presents the XML schema that defines the structure

Strany 61

56 LONWORKS XML Schema LONWORKS XML Schema The XML schema used for LonWorks network is as follows: <?xml version="1.0" encoding="ut

Strany 62 - 54 Using the XML Schema

LONWORKS Network XML Programmer’s Guide 57 <xs:element name="ElementSize" type="xs:integer" maxOccurs="1" minOccu

Strany 63 - LonWorks Network XML Schema

58 LONWORKS XML Schema <xs:element name="ProgramId" type="xs:string" maxOccurs="1" minOccurs="0" />

Strany 64 - LONWORKS XML Schema

LONWORKS Network XML Programmer’s Guide 59 <xs:sequence> <xs:element name="Name" type="xs:string" maxOccurs=&quo

Strany 65

60 LONWORKS XML Schema <xs:element name="NetworkVariables" type="nvCollection" maxOccurs="1" minOccurs="0&q

Strany 66 - ONWORKS XML Schema

LONWORKS Network XML Programmer’s Guide 61 <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs=&qu

Strany 67

LonWorks Network XML Programmer’s Guide vii You can also view free online training or enroll in training classes at Echelon or an Echelon training

Strany 68

62 LONWORKS XML Schema <xs:complexType name="deviceCollection"> <xs:sequence> <xs:element name="AppDevice" typ

Strany 69

LONWORKS Network XML Programmer’s Guide 63 <xs:complexContent> <xs:extension base="objectType"> <xs:sequence>

Strany 70

64 LONWORKS XML Schema <xs:extension base="objectType"> <xs:sequence> <xs:element name="Name" type="

Strany 71

LONWORKS Network XML Programmer’s Guide 65 <xs:element name="ReceiveTimer" type="xs:integer" maxOccurs="1" minO

Strany 72

LonMaker®User’s GuideLonMaker®User’s Guidewww.echelon.com078-0466-01ALM-UG1 6/19/06 9:30 AM Page 1

Strany 74

LONWORKS Network XML Programmer’s Guide 1 1 Using the LonMaker XML Plug-in This chapter explains how to write a director application that invokes t

Komentáře k této Příručce

Žádné komentáře