Detailed Description
2.5 Block search
Mode Group, Channel, Program Operation, Reset Response (K1)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-31
2.5.2 Automatic start of an ASUB after block search
Activation
Automatic ASUB Start after a block search is configured in existing machine data:
MD11450 $MN_SEARCH_RUN_MODE
with Bit 1 = 1 (TRUE):
Bit 1 = 1: Automatic start of user program
/_N_CMA_DIR/_N_PROG_EVENT_SPF as an ASUB.
When the last action block is activated, user program
/_N_CMA_DIR/_N_PROG_EVENT_SPF is started as an ASUB.
Start event
The event that has started this user program can be determined by scanning system variable
$P_PROG_EVENT. If it is an ASUB Start after a block search, the value 5 can be scanned
using system variable $P_PROG_EVENT.
Note
For further information about the parameter assignment for specific events, see "Event-
driven program calls".
Example ASUB activation
Sequence for the automatic start of an ASUB after block search:
1. Start block search (with/without calculation, at contour, at endofblock point).
2. Stop after "Search target found".
3. NC Start for output of action blocks.
4. Last action block is activated.
5. Automatic start of /_N_CMA_DIR/_N_PROG_EVENT_SPF as an ASUB.
6. The NC stops after activation of the last ASUB block (REPOSA command) and outputs
Alarm 10208 depending on Bit 0 of machine data:
MD11450$MN_SEARCH_RUN_MODE.