EasyManua.ls Logo

YASKAWA VIPA SPEED7 - SFC 23 - DEL_DB - Deleting a Data Block

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
14.1.19 SFC 23 - DEL_DB - Deleting a data block
The SFC 23 DEL_DB (delete data block) deletes a data block in application memory and
if necessary from the load memory of the CPU. The specified DB must not be open on
the current level or on a level with a lower priority, i.e. it must not have been entered into
one of the two DB-registers and also not into B-stack. Otherwise the CPU will change to
STOP 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 issued
to the SFC the second call is rejected and RET_VAL is set to error code 8091h.
Parameter Declaration Data type Memory block Description
DB_NUMBER INPUT WORD I, Q, M, D, L,
constant
Number 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 error
is detected when the function is being processed.
The return value contains an error code if an error is detected when the function is being
processed.
Value Description
0000h no error
8091h 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 because
n the function "Compress application memory" is active
n you are copying the DB to be deleted from the CPU to an offline project
80A1h Error in DB number:
n has a value of 0
n exceeds the maximum DB number that is possible on the CPU that is being used
80B1h A DB with the specified number does not exist on the CPU
80B2h A DB with the specified number was created with the key word UNLINKED
80B3h The DB is located on the flash memory card
Description
Interruptibility
Parameters
RET_VAL (Return value)
VIPA SPEED7
Integrated Standard
System Functions > SFC 23 - DEL_DB - Deleting a data block
HB00 | OPL_SP7 | Operation list | en | 18-30 669

Table of Contents

Related product manuals