ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Json/ActiveJsonDocuments/0/GetValueForMember
The command returns the value of the specified element. This command is used when a scalar value is expected.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bJsonGetValueForMember : BOOL;
OutputDataJsonGetValueForMember : ST_StringOutputData;
hrJsonOpenJsonDocument : HRESULT;
fbJson : FB_Json;
END_VAR
hrJsonGetValueForMember := fbJson.GetValueForMember(
bExecute := bJsonGetValueForMember,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
MemberPath := 'Data.ApiVersionUrl',
ClientId := '0',
OutputData => OutputDataJsonGetValueForMember);
IF hrJsonGetValueForMember <> S_FALSE THEN
bJsonGetValueForMember := 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".