Echelon LonWorks Network XML User Manual
Page 59
L
ON
W
ORKS
Network XML Programmer’s Guide
51
writer.WriteEndElement();
// End NetworkVariable Element
writer.WriteEndElement();
// End NetworkVariables Element
writer.WriteEndElement();
// End FunctionalBlock Element
writer.WriteEndElement();
// Write functional block #2
writer.WriteStartElement(
"FunctionalBlock"
);
writer.WriteAttributeString(
"Handle"
,
"3"
);
writer.WriteElementString(
"Name"
,
"Digital Output[0]"
);
writer.WriteStartElement(
"IsVirtualFb"
);
writer.WriteAttributeString(
"ID"
,
"0"
);
writer.WriteString(
"False"
);
writer.WriteEndElement();
writer.WriteElementString(
"ProgrammaticName"
,
"Digital Output[0]]"
);
writer.WriteElementString(
"FuncProfileName"
,
"Echelon Digital Output"
);
writer.WriteStartElement(
"Scope"
);
writer.WriteAttributeString(
"ID"
,
"3"
);
writer.WriteString(
"Manf"
);
writer.WriteEndElement();
writer.WriteElementString(
"FuncProfileProgrammaticName"
,
"UFPTDigitalOutput"
);
writer.WriteElementString(
"SubsystemName"
,
"$Subsystem 1"
);
writer.WriteStartElement(
"IsDynamic"
);
writer.WriteAttributeString(
"ID"
,
"0"
);
writer.WriteString(
"False"
);
writer.WriteEndElement();
// Start NetworkVariables Element
writer.WriteStartElement(
"NetworkVariables"
);
// Write network variable
writer.WriteStartElement(
"NetworkVariable"
);
writer.WriteAttributeString(
"Handle"
,
"0"
);
writer.WriteElementString(
"Name"
,
"DO_Digital"
);
writer.WriteElementString(
"ProgrammaticName"
,
"DO_Digital_1"
);
writer.WriteElementString(
"LonMarkMemberNumber"
,
"0"
);
writer.WriteStartElement(
"Direction"
);
writer.WriteAttributeString(
"ID"
,
"0"
);
writer.WriteString(
"INPUT"
);
writer.WriteEndElement();
writer.WriteStartElement(
"TypeSpec"
);
writer.WriteStartElement(
"Scope"
);
writer.WriteAttributeString(
"ID"
,
"0"
);
writer.WriteString(
"Standard"
);
writer.WriteEndElement();
writer.WriteElementString(
"TypeName"
,
"SNVT_switch"
);
writer.WriteEndElement();
writer.WriteElementString(
"Format"
,
"SNVT_switch"
);
writer.WriteStartElement(
"HasShape"
);
writer.WriteAttributeString(
"ID"
,
"1"
);
writer.WriteString(
"True"
);
writer.WriteEndElement();
writer.WriteStartElement(
"IsDynamic"
);
writer.WriteAttributeString(
"ID"
,
"0"
);
writer.WriteString(
"False"
);
writer.WriteEndElement();