Siemens SINUMERIK 840Di Function Manual page 506

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

Detailed Description
2.12 Block search
Example
Block search for contour with suppression of output of the spindle-specific auxiliary functions
and start of an ASUB after output of action blocks:
MD11450 $MN_SEARCH_RUN_MODE, Bit 2 = 1
The ASUB is started after block search for N55.
Part program
N05 M3 S200
N10 G4 F3
N15 SPOS = 111
N20 M2 = 4 S2 = 300
N25 G4 F3
N30 SPOS[2] = IC(77)
N55 X10 G0
N60 G4 F10
N99 M30
ASUB
PROC ASUP_SAVE
MSG ("Output of the spindle functions")
DEF INT SNR=1
AUSG_SPI:
M[SNR] = $P_SEARCH_SGEAR[SNR]
S[SNR] = $P_SEARCH_S[SNR]
M[SNR] = $P_SEARCH_SDIR[SNR]
SNR = SNR+1
REPEAT AUSG_SPI P=$P_NUM_SPINDLES-1
MSG("")
REPOSA
RET
Explanation of example
If the number of spindles is known, outputs of the same type can be written in one part
program block to reduce program runtime.
Output of $P_SEARCH_SDIR should be made in a separate part program block because
spindle positioning or switchover to axis mode in conjunction with the gear change can
cause an alarm.
2-32
; Spindle 1
; Spindle 1 is positioned at 111 degrees in the ASUB
; Spindle 2
; Spindle 2 traverses incrementally through 77 degrees
; Target block
; Output gear stage
; Output speed (On M40 the suitable
; gear stage is ascertained)
; Output rotation direction, positioning
; or axis mode
; Next spindle
; For all spindles
Auxiliary Function Output to PLC (H2)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents