14.1.20 SFC 24 - TEST_DB - Test data block
The SFC 24 TEST_DB (test data block) returns information about a data block that is
located in the application memory of the CPU. The SFC determines the number of data
bytes and tests whether the selected DB is write protected.
Parameter Declaration Data type Memory block Description
DB_NUMBER INPUT WORD I, Q, M, D, L,
constant
Number of the DB that must be tested.
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.
DB_LENGTH OUTPUT WORD I, Q, M, D, L The number of data bytes that are contained
in the selected DB.
WRITE_PROT OUTPUT BOOL I, Q, M, D, L Information about the write protection code of
the selected DB (1 = write protected).
The return value contains an error code if an error is detected when the function is being
processed.
Value Description
0000h no error
80A1h Error in input parameter DB_NUMBER:
the selected actual parameter
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.
14.1.21 SFC 25 - COMPRESS - Compressing the User Memory
Gaps can occur in the load memory and in the work memory if data blocks are deleted
and reloaded several times. These gaps reduce the effective memory area.
With SFC 25 COMPRESS, you start compression of the RAM section of both the load
memory and the work memory. The compression function is the same as when started
externally in the RUN mode (mode selector setting).
If compression was started externally and is still active (via Module Status Information),
the SFC 25 call will result in an error message.
Description
Parameters
RET_VAL (Return value)
Gaps in Memory
Description
VIPA SPEED7
Integrated Standard
System Functions > SFC 25 - COMPRESS - Compressing the User Memory
HB00 | OPL_SP7 | Operation list | en | 18-30 670