K1: Mode group, channel, program operation, reset response
9.17 Replacing functions by subprograms
Programming
N4330 ENDIF
N4400 IF $C_DL_PROG==TRUE
N4420
N4430 ENDIF
N9999 RET
9.17.2.6
Behavior in the event of a conflict
Conflict case
A conflict is present if several functions are programmed in one block and the functions should
be replaced with different subprograms:
● Addresses D and DL replaced with subprogram:
MD11717 $MN_FCT_CYCLE_NAME = "D_SUB_PROG"
● Address T replaced with subprogram:
MD10717 $MN_FCT_CYCLE_NAME = "T_SUB_PROG"
● M function M6 replaced with subprogram:
MD10715 $MN_M_NO_FCT_CYCLE[0] = 6
MD10716 $MN_M_NO_FCT_CYCLE_NAME[0] = "M6_SUB_PROG"
MD10718 $MN_M_NO_FCT_CYCLE_PAR = 0
MD22550 $MC_TOOL_CHANGE_MODE = 1
MD22560 $MC_TOOL_CHANGE_M_CODE = 6
Resolution
A conflict is resolved corresponding to the following table:
The following are programmed in one program line:
628
D=$C_DL
D and/or DL
T or TCA
–
–
–
x
x
x
x
Comment
; ENDIF
; IF address DL is programmed
;
Select insert offset
; ENDIF
M6
–
x
x
–
x
x
–
–
–
x
x
–
x
x
Called subprogram:
M6_SUB_PROG
T_SUB_PROG
M6_SUB_PROG
D_SUB_PROG
M6_SUB_PROG
T_SUB_PROG
M6_SUB_PROG
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions