ns=2;s=DEPRAG Smart/Devices/General/OpenProtocol/RemoveAll
Removes all devices from the "OpenProtocolDevices" list.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bOpenProtocolRemoveAll : BOOL;
OutputDataOpenProtocolRemoveAll : ST_VoidOutputData;
hrOpenProtocolRemoveAll : HRESULT;
fbOpenProtocol : FB_OpenProtocol;
END_VAR
hrOpenProtocolRemoveAll := fbOpenProtocol.RemoveAll(
bExecute := bOpenProtocolRemoveAll,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => OutputDataOpenProtocolRemoveAll);
IF hrOpenProtocolRemoveAll <> S_FALSE THEN
bOpenProtocolRemoveAll := 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".