ns=2;s=DEPRAG Smart/Devices/General/OpenProtocol/OpenProtocolDevices/0/DisableTool
This message can be used to cancel the start enable. No screwdriving runs can be started, the device is not ready for screwdriving.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bOpenProtocolDisableTool : BOOL;
OutputDataOpenProtocolDisableTool : ST_VoidOutputData;
hrOpenProtocolDisableTool : HRESULT;
fbOpenProtocol : FB_OpenProtocol;
END_VAR
hrOpenProtocolDisableTool := fbOpenProtocol.DisableTool(
bExecute := bOpenProtocolDisableTool,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
OutputData => OutputDataOpenProtocolDisableTool);
IF hrOpenProtocolDisableTool <> S_FALSE THEN
bOpenProtocolDisableTool := 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".