Detailed description
2.5 Block search
2.5.5
Examples of block search with calculation
Selection
From the following examples, select the type of block search that corresponds to your task.
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:
2. Select ASUB "BLOCK_SEARCH_END" from PLC via FB4.
3. Load and select part program "WORKPIECE_1".
4. Search to block end point, block number N220.
5. HMI signals "Search target found".
6. NC Start for output of action blocks.
7. With the PLC signal:
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 ended).
Alternatively, the VDI interface signal:
DB21-DB30 DBB318 Bit 0 (ASUB is stopped)
can also 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.
46
MD11450 $MN_ SEARCH_RUN_MODE to 1
MD11602 $MN_ASUP_START_MASK Bit 0 = 1 (ASUB Start from stopped state)
Reference:
/FB1/ Function Manual, Basic Functions, Basic PLC Program (P3)
DB21... DB32.6 (last action block active)
the PLC starts ASUB "BLOCK_SEARCH_END" via FC9.
References:
/FB1/ Function Manual, Basic Function, Basic PLC Program (P3)
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0