Siemens Sinumerik 840D sl Programming Manual page 176

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

Advertisement

Flexible NC programming
1.25 Subprogram technique
Example 3:
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
Example 4: Is not stopped with MD10702 Bit 12 = 1
Initial situation:
Single block execution is active.
MD10702 $MN_IGNORE_SINGLEBLOCK_MASK Bit12 = 1
Main program:
Program code
N10 G0 X0
N20 X10
N30 CYCLE
N50 G90 X20
M30
Cycle CYCLE:
Program code
PROC CYCLE SBLOF
N100 R0 = 1
N110 SBLON
N120 X1
176
0 GOTOF _G500
1 GOTOF _G54
2 GOTOF _G55
3 GOTOF _G56
4 GOTOF _G57
DEFAULT GOTOF END
Comments
; Stop in this part program line.
; Stop in this part program line.
; Traversing block generated by the cycle.
; Stop in this part program line.
Comments
; Suppress single block stop:
; Execution is not stopped in the part program line due to
the fact that MD10702 bit12=1.
; Execution is stopped in this part program line.
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents