ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Json/CloseJsonDocument
The command closes the JSON document and releases the index in the ActiveJsonDocuments list.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bJsonCloseJsonDocument : BOOL;
OutputDataJsonCloseJsonDocument : ST_JsonDocumentOutputData;
hrJsonCloseJsonDocument : HRESULT;
fbJson : FB_Json;
END_VAR
hrJsonCloseJsonDocument := fbJson.CloseJsonDocument(
bExecute := bJsonCloseJsonDocument,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
nId := 0,
OutputData => OutputDataJsonCloseJsonDocument);
IF hrJsonCloseJsonDocument <> S_FALSE THEN
bJsonCloseJsonDocument := 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".