Siemens SINUMERIK 840D sl Function Manual page 425

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

Advertisement

Program code
N30 SPOS[2]=IC(77)
N55 X10 G0
N60 G4 F10
N99 M30
ASUB:
Program code
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.
If the ASUB which has been started is ended with REPOSA, spindle 1 remains at position 111
degrees, while spindle 2 is repositioned at position 77 degrees.
If a different response is required, the program sequence for block search (for example) "N05
M3 S..." and "N30 SPOS[2] = IC(...)" requires special treatment.
Whether block search is active can be ascertained in the ASUB via the system variable
$P_SEARCH.
$P_SEARCH==1 ; Block search active
In the case of incremental positioning after speed control operation, the path to be traversed
is defined but, in some cases, the final position reached only becomes known during
positioning. This is the case, for example, during position calibration on crossing the zero mark
when switching on position control. For this reason, the distance programmed after the zero
position is accepted as the REPOS position (REPOSA in the ASUB).
Supplementary conditions
Collected S values
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Comment
; Spindle 2 traverses incrementally by 77 degrees
; Target block
H2: Auxiliary function outputs to PLC
8.13 Behavior during block search
Comment
; Output gear stage
; Output speed (for M40, a suitable
gear stage is determined)
; Output direction of rotation, posi-
tioning or axis mode
; Next spindle
; For all spindles
425

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents