SystemDataItemKeys

TwinCAT
Devices DEPRAG devices Sequence controller ActiveDevices One client System info Controller data

ns=2;s=DEPRAG Smart/Devices/DEPRAG/AST/ActiveDevices/0/SystemOverview/SystemData/SystemDataItemKeys

Requests all keys of the system data.

Returns:

    SystemDataItemKeys
    A variable of type OpcMethodReturnValueStringArray. The Result property contains the command-specific return values.
      Result
      All keys of the system data in a string array.

Examples:

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

Beckhoff parameter:

    bAstSystemDataKeys
    A boolean variable that can be used to trigger the execution of the SystemDataItemKeys command.
    outputAstSystemDataKeys
    An instance of the ST_SystemDataKeysOutputData structure into which the return value of the SystemDataItemKeys method is written.
    hrAstSystemDataKeys
    This can be used to monitor the execution of the command. Error codes have the type HRESULT.
    fbAst
    An instance of the FB_AST function block supplied with the DEPRAG Smart library.
    sDeviceId
    A string value specifying the device for which system data is to be fetched.
    ConnectionHandle
    "ConnectionHandle" received when establishing a connection between DEPRAG Smart Server and your OPC UA client.


VAR
     bAstSystemDataKeys     : BOOL;
     outputAstSystemDataKeys    : ST_SystemDataKeysOutputData;                                          
     hrAstSystemDataKeys     : HRESULT;

     fbAst   : FB_AST;
END_VAR

hrAstSystemDataKeys := fbAst.SystemDataItemKeys(
       bExecute    := bAstSystemDataKeys,   
       ConnectionHandle := depragSmartConnection.ConnectionHandle,
       sDeviceId   := '0',
       OutputData   => outputAstSystemDataKeys);
IF hrAstSystemDataKeys <> S_FALSE THEN 
    bAstSystemDataKeys := 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".