SFC 23        Delete DB

Top  Previous  Next

 

With this system function you can delete a DB while runtime. You specify the number of the DB that shall be deleted with the parameter DB_NUMBER. Please note that the DB is not opened. It must not have been open in one of the calling blocks either as the call of the currently executed block happened!

 

The Out-parameter RET_VAL can have following values:

 

W#16#0000: no errors

W#16#80B1: the DB does not exist

 

The other realized error cases in a S7 are not realized.

 

See also:

Create a DB

System Functions

 

S7-300 and S7-400 are registered trademarks of the Siemens AG.