ns=2;s=DEPRAG Smart/Devices/DEPRAG/AST/RemoveAll
Terminates connections to all devices and removes them from the ActiveDevices list.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bAstRemoveAll : BOOL;
outputAstRemoveAll : ST_VoidOutputData;
hrAstRemoveAll : HRESULT;
fbAst : FB_AST;
END_VAR
hrAstRemoveAll := fbAst.RemoveAll(
bExecute := bAstRemoveAll,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => outputAstRemoveAll);
IF hrAstRemoveAll <> S_FALSE THEN
bAstRemoveAll := 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".