Multitasking - Recognize "PP to main" from non motion task (Button activated AND SystemInput)?

Options
Is it possible to recognize that the program pointer in the motion task was set to main, from a non motion multitask which is always running?
No matter if it was set to main manually or with a system input.

I know that ther is this command: "IsStopStateEvent (\PPToMain)"
But i cannot specify in which task the event should be monitored. It only works in the task were it was called.