Detailed description
2.11 Subroutine call through NC language replacement
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
197
N2410 ELSE
N2420
;
Query next replacement
...
N3300 ENDIF
...
N9999 RET
LABEL_ERR: SETAL(61000)
2.11.4.4
Sequence of replacement subroutines from the interpretation time
Call of spindle-related replacements at block start and block end
if a spindle-related replacement function is determined in an active synchronous spindle
coupling by the leading spindle in the part program, then a replacement subroutine is called.
A gear stage change or a spindle positioning is carried out after the following sequence,
depending on the determined replacement type.
Sequence of a replacement program for a gear stage change at block start
The leading spindle is located in an active synchronous spindle coupling and an automatic
(M40 S...) or a gear stage change programmed with M41 to M45 is determined during the
interpretation of a part program line.
1.
Call replacement subroutine
The replacement subroutine set using
MD15702 $MN_LANG_SUB_PATH (call path)
MD15700 $MN_LANG_SUB_NAME is called.
The system variables $P_SUB_AXFCT delivers 1 for gear stage change. $P_SUB_STAT
also delivers the value 1 for "replacement subroutine is active, call at block start".
2.
Transfer of the required data in replacement subroutine
The programmed gear stage M41 to M45 or the calculated gear stage in the replacement
subroutine is queried during automatic gear stage change (M40 S...) in the replacement
subroutine with $P_SUB_GEAR . $P_SUB_LA delivers the axis identifier of the leading
spindle and $P_SUB_CA delivers the axis identifier of the first following spindle involved
in the coupling.
3.
Disengage coupling, gear stage change of the spindles involved in the coupling
The coupling is deactivated in the replacement subroutine with the help of this information
and the gear stage change of the leading and following spindles involved in the coupling
are executed separately.
4.
Close the coupling again and continue the part program
The coupling is then closed again.
After the replacement subroutine has been executed, the part program line that controlled
the call of the subroutine is interpreted. Thus, the S value that lead to calling the
replacement subroutine during automatic gear stage change is now active too. In this
case, the automatic gear stage change M40 too is restored again. The gear stage
request M41-M45 is no longer processed.
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 ...