Detailed description
2.12 Block search
Basic logic functions: Auxiliary Function Output to PLC (H2)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
49
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 (search parameterization)
After the block search on
N55
, the ASUB is started.
Part program
N05 M3 S200
; Spindle 1
N10 G4 F3
N15 SPOS = 111
; Spindle 1 is positioned to 111 degrees in the ASUB
N20 M2 = 4 S2 = 300
; Spindle 2
N25 G4 F3
N30 SPOS[2] = IC(77)
; Spindle 2 traverses incrementally by 77 degrees
N55 X10 G0
; Destination block
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]
; Output gear level
S[SNR] = $P_SEARCH_S[SNR]
; Output speed (for M40, a suitable
gear level is determined)
M[SNR] = $P_SEARCH_SDIR[SNR]
; Output direction of rotation,
positioning or axis mode
SNR = SNR+1
; next spindle
REPEAT AUSG_SPI P=$P_NUM_SPINDLES-1
; For all spindles
MSG("")
REPOSA
RET
Summary of Contents for SINUMERIK 840D sl
Page 282: ...Index Basic logic functions Acceleration B2 64 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 388: ...Basic logic functions Travel to fixed stop F1 Function Manual 11 2006 6FC5397 0BP10 2BA0 52 ...
Page 962: ...Index Basic logic functions Emergency Stop N2 20 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1704: ...Constraints Basic logic functions Spindles S1 94 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1716: ...Index Basic logic functions Spindles S1 106 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1996: ...Index Basic logic functions Tool Offset W1 208 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2150: ...Table of contents Basic logic functions Appendix 4 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2184: ...Glossary Basic logic functions Appendix 38 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...