Main Process for the Logical Control of the HELENA loop