K1: Mode group, channel, program operation, reset response9.8 Block search Type 5 SERUPROBasic FunctionsFunction Manual, 09/2011, 6FC5397-0BP40-2BA0 551Master-slaveDuring the block search, only the link status should be updated without calculating the associated positions of thecoupled axis.A system ASUB can be started automatically after the block search is finished. In this subroutine, the user cancontrol the link status and the associated axis positions subsequently. The information needed can be read fromadditional block search system variables.System variable for master/slaveThe following system variables are needed for the position offset between the axes to be coupled with thedesired link status:Slave* for slave axis identifierFor further information about the master/slave link, see:References:/FB3/ Function Manual Special Function; Speed/Torque Coupling (TE3), Master-SlaveThe system ASUB is called progevent.spf and must be available in the /_N_CMA_DIR directory. The contentsmight be as follows:progevent.spfX=Master axis, Y=Slave axisNCK variables Description$P_SEARCH_MASLD[X] Slave* Position offset between slave and master axis when thelink is closed.$P_SEARCH_MASLC[X] Slave* Current status of a master/slave link was changedduring block search.$AA_MASL_STAT[X] Slave* Current status of a master/slave link active.NoteThis block search for the master/slave link is effective only if the position offset between theaxes can be determined.In order to determine the programmed positions, the axes to be linked must be in the samechannel at the time of the block search. If this is not the case, the block search is aborted withalarm 15395.Variables $P_SEARCH_MASLD, $P_SEARCH_MASLC and $AA_MASL_STAT are clearedon MASLON.ProgrammingN10 IF(($S_SEARCH_MASLC[Y]< >0) AND ($AA_MASL_STAT[Y]< >0))N20 MASLOF(Y)N30 SUPA Y=$AA_IM[X]-$P_SEARCH_MASLD[Y]N40 MASLON(Y)N50 ENDIFN60 REPOSA