n If input RESET is set to "1" when the call is issued to SFB 32 then the cycle switch
changes to the step that you have specified as a number at input DSP.
n When this module is called for the first time the RESET input must be set to "1".
n If the cycle switch has reached the last step and the processing time defined for this
step has expired, then outputs Q and EOD will be set and SFB 32 will remain at the
last step until the RESET input is set to "1".
n The SFB 32 is only active in operating modes STARTUP and RUN.
n If SFB 32 must be initialized after a restart it must be called from OB 100 with RESET
= "1".
The remaining processing time DCC in the current step will only be
decremented if the respective event bit EVENTi is set.
Special conditions apply if parameter DRUM_EN is set to "1":
– timer-controlled cycle switching, if EVENTi = "1" with DSP = I =
LST_STEP.
– event-controlled cycle switching by means of event bits EVENTi,
when DTBP = "0".
In addition it is possible to advance the cycle switch at any time (even if
DRUM_EN = "1") by means of the JOG input.
Parameter Declaration Data type Memory block Description
RESET INPUT BOOL I, Q, M, D, L,
constant
Reset
JOG INPUT BOOL I, Q, M, D, L,
constant
Switch to the next stage
DRUM_EN INPUT BOOL I, Q, M, D, L,
constant
Control parameter
LST_STEP INPUT BYTE I, Q, M, D, L,
constant
Number of the last step
EVENTi,1 ≤ I ≤ 16 INPUT BOOL I, Q, M, D, L,
constant
Event bit No. I
(belongs to step I)
OUTj,0 ≤ j ≤ 15 OUTPUT BOOL I, Q, M, D, L Output bit No. j
Q OUTPUT BOOL I, Q, M, D, L Status parameter
OUT_WORD OUTPUT WORD I, Q, M, D, L, P Output bits
ERR_CODE OUTPUT WORD I, Q, M, D, L, P ERR_CODE contains the
error information if an error
occurs when the SFB is
being processed
Parameters
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 32 - DRUM - Realize a step-by-step switch
HB00 | OPL_SP7 | Operation list | en | 18-30 749