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