Introduction

The basic mechanisms implemented for the block search are contained in the functional description "Block search" (FCT-C6). The section below describes the commanding of the various block search variants by means of the PLC application HLI BlockSearch.

The PLC application is used to parameterise the block search and to observe the reaction of the NC kernel after starting the block search. The block search itself is activated when a block search type is selected in the PLC application, the required parameters are set and then a start of an NC program is requested. In the case of the example application, this is usually done via the Online tab of the corresponding channel in the SystemManager (TwinCAT 2) or the MOTION configuration (TwinCAT 3) by pressing the Start button there. For the purpose of simplification, the tab is referred to as Operation below

The block search is parameterised in the ADS program. There are no corresponding interfaces for this on the HLI. However, state data of the NC kernel can be retrieved via ADS and the HLI. State data can then be used to parameterise the block search via ADS communication. The handshake between PLC and NC kernel during the block search is processed by the corresponding control unit (CNC build >= 2800: gpCh[i].bahn_lc_control.block_search) on the HLI (see also [HLI//Block search], including diagrams on handshake).

The PLC application automatically acknowledges all technology functions (M, H, S, T) output by the NC kernel for channels 1 and 2 (see programme MAIN(), Fct: QuitChTechFunction() ).

The PLC application can be used to parameterise the block search and then to select whether the handshakes required to execute the function are carried out automatically by the PLC application (see state machine at the end of POU BlockSearch) or whether the user wants to command them step-by-step via the visualisation.

Visualisations are structured so that