ns=2;s=DEPRAG Smart/Devices/DEPRAG/AST/ActiveDevices/0/SystemOverview/SystemData/SystemDataItemsCount
Gets the number of items in the system data.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bAstSystemDataItemsCount : BOOL;
outputAstSystemDataItemsCount : ST_Int32OutputData;
hrAstSystemDataItemsCount : HRESULT;
fbAst : FB_AST;
END_VAR
hrAstSystemDataItemsCount := fbAst.SystemDataItemsCount(
bExecute := bAstSystemDataItemsCount,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
OutputData => outputAstSystemDataItemsCount);
IF hrAstSystemDataItemsCount <> S_FALSE THEN
bAstSystemDataItemsCount := 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".