Siemens SINUMERIK 840D sl Programming Manual page 507

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

DISPLON:
ACTBLOCNO:
Examples
Example 1: Suppress current block display in the cycle
Program code
PROC CYCLE (AXIS TOMOV, REAL POSITION)
SAVE DISPLOF
DEF REAL DIFF
G01 ...
...
RET
Example 2: Block display for alarm output
Subprogram SUBPROG1 (with ACTBLOCNO):
Program code
PROC SUBPROG1 DISPLOF ACTBLOC-
NO
N8000 R10 = R33 + R44
...
N9040 R10 = 66 X100
...
N10000 M17
Subprogram SUBPROG2 (without ACTBLOCNO):
Program code
PROC SUBPROG2 DISPLOF
N5000 R10 = R33 + R44
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Command for revoking suppression of the display of the current block
Location:
At the end of the program line with the PROC operation
Effective:
Up to the return jump from the subprogram or end of program.
Note:
If further subprograms are called from the subprogram using the DISPLON com‐
mand, then the current block will also be displayed in these subprograms
unless DISPLOF is explicitly programmed in them.
DISPLOF together with the ACTBLOCNO attribute means that in the case of an
alarm, the number of the actual block is output in which the alarm occurred. This
also applies if only DISPLOF is programmed in a lower program level.
On the other hand, for DISPLOF without ACTBLOCNO, the block number of the cycle
or subprogram call from the last program level not designated with DISPLOF is
displayed.
Comment
; Trigger alarm 12080
Comment
3.2 Subprogram technique
Comment
; Suppress current block display Instead,
the cycle call should be displayed, e.g.:
CYCLE(X,100.0)
;Cycle contents
; Subprogram return jump. The block follow-
ing the cycle call is displayed in the block
display.
Work preparation
507

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents