ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Xml/ActiveXmlDocuments/0/GetValueForMember
The command returns the value of the specified XML element.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bXmlGetValueForMember : BOOL;
OutputDataXmlGetValueForMember : ST_StringOutputData;
hrXmlGetValueForMember : HRESULT;
fbXml : FB_Xml;
END_VAR
hrXmlGetValueForMember := fbXml.GetValueForMember(
bExecute := bXmlGetValueForMember,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
MemberPath := '',
ClientId := '0',
OutputData => OutputDataXmlGetValueForMember);
IF hrXmlGetValueForMember <> S_FALSE THEN
bXmlGetValueForMember := 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".