Siemens SINUMERIK 840D sl Function Manual page 585

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

Advertisement

Program code
N110 R10=3*SIN(R20)+5
N120 IF (R11 <= 0)
N130 SETAL(61000)
N140 ENDIF
N150 G1 G91 Z=R10 F=R11
N160 M17
CYCLE1 is processed for an active single block, i.e. the Start key must be pressed once to
process CYCLE1.
Example 2: An ASUB, which is started by the PLC in order to activate a modified zero offset
and tool offsets, is to be executed invisibly
Program code
N100 PROC ZO SBLOF DISPLOF
N110 CASE $P_UIFRNUM OF
N120 _G54: G54 D=$P_TOOL T=$P_TOOLNO
N130 RET
N140 _G54: G55 D=$P_TOOL T=$P_TOOLNO
N150 RET
N160 _G56: G56 D=$P_TOOL T=$P_TOOLNO
N170 RET
N180 _G57: G57 D=$P_TOOL T=$P_TOOLNO
N190 RET
N200 END: D=$P_TOOL T=$P_TOOLNO
N210 RET
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 a single-block suppression is activated in a subprogram with SBLOF,
without SBLOF in the PROC instruction, execution is only stopped after the next machine
function block of the calling program. If that is not desired, 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.
Example:
Program code
N10 X0 F1000
N20 UP1(0)
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
K1: Mode group, channel, program operation, reset response
Comment
0 GOTOF _G500
1 GOTOF _G54
2 GOTOF _G55
3 GOTOF _G56
4 GOTOF _G57
DEFAULT GOTOF END
Comment
; Execution is stopped in this block.
9.13 Single block
585

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents