Flexible NC programming
1.25 Subprogram technique
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
167
Further information
Single block disable for unsynchronized subprograms
In order to execute an ASUB in one step, a
PROC instruction must be programmed in the
ASUB with
SBLOF. This also applies to the function "Editable system ASUB" (MD11610
$MN_ASUP_EDITABLE).
Example of an editable system ASUB:
Program code Comments
N10 PROC ASUB1 SBLOF DISPLOF
N20 IF $AC_ASUP==’H200’
N30 RET ; No REPOS for mode change.
N40 ELSE
N50 REPOSA ; REPOS in all other cases.
N60 ENDIF
Program control in single block mode
With the single block execution function, the user can execute a part program block-by-
block. The following setting types exist:
● SBL1: IPO single block with stop after each machine function block.
● SBL2: Single block with stop after each block.
● SBL3: Stop in the cycle (the
SBLOF command is suppressed by selecting SBL3).
Single block suppression for program nesting
If
SBLOF was programmed in the PROC instruction in a subprogram, then execution is stopped
at the subprogram return jump with
M17. That prevents the next block in the calling program
from already running. If
SBLOF, without SBLOF is programmed in the PROC instruction in a
subprogram, single block suppression is activated, execution is only stopped after the next
machine function block of the calling program. If that is not wanted,
SBLON must be
programmed in the subprogram before the return (
M17). Execution does not stop for a return
jump to a higher-level program with
RET.