ns=2;s=DEPRAG Smart/Devices/DEPRAG/AST/ActiveDevices/0/SystemOverview/SystemData/SystemDataItemKeyByIndex
Requests an index-dependent key from the system data.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bAstSystemDataKeyByIndex : BOOL;
outputAstSystemDataKeyByIndex : ST_StringOutputData;
hrAstSystemDataKeyByIndex : HRESULT;
fbAst : FB_AST;
END_VAR
hrAstSystemDataKeyByIndex := fbAst.SystemDataItemKeyByIndex(
bExecute := bAstSystemDataKeyByIndex,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
nIndex := 0,
OutputData => outputAstSystemDataKeyByIndex);
IF hrAstSystemDataKeyByIndex <> S_FALSE THEN
bAstSystemDataKeyByIndex := 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".