ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Json/ActiveJsonDocuments/0/Id
Unique index
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bJsonReadId : BOOL;
OutputDataJsonReadId : DINT;
hrJsonReadId : HRESULT;
fbJson : FB_Json;
END_VAR
hrJsonReadId := fbJson.ReadId(
bExecute := bJsonReadId,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => OutputDataJsonReadId);
IF hrJsonReadId <> S_FALSE THEN
bJsonReadId := 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".