ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Xml/CloseXmlDocument
The command closes the XML document and releases the index in the ActiveXMLDocuments list.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bXmlCloseXmlDocument : BOOL;
OutputDataXmlCloseXmlDocument : ST_XmlDocumentOutputData;
hrXmlCloseXmlDocument : HRESULT;
fbXml : FB_Xml;
END_VAR
hrXmlCloseXmlDocument := fbXml.CloseXmlDocument(
bExecute := bXmlCloseXmlDocument,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
nId := 0,
OutputData => OutputDataXmlCloseXmlDocument);
IF hrXmlCloseXmlDocument <> S_FALSE THEN
bXmlCloseXmlDocument := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".