Suppress Current Block Display (Displof) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Subroutines, Macros

2.17 Suppress current block display (DISPLOF)

Single block suppression for program nesting
If SBLOF is programmed in the PROC statement in a subroutine, stopping is performed on
the subroutine return jump with M17. That prevents the next block in the calling program
from already running. If single block suppression is activated with SBLOF (without SBLOF in
the PROC statement), execution stops after the next machine function block of the calling
program. If that is not wanted, SBLON must be programmed in the subroutine before the
return (M17). Execution does not stop on a return to a higher-level program with RET.
2.17
Suppress current block display (DISPLOF)
2.17
Function
DISPLOF suppresses the current block display for a subroutine. DISPLOF is placed at the
end of the PROC statement. Instead of the current block, the call of the cycle or the
subroutine is displayed.
By default the block display is activated. Deactivation of block display with DISPLOF applies
until the return from the subroutine or end of program.
Programming
PROC ... DISPLOF
If further subroutines are called from the subroutine with the DISPLOF attribute, the current
block display is suppressed in these as well. If a subroutine with suppressed block display is
interrupted by an unsynchronized subroutine, the blocks of the current subroutine are
displayed.
Parameters
DISPLOF
Example: suppress current block display in the cycle
%_N_CYCLE_SPF
PROC CYCLE (AXIS TOMOV, REAL POSITION) SAVE DISPLOF
DEF REAL DIFF
G01 ...
...
RET
2-36
Suppress current block display
;$PATH=/_N_CUS_DIR
;Suppress current block display
;Now the cycle call is displayed as
;the current block
;e.g.: CYCLE(X, 100.0)
;Cycle contents
;Subroutine return, the following
;block of the calling program is
;displayed again
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents