14.1.19 SFC 23 - DEL_DB - Deleting a data blockThe SFC 23 DEL_DB (delete data block) deletes a data block in application memory andif necessary from the load memory of the CPU. The specified DB must not be open onthe current level or on a level with a lower priority, i.e. it must not have been entered intoone of the two DB-registers and also not into B-stack. Otherwise the CPU will change toSTOP mode when the call to the SFC 23 is issued.The following table indicates when a DB may be deleted by means of the SFC 23.When the DB ... then SFC 23 ...was created by means of a call to SFC 22 "CREAT_DB", can be used to delete it.was not created with the key word UNLINKED, can be used to delete it.The SFC 23 may be interrupted by OBs with a higher priority. When another call is issuedto the SFC the second call is rejected and RET_VAL is set to error code 8091h.Parameter Declaration Data type Memory block DescriptionDB_NUMBER INPUT WORD I, Q, M, D, L,constantNumber of the DB that must be deleted.RET_VAL OUTPUT INT I, Q, M, D, L The return value contains an error code if an erroris detected when the function is being processed.The return value contains an error code if an error is detected when the function is beingprocessed.Value Description0000h no error8091h The maximum nesting depth of the respective CPU for nested calls to SFC 23 has been exceeded.8092h The function "Delete a DB" cannot be executed at present becausen the function "Compress application memory" is activen you are copying the DB to be deleted from the CPU to an offline project80A1h Error in DB number:n has a value of 0n exceeds the maximum DB number that is possible on the CPU that is being used80B1h A DB with the specified number does not exist on the CPU80B2h A DB with the specified number was created with the key word UNLINKED80B3h The DB is located on the flash memory cardDescriptionInterruptibilityParametersRET_VAL (Return value)VIPA SPEED7 Integrated StandardSystem Functions > SFC 23 - DEL_DB - Deleting a data blockHB00 | OPL_SP7 | Operation list | en | 18-30 669