Parameters
Parameter Declaration Data type Memory block Description
LOW_LIMIT INPUT WORD I, Q, M, D, L,
constant
The lower limit is the lowest number in the range
of numbers that you may assign to your data
block.
UP_LIMIT INPUT WORD I, Q, M, D, L,
constant
The upper limit is the highest number in the range
of numbers that you may assign to your data
block.
COUNT INPUT WORD I, Q, M, D, L,
constant
The counter defines the number of data bytes that
you wish to reserve for your data block. Here you
must specify an even number of bytes (maximum
65534).
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_NUMBER OUTPUT WORD I, Q, M, D, L The data block number is the number of the data
block that was created. When an error occurs (bit
15 of RET_VAL was set) a value of 0 is entered
into DB_NUMBER
The return value contains an error code if an error is detected when the function is being
processed.
Value Description
0000h no error
8091h You issued a nested call to the SFC 22
8092h The function "Create a DB" cannot be executed at present because
n the function "Compress application memory" is active
80A1h Error in the number of the DB:
n the number is 0
n the number exceeds the CPU-specific number of DBs
n lower limit > upper limit
80A2h Error in the length of the DB:
n the length is 0
n the length was specified as an uneven number
n the length is larger than permitted by the CPU
80B1h No DB-number available
80B2h Insufficient memory available
80B3h Insufficient contiguous memory available
(compress the memory!)
RET_VAL (Return value)
VIPA SPEED7
Integrated Standard
System Functions > SFC 22 - CREAT_DB - Create a data block
HB00 | OPL_SP7 | Operation list | en | 18-30 668