ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Json/ActiveJsonDocuments/0/SetFullFilePath
The command sets the path of the JSON document.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bJsonSetFullFilePath : BOOL;
OutputJsonSetFullFilePath : ST_VoidOutputData;
hrJsonSetFullFilePath : HRESULT;
fbJson : FB_Json;
END_VAR
hrJsonSetFullFilePath := fbJson.SetFullFilePath(
bExecute := bJsonSetFullFilePath,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
FilePath := 'C:\Test\Test2.json',
ClientId := '0',
OutputData => OutputJsonSetFullFilePath);
IF hrJsonSetFullFilePath <> S_FALSE THEN
bJsonSetFullFilePath := 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".