ns=2;s=DEPRAG Smart/Devices/DEPRAG/AST/ActiveDevices/0/SystemOverview/SystemData/SystemDataItemByKey
Gets one entry.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bAstSystemDataItemByKey : BOOL;
outputAstSystemDataItemByKey : ST_StringOutputData;
hrAstSystemDataItemByKey : HRESULT;
fbAst : FB_AST;
END_VAR
hrAstSystemDataItemByKey := fbAst.SystemDataItemByKey(
bExecute := bAstSystemDataItemByKey,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
sKey := 'DeviceName',
OutputData => outputAstSystemDataItemByKey);
IF hrAstSystemDataItemByKey <> S_FALSE THEN
bAstSystemDataItemByKey := 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".