ERROR = TRUE indicates that an error has occurred during processing. For details refer
to parameter STATUS. The following table contains all the error information specific to
SFB 31 that can be output with the ERROR and STATUS parameters.
ERROR STATUS (dec-
imal)
Description
0 11 Message lost: The previous signal change or the previous message could not be
sent and will be replaced by the current message.
0 22
n Error in the pointer to the associated values SD_i:
– relating to the data length or the data type
– Associated values in the user memory not accessible, for example, due to
deleted DB or area length error. The activated message is sent without
associated values or if necessary with even possible number of associated
values.
n The actual parameter you have selected for SEVERITY is higher than the per-
mitted range. The activated message is sent with SEVERITY = 127.
0 25 Communication was initiated. The message is being processed.
1 1 Communication problems: Disconnection or no logon
1 4 At the first call the specified EV_ID is outside the permitted range or the ANY
pointer SD_i has a formal error or the maximum memory area that can be sent for
the CPU per SFB 31 was exceeded.
1 10 Access to local user memory not possible (for example, access to a deleted DB)
1 12 When the SFB was called: an instance DB that does not belong to SFB 31 was
specified or a shared DB instead of an instance DB was specified.
1 18 EV_ID was already being used by one of the SFBs 31 or 33 ... 36.
1 20 Not enough working memory.
1 21 The message with the specified EV_ID is disabled.
14.2.12 SFB 32 - DRUM - Realize a step-by-step switch
Implementing a 16-state cycle switch using the SFB 32.
n Parameter DSP defines the number of the first step, parameter LST_STEP defines
the number of the last step.
n Every step describes the 16 output bits OUT0 ... OUT15 and output parameter
OUT_WORD that summarizes the output bits.
n The cycle switch changes to the next step when a positive edge occurs at input JOG
with respect to the previous SFB-call. If the cycle switch has already reached the last
step and a positive edge is applied to JOG variables Q and EOD will be set, DCC is
set to 0 and SFB 32 remains at the last step until a "1" is applied to the RESET input.
The switch can also be controlled by a timer. For this purpose parameter DRUM_EN must
be set to "1".
n The next step of the cycle switch is activated when:
– the event bit EVENTi of the current step is set and
– when the time defined for the current step has expired.
n The time is calculated as the product of time base DTBP and the timing factor that
applies to the current step (from the S_PRESET field).
Error information ERROR /
STATUS
Description
Time controlled switching
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 32 - DRUM - Realize a step-by-step switch
HB00 | OPL_SP7 | Operation list | en | 18-30 748