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
185
2.11.3.4
Example of M/T function replacement for tool change
Configuration example of call of subroutine SUB_M6 through M6 with parameter transfer
MD10715 $MN_M_NO_FCT_CYCLE[2] = 6
MD10716 $MN_M_NO_FCT_CYCLE_NAME[2] = "SUB_M6"
MD10718 $MN_M_NO_FCT_CYCLE_PAR = 2
Program example of tool change with M function replacement
PROC MAIN
...
N10 T1 D1 M6
...
N90 M30
PROC SUB_M6
N110 IF $C_T_PROG == TRUE
; Scan whether address T has been programmed
N120
T[$C_TE] = $C_T
; Execute T selection
N130 ENDIF
N140 M[$C_ME] = 6
; Execute tool change
N150 IF $C_D_PROG == TRUE
; Scan whether address D has been programmed
N160
D = $C_D
; Execute D selection
N170 ENDIF
N190 M17
Replacement of T address and D or DL addresses at block start
Example
•
Tool change occurs with address T (thus without M code).
•
Tool management not active.
•
B axis as indexing axis with Hirth tooth system.
Configuration of machine data:
MD11717 $MN_D_NO_FCT_CYCLE_NAME = "D_T_SUB_PROG"
(UP-Name for D function replacement); D-replacement cycle
MD10717 $MN_T_NO_FCT_CYCLE_NAME = "D_T_SUB_PROG"
(Name of tool change for T function replacement); T replacement cycle
MD10719 $MN_T_NO_FCT_CYCLE_MODE = 'H2' (call at block start)
MD22550 $MC_TOOL_CHANGE_MODE = 0 (tool change with T function)
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 ...