Hi @_andi_,
that's great you have been able to debug your problem by yourself - this one is not so easy to find.
Mervis has an ability to execute program upon exception. Double click on the PLC, switch to the Tasks tab and add new task with the Category "Execution error". Then select the program which you want to execute upon the error:
[image: 0_1550129182011_e6795c6f-b159-4020-9173-126b6fef3cee-image.png]