ns=2;s=DEPRAG Smart/Devices/DEPRAG/AST/ActiveDevices/0/ScrewdrivingSequence/DeleteProgram
Deletes the specified screwdriving sequence on the connected sequence controller.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bAstDeleteProgram : BOOL;
outputAstDeleteProgram : ST_VoidOutputData;
hrAstDeleteProgram : HRESULT;
fbAst : FB_AST;
END_VAR
hrAstDeleteProgram := fbAst.DeleteProgram(
bExecute := bAstDeleteProgram,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sDeviceId := '0',
ProgramNumber := 2,
OutputData => outputAstDeleteProgram);
IF hrAstDeleteProgram <> S_FALSE THEN
bAstDeleteProgram := 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".