ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Xml/ActiveXmlDocuments/0/SetFullFilePath
The command sets the path of the XML document.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bXmlSetFullFilePath : BOOL;
OutputDataXmlSetFullFilePath : ST_VoidOutputData;
hrXmlSetFullFilePath : HRESULT;
fbXml : FB_Xml;
END_VAR
hrXmlSetFullFilePath := fbXml.SetFullFilePath(
bExecute := bXmlSetFullFilePath,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
FilePath := 'C:\Test\Test2.xml',
ClientId := '0',
OutputData => OutputDataXmlSetFullFilePath);
IF hrXmlSetFullFilePath <> S_FALSE THEN
bXmlSetFullFilePath := 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".