Time that the replacement subprogram is called● SPOS, SPOSAThe time of the call cannot be set. The replacement subprogram is always called at theblock start.● M19The call time depends on the configured output behavior of the auxiliary function to the PLC(see below MD22080):– Output before or during motion: Subprogram call at the start of the block.– Output after motion: Subprogram call at the end of the blockMD22080 $MC_AUXFU_PREDEF_SPEC[9]Bit Value Meaning5 1 Output of the auxiliary function before the motion6 1 Output of the auxiliary function during the motion7 1 Output of the auxiliary function after the motionSystem variable for transferring informationThe replacement subroutine is provided with all of the information relevant to the functionsprogrammed in the block via system variables (see Chapter "System variable (Page 632)").The data refer exclusively to the block, in which the function to be replaced has beenprogrammed.9.17.3.4 System variableSystem variable Meaning$P_SUB_AXFCT TRUE, if M40, M41 ... M45 replacement is active$P_SUB_GEAR Programmed or calculated gear stageOutside the replacement subprogram: Gear stage of the master spindle$P_SUB_AUTOGEAR TRUE, if M40 was active in the block that had initiated the replacementoperation.Outside the replacement subprogram: Actual setting in the interpreter$P_SUB_LA Contains the axis name of the leading spindle of the active coupling, whichhad triggered the replacement operation.NoteIf the variable is used outside the replacement subprogram, program pro‐cessing is cancelled with an alarm.$P_SUB_CA Contains the axis name of the following spindle of the active coupling, whichhad triggered the replacement operation.NoteIf the variable is called outside the replacement subprogram, program pro‐cessing is cancelled with an alarm.$P_SUB_AXFCT Contains the active replacement types corresponding to MD30465$MA_AXIS_LANG_SUB_MASK$P_SUB_SPOS TRUE, if the SPOS replacement is activeK1: Mode group, channel, program operation, reset response9.17 Replacing functions by subprogramsBasic Functions632 Function Manual, 01/2015, 6FC5397-0BP40-5BA2