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