Technical data

Table Of Contents
SFCs and SFBs for Updating the Process Image and Processing Bit Fields
System Software for S7-300/400 System and Standard Functions - Volume 1/2
14-12
A5E00709327-01
Parameter Declaration Data Type Memory Area Description
PREV_TIME VAR DWORD I, Q, M, D, L, constant (Not relevant for the user: system
time of the previous SFB call)
S_PRESET VAR ARRAY of
WORD
I, Q, M, D, L, constant One-dimensional array with the time
factor for each step. A sensible
selection of the indices would be: [1 to
16].In this case, S_PRESET [x] has
the time factor of step x.
OUT_VAL VAR ARRAY of
BOOL
I, Q, M, D, L, constant Two-dimensional array with the
values output in each step if they
have not been masked out using
S_MASK. A sensible selection for the
indices would be: [1 to 16, 0 to 15]. In
this case, OUT_VAL [x, y] has the
value assigned to the output bit OUTy
in step x.
S_MASK VAR ARRAY of
BOOL
I, Q, M, D, L, constant Two-dimensional array with the mask
bits for each step. A sensible
selection of the indices would be: [1 to
16, 0 to 15]. In this case, S_MASK [x,
y] contains the mask bit for the y-th
value to be output in step x.
Meaning of the mask bits:
0: The value of the previous step
is assigned to the corresponding
output bit.
1: The corresponding value from
OUT_VAL is assigned to the
corresponding output bit.
Error Information
If one of the conditions listed in the following table occurs, SFB 32 "DRUM"
remains in its current status and the ERR_CODE output is set.
ERR_CODE (W#16#...) Explanation
0000 No error
8081 Illegal value for LST_STEP
8082 Illegal value for DSC
8083 Illegal value for DSP
8084 The product DCC = DTBP * S_PRESET[DSC] exceeds the value 2**32-1
(approximately 24.86 days)