First of all, thank you very much for your help!
For Marbek_Elektronik,
Yes, you're true. Indeed, we have used that workaround while we keep investigating the cause of OS_Start not setting. The funny part of this problem is that it worked fine on a different version of microcontroller (the MC050-20). We have migrated our code from this device to a new MC050-120 and OS_Start doesn't works in the same manner.
To niteRider,
Right, OS_Start sets only on the first program loop, so we though of it as a good mean to trigger an initial setup and checking task. In a previous version we latched it by means of the OR gate, it is a sort of simple latch (This works fine on the MC050-20):
Initially, OR gate inputs are F, F and its output is F
When OS_Start sets, one of the inputs changes to T and the output is T.
The output feedback into the or gate, keeps the other input to T, after OS_Start changes from T to F.
This latch keeps its output to T forever after OS_Start has been set at start-up. So, it stays true for the 2 seconds needed in the input of the ON-delay line.
We are not using Service tool to check the activation of OS_Start, instead we use it in the program that runs in the MC050-120 (and previously in the MC050-20). Nevertheless, using the "OR latch" described above, we can capture the activation and see whether it has set or not.
We are thinking about the migration from a microcontroller to other as a possible cause. We saved blocks (as SCS files) and reloaded them in the new Plus+1 project. Could it be that this form of copy can take with itself parts of the OS or internal definitions of the former microcontroller?
Thanks again!