Detailed Description   
2.5 Block search 
  Mode Group, Channel, Program Operation, Reset Response (K1) 
2-34  Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
Type 4 block search with calculation at block end point 
Example with automatic tool change after block search with active tool management: 
1.  Set machine data: 
MD11450 $MN_ SEARCH_RUN_MODE to 1 
MD11602 $MN_ASUP_START_MASK Bit 0 = 1 (ASUB Start from stopped state) 
2.  Select ASUB "BLOCK_SEARCH_END" from PLC via FB4. 
References: 
/FB1/ Description of Functions, Basic Machines: Basic PLC Program (P3) 
3.  Load and select part program "WORKPIECE_1". 
4.  Search to block end point, block number N220. 
5.  MMC signals "Search target found". 
6.  NC Start for output of action blocks. 
7.  With PLC signal: 
DB21... DB32.6 (last action block active) 
the PLC starts ASUB "BLOCK_SEARCH_END" via FC9. 
References: 
/FB1/ Description of Functions, Basic Machines: Basic PLC Program (P3) 
8.  After the end of the ASUB (can be evaluated, e.g., via M function M90 to be defined, see 
example for block N1110), the PLC sets signal  
DB21, ... DBX1.6 (PLC action complete). 
Alternatively, VDI interface signal: 
DB21-DB30 DBB318 Bit 0 (ASUP is stopped) 
can be scanned. 
As a result, Alarm 10208 is displayed, i.e., other actions can now be performed by the 
operator. 
9.  Manual operator actions (JOG, JOGREPOS, overstoring) 
10. Continue part program with NC Start.