FullFilePath

Read TwinCAT TIA
Local File and directory access JSON reader ActiveJsonDocuments A JSON document

ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Json/ActiveJsonDocuments/0/FullFilePath

Path of the JSON document.

Examples:

In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:

Beckhoff parameter:

    bJsonReadFullFilePath
    A boolean variable that can be used to trigger the execution of the ReadFullFilePath command.
    OutputJsonReadFullFilePath
    An instance of type "string" in which the return value of the ReadFullFilePath method is written.
    hrJsonReadFullFilePath
    This can be used to monitor the execution of the command. Error codes have the type "HRESULT".
    fbJson
    An instance of the "FB_Json" function block supplied with the DEPRAG Smart library.
    ClientId
    A STRING(255) variable that uniquely identifies the JSON document in the ActiveJsonDocuments list.
    ConnectionHandle
    "ConnectionHandle" received when establishing a connection between DEPRAG Smart Server and your OPC UA client.


VAR
   bJsonReadFullFilePath   : BOOL;
   OutputJsonReadFullFilePath   : string;
   hrJsonReadFullFilePath  : HRESULT;

   fbJson : FB_Json;
END_VAR

hrJsonReadFullFilePath := fbJson.ReadFullFilePath(
       bExecute    := bJsonReadFullFilePath,
       ConnectionHandle  := depragSmartConnection.ConnectionHandle,
       ClientId   := '0',
       Output    => OutputJsonReadFullFilePath);
IF hrJsonReadFullFilePath <> S_FALSE THEN 
 bJsonReadFullFilePath := 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".